{** * general document view * * @package OpenEMR * @link http://www.open-emr.org * @author Brady Miller * @copyright Copyright (c) 2017-2019 Brady Miller * @author Jerry Padgett * @copyright Copyright (c) 2018-2019 Jerry Padgett * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 *}

{$file->get_name()|text}
{if !empty($GLOBALS.oefax_enable)} {dispatchPatientDocumentEvent event="actions_render_fax_anchor"} {/if} {xlt t='Pop Out'} {xlt t='Download'} {xlt t='Show Notes'} {$delete_string} {if $file->get_ccr_type($file->get_id()) eq "CCR" and ($file->get_mimetype($file->get_id()) eq "application/xml" or $file->get_mimetype($file->get_id()) eq "text/xml") and $file->get_imported($file->get_id()) eq 0 } {xlt t='Import'} {/if}

{if $file->get_mimetype() eq "image/tiff" or $file->get_mimetype() eq "text/plain"} {elseif $file->get_mimetype() eq "image/png" or $file->get_mimetype() eq "image/jpg" or $file->get_mimetype() eq "image/jpeg" or $file->get_mimetype() eq "image/gif" or $file->get_mimetype() eq "application/pdf" } {elseif $file->get_mimetype() eq "application/dicom" or $file->get_mimetype() eq "application/dicom+zip"} {elseif $file->get_mimetype() eq "audio/ogg" or $file->get_mimetype() eq "audio/wav" or $file->get_mimetype() eq "audio/mpeg"} {elseif $file->get_ccr_type($file->get_id()) ne "CCR" and $file->get_ccr_type($file->get_id()) ne "CCD"} {/if}