{** * general document view * * @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 *}

{$file->get_url_web()|escape:'html'}
{xl t='Download'|escape:'html'} {xl t='Show Notes'|escape:'html'} {$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 } {xl t='Import'|escape:'html'} {/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_ccr_type($file->get_id()) ne "CCR" and $file->get_ccr_type($file->get_id()) ne "CCD"} {/if}