{** * Prescription edit * * @package OpenEMR * @link http://www.open-emr.org * @author Brady Miller * @copyright Copyright (c) 2017 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 *} {headerTemplate assets='jquery-ui|jquery-ui-base'} {literal} {/literal} {literal} {/literal}
{xl t='Add'|escape:'html'}/{xl t='Edit'|escape:'html'}  {xl t='Save'|escape:'html'} {if $DRUG_ARRAY_VALUES}         {if $prescription->get_refills() >= $prescription->get_dispensation_count()} units, $ {else}  {xl t='prescription has reached its limit of'|escape:'html'} {$prescription->get_refills()|escape:'html'} {xl t='refills'|escape:'html'}. {/if} {/if} {xl t='Back'|escape:'html'}
{if $GLOBALS.enable_amc_prompting}
{amcCollect amc_id='e_prescribe_amc' patient_id=$prescription->patient->id object_category='prescriptions' object_id=$prescription->id} {if not $amcCollectReturn} {else} {/if} {xl t='E-Prescription?'|escape:'html'}
{amcCollect amc_id='e_prescribe_chk_formulary_amc' patient_id=$prescription->patient->id object_category='prescriptions' object_id=$prescription->id} {if not $amcCollectReturn} {else} {/if} {xl t='Checked Drug Formulary?'|escape:'html'}
{amcCollect amc_id='e_prescribe_cont_subst_amc' patient_id=$prescription->patient->id object_category='prescriptions' object_id=$prescription->id} {if not $amcCollectReturn} {else} {/if} {xl t='Controlled Substance?'|escape:'html'}
{/if} {if $DRUG_ARRAY_VALUES} {/if} {if $SIMPLIFIED_PRESCRIPTIONS && !$prescription->size} {else} {/if} {if $WEIGHT_LOSS_CLINIC} {else} {/if}
{xl t='Currently Active'|escape:'html'} get_active() > 0} checked{/if} />
{xl t='Starting Date'|escape:'html'} {html_select_date class="input-sm" start_year="-10" end_year="+5" time=$prescription->start_date prefix="start_date_"}
{xl t='Provider'|escape:'html'} {html_options class="input-sm" name="provider_id" options=$prescription->provider->utility_provider_array() selected=$prescription->provider->get_id()}
{xl t='Drug'|escape:'html'} ({xl t='click here to search'|escape:'html'})
  {xl t='in-house'|escape:'html'}
{xl t='Quantity'|escape:'html'}
{xl t='Medicine Units'|escape:'html'}
{xl t='Directions'|escape:'html'} {if $SIMPLIFIED_PRESCRIPTIONS && !$prescription->form && !$prescription->route && !$prescription->interval} {else} {xl t='in'|escape:'html'} {/if}
{xl t='Refills'|escape:'html'} {html_options name="refills" options=$prescription->refills_array selected=$prescription->refills} {if $SIMPLIFIED_PRESCRIPTIONS} {else}     # {xl t='of tablets'}: {/if}
{xl t='Notes'|escape:'html'}
{xl t='Substitution'|escape:'html'} {html_options name="substitute" options=$prescription->substitute_array selected=$prescription->substitute} {xl t='Add to Medication List'|escape:'html'} {html_radios class="input-sm" name="medication" options=$prescription->medication_array selected=$prescription->medication}     {html_options class="input-sm" name="substitute" options=$prescription->substitute_array selected=$prescription->substitute}
{literal} {/literal}