{** * Prescription edit * * @package OpenEMR * @link http://www.open-emr.org * @author Brady Miller * @copyright Copyright (c) 2017-2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 *} {headerTemplate assets='jquery-ui|jquery-ui-base|datetime-picker'} {literal} {/literal} {literal} {/literal}
{xlt t='Add'}/{xlt t='Edit'}  {xlt t='Save'} {if $DRUG_ARRAY_VALUES}         {if $prescription->get_refills() >= $prescription->get_dispensation_count()} units, {$GBL_CURRENCY_SYMBOL|text} {else}  {xlt t='prescription has reached its limit of'} {$prescription->get_refills()|text} {xlt t='refills'}. {/if} {/if} {xlt t='Back'}
{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} {xlt t='E-Prescription?'}
{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} {xlt t='Checked Drug Formulary?'}
{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} {xlt t='Controlled Substance?'}
{/if} {if $DRUG_ARRAY_VALUES} {/if} {if $SIMPLIFIED_PRESCRIPTIONS && !$prescription->size} {else} {/if} {if $WEIGHT_LOSS_CLINIC} {else} {/if}
{xlt t='Currently Active'} get_active() > 0} checked{/if} />
{xlt t='Starting Date'}
{xlt t='Provider'} {html_options class="input-sm" name="provider_id" options=$prescription->provider->utility_provider_array() selected=$prescription->provider->get_id()}
{xlt t='Drug'} ({xlt t='click here to search'})
  {xlt t='in-house'}
{xlt t='Quantity'}
{xlt t='Medicine Units'}
{xlt t='Directions'} {if $SIMPLIFIED_PRESCRIPTIONS && !$prescription->form && !$prescription->route && !$prescription->interval} {else} {xlt t='in'} {/if}
{xlt t='Refills'} {html_options name="refills" options=$prescription->refills_array selected=$prescription->refills} {if $SIMPLIFIED_PRESCRIPTIONS} {else}     # {xlt t='of tablets'}: {/if}
{xlt t='Notes'}
{xlt t='Substitution'} {html_options name="substitute" options=$prescription->substitute_array selected=$prescription->substitute} {xlt t='Add to Medication List'} {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}