{** * templates/prescription/general_list.html * Shows reformatted prescription list with fewer print options and destination pharmacy * information at top right. * * @package OpenEMR * @link http://www.open-emr.org * @author Brady Miller * @author Sherwin Gaddis * @copyright Copyright (c) 2017-2018 Brady Miller * @copyright Copyright (c) 2018 Sherwin Gaddis * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 *} {php} use OpenEMR\Rx\Faxrx\TransmitData; $pid = $GLOBALS['pid']; $td = New TransmitData(); $pharmacy = $td->patientPharmacyInfo($pid); $phInfo = $pharmacy['name'] . ', Fax: (' . $pharmacy['area_code'] . ') ' . $pharmacy['prefix'] . '-' . $pharmacy['number']; $this->assign('ptPharm', $phInfo); {/php} {headerTemplate assets='no_textformat|no_dialog'} {literal} {/literal}
{if $prescriptions}

{xlt t='List'}

{if $GLOBALS.rx_use_fax_template} {xlt t='Download'} ({xlt t='Fax'}) {/if} {if $GLOBALS.faxrx_enable} {xlt t="Send Faxrx"} {/if} {if $GLOBALS.weno_rx_enable} {xlt t='Transmit'} {xlt t='Rx'} {/if} {if $CAMOS_FORM == true} {xlt t='View Four Panel'} {/if}
{if $GLOBALS.faxrx_enable} {$ptPharm} {/if}
{if $GLOBALS.erx_enable} {/if} {if !$GLOBALS.faxrx_enable} {/if} {if $GLOBALS.faxrx_enable} {/if} {foreach from=$prescriptions item=prescription} {if empty($prescription->erx_source) || $prescription->erx_source==0} {else} {/if} {if $GLOBALS.erx_enable} {/if} {if empty($prescription->erx_source) || $prescription->erx_source==0} {else} {/if} {if !$GLOBALS.faxrx_enable} {/if} {if $GLOBALS.faxrx_enable} {/if} {/foreach}
    {xlt t='Drug'} {xlt t='RxNorm'} {xlt t='Created'}
{xlt t='Changed'}
{xlt t='Dosage'} {xlt t='Qty'}. {xlt t='Unit'} {xlt t='Refills'} {xlt t='Provider'} {xlt t='Last'}
encounter) && $prescription->encounter == $prescription->get_encounter() && $prescription->active > 0}checked="checked" {/if}onclick="changeLinkHref('multiprint',this.checked, this.value);changeLinkHref('multiprintcss',this.checked, this.value);changeLinkHref('multiprintToFax',this.checked, this.value);changeLinkHref('multiprintToFaxrx',this.checked, this.value)" title="{xla t='Select for printing'}"> {xlt t='Edit'} {if $prescription->active > 0}{/if}{$prescription->drug|text}{if $prescription->active > 0}{/if} 
{$prescription->note|text}
  {if $prescription->active > 0}{/if}{$prescription->drug|text}{if $prescription->active > 0}{/if} 
{$prescription->note|text}
{$prescription->rxnorm_drugcode|text}  {$prescription->date_added|oeFormatShortDate|text}
{$prescription->date_modified|oeFormatShortDate|text} 
{$prescription->get_dosage_display()|text}   {$prescription->quantity|text}   {$prescription->quantity|text}   {$prescription->get_size()|text} {$prescription->get_unit_display()|text}  {$prescription->refills|text}   {$prescription->provider->get_name_display()|text}  {$prescription->txDate|text} {xlt t='Delete'}
{if $GLOBALS.rx_show_drug_drug}

{xlt t='Drug-Drug Interaction'}

*{xlt t='Notice'}

{$INTERACTION}

{/if} {else}
{xlt t='There are currently no prescriptions'}.
{/if}
{literal} {/literal}