<?xml version = "1.0" encoding="UTF-8"?>
<apd SOP="1.2.on-and-on" name = "PT3D">
<version syntax="0.1" content="0.5"/>

<declarations>

<dicomVar name="hospname" type="string" group="0008" element="0080"/>
<dicomVar name="AccessionNumber" type="string" group="0008" element="0050"/>
<dicomVar name="patname" type="string" group="0010" element="0010"/>
<dicomVar name="ex_no" type="string" group="0020" element="0010"/>
<dicomVar name="patsex" type="string" group="0010" element="0040"/>
<dicomVar name="patage" type="string" group="0010" element="1010"/>
<dicomVar name="patid" type="string" group="0010" element="0020"/>
<dicomVar name="birthDate" type="string" group="0010" element="0030"/>
<dicomVar name="acq_date" type="int" group="0008" element="0022"/>
<dicomVar name="acq_time" type="int" group="0008" element="0032"/>
<dicomVar name="se_no" type="string" group="0020" element="0011"/>
<dicomVar name="PETseriesType" type="string" group="0054" element="1000" creator="UNKNOWN"/>
<dicomVar name="sop_class_uid" type="string" group="0008" element="0016"/>
<dicomVar name="dicomImageType" type="string" group="0008" element="0008"/>
<dicomVar name="scan_type" type="int" group="0009" element="1018" creator="UNKNOWN"/>
<dicomVar name="contrast_route" type="string" group="0018" element="1040"/>
<dicomVar name="im_no" type="string" group="0020" element="0013"/>
<dicomVar name="GEMS_rcvgain2" type="int" group="0009" element="108b" creator="GEMS_ACQU_01"/>
<dicomVar name="preconAlg" type="string" group="0054" element="1103" creator="UNKNOWN"/>
<dicomVar name="cardiac_recon" type="string" group="0045" element="1030" creator="UNKNOWN"/>
<dicomVar name="recon_sectors" type="string" group="0049" element="100b" creator="UNKNOWN"/>
<dicomVar name="avg_heartRate" type="string" group="0045" element="1031" creator="UNKNOWN"/>
<dicomVar name="se_typ" type="int" group="0009" element="101a" creator="GEMS_IDEN_01"/>
<dicomVar name="viewcompression" type="int" group="0019" element="1047" creator="UNKNOWN"/>
<dicomVar name="ModelName" type="string" group="0008" element="1090"/>
<dicomVar name="np_prosImgFilter" type="string" group="0043" element="1064" creator="UNKNOWN"/>
<dicomVar name="rpStartDT" type="string" group="0009" element="103b" creator="UNKNOWN"/>
<dicomVar name="scan_time_date" type="string" group="0009" element="100d" creator="UNKNOWN"/>
<dicomVar name="rpStart" type="string" group="0018" element="1072" creator="UNKNOWN"/>
<dicomVar name="se_time" type="string" group="0008" element="0031"/>
<dicomVar name="units" type="string" group="0054" element="1001"/>
<dicomVar name="imageIndex" type="int" group="0054" element="1330" creator="UNKNOWN"/>
<dicomVar name="numSlices" type="int" group="0054" element="0081" creator="UNKNOWN"/>
<dicomVar name="image_time" type="int" group="0054" element="1300" creator="UNKNOWN"/>
<dicomVar name="trigger_time" type="string" group="0018" element="1060" creator="UNKNOWN"/>
<dicomVar name="SeriesDescription" type="string" group="0008" element="103e" creator="UNKNOWN"/>
<dicomVar name="Dur" type="int" group="0009" element="106d" creator="GEMS_ACQU_01"/>
<dicomVar name="ImageHeight" type="int" group="0028" element="0010"/>
<dicomVar name="ImageWidth" type="int" group="0028" element="0011"/>
<dicomVar name="axial_acceptance" type="int" group="0009" element="1025" creator="GEMS_IDEN_01"/>
<dicomVar name="delayed_events" type="string" group="0054" element="1100" creator="UNKNOWN"/>
<dicomVar name="Tracer" type="string" group="0009" element="1036" creator="UNKNOWN"/>
<dicomVar name="kvolt" type="string" group="0018" element="0060" creator="UNKNOWN"/>

<runtimeVar name="lang" type="string" initial = "en_US"/>
<runtimeVar name="rasNorth" type="string" initial = " "/>
<runtimeVar name="rasSouth" type="string" initial = " "/>
<runtimeVar name="rasEast" type="string" initial = " "/>
<runtimeVar name="rasWest" type="string" initial = " "/>
<runtimeVar name="timedateFormat" type="string" initial="1"/>
<runtimeVar name="viewtype" type="string" initial = ""/>
<runtimeVar name="volume" type="string" initial = "Volume 1"/>
<runtimeVar name="seriesID2" type="string" initial = ""/>
<runtimeVar name="imagecenter" type="string" initial = "I0.0"/>
<runtimeVar name="dfov" type="string" initial = "30"/>
<runtimeVar name="layers" type="int" initial = "1"/>
<runtimeVar name="roiResult1" type="string" initial = ""/>
<runtimeVar name="roiResult2" type="string" initial = ""/>
<runtimeVar name="roiResult3" type="string" initial = ""/>
<runtimeVar name="windowMin" type="float" initial = "-50"/>
<runtimeVar name="windowMax" type="float" initial = "50"/>
<runtimeVar name="thickness" type="string" initial = "1.1"/>
<runtimeVar name="renderStyle" type="string" initial = ""/>
<runtimeVar name="showWWWL2" type="string" initial = ""/>
<runtimeVar name="windowLevel2" type="float" initial = "0.0"/>
<runtimeVar name="windowWidth2" type="float" initial = "0.0"/>
<runtimeVar name="spacing" type="string" initial = "1.1"/>
<runtimeVar name="imageNumber" type="string" initial = ""/>
<runtimeVar name="ClipPatientName" type="int" initial = "24"/>

</declarations>

<expressions>

  <table name="symbol" type="i18n">
    <entry i="cm" v=" cm\u00c2\u00b2 "/>
  </table>
		
  <table name="symbol1" type="i18n">
    <entry i="cm" v=" cm\u00c2\u00b2/ml "/>
  </table>
		
  <table name="I18n_month1" type="i18n">
    <entry i="de" v=" Jan"/>
    <entry i="en_US" v=" Jan"/>
    <entry i="es_MX" v=" ene"/>
    <entry i="fr" v=" jan"/>
    <entry i="it" v=" gen"/>
    <entry i="pt_BR" v=" jan"/>
    <entry i="sv_SE" v="Jan"/>
    <entry i="pt_PT" v="Jan"/>
    <entry i="da_DK" v="Jan"/>
    <entry i="fi_FI" v="Tam"/>
    <entry i="nb_NO" v="Jan"/>
    <entry i="nl_NL" v="Jan"/>
    <entry i="ru_RU" v="\u042f\u043d\u0432."/>  
  </table>

<table name="I18n_month2" type="i18n">
  <entry i="de" v=" Feb"/>
  <entry i="en_US" v=" Feb"/>
  <entry i="es_MX" v=" feb"/>
  <entry i="fr" v=" f\u00c3\u00a9v"/>
  <entry i="it" v=" feb"/>
  <entry i="pt_BR" v=" fev"/>
  <entry i="sv_SE" v="Feb"/>
  <entry i="pt_PT" v="Fev"/>
  <entry i="da_DK" v="Feb"/>
  <entry i="fi_FI" v="Hel"/>
  <entry i="nb_NO" v="Feb"/>
  <entry i="nl_NL" v="Feb"/>
  <entry i="ru_RU" v="\u0424\u0435\u0432."/>  
</table>

<table name="I18n_month3" type="i18n">
  <entry i="de" v="M\u00c3\u00a4rz"/>
  <entry i="en_US" v=" Mar"/>
  <entry i="es_MX" v=" mar"/>
  <entry i="fr" v=" mar"/>
  <entry i="it" v=" mar"/>
  <entry i="pt_BR" v=" mar"/>
  <entry i="sv_SE" v="Mar"/>
  <entry i="pt_PT" v="Mar"/>
  <entry i="da_DK" v="Mar"/>
  <entry i="fi_FI" v="Maa"/>
  <entry i="nb_NO" v="Mar"/>
  <entry i="nl_NL" v="Mrt"/>
  <entry i="ru_RU" v="\u041c\u0430\u0440\u0442"/>  
</table>

<table name="I18n_month4" type="i18n">
  <entry i="de" v=" Apr"/>
  <entry i="en_US" v=" Apr"/>
  <entry i="es_MX" v=" abr"/>
  <entry i="fr" v=" avr"/>
  <entry i="it" v=" apr"/>
  <entry i="pt_BR" v=" abr"/>
  <entry i="sv_SE" v="Apr"/>
  <entry i="pt_PT" v="Abr"/>
  <entry i="da_DK" v="Apr"/>
  <entry i="fi_FI" v="Huh"/>
  <entry i="nb_NO" v="Apr"/>
  <entry i="nl_NL" v="Apr"/>
  <entry i="ru_RU" v="\u0410\u043f\u0440."/>  
</table>

<table name="I18n_month5" type="i18n">
  <entry i="de" v=" Mai"/>
  <entry i="en_US" v=" May"/>
  <entry i="es_MX" v="mayo"/>
  <entry i="fr" v=" mai"/>
  <entry i="it" v=" mag"/>
  <entry i="pt_BR" v=" mai"/>
  <entry i="sv_SE" v="Maj"/>
  <entry i="pt_PT" v="Mai"/>
  <entry i="da_DK" v="Maj"/>
  <entry i="fi_FI" v="Tou"/>
  <entry i="nb_NO" v="Mai"/>
  <entry i="nl_NL" v="Mei"/>
  <entry i="ru_RU" v="\u041c\u0430\u0439"/>  
</table>

<table name="I18n_month6" type="i18n">
  <entry i="de" v="Juni"/>
  <entry i="en_US" v=" Jun"/>
  <entry i="es_MX" v=" jun"/>
  <entry i="fr" v="juin"/>
  <entry i="it" v=" giu"/>
  <entry i="pt_BR" v=" jun"/>
  <entry i="sv_SE" v="Jun"/>
  <entry i="pt_PT" v="Jun"/>
  <entry i="da_DK" v="Jun"/>
  <entry i="fi_FI" v="Kes"/>
  <entry i="nb_NO" v="Jun"/>
  <entry i="nl_NL" v="Jun"/>
  <entry i="ru_RU" v="\u0418\u044e\u043d\u044c"/>  
</table>

<table name="I18n_month7" type="i18n">
  <entry i="de" v="Juli"/>
  <entry i="en_US" v=" Jul"/>
  <entry i="es_MX" v=" jul"/>
  <entry i="fr" v="juil"/>
  <entry i="it" v=" lug"/>
  <entry i="pt_BR" v=" jul"/>
  <entry i="sv_SE" v="Jul"/>
  <entry i="pt_PT" v="Jul"/>
  <entry i="da_DK" v="Jul"/>
  <entry i="fi_FI" v="Hei"/>
  <entry i="nb_NO" v="Jul"/>
  <entry i="nl_NL" v="Jul"/>
  <entry i="ru_RU" v="\u0418\u044e\u043b\u044c"/>  
</table>

<table name="I18n_month8" type="i18n">
  <entry i="de" v=" Aug"/>
  <entry i="en_US" v=" Aug"/>
  <entry i="es_MX" v=" ago"/>
  <entry i="fr" v="ao\u00c3\u00bbt"/>
  <entry i="it" v=" ago"/>
  <entry i="pt_BR" v=" ago"/>
  <entry i="sv_SE" v="Aug"/>
  <entry i="pt_PT" v="Ago"/>
  <entry i="da_DK" v="Aug"/>
  <entry i="fi_FI" v="Elo"/>
  <entry i="nb_NO" v="Aug"/>
  <entry i="nl_NL" v="Aug"/>
  <entry i="ru_RU" v="\u0410\u0432\u0433."/>  
</table>

<table name="I18n_month9" type="i18n">
  <entry i="de" v=" Sep"/>
  <entry i="en_US" v=" Sep"/>
  <entry i="es_MX" v="sept"/>
  <entry i="fr" v="sept"/>
  <entry i="it" v="sett"/>
  <entry i="pt_BR" v=" set"/>
  <entry i="sv_SE" v="Sep"/>
  <entry i="pt_PT" v="Set"/>
  <entry i="da_DK" v="Sep"/>
  <entry i="fi_FI" v="Syy"/>
  <entry i="nb_NO" v="Sep"/>
  <entry i="nl_NL" v="Sep"/>
  <entry i="ru_RU" v="\u0421\u0435\u043d\u0442."/>  
</table>

<table name="I18n_month10" type="i18n">
  <entry i="de" v=" Okt"/>
  <entry i="en_US" v=" Oct"/>
  <entry i="es_MX" v=" oct"/>
  <entry i="fr" v=" oct"/>
  <entry i="it" v=" ott"/>
  <entry i="pt_BR" v=" out"/>
  <entry i="sv_SE" v="Okt"/>
  <entry i="pt_PT" v="Out"/>
  <entry i="da_DK" v="Okt"/>
  <entry i="fi_FI" v="Lok"/>
  <entry i="nb_NO" v="Okt"/>
  <entry i="nl_NL" v="Okt"/>
  <entry i="ru_RU" v="\u041e\u043a\u0442."/>  
</table>

<table name="I18n_month11" type="i18n">
  <entry i="de" v=" Nov"/>
  <entry i="en_US" v=" Nov"/>
  <entry i="es_MX" v=" nov"/>
  <entry i="fr" v=" nov"/>
  <entry i="it" v=" nov"/>
  <entry i="pt_BR" v=" nov"/>
  <entry i="sv_SE" v="Nov"/>
  <entry i="pt_PT" v="Nov"/>
  <entry i="da_DK" v="Nov"/>
  <entry i="fi_FI" v="Mar"/>
  <entry i="nb_NO" v="Nov"/>
  <entry i="nl_NL" v="Nov"/>
  <entry i="ru_RU" v="\u041d\u043e\u044f\u0431."/>  
</table>

<table name="I18n_month12" type="i18n">
  <entry i="de" v=" Dez"/>
  <entry i="en_US" v=" Dec"/>
  <entry i="es_MX" v=" dic"/>
  <entry i="fr" v=" d\u00c3\u00a9c"/>
  <entry i="it" v=" dic"/>
  <entry i="pt_BR" v=" dez"/>
  <entry i="sv_SE" v="Dec"/>
  <entry i="pt_PT" v="Dez"/>
  <entry i="da_DK" v="Dec"/>
  <entry i="fi_FI" v="Jou"/>
  <entry i="nb_NO" v="Des"/>
  <entry i="nl_NL" v="Dec"/>
  <entry i="ru_RU" v="\u0414\u0435\u043a."/>  
</table>

  <table name="RenderStyle" type = "string">
    <entry i="REFORMAT" v=""/>
	<entry i="REFORMAT.TC" v=""/>
	<entry i="REFORMAT.NM" v=""/>
	<entry i="MIP" v="MIP"/>
	<entry i="MINIP" v="MINIP"/>
	<entry i="AVERAGE" v="AVERAGE"/>
	<entry i="MAJOR_AXIS_MIP" v="MIP"/>
	<entry i="MAJOR_AXIS_MINIP" v="MINIP"/>
	<entry i="MAJOR_AXIS_AVERAGE" v="AVERAGE"/>
	<entry i="FULLBODY_MIP" v="3DMIP"/>
	<entry i="FULLBODY_MINIP" v="3DMINIP"/>
	<entry i="VOLUME" v="VR"/>
  </table>
	
  <set name="ArasN"> <![CDATA[rasNorth  ]]> </set>
  <set name="ArasE"> <![CDATA[rasEast  ]]> </set>
  <set name="ArasS"> <![CDATA[rasSouth  ]]> </set>
  <set name="ArasW"> <![CDATA[rasWest  ]]> </set>

  <set name="AHospName"> <![CDATA[clean(hospname)  ]]> </set>

  <set name="AViewType"> <![CDATA[ viewtype + " " ]]> </set>
  <set name="AVolume"> <![CDATA[ volume ]]> </set> 
  <set name="ASeries2ID"> <![CDATA[ seriesID2 ]]> </set> 
  
  <set name="AImageCenter"> <![CDATA[imagecenter]]> </set>
  <set name="ADfov"> <![CDATA[dfov ]]> </set>
  <set name="AThickness"> <![CDATA[thickness]]> </set>
  <set name="ARenderStyle"> <![CDATA[RenderStyle[renderStyle] ]]> </set>
  
  <set name="ASpacing"> <![CDATA[
    if (!isblank(spacing))
    then
      "/" + spacing
    endif 
  ]]> </set>
    	
  <set name="imageNum"> <![CDATA[
    if(isvalued(imageNumber))
    then 
      imageNumber
    else 
      im_no
    endif
  ]]> </set>
	<!-- this  is commented as image number is not required field for SPR: HCSDM00134568,HCSDM00134571 and reported by PET team for index difference-->
    <!-- <set name="AIm"> <![CDATA[
  		if(isvalued(helicalshuttleflag) && (float(helicalshuttleflag) == 1.0))
  		then 
            "Im: " + clean(imageNum) + Contrast + "/PN:" + string(passnumber)
        else
            "Im: " + clean(imageNum) + Contrast
        endif
     ]]> </set> -->
     
     <set name="AIm"> <![CDATA[
  		""
     ]]> </set>
        
  <set name="AEx"> <![CDATA["Ex: " + clean(ex_no)  ]]> </set>      
  
  <set name="ASeriesDescription"> <![CDATA[
    clean(SeriesDescription)  ]]> </set>

  <set name="pt_type_1v"> <![CDATA[
    clean(split(PETseriesType,0))
  ]]> </set>
  <set name="pt_type_2v"> <![CDATA[
    clean(split(PETseriesType,1))
  ]]> </set>
  
  <set name="ct_type_1v"> <![CDATA[
    clean(split(dicomImageType,0))  ]]> </set>
  <set name="ct_type_2v"> <![CDATA[
    clean(split(dicomImageType,1))  ]]> </set>
  <set name="ct_type_3v"> <![CDATA[
    clean(split(dicomImageType,2))  ]]> </set>
  <set name="ct_type_4v"> <![CDATA[
    clean(split(dicomImageType,3))  ]]> </set>
  
  <set name="combImage"> <![CDATA[
    isvalued(se_typ) && (se_typVar == 21 || se_typVar == 22)  ]]> </set>

  <set name="notCombImage"> <![CDATA[
    !combImage  ]]> </set>

  <set name="notLocalizerType"> <![CDATA[
    isblank(ct_type_3v) || clean(ct_type_3v) != "LOCALIZER"  ]]> </set>
    
  <set name="serieType"> <![CDATA[
    if (ct_type_1v=="" && ct_type_2v=="" && ct_type_3v=="" )
    then
      if (sop_class_uid == "1.2.840.113619.4.26") 
      then "3DMOD"
      else 
        if (sop_class_uid == "1.2.840.10008.5.1.4.1.1.11.1") 
        then "GSPS"
        else 
          if (sop_class_uid == "1.2.840.10008.5.1.4.1.1.88.11") 
          then "SR"
          else 
            if (sop_class_uid == "1.2.840.10008.5.1.4.1.1.88.22") 
            then "SR"
            else 
              if (sop_class_uid == "1.2.840.10008.5.1.4.1.1.88.33") 
              then "SR"
              else 
                if (sop_class_uid == "1.2.840.113619.4.30" && isvalued(scan_type)) 
                then
                  if (scan_type == 0) 
                  then "EMISS"
                  else 
                    if (scan_type == 1) 
                    then "TRANS"
                    else 
                      if (scan_type == 2) 
                      then "CTAC"
                      else "SSAVE"
                      endif 
                    endif 
                  endif
                else "SSAVE"
                endif 
              endif 
            endif 
          endif 
        endif 
      endif
    else
      if (ct_type_1v=="ORIGINAL") 
      then
        if (ct_type_2v=="PRIMARY") 
        then
          if (sop_class_uid=="1.2.840.10008.5.1.4.1.1.7") 
          then "SSAVE"
          else 
            if (ct_type_3v=="") 
            then
              midstr(pt_type_1v,0,8)
            else
              if (ct_type_3v=="AXIAL") 
              then "PROSP"
              else 
                if (ct_type_3v=="LOCALIZER") 
                then "SCOUT"
                else 
                  if (ct_type_3v=="CTINTERVENTION") 
                  then
                    if (ct_type_4v=="") 
                    then "CTINT"
                    else midstr(ct_type_4v,0,8)
                    endif
                  else
                    midstr(ct_type_3v,0,8)
                  endif 
                endif 
              endif
            endif 
          endif
        else
          if (ct_type_2v=="SECONDARY") 
          then
            if (ct_type_3v=="SEGMENTED") 
            then "RETRO"
            else
              if (sop_class_uid=="1.2.840.10008.5.1.4.1.1.7") 
              then "SSAVE"
              else midstr(ct_type_3v,0,8)
              endif
            endif
          else midstr(ct_type_2v,0,5)
          endif
        endif
      else 
        if (ct_type_1v=="DERIVED") 
        then
          if (ct_type_2v=="PRIMARY") 
          then
            if (sop_class_uid=="1.2.840.10008.5.1.4.1.1.7") 
            then "SSAVE"
            else midstr(ct_type_3v,0,8)
            endif
          else 
            if (ct_type_2v=="SECONDARY") 
            then
              if (ct_type_3v=="REFORMATTED") 
              then "REFMT"
 			  else 
 			    if (ct_type_3v=="PROCESSED") 
 			    then "PROC"
                else
                  if (sop_class_uid=="1.2.840.10008.5.1.4.1.1.7") 
                  then
                    if ( ct_type_3v == "3D") 
                    then "3D"
                    else 
                      if (ct_type_3v=="COMBINED") 
                      then "COMB"
                      else "SSAVE" 
                      endif 
                    endif
                  endif
                endif 
              endif
            else " "
            endif
          endif
        else " "
        endif
      endif
    endif
  ]]> </set>
       
  <set name="se_typVar"> <![CDATA[
    if (pt_type_2v == "REPROJECTION") then 
      int(58) 
    else
      if (serieType == "STATIC") then int(50) else
      if (serieType == "EMISS") then int(51) else
      if (serieType == "CTAC")  then int(52) else
      if (serieType == "TRANS") then int(53) else
      if (serieType == "DYNAMIC") then int(56) else
      if (serieType == "GATED") then int(57) else
      if (serieType == "PROSP") then int(1) else
      if (serieType == "RETRO") then int(2) else
      if (serieType == "SCOUT") then int(3) else
      if (serieType == "REFMT") then int(4) else
      if (serieType == "SSAVE") then int(5) else
      if (serieType == "XENON") then int(6) else
      if (serieType == "3D")    then int(7) else
      if (serieType == "SERV") then int(8) else
      if (serieType == "PJN") then int(9) else
      if (serieType == "COMB") then int(21) else
      if (serieType == "PROC") then int(22) else
      if (serieType == "FLUORO") then int(39) else
      if (serieType == "CTINT") then int(40) else
      if (serieType == "GSPS") then int(54) else
      if (serieType == "SR") then int(55) else
        int(0) 
      endif endif endif endif endif endif endif endif
      endif endif endif endif endif endif endif endif
      endif endif endif endif endif
    endif
  ]]> </set>  
	
  <set name="ASe"> <![CDATA[
    "Se: " + clean(se_no) + 
    if(se_typVar != 1)
    then
      " " + serieType 
    else
      " "
    endif
  ]]> </set>

  <set name="Contrast"> <![CDATA[
    if (isvalued(contrast_route)) 
    then
      if(clean(contrast_route) == "Oral")
      then
        " "
      else
        if(clean(contrast_route) == "IV")
        then
          "+C"
        else
          if(clean(contrast_route) == "Oral & IV")
          then
            "+C"
          endif
        endif
      endif
    else
      ""
    endif
  ]]> </set>
  
  <set name="RequisitionNum"> <![CDATA[clean(AccessionNumber)  ]]> </set>
    
  <set name="AAccNum"> <![CDATA[
    if(!isblank(RequisitionNum))
    then
      "Acc Num:" + RequisitionNum
    endif
  ]]> </set>
  
  <set name="patientName"> <![CDATA[
    if(clean(patname) != "")
    then
      patname
    else
      clean(patname)
    endif
  ]]> </set>
  
  <set name="AFamilyName"> <![CDATA[
  		split(patientName, "^", 0)
  ]]> </set>
  <set name="AGivenName"> <![CDATA[
  	split(patientName, "^", 1)
  ]]> </set>
  <set name="AMiddleName"> <![CDATA[
  	split(patientName, "^", 2)
  ]]> </set>
  <set name="APrefixName"> <![CDATA[
  	split(patientName, "^", 3)
  ]]> </set>
  <set name="ASuffixName"> <![CDATA[
  	split(patientName, "^", 4)
  ]]> </set>
  
  <set name="ALongPatientName"> <![CDATA[
        if(isblank(patientName))
          then
          	"no_name_" 
          + if(isvalued(ex_no))
            then
            	ex_no
            else
            ""
          	endif
          else
          	if (!isblank(AFamilyName))
          	then   
          	   AFamilyName
          	   + if(!isblank(APrefixName) || !isblank(AGivenName) || !isblank(AMiddleName) || !isblank(ASuffixName))
          	   	 then
          	   	 ","
          	   	 endif
          	endif
          	+if (!isblank(AGivenName))
          	then
          	   " "+AGivenName
          	endif
          	+if (!isblank(AMiddleName))
          	then
          	   " "+AMiddleName
          	endif
          	+if (!isblank(APrefixName))
          	then
          	    " "+APrefixName
          	endif
          	+if (!isblank(ASuffixName))
          	then   
          	   " "+ASuffixName
          	endif 
        endif
  ]]> </set>
  
  <set name="APatientName"> <![CDATA[
        if(strlen(ALongPatientName) > ClipPatientName+1)
          then
           midstr(ALongPatientName,0,(ClipPatientName)) + "*"
          else
          ALongPatientName
        endif
  ]]> </set>
  
  <set name="age"> <![CDATA[
    if(!isblank(patage))
    then
      int(midstr(patage,0,3))
    else
      0
    endif
  ]]> </set>
  
  <set name="page"> <![CDATA[
    if(age > 0)
    then
      age
    else
      0
    endif
  ]]> </set>
  
  <set name="Patsex"> <![CDATA[
    if(clean(patsex) == "M")
    then
      "M"
    else
      if(clean(patsex) == "F")
      then
        "F"
      else
        " "
      endif
    endif
  ]]> </set>
  
  <set name="ASex"> <![CDATA[
    Patsex + 
    if(page > 0)
    then
      " "
    endif
  ]]> </set>
  
  <set name="agen"> <![CDATA[
    if(!isblank(patage))
    then
      midstr(patage,3,3)
    else
      " "
    endif
  ]]> </set>
  
  <set name="page_n"> <![CDATA[
    if(agen == "Y")
    then
      " "
    else
      agen
    endif
  ]]> </set>
  
  <set name="AAge"> <![CDATA[
    if(page > 0)
    then
      " "+page + page_n
    endif
    + if(!isblank(patid))
    then
      " "
    else
      ""
    endif
 
  ]]> </set>
  
  <set name="AShortPatID"> <![CDATA[
    if(!isblank(patid))
    then
      " "+patid
    else
      ""
    endif
  ]]> </set>
  
  <set name="p_bmon"> <![CDATA[
    if(!isblank(birthDate))
    then
      int(midstr(birthDate,4,2))
    else
      0
    endif
  ]]> </set>
  
  <set name="p_bdate"> <![CDATA[
    if(!isblank(birthDate))
    then
      midstr(birthDate,6,2)
    else
      ""
    endif
  ]]> </set>
  
  <set name="p_byear"> <![CDATA[
    if(!isblank(birthDate))
    then
      int(midstr(birthDate,0,4))
    else
      0
    endif
  ]]> </set>
  
  <set name="MonthOfBirth"> <![CDATA[
    if(p_bmon == 1)
    then
      I18n_month1[lang]
    else
      if(p_bmon == 2)
      then
        I18n_month2[lang]
      else
        if(p_bmon == 3)
        then
          I18n_month3[lang]
        else
          if(p_bmon == 4)
          then
            I18n_month4[lang]
          else
            if(p_bmon == 5)
            then
              I18n_month5[lang]
            else
              if(p_bmon == 6)
              then
                I18n_month6[lang]
              else
                if(p_bmon == 7)
                then
                  I18n_month7[lang]
                else
                  if(p_bmon == 8)
                  then
                    I18n_month8[lang]
                  else
                    if(p_bmon == 9)
                    then
                      I18n_month9[lang]
                    else
                      if(p_bmon == 10)
                      then
                        I18n_month10[lang]
                      else
                        if(p_bmon == 11)
                        then
                          I18n_month11[lang]
                        else
                          if(p_bmon == 12)
                          then
                            I18n_month12[lang]
                          else
                            ""
                          endif
                        endif
                      endif
                    endif
                  endif
                endif
              endif
            endif
          endif
        endif
      endif
    endif
  ]]> </set>
  
  <set name="ABirthDate"> <![CDATA[
    if(!isblank(birthDate))
    then
      "DOB:" + 
      if(timedateFormat == "1" || timedateFormat == "4")
      then
        MonthOfBirth + " " + p_bdate + " " + p_byear
      else
        if(timedateFormat == "2" || timedateFormat == "5")
        then
          " " + p_bdate + " " + MonthOfBirth + " " + p_byear
        else
          " " + p_byear + " " + MonthOfBirth + " " + p_bdate
        endif
      endif
    endif
  ]]> </set>
  
  <set name="AAcqDate"> <![CDATA[
    if (isvalued(acq_date))
    then
      if(timedateFormat == "1" || timedateFormat == "4")
      then
        (acq_date)%h %d %Y
      else
        if(timedateFormat == "2" || timedateFormat == "5")
        then
          (acq_date)%d %h %Y
        else
          (acq_date)%Y %h %d
        endif
      endif
    endif
  ]]> </set>
  
  <set name="ScanTimeOfDay"> <![CDATA[
    if ((timedateFormat == "1")||(timedateFormat=="2")||(timedateFormat=="3")) then
      acq_time%r
    else
      acq_time%T
    endif
  ]]> </set>
  
  <set name ="AreconAlg"> <![CDATA[
    if (isvalued(GEMS_rcvgain2) && (GEMS_rcvgain2 >= 0) && (GEMS_rcvgain2 <= 4)) 
    then
      if (GEMS_rcvgain2 == 0 ) 
      then "FBP" 
	  else
        if (GEMS_rcvgain2 == 1 ) 
		then "RP"    
	    else
          if (GEMS_rcvgain2 == 2 ) 
		  then "OSEM"  
		  else
            if (GEMS_rcvgain2 == 3 ) 
		    then "FFBP"  
		    else
              "FWLS"
            endif 
	      endif 
		endif 
      endif
    else 
      if (isvalued(preconAlg)) 
      then midstr(clean(preconAlg),0,4)
      else ""
      endif 
	endif
  ]]> </set>

  <set name="cardiacSectors"> <![CDATA[
    if(isvalued(recon_sectors))
    then
      midstr(recon_sectors,0,2)
    else
      ""
    endif
  ]]> </set>
  
  <set name="cardiacRecon"> <![CDATA[
    if (isvalued(cardiac_recon))
    then
      if(cardiac_recon == "01")
      then
        "SSEG"
      else
        if(cardiac_recon == "02")
        then
          "SST"
        else
          if(cardiac_recon == "03")
          then
            "SSB" + 
            if(cardiacSectors == "02")
            then
              "2"
            else
              if(cardiacSectors == "03")
              then
                "3"
              else
                if(cardiacSectors == "04")
                then
                  "4"
                else
                  ""
                endif
              endif
            endif
          endif
        endif
      endif
    else
      ""
    endif
  ]]> </set>
  
  <set name="avgHeartRate"> <![CDATA[
    avg_heartRate + " ABPM"  ]]> </set>
  
  <set name="ViewCompression"> <![CDATA[
    viewcompression  ]]> </set>

  <set name="CompressMode"> <![CDATA[
    if(ViewCompression < 1500)
    then
      ""
    else
      if(ViewCompression > 1500 && ViewCompression < 2000)
      then
        "*"
      else
        "**"
      endif
    endif
  ]]> </set>

  <set name="GEMSA_CT_Single"> <![CDATA[
    !isblank(ModelName) && (clean(ModelName) == "CT/e" || clean(ModelName) == "ProSpeed" || clean(ModelName) == "ProSpeed FI" || clean(ModelName) == "ProSpeed AI" || clean(ModelName) == "HiSpeed")  
  ]]> </set>
       
  <set name="GEMSA_CT_Dual"> <![CDATA[
    !isblank(ModelName) && (clean(ModelName) == "CT/e Dual" || clean(ModelName) == "HiSpeed NX/i" || clean(ModelName) == "ProSpeed AII" || clean(ModelName) == "ProSpeed EII" || clean(ModelName) == "ProSpeed FII")  
  ]]> </set>
 
  <set name="GEMSA_CT_Model"> <![CDATA[
    GEMSA_CT_Single || GEMSA_CT_Dual  ]]> </set>
  
  <set name="npProsImageFilter"> <![CDATA[
    if (isvalued(np_prosImgFilter))
    then
      clean(split(np_prosImgFilter,0)) 
    endif
  ]]> </set>
  
  <set name="npANRFilter"> <![CDATA[
    if (isvalued(np_prosImgFilter))
    then
      clean(split(np_prosImgFilter,1)) 
    endif
  ]]> </set>
 
  <set name="npProsImgFilter"> <![CDATA[
    if(GEMSA_CT_Model)
    then
      if(!isblank(npProsImageFilter) && clean(npProsImageFilter) != "NONE")
      then
        clean(npProsImageFilter) + " "
      else
        ""
      endif
      + if(!isblank(npANRFilter) && clean(npANRFilter) != "NONE")
      then
        clean(npANRFilter)
      else
        ""
      endif
    else
      ""
    endif
  ]]> </set>
  
  <set name="AHeartRate"> <![CDATA[
    if(!isblank(cardiacRecon))
    then
      if(!isblank(avgHeartRate))
      then
        avgHeartRate
      endif
    else
      if(notCombImage && notLocalizerType)
      then
        CompressMode + npProsImgFilter
      endif
    endif
  ]]> </set>
  
  <set name="AWindowWidthL2"> <![CDATA[
    if(layers>1)
    then
      if(!isblank(showWWWL2))
      then
      	"W:" + (windowWidth2)%i + " "
      endif
    endif
  ]]> </set>
  	
  <set name="AWindowLevelL2"> <![CDATA[ 
    if(layers>1)
    then
      if(!isblank(showWWWL2))
      then
        "L:" + (windowLevel2)%i  
      endif
    endif
  ]]> </set>
  
  <set name="scan_time_date_time"> <![CDATA[
    if (isvalued(scan_time_date)) 
    then
      midstr(clean(scan_time_date),8,6)
    endif
  ]]> </set>   
   
  <set name="scan_time_date_time_hh"> <![CDATA[
    if(isvalued(scan_time_date)) 
    then
      int(midstr(clean(scan_time_date_time),0,2))
    endif
  ]]> </set>
  
  <set name="scan_time_date_time_mm"> <![CDATA[
    if(isvalued(scan_time_date)) 
    then
      int(midstr(clean(scan_time_date_time),2,2))
    endif
  ]]> </set>
   
  <set name="scan_time_date_time_ss"> <![CDATA[
    if(isvalued(scan_time_date)) 
    then
      int(midstr(clean(scan_time_date_time),4,2))
    endif
  ]]> </set> 
   
  <set name="scan_time_date_total_time_sec"> <![CDATA[
    if(isvalued(scan_time_date)) 
    then
      (scan_time_date_time_hh*3600+scan_time_date_time_mm*60+scan_time_date_time_ss)
    endif
  ]]> </set>
  
  <set name="rpStartDT_time_total_time_sec"> <![CDATA[
    if(isvalued(rpStartDT)) 
    then
      (rpStartDT_time_hh*3600+rpStartDT_time_mm*60+rpStartDT_time_ss)
    endif
  ]]> </set>
   
  <set name="rpStartDT_time"> <![CDATA[
    if ( isvalued(rpStartDT)) 
    then
      midstr(clean(rpStartDT),8,6)
    endif
  ]]> </set> 
   
  <set name="rpStartDT_time_hh"> <![CDATA[
    if(isvalued(rpStartDT)) 
    then
      int(midstr(rpStartDT_time,0,2))
    endif
  ]]> </set>
   
  <set name="rpStartDT_time_mm"> <![CDATA[
    if(isvalued(rpStartDT)) 
    then
      int(midstr(rpStartDT_time,2,2))
    endif
  ]]> </set>
   
  <set name="rpStartDT_time_ss"> <![CDATA[
    if(isvalued(rpStartDT)) 
    then
      int(midstr(rpStartDT_time,4,2))
    endif
  ]]> </set> 

  <set name="se_time_time"> <![CDATA[
    if ( isvalued(se_time)) 
    then
      se_time
    endif
  ]]> </set>
   
  <set name="se_time_time_hh"> <![CDATA[
    if(isvalued(se_time)) 
    then
      float(midstr(se_time_time,0,2))
    endif
  ]]> </set>
   
  <set name="se_time_time_mm"> <![CDATA[
    if(isvalued(se_time)) 
    then
      float(midstr(se_time_time,2,2))
    endif
  ]]> </set>
   
  <set name="se_time_time_ss"> <![CDATA[
    if(isvalued(se_time)) 
    then
      float(midstr(se_time_time,4,2))
    endif
  ]]> </set> 
   
  <set name="se_time_time_total_time_sec"> <![CDATA[
    if(isvalued(rpStart)) 
    then
      (se_time_time_hh*3600+se_time_time_mm*60+se_time_time_ss)
    endif
  ]]> </set>
  
  <set name="rpStart_time"> <![CDATA[
    if (isvalued(rpStart)) 
    then
      rpStart
    endif
  ]]> </set>
   
  <set name="rpStart_time_hh"> <![CDATA[
    if(isvalued(rpStart)) 
    then
      float(midstr(rpStart_time,0,2))
    endif
  ]]> </set>
   
  <set name="rpStart_time_mm"> <![CDATA[
    if(isvalued(rpStart)) 
    then
      float(midstr(rpStart_time,2,2))
    endif
  ]]> </set>
   
  <set name="rpStart_time_ss"> <![CDATA[
    if(isvalued(rpStart)) 
    then
      float(midstr(rpStart_time,4,2))
    endif
  ]]> </set>
   
  <set name="rpStart_time_total_time_sec"> <![CDATA[
    if(isvalued(rpStart)) 
    then
      (rpStart_time_hh*3600+rpStart_time_mm*60+rpStart_time_ss)
    endif
  ]]> </set>
   
  <set name="AinjectionDelta"> <![CDATA[
    if (isvalued(rpStartDT) && isvalued(scan_time_date) && !isblank(rpStartDT) && !isblank(scan_time_date) ) 
    then
      (scan_time_date_total_time_sec - rpStartDT_time_total_time_sec)
    else 
      if (isvalued(rpStart) && !isblank(rpStart) ) 
      then
        (se_time_time_total_time_sec - rpStart_time_total_time_sec)
      else 22222222.0
      endif
    endif 
  ]]> </set>
 
  <set name="AinjectionDelta_hh"> <![CDATA[
    int(AinjectionDelta/3600)
  ]]> </set> 
 
  <set name="AinjectionDelta_mm_intermdiate"> <![CDATA[
    int(AinjectionDelta-(3600*AinjectionDelta_hh))
  ]]> </set> 
  
  <set name="AinjectionDelta_mm"> <![CDATA[
    int(AinjectionDelta_mm_intermdiate/60)
  ]]> </set> 
 
  <set name="AinjectionDelta_ss"> <![CDATA[
    int((AinjectionDelta_mm_intermdiate)-(60*AinjectionDelta_mm))
  ]]> </set> 
 
  <set name="AinjectionDelta_final"> <![CDATA[
    if(AinjectionDelta_hh <10.0)
    then 
      "0"+midstr(string(AinjectionDelta_hh),0,1)+":"
    else
	  midstr(string(AinjectionDelta_hh),0,2) +":"
	endif
	+
	if(AinjectionDelta_mm < 10.0)
	then
	  "0"+ midstr(string(AinjectionDelta_mm),0,1) + ":"
	else
	  midstr(string(AinjectionDelta_mm),0,2) + ":"
	endif
	+
	if(AinjectionDelta_ss < 10.0)
    then
      "0"+midstr(string(AinjectionDelta_ss),0,1)
	else
      midstr(string(AinjectionDelta_ss),0,2)
	endif
  ]]> </set>  
 
  <set name="ATimeFromInject"> <![CDATA[
    if(AinjectionDelta == 22222222.0)
    then
      "Uptake time: "+ "Unknown"
    else
	  if(AinjectionDelta == 0.0)
	  then
        "Uptake time: " + "00:00:00"
      else
        if(AinjectionDelta >0.0)
        then
          "Uptake time: " + AinjectionDelta_final
        else 
          if(AinjectionDelta <0.0) 
          then
            " "
          endif
        endif
      endif
    endif
  ]]> </set>
  
  <set name="ARoiResult3"> <![CDATA[
    roiResult3  ]]> </set>
  
  <set name="ARoiResult2"> <![CDATA[
    roiResult2  ]]> </set>
  
  <set name="ARoiResult1"> <![CDATA[
    roiResult1  ]]> </set>
  
  <set name="I18n_counts"> <![CDATA[
    " counts "
  ]]> </set>

  <set name="I18n_bqml"> <![CDATA[
    " kBq/ml "
  ]]> </set>

  <set name="I18n_stddev"> <![CDATA[
    " std dev "
  ]]> </set>

  <set name="I18n_mgminml"> <![CDATA[
    " mg/min/ml "
  ]]> </set>

  <set name="I18n_umolminml"> <![CDATA[
    " umol/min/ml "
  ]]> </set>

  <set name="I18n_mlming"> <![CDATA[
    " ml/min/g " 
  ]]> </set>

  <set name="I18n_mlg"> <![CDATA[
    " ml/g "	
  ]]> </set>

  <set name="I18n_one_cm"> <![CDATA[
    " 1/cm " 
  ]]> </set>

  <set name="I18n_propcnts"> <![CDATA[
    " prop cnts " 
  ]]> </set>

  <set name="I18n_propcps"> <![CDATA[
    " prop cps "
  ]]> </set>

  <set name="I18n_percent"> <![CDATA[
    " % "
  ]]> </set>
     
  <set name="I18n_mlminml"> <![CDATA[
    " ml/min/ml "
  ]]> </set>

  <set name="I18n_mlml"> <![CDATA[
    " ml/ml "
  ]]> </set>

  <set name="I18n_gml"> <![CDATA[
    " g/ml "
  ]]> </set>

  <set name="I18n_cps"> <![CDATA[
    " cnts/sec "
  ]]> </set>
  
  <set name="I18n_cm_sqd"> <![CDATA[
    symbol["cm"]	
  ]]> </set>

  <set name="I18n_other"> <![CDATA[
    " other "
  ]]> </set>

  <set name="I18n_generated"> <![CDATA[
    " generated "
  ]]> </set>

  <set name="I18n_cm2ml"> <![CDATA[
    symbol1["cm"]	
  ]]> </set>
         
  <set name="cl_units"> <![CDATA[
    if (isvalued(units)) 
    then clean(units) 
    else "" 
    endif
  ]]> </set>

  <set name="Aunits"> <![CDATA[
    if (clean(cl_units)=="CNTS")
    then I18n_counts
    else 
      if (clean(cl_units)=="BQML")
      then I18n_bqml
      else 
        if (clean(cl_units)=="STDEV")     
        then I18n_stddev
        else 
          if (clean(cl_units)=="MGMINML")   
          then I18n_mgminml
          else 
            if (clean(cl_units)=="UMOLMINML") 
            then I18n_umolminml
            else 
              if (clean(cl_units)=="MLMING")    
              then I18n_mlming
              else 
                if (clean(cl_units)=="MLG")       
                then I18n_mlg
                else 
                  if (clean(cl_units)=="1CM")       
                  then I18n_one_cm
                  else 
                    if (clean(cl_units)=="PROPCNTS" ) 
                    then I18n_propcnts
                    else 
                      if (clean(cl_units)=="PROPCPS")   
                      then I18n_propcps
                      else 
                        if (clean(cl_units)=="PCNT")      
                        then I18n_percent
                        else 
                          if (clean(cl_units)=="MLMINML")   
                          then I18n_mlminml
                          else 
                            if (clean(cl_units)=="MLML")      
                            then I18n_mlml
                            else 
                              if (clean(cl_units)=="GML")       
                              then I18n_gml
                              else 
                                if (clean(cl_units)=="CPS")       
                                then I18n_cps
                                else 
                                  if (clean(cl_units)=="CM2")       
                                  then I18n_cm_sqd
                                  else 
                                    if (clean(cl_units)=="NONE")      
                                    then I18n_other
                                    else 
                                      if (clean(cl_units)=="GENERATED") 
                                      then I18n_generated
                                      else 
                                        if (clean(cl_units)=="CM2ML")     
                                        then I18n_cm2ml
                                        else ""
                                        endif 
                                      endif 
                                    endif 
                                  endif 
                                endif 
                              endif 
                            endif 
                          endif 
                        endif 
                      endif
                    endif 
                  endif 
                endif 
              endif 
            endif 
          endif 
        endif 
      endif 
    endif 
  ]]> </set>
    
  <set name="AWindowMax"> <![CDATA[
    if(clean(cl_units) == "BQML") 
    then
	  if(windowMax < 10 ) 
	  then
        "M:" + (windowMax)%.3f  + Aunits 
	  else 
	    if(windowMax < 100) 
	    then
		  "M:" + (windowMax)%.2f  + Aunits
	    else 
	      if(windowMax < 1000) 
	      then
		    "M:" + (windowMax)%.1f  + Aunits
	      else
		    "M:" + (windowMax)%.0f  + Aunits
	      endif 
	    endif 
	  endif
	else
	  "M:" + (windowMax)%.1f  + Aunits
	endif
  ]]> </set> 
        
  <set name="AWindowMin"> <![CDATA[
    if(clean(cl_units) == "BQML") 
    then
      if(windowMax < 10 ) 
      then
        "m:" + (windowMin)%.3f +" "
      else 
        if(windowMax < 100) 
        then
          "m:" + (windowMin)%.2f +" "
        else 
          if(windowMax < 1000) 
          then
            "m:" + (windowMin)%.1f +" "
          else
            "m:" + (windowMin)%.0f +" "
          endif 
        endif 
      endif
    else
      "m:" + (windowMin)%.1f +" "
    endif
  ]]> </set>
  
  <set name="AimIndex"> <![CDATA[
    if(isvalued(imageIndex)) 
    then
      float(imageIndex)
    else ""
    endif
  ]]> </set>

  <set name="AnuSlice"> <![CDATA[
    if(isvalued(numSlices)) 
    then
      float(numSlices)
    else ""
    endif
  ]]> </set>
 
  <set name="AIIndex"> <![CDATA[
    if(isvalued(imageIndex) && isvalued(numSlices)) 
    then
      if((float(AimIndex)/float(AnuSlice)) == (floor(float(AimIndex)/float(AnuSlice)))) 
      then
        (int(float(AimIndex)/float(AnuSlice)))
      else int(floor(float(float(AimIndex)/float(AnuSlice)))) + 1
      endif
    else ""
    endif
  ]]> </set>
 
  <set name="AIndex"> <![CDATA[
    if(se_typVar == 56 || se_typVar == 57) 
    then
      if((AIIndex != "")) 
      then
        AIIndex
      else ""
      endif
    else ""
    endif
  ]]> </set>
  
  <set name="Asstart_time_sec"> <![CDATA[
    if (isvalued(image_time)) 
    then
      float(image_time)/1000.0
    else ""
    endif
  ]]> </set>
  
  <!--  as pad does not have capability to show given seconds to HHMMSS format .. convering here and sending for final display  -->
  <set name="Asstart_time_sec_intermediate_hh"> <![CDATA[
    if (isvalued(image_time)) 
    then
      (int(Asstart_time_sec)/3600)*10000
    else 0.0
    endif
  ]]> </set>

  <set name="Asstart_time_sec_intermediate_mm"> <![CDATA[
    if (isvalued(image_time)) 
    then
      (int(Asstart_time_sec)/60)*100
    else 0.0
    endif
  ]]> </set>
    
  <set name="Asstart_time_sec_intermediate_ss"> <![CDATA[
    if (isvalued(image_time)) 
    then
	  if(float(float(Asstart_time_sec)- float(int(Asstart_time_sec)/60)*60)- int(float(Asstart_time_sec)- float(int(Asstart_time_sec)/60)*60) > 0.5) 
	  then
	    float(float(Asstart_time_sec)- float(int(Asstart_time_sec)/60)*60)+1
	  else
	    float(float(Asstart_time_sec)- float(int(Asstart_time_sec)/60)*60)
	  endif 
    else 0.0
    endif
  ]]> </set>
     
  <set name="Astart_time_sec"> <![CDATA[
    if (Asstart_time_sec == "0")then "00:00:00"
    else 
      if(isvalued(image_time)) 
      then 
        (Asstart_time_sec_intermediate_hh+Asstart_time_sec_intermediate_mm+Asstart_time_sec_intermediate_ss)%S
      else 0.0
      endif 
    endif
  ]]> </set>
  
  <set name="AtrigTime"> <![CDATA[
    if(isvalued(trigger_time)) 
    then
      int(trigger_time) + "ms"
    else ""
    endif
  ]]> </set> 
   
  <set name="AFramebin"> <![CDATA[
    if(se_typVar == 56) 
    then
      "Frame In" +": "+ AIndex + " " + "Ref Time" +": "+ Astart_time_sec
	else 
	  if(se_typVar == 57) 
	  then
        "Bin In" +": " +  AIndex + " " + "Trig Time " + ": "+AtrigTime
	  else
	    ""
	  endif 
	endif
  ]]> </set>
  
  <set name="ADurSec"> <![CDATA[
    float(Dur)
  ]]> </set>

  <set name="ADurMin"> <![CDATA[
    ADurSec/60.0	
  ]]> </set>

  <set name="ADurhr"> <![CDATA[
    ADurSec/3600.0	
  ]]> </set>

  <set name="Ahr"> <![CDATA[
    int(floor(ADurhr))	
  ]]> </set>

  <set name="Ami"> <![CDATA[
    int(floor(ADurMin)) - (Ahr * 60)	
  ]]> </set>

  <set name="Ase"> <![CDATA[
    int(floor(ADurSec)) - (Ahr * 3600) -(Ami *60)	
  ]]> </set> 
   
  <set name="Ahranno"> <![CDATA[
    if(Ahr >=1.0)
    then
      Ahr + ":"
	else
	  ""
	endif
  ]]> </set> 

  <set name="Aminanno"> <![CDATA[
    if(isblank(Ahranno)) 
    then
	  if(Ami < 10 ) 
	  then
	    "0" + Ami + ":"
	  else
	    Ami + ":"
	  endif
	else
	  if(Ami >=1.0) 
	  then
        Ami + ":"
	  else
	    ""
	  endif
	endif
  ]]> </set> 

  <set name="Asecanno"> <![CDATA[
    if(!isblank(Aminanno)) 
    then
	  if(Ase < 10 ) 
	  then
	    "0" + Ase 
	  else
	    Ase 
	  endif
	else
	  if(Ase >= 1.0) 
	  then
	    Ase 
	  else
	    " "
	  endif
	endif
  ]]> </set> 
     
  <set name="ADur"> <![CDATA[
    if(isvalued(Dur)) 
    then
      "Dur :"+ Ahranno + Aminanno + Asecanno	
    else
	  " "
	endif
  ]]> </set> 
  
  <set name ="AImageWidth"> <![CDATA[
    if(int(ImageWidth) >=0 ) 
    then
	  ImageWidth
	else
	  ""
	endif
  ]]> </set>

  <set name ="Aaxial_acceptance"> <![CDATA[
    if (isvalued(axial_acceptance)) 
    then
      if (axial_acceptance>=0 && axial_acceptance<=6) 
      then
        if (axial_acceptance==2 || axial_acceptance==6) 
        then 
          "3D" 
        else
          if (axial_acceptance==4) 
          then 
		    "CTC"
          else 
		    "2D"
          endif 
        endif
      else 
	    "" 
	  endif
    else 
      "" 
    endif
  ]]> </set> 
        
  <set name ="AIWidthScanType" > <![CDATA[
    AImageWidth + " " + Aaxial_acceptance
  ]]> </set>

  <set name="ARandoms"> <![CDATA[
    if (isvalued(delayed_events)) 
    then
      if (clean(delayed_events) == "SING") 
      then "Randoms :"+ "Singles"
      else 
        if (clean(delayed_events) == "DLYD") 
        then "Randoms :"+ "DES"
        else 
          if (clean(delayed_events) == "RTSUB") 
          then "Randoms :"+ "Real"
          else 
            if (clean(delayed_events) == "NONE") 
            then "Randoms :" + "None"
            else "" 
            endif 
          endif 
        endif 
      endif
    else "" 
    endif
  ]]> </set> 
	
  <set name="ATracer"> <![CDATA[
    if (isvalued(Tracer)) 
    then
	  midstr(clean(Tracer),0,3)
    else "" 
    endif
  ]]> </set>
  
  <set name="kvoltFloat"> <![CDATA[
    if (isvalued(kvolt))
    then
      float(kvolt)
    else
      0.0
    endif  
  ]]> </set>
      
  <set name="AKvolt"> <![CDATA[
    if(notCombImage && kvoltFloat > 0)
    then
      "kV " + (kvoltFloat)%.0f
    endif
  ]]> </set>
  
</expressions>

<!-- Annotation group definitions -->
<groupName name="all" number="0">
  <groupName name="Hospital_Name" number="1">
          <i18n lang="en_US" string="hospital"/>
          <i18n lang="fr" string="hospital"/>
          <i18n lang="de" string="Krankenhaus"/>
          <i18n lang="es_MX" string="hospital"/>
          <i18n lang="it" string="ospedale"/>
          <i18n lang="pt_BR" string="hospital"/>
        </groupName>
  <groupName name="Patient_Name" number="2">
          <i18n lang="en_US" string="Patient_Name"/>
          <i18n lang="fr" string="Nom_du_patient"/>
          <i18n lang="de" string="Patientenname"/>
          <i18n lang="es_MX" string="Nombre_del_paciente"/>
          <i18n lang="it" string="nome_paziente"/>
          <i18n lang="pt_BR" string="here"/>
        </groupName>
  <groupName name="Patient_Id" number="3">
          <i18n lang="en_US" string="Patient_Id"/>
          <i18n lang="fr" string="ID_de_paciente"/>
          <i18n lang="de" string="Patienten-ID"/>
          <i18n lang="es_MX" string="ID_de_paciente"/>
          <i18n lang="it" string="ID_paziente"/>
          <i18n lang="pt_BR" string="nome_do_paciente"/>
        </groupName>
  <groupName name="ESI_Information" number="4">
          <i18n lang="en_US" string="ESI_Information"/>
          <i18n lang="fr" string="esi"/>
          <i18n lang="de" string="esi"/>
          <i18n lang="es_MX" string="esi"/>
          <i18n lang="it" string="esi"/>
          <i18n lang="pt_BR" string="esi"/>
        </groupName>
  <groupName name="Scan_Date" number = "6">
          <i18n lang="en_US" string="date"/>
          <i18n lang="fr" string="date"/>
          <i18n lang="de" string="Datum"/>
          <i18n lang="es_MX" string="fecha"/>
          <i18n lang="it" string="data"/>
          <i18n lang="pt_BR" string="data"/>
        </groupName>
  <groupName name="geometry" number = "8">          
          <i18n lang="en_US" string="geometry"/>
          <i18n lang="fr" string="g\u00c3\u00a9om\u00c3\u00a9trie"/>
          <i18n lang="de" string="Geometrie"/>
          <i18n lang="es_MX" string="geometr\u00c3\u00ada"/>
          <i18n lang="it" string="geometria"/>
          <i18n lang="pt_BR" string="geometria"/>
        </groupName> 
  <groupName name="Top_Marker" number = "10">
          <i18n lang="en_US" string="top"/>
          <i18n lang="fr" string="haut"/>
          <i18n lang="de" string="Oben"/>
          <i18n lang="es_MX" string="arriba."/>
          <i18n lang="it" string="alto"/>
          <i18n lang="pt_BR" string="cima"/>
        </groupName>
  <groupName name="Bottom_Marker" number = "11">
          <i18n lang="en_US" string="bottom"/>
          <i18n lang="fr" string="bas"/>
          <i18n lang="de" string="Unten"/>
          <i18n lang="es_MX" string="abajo"/>
          <i18n lang="it" string="basso"/>
          <i18n lang="pt_BR" string="baixo"/>
        </groupName>
  <groupName name="Left_Marker" number = "12">
          <i18n lang="en_US" string="left"/>
          <i18n lang="fr" string="gauche"/>
          <i18n lang="de" string="Links"/>
          <i18n lang="es_MX" string="izquierda"/>
          <i18n lang="it" string="sinistra"/>
          <i18n lang="pt_BR" string="esquerda"/>
        </groupName>
  <groupName name="Right_Marker" number = "13">
          <i18n lang="en_US" string="right"/>
          <i18n lang="fr" string="droite"/>
          <i18n lang="de" string="Rechts"/>
          <i18n lang="es_MX" string="derecha"/>
          <i18n lang="it" string="destra"/>
          <i18n lang="pt_BR" string="direita"/>
        </groupName>
  <groupName name="Scan_Time" number = "15">
          <i18n lang="en_US" string="time"/>
          <i18n lang="fr" string="heure"/>
          <i18n lang="de" string="Zeit"/>
          <i18n lang="es_MX" string="hora"/>
          <i18n lang="it" string="ora"/>
          <i18n lang="pt_BR" string="hora"/>
        </groupName>
    <groupName name="Scan_Parameters" number = "55">
          <i18n lang="en_US" string="scan"/>
          <i18n lang="fr" string="acquisition"/>
          <i18n lang="de" string="Scan"/>
          <i18n lang="es_MX" string="exploraciC3n"/>
          <i18n lang="it" string="scansione"/>
          <i18n lang="pt_BR" string="corte"/>
        </groupName>
  	<groupName name="Date_Of_Birth" number = "56">
    	<i18n lang="en_US" string="Date_Of_Birth"/>
    	<i18n lang="fr" string="date de naissance du patient"/>
    	<i18n lang="de" string="Geb.datum des Patienten"/>
   		<i18n lang="it" string="Data di nascita paziente"/>
    	<i18n lang="es_MX" string="fecha de nac. del paciente"/>
   		<i18n lang="pt_BR" string="data de nascimento do paciente"/>
        </groupName>

     <groupName name="Windowing" number="50"/>
     <groupName name="Graphic_Results" number="21"/>
     <groupName name="Accession_Number" number="57"/>
     <groupName name="Series_Data" number="28"/>
     <groupName name="ScanDetails" number="34"/>    
     <groupName name="Display_Parameters" number="26"/>
 </groupName>

<groupName name="partial" number = "19">
  <groupName name="Windowing" />
  <groupName name="Graphic_Results" />
  <groupName name="Patient_Name" />
  <groupName name="ESI_Information" />
  <groupName name="Bottom_Marker" />
  <groupName name="Left_Marker" />
  <groupName name="Right_Marker" />
  <groupName name="Top_Marker" />
  <groupName name="Scan_Date" />
  <groupName name="Series_Data"/>
  <groupName name="geometry"/>
</groupName>

<groupName name="graph" number = "66">
  	 <groupName name="Series_Data" />
  	 <groupName name="Patient_Name" />
</groupName>

<groupName name="none" number="65">
	 <groupName name="Windowing" />
	 <groupName name="Graphic_Results" />
</groupName>


<!-- Annotation layout definition -->
<layout>

  <annoLine location="N" line="0" dir="H">
    <seg exp="ArasN" group="Top_Marker" priority="9">
      <desc>
        <i18n lang="en_US" string="RAS north"/>
        <i18n lang="fr" string="nord RAS"/>
        <i18n lang="de" string="RAS Norden"/>
        <i18n lang="it" string="RAS nord"/>
        <i18n lang="es_MX" string="RAS Norte"/>
        <i18n lang="pt_BR" string="norte RAS"/>
        <i18n lang="ru_RU" string="RAS-\u0441\u0435\u0432\u0435\u0440"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="E" line="0" dir="V">
    <seg exp="ArasE" group="Right_Marker" priority="9">
      <desc>
        <i18n lang="en_US" string="RAS east"/>
        <i18n lang="fr" string="est RAS"/>
        <i18n lang="de" string="RAS Osten"/>
        <i18n lang="it" string="RAS est"/>
        <i18n lang="es_MX" string="RAS Este"/>
        <i18n lang="pt_BR" string="leste RAS"/>
        <i18n lang="ru_RU" string="RAS-\u0432\u043e\u0441\u0442\u043e\u043a"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="S" line="0" dir="H">
    <seg exp="ArasS" group="Bottom_Marker" priority="9">
      <desc>
        <i18n lang="en_US" string="RAS south"/>
        <i18n lang="fr" string="sud RAS"/>
        <i18n lang="de" string="RAS S\u00c3\u00bcden"/>
        <i18n lang="it" string="RAS sud"/>
        <i18n lang="es_MX" string="RAS Sur"/>
        <i18n lang="pt_BR" string="sul RAS"/>
        <i18n lang="ru_RU" string="RAS-\u044e\u0433"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="W" line="0" dir="V">
    <seg exp="ArasW" group="Left_Marker" priority="9">
      <desc>
        <i18n lang="en_US" string="RAS west"/>
        <i18n lang="fr" string="ouest RAS"/>
        <i18n lang="de" string="RAS Westen"/>
        <i18n lang="it" string="RAS ovest"/>
        <i18n lang="es_MX" string="RAS Oeste"/>
        <i18n lang="pt_BR" string="oeste RAS"/>
        <i18n lang="ru_RU" string="RAS-\u0437\u0430\u043f\u0430\u0434"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="NE" line="0" dir="H">
    <seg exp="AHospName" group="Hospital_Name" priority="7">
      <desc>
        <i18n lang="en_US" string="hospital name"/>
        <i18n lang="fr" string="nom de l'h\u00c3\u00b4pital"/>
        <i18n lang="de" string="Krankenhausname"/>
        <i18n lang="it" string="Nome ospedale"/>
        <i18n lang="es_MX" string="hospital"/>
        <i18n lang="pt_BR" string="nome do hospital"/>
        <i18n lang="ru_RU" string="\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u043e\u0433\u043e \u0443\u0447\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="NE" line="1" dir="H">
    <seg exp="AAccNum" group="Accession_Number" priority="7">
      <desc>
        <i18n lang="en_US" string="Accession number"/>
        <i18n lang="nb_NO" string="Registreringsnummer"/>
        <i18n lang="fr" string="Num\u00c3\u00a9ro d'acc\u00c3\u00a8s"/>
        <i18n lang="de" string="Zugriffsnummer"/>
        <i18n lang="it" string="Codice di accesso"/>
        <i18n lang="ru_RU" string="\u0412\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="NE" line="2" dir="H">
    <seg exp="APatientName" group="Patient_Name" priority="9">
      <desc>
        <i18n lang="en_US" string="patient name"/>
        <i18n lang="fr" string="nom du patient"/>
        <i18n lang="de" string="Patientenname"/>
        <i18n lang="it" string="Nome paziente"/>
        <i18n lang="es_MX" string="nombre del paciente"/>
        <i18n lang="pt_BR" string="nome do paciente"/>
        <i18n lang="ru_RU" string="\u0438\u043c\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="NE" line="3" dir="H">
    <seg exp="ASex" group="Patient_Id" priority="5">
      <desc>
        <i18n lang="en_US" string="patient sex"/>
        <i18n lang="fr" string="sexe du patient"/>
	    <i18n lang="de" string="Geschl. des Patienten"/>
	    <i18n lang="it" string="Sesso paziente"/>
	    <i18n lang="es_MX" string="sexo del paciente"/>
	    <i18n lang="pt_BR" string="sexo do paciente"/>
	    <i18n lang="ru_RU" string="\u043f\u043e\u043b \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430"/>
	  </desc>
    </seg>
    <seg exp="AAge" group="Patient_Id" priority = "5">
	  <desc>
	    <i18n lang="en_US" string="patient age"/>
	    <i18n lang="fr" string="\u00c3\u00a2ge du patient"/>
	    <i18n lang="de" string="Alter des Patienten"/>
	    <i18n lang="it" string="Et\u00c3\u00a0 paziente"/>
	    <i18n lang="es_MX" string="edad del paciente"/>
	    <i18n lang="pt_BR" string="idade do paciente"/>
	    <i18n lang="ru_RU" string="\u0432\u043e\u0437\u0440\u0430\u0441\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430"/>
	  </desc>
    </seg>
    <seg exp="AShortPatID" group="Patient_Id" priority = "5">
	  <desc>
	    <i18n lang="en_US" string="patient ID"/>
	    <i18n lang="fr" string="ID du patient"/>
	    <i18n lang="de" string="Patienten-ID"/>
	    <i18n lang="it" string="ID paziente"/>
	    <i18n lang="es_MX" string="ID del paciente"/>
	    <i18n lang="pt_BR" string="ID do paciente"/>
	    <i18n lang="ru_RU" string="\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430"/>
	  </desc>
    </seg>
  </annoLine>

  <annoLine location="NE" line="4" dir="H">
    <seg exp="ABirthDate" group="Date_Of_Birth" priority="7">
      <desc>
        <i18n lang="en_US" string="patient birth date "/>
        <i18n lang="fr" string="date de naissance du patient"/>
        <i18n lang="de" string="Geb.datum des Patienten"/>
        <i18n lang="it" string="Data di nascita paziente"/>
        <i18n lang="es_MX" string="fecha de nac. del paciente"/>
        <i18n lang="pt_BR" string="data de nascimento do paciente"/>
        <i18n lang="ru_RU" string="\u0434\u0430\u0442\u0430 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="NE" line="5" dir="H">
    <seg exp="AAcqDate" group="Scan_Date" priority="5">
      <desc>
        <i18n lang="en_US" string="acquisition date"/>
	    <i18n lang="fr" string="date d'acquisition"/>
	    <i18n lang="de" string="Datum der Akquisition"/>
	    <i18n lang="it" string="Data di acquisizione"/>
	    <i18n lang="es_MX" string="fecha de adquisici\u00c3\u00b3n"/>
	    <i18n lang="pt_BR" string="data da aquisi\u00c3\u00a7\u00c3\u00a3o"/>
	    <i18n lang="ru_RU" string="\u0434\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f"/>
	  </desc>
    </seg>
  </annoLine>
  
  <annoLine location="NE" line="6" dir="H">
    <seg exp="ScanTimeOfDay" group="Scan_Time" priority="5">
      <desc>
        <i18n lang="en_US" string="Scan Time Of Day"/>
        <i18n lang="nb_NO" string="Skanningstidspunkt"/>
        <i18n lang="fr" string="Heure de l'acquisition"/>
        <i18n lang="de" string="Scan-Uhrzeit"/>
        <i18n lang="it" string="Ora scansione"/>
        <i18n lang="ru_RU" string="\u0412\u0440\u0435\u043c\u044f \u0441\u0443\u0442\u043e\u043a \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="NW" line="0" dir="H">
    <seg exp="AViewType" group="Series_Data" priority="9">
      <desc>
        <i18n lang="en_US" string="view type"/>
        <i18n lang="fr" string=""/>
        <i18n lang="de" string=""/>
        <i18n lang="it" string=""/>
        <i18n lang="es_MX" string=""/>
        <i18n lang="pt_BR" string=""/>
      </desc>
    </seg>
    <seg exp="AVolume" group="Series_Data" priority="9">
      <desc>
        <i18n lang="en_US" string="volume"/>
      </desc>
    </seg>
    <seg exp="ASeries2ID" group="Series_Data" priority="9">
      <desc>
        <i18n lang="en_US" string="seriesID2"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="NW" line="1" dir="H">
    <seg exp="AEx" group="ESI_Information" priority="9">
      <desc>
        <i18n lang="en_US" string="exam number"/>
        <i18n lang="fr" string="num\u00c3\u00a9ro d'examen"/>
        <i18n lang="de" string="Examnummer"/>
        <i18n lang="it" string="Numero esame"/>
        <i18n lang="es_MX" string="n\u00c3\u00bamero de examen"/>
        <i18n lang="pt_BR" string="n\u00c3\u00bamero do exame"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="NW" line="2" dir="H">
    <seg exp="ASe" group="ESI_Information" priority="9">
      <desc>
        <i18n lang="en_US" string="series number"/>
        <i18n lang="fr" string="num\u00c3\u00a9ro de s\u00c3\u00a9rie"/>
        <i18n lang="de" string="Seriennummer"/>
        <i18n lang="it" string="Numero serie"/>
        <i18n lang="es_MX" string="n\u00c3\u00bamero de serie"/>
        <i18n lang="pt_BR" string="n\u00c3\u00bamero da s\u00c3\u00a9rie"/>
      </desc>
    </seg>
    <seg exp="Contrast" group="ESI_Information" priority="9">
      <desc>
        <i18n lang="en_US" string="contrast"/>    		
      </desc>
    </seg>
  </annoLine>
   
  <annoLine location="NW" line="3" dir="H">
    <seg exp="AImageCenter" group="ESI_Information" priority="9">
      <desc>
        <i18n lang="en_US" string="Image Center"/>
        <i18n lang="fr" string="Image Center"/>
        <i18n lang="de" string="Image Center"/>
        <i18n lang="it" string="Image Center"/>
        <i18n lang="es_MX" string="Image Center"/>
        <i18n lang="pt_BR" string="Image Center"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="NW" line="4" dir="H"> 	
    <seg exp="AIm" group="ESI_Information" priority="7">
      <desc>
        <i18n lang="en_US" string="image number"/>
        <i18n lang="fr" string="num\u00c3\u00a9ro d'image"/>
        <i18n lang="de" string="Bildnummer"/>
        <i18n lang="it" string="Numero immagine"/>
        <i18n lang="es_MX" string="n\u00c3\u00bamero de imagen"/>
        <i18n lang="pt_BR" string="n\u00c3\u00bamero da imagem"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="NW" line="6" dir="H"> 
    <seg exp="ADfov" group="geometry" priority="9">
      <desc>
        <i18n lang="en_US" string="displayed field of view"/>
        <i18n lang="fr" string="affichage du champ"/>
        <i18n lang="de" string="Bildfeld"/>
        <i18n lang="it" string="Campo di vista"/>
        <i18n lang="es_MX" string="campo de visi\u00c3\u00b3n"/>
        <i18n lang="pt_BR" string="campo de vista"/>
      </desc>
    </seg>
  </annoLine>
	
  <annoLine location="NW" line="7" dir="H"> 
    <seg exp="AreconAlg" group="Display_Parameters" priority="7"> 
      <desc>
        <i18n lang="en_US" string="reconstruction algorithm"/>
        <i18n lang="fr" string="algorithme de reconstruction"/>
        <i18n lang="de" string="Rekonstruktionsalgorithmus"/>
        <i18n lang="it" string="Algoritmo di ricostruzione"/>
        <i18n lang="es_MX" string="nucleo de convoluci\u00c3\u00b3n"/>
        <i18n lang="pt_BR" string="n\u00c3\u00bacleo da convolu\u00c3\u00a7\u00c3\u00a3o"/>
        <i18n lang="ru_RU" string="\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438"/>
      </desc>
    </seg>
  </annoLine>
     
  <annoLine location="NW" line="8" dir="H">
    <seg exp="AHeartRate" group="ScanDetails" priority="7">
      <desc>
        <i18n lang="en_US" string="heart rate"/>
        <i18n lang="fr" string="rythme cardiaque"/>
        <i18n lang="de" string="Herzfrequenz"/>
        <i18n lang="it" string="Frequenza cardiaca"/>
        <i18n lang="es_MX" string="frecuencia cardiaca"/>
        <i18n lang="pt_BR" string="freq\u00c3\u00bc\u00c3\u00aancia card\u00c3\u00adaca"/>
      </desc>
    </seg>
  </annoLine>
  
  <annoLine location="SW" line="0" dir="H">
    <seg exp="AWindowWidthL2" group="Windowing" priority="7">
      <desc>
        <i18n lang="en_US" string="window width"/>
        <i18n lang="fr" string="largeur de fen\u00c3\u00aatre (contraste)"/>
        <i18n lang="de" string="Fensterbreite"/>
        <i18n lang="it" string="Larghezza finestra"/>
        <i18n lang="es_MX" string="ancho de ventana"/>
        <i18n lang="pt_BR" string="largura da janela (contraste)"/>
      </desc>
    </seg>
    <seg exp="AWindowLevelL2" group="Windowing" priority="7">
      <desc>
        <i18n lang="en_US" string="window level"/>
        <i18n lang="fr" string="luminosit\u00c3\u00a9"/>
        <i18n lang="de" string="Fensterebene"/>
        <i18n lang="it" string="Livello finestra"/>
        <i18n lang="es_MX" string="nivel"/>
        <i18n lang="pt_BR" string="brilho"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SE" line="-1" dir="H">
    <seg exp="ATimeFromInject" group="Scan_Parameters" priority="7">
      <desc>
        <i18n lang="en_US" string="Uptake time"/>
        <i18n lang="fr" string="r\u00c3\u00a9sultat sur ROI"/>
        <i18n lang="de" string="ROI-Ergebnis"/>
        <i18n lang="it" string="Risultato ROI"/>
        <i18n lang="es_MX" string="resultado ROI"/>
        <i18n lang="pt_BR" string="resultado da ROI"/>
        <i18n lang="ru_RU" string="\u0412\u0440\u0435\u043c\u044f \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f"/>
      </desc>
    </seg>
  </annoLine>
     
  <annoLine location="SE" line="-4" dir="H">
    <seg exp="ARoiResult3" group="Graphic_Results" priority="9">
      <desc>
        <i18n lang="en_US" string="ROI result"/>
        <i18n lang="fr" string="r\u00c3\u00a9sultat sur ROI"/>
        <i18n lang="de" string="ROI-Ergebnis"/>
        <i18n lang="it" string="Risultato ROI"/>
        <i18n lang="es_MX" string="resultado ROI"/>
        <i18n lang="pt_BR" string="resultado da ROI"/>
        <i18n lang="ru_RU" string="\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SE" line="-5" dir="H">
    <seg exp="ARoiResult2" group="Graphic_Results" priority="9">
      <desc>
        <i18n lang="en_US" string="ROI result"/>
        <i18n lang="fr" string="r\u00c3\u00a9sultat sur ROI"/>
        <i18n lang="de" string="ROI-Ergebnis"/>
        <i18n lang="it" string="Risultato ROI"/>
        <i18n lang="es_MX" string="resultado ROI"/>
        <i18n lang="pt_BR" string="resultado da ROI"/>
        <i18n lang="ru_RU" string="\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SE" line="-6" dir="H">
    <seg exp="ARoiResult1" group="Graphic_Results" priority="9">
      <desc>
        <i18n lang="en_US" string="ROI result"/>
        <i18n lang="fr" string="r\u00c3\u00a9sultat sur ROI"/>
        <i18n lang="de" string="ROI-Ergebnis"/>
        <i18n lang="it" string="Risultato ROI"/>
        <i18n lang="es_MX" string="resultado ROI"/>
        <i18n lang="pt_BR" string="resultado da ROI"/>
        <i18n lang="ru_RU" string="\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SE" line="0" dir="H">
    <seg exp="AWindowMin" group="Windowing" priority="10">
      <desc>
        <i18n lang="en_US" string="window min"/>
        <i18n lang="fr" string="largeur de fen\u00c3\u00aatre (contraste)"/>
        <i18n lang="de" string="Fensterbreite"/>
        <i18n lang="it" string="Larghezza finestra"/>
        <i18n lang="es_MX" string="ancho de ventana"/>
        <i18n lang="pt_BR" string="largura da janela (contraste)"/>
        <i18n lang="ru_RU" string="\u043e\u043a\u043d\u043e \u043c\u0438\u043d."/>
      </desc>
    </seg>
    <seg exp="AWindowMax" group="Windowing" priority="10">
      <desc>
        <i18n lang="en_US" string="window max"/>
        <i18n lang="fr" string="luminosit\u00c3\u00a9"/>
        <i18n lang="de" string="Fensterebene"/>
        <i18n lang="it" string="Livello finestra"/>
        <i18n lang="es_MX" string="nivel"/>
        <i18n lang="pt_BR" string="brilho"/>
        <i18n lang="ru_RU" string="\u043e\u043a\u043d\u043e \u043c\u0430\u043a\u0441."/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SW" line="-1" dir="H">
    <seg exp="AFramebin" group="Scan_Parameters" priority="7">
      <desc>
        <i18n lang="en_US" string="Frame In"/>
        <i18n lang="nb_NO" string="Ramme inn"/>
        <i18n lang="fr" string="Avec image"/>
        <i18n lang="de" string="Frame In"/>
        <i18n lang="it" string="Fotogramma in"/>
        <i18n lang="ru_RU" string="\u041a\u0430\u0434\u0440 \u0432"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SW" line="-2" dir="H">
    <seg exp="ASeriesDescription" group="Display_Parameters" priority="7">
      <desc>
        <i18n lang="en_US" string="seires description"/>
        <i18n lang="fr" string="nom de l'h\u00c3\u00b4pital"/>
        <i18n lang="de" string="Krankenhausname"/>
        <i18n lang="it" string="Nome ospedale"/>
        <i18n lang="es_MX" string="hospital"/>
        <i18n lang="pt_BR" string="nome do hospital"/>
        <i18n lang="ru_RU" string="\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0438\u0438"/>
      </desc>
    </seg>
  </annoLine>
     
  <annoLine location="SW" line="-3" dir="H">
    <seg exp="ADur" group="Scan_Parameters" priority="7">
      <desc>
        <i18n lang="en_US" string="acq duration"/>
        <i18n lang="nb_NO" string="Avb.varighet"/>
        <i18n lang="fr" string="Dur\u00c3\u00a9e de l'acquisition"/>
        <i18n lang="de" string="Akq.dauer"/>
        <i18n lang="it" string="Durata acq."/>
        <i18n lang="ru_RU" string="\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447."/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SW" line="-4" dir="H">
    <seg exp="AIWidthScanType" group="Display_Parameters" priority="7"> 
      <desc>
        <i18n lang="en_US" string="ImageWidth ScanType"/>
        <i18n lang="ru_RU" string="\u0422\u0438\u043f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0448\u0438\u0440\u0438\u043d\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SW" line="-5" dir="H">
    <seg exp="ARandoms" group="Scan_Parameters" priority="7"> 
      <desc>
        <i18n lang="en_US" string="Randoms"/>
        <i18n lang="fr" string="champ d'acquisition"/>
        <i18n lang="de" string="Scan-Bildfeld"/>
        <i18n lang="it" string="Campo d'acquisizione"/>
        <i18n lang="es_MX" string="campo de visi\u00c3\u00b3n del scanner"/>
        <i18n lang="pt_BR" string="campo de vis\u00c3\u00a3o do corte"/>
        <i18n lang="ru_RU" string="\u0421\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SW" line="-6" dir="H">
    <seg exp="ATracer" group="Scan_Parameters" priority="7">
      <desc>
        <i18n lang="en_US" string="Tracer"/>
        <i18n lang="fr" string="nom de l'h\u00c3\u00b4pital"/>
        <i18n lang="de" string="Krankenhausname"/>
        <i18n lang="it" string="Nome ospedale"/>
        <i18n lang="es_MX" string="hospital"/>
        <i18n lang="pt_BR" string="nome do hospital"/>
        <i18n lang="ru_RU" string="\u0420\u0430\u0434\u0438\u043e\u0444\u0430\u0440\u043c\u043f\u0440\u0435\u043f\u0430\u0440\u0430\u0442"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SW" line="-7" dir="H">
    <seg exp="AKvolt" group="Scan_Parameters" priority="7"> 
      <desc>
        <i18n lang="en_US" string="kVp"/>
        <i18n lang="fr" string="kVp"/>
        <i18n lang="de" string="kVp"/>
        <i18n lang="it" string="kVp"/>
        <i18n lang="es_MX" string="kVp"/>
        <i18n lang="pt_BR" string="kVp"/>
        <i18n lang="nb_NO" string="kVp"/>
        <i18n lang="ru_RU" string="kVp"/>
      </desc>
    </seg>
  </annoLine>

  <annoLine location="SW" line="-9" dir="H"> 
    <seg exp="AThickness" group="geometry" priority="9">
      <desc>
        <i18n lang="en_US" string="Thickness"/>
        <i18n lang="fr" string="Thickness"/>
        <i18n lang="de" string="Thickness"/>
        <i18n lang="it" string="Thickness"/>
        <i18n lang="es_MX" string="Thickness"/>
        <i18n lang="pt_BR" string="Thickness"/>
      </desc>
    </seg>
    <seg exp="ASpacing" group="geometry" priority="9">
       <desc>
      		<i18n lang="en_US" string="Spacing"/>
      		<i18n lang="fr" string="Spacing"/>
      		<i18n lang="de" string="Spacing"/>
      		<i18n lang="it" string="Spacing"/>
      		<i18n lang="es_MX" string="Spacing"/>
      		<i18n lang="pt_BR" string="Spacing"/>
       </desc>
   	</seg>
	<seg exp="ARenderStyle" group="geometry" priority="9">
      <desc>      		
        <i18n lang="en_US" string="Render Style"/>
        <i18n lang="fr" string="Render Style"/>
        <i18n lang="de" string="Render Style"/>
        <i18n lang="it" string="Render Style"/>
        <i18n lang="es_MX" string="Render Style"/>
        <i18n lang="pt_BR" string="Render Style"/>    		
      </desc>
    </seg>
  </annoLine>
	
</layout>

</apd>
