{** * 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='datetime-picker|select2'} {literal} {/literal}
{xlt t='Add'}/{xlt t='Edit'}  {xlt t='Save'} {if !empty($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}
get_active() > 0} checked{/if} />
{html_options class="input-sm form-control" name="provider_id" options=$prescription->provider->utility_provider_array() selected=$prescription->provider->get_id()}
({xlt t='Search Web API'})
{if !empty($DRUG_ARRAY_VALUES)}
{/if}
{if $SIMPLIFIED_PRESCRIPTIONS && !$prescription->size}
{else}
{/if}
{if $SIMPLIFIED_PRESCRIPTIONS && !$prescription->form && !$prescription->route && !$prescription->interval} {else}
{xlt t='in'}
{/if}
{html_options name="refills" class="form-control" options=$prescription->refills_array selected=$prescription->refills}
{if $SIMPLIFIED_PRESCRIPTIONS} {else}
    # {xlt t='of tablets'}:
{/if}
{if $WEIGHT_LOSS_CLINIC} {html_options name="substitute" class="form-control" options=$prescription->substitute_array selected=$prescription->substitute} {else}
{html_radios class="input-sm" name="medication" options=$prescription->medication_array selected=$prescription->medication}
{html_options class="input-sm form-control" name="substitute" options=$prescription->substitute_array selected=$prescription->substitute}
{/if}
{literal} {/literal}