<?xml version="1.0" encoding="UTF-8"?>
<ViewerText Version="1.1">

<!-- 	
	**************************************************
	Standard Viewer Text Configuration - Media Viewer
    This is a copy of the "normal" viewer text config,
    with the following changes:
    - remove study comment
    
	Version 2.01 - requires Visage 7.0.2 RC or later
	Last update: 2010/Apr/2 by HSI
	**************************************************
-->

	<Condition Id="AlwaysTrue">
        <Tag Name="Primary.Dicom.Modality" Op="Wildcard">*</Tag>
	</Condition>


<!-- Conditions starting with Viewer* check a property of the viewer -->
	<Condition Id="ViewerTypeCurved">
        <Tag Name="Viewer.Abstract.IsCurvedViewer">true</Tag> 
<!--		<Tag Name="Condition.AlwaysTrue">true</Tag> -->
	</Condition>

	<Condition Id="ViewerTypeCrossSection">
		<Tag Name="Viewer.Abstract.IsCrossSectionViewer">true</Tag>
	</Condition>

	<Condition Id="ViewerTypeVessel">
		<AnyOf>
			<Tag Name="Condition.ViewerTypeCurved">true</Tag>
			<Tag Name="Condition.ViewerTypeCrossSection">true</Tag>
		</AnyOf>
	</Condition>

	<Condition Id="ViewerType2D">
		<Tag Name="Viewer.Abstract.Is2DViewer">true</Tag>
	</Condition>

	<Condition Id="ViewerTypeNot2DAndNotVessel"	>
		<Tag Name="Condition.ViewerType2D">false</Tag>
		<Tag Name="Condition.ViewerTypeVessel">false</Tag>
	</Condition>

	<Condition Id="ViewerModeThick">
		<Tag Name="Viewer.Abstract.IsThickMode">true</Tag>
	</Condition>

	<Condition Id="ViewerModeSlab">
		<Tag Name="Viewer.Abstract.IsSlabMode">true</Tag>
	</Condition>

	<Condition Id="ViewerSubtractionMode">
		<Tag Name="Viewer.Abstract.IsSubtractionMode">true</Tag>
	</Condition>
    
	<Condition Id="ViewerControlsOff">
		<Tag Name="Viewer.Abstract.IsViewerControl">false</Tag>
	</Condition>

	<Condition Id="ViewerControlsOff2D">
		<Tag Name="Condition.ViewerType2D">true</Tag>
		<Tag Name="Condition.ViewerControlsOff">true</Tag>
	</Condition>

	<Condition Id="ViewerControlsOffNon2D">
		<Tag Name="Condition.ViewerType2D">false</Tag>
		<Tag Name="Condition.ViewerControlsOff">true</Tag>
	</Condition>

<!-- All other conditions starting with Is* check a property of the primary dataset -->

	<Condition Id="IsPriorStudy">
		<Tag Name="Primary.Abstract.IsCurrent">false</Tag>
	</Condition>

	<Condition Id="IsApproximate">
		<Tag Name="Primary.Abstract.IsMeasurementApproximate">true</Tag>
	</Condition>

	<Condition Id="IsNotCalibrated">
		<Tag Name="Primary.Abstract.IsMeasurementNotCalibrated">true</Tag>
	</Condition>

	<Condition Id="IsCalibratedManually">
		<Tag Name="Primary.Abstract.IsMeasurementCalibratedManually">true</Tag>
	</Condition>

	<Condition Id="IsBaselinePhase">
		<Tag Name="Primary.Abstract.IsBaseline">true</Tag>
	</Condition>

<!--  Conditions starting with "Same" compare a specific property of primary and overlay for fusion.  --> 

	<Condition Id="SameName">
		<Tag Name="Primary.Dicom.PatientsName" Op="SameAs">Overlay</Tag>
	</Condition>	

	<Condition Id="SameDOB">
		<Tag Name="Primary.Dicom.PatientsBirthDate" Op="SameAs">Overlay</Tag>
	</Condition>	

	<Condition Id="SameAccession">
		<Tag Name="Primary.Dicom.AccessionNumber" Op="SameAs">Overlay</Tag>
	</Condition>	

  	<Condition Id="SameStudyDesc">
		<Tag Name="Primary.Dicom.StudyDescription" Op="SameAs">Overlay</Tag>
	</Condition>	

  	<Condition Id="SameStudyDate">
		<Tag Name="Primary.Dicom.StudyDate" Op="SameAs">Overlay</Tag>
	</Condition>	

  	<Condition Id="SameImageComments">
		<Tag Name="Primary.Dicom.ImageComments" Op="SameAs">Overlay</Tag>
	</Condition>	

  	<Condition Id="SameStudyComments">
		<Tag Name="Primary.Dicom.StudyComments" Op="SameAs">Overlay</Tag>
	</Condition>	

  	<Condition Id="TwoImageComments">
		<NotAnyOf>
            <Tag Name="Primary.Dicom.ImageComments" Op="Equal"></Tag><!-- neither empty -->
            <Tag Name="Overlay.Dicom.ImageComments" Op="Equal"></Tag><!-- neither empty -->
            <Tag Name="Primary.Dicom.ImageComments" Op="SameAs">Overlay</Tag><!-- not the same -->
        </NotAnyOf>
	</Condition>	
  	<Condition Id="TwoStudyComments">
		<NotAnyOf>
            <Tag Name="Primary.Dicom.StudyComments" Op="Equal"></Tag><!-- neither empty -->
            <Tag Name="Overlay.Dicom.StudyComments" Op="Equal"></Tag><!-- neither empty -->
            <Tag Name="Primary.Dicom.StudyComments" Op="SameAs">Overlay</Tag><!-- not the same -->
        </NotAnyOf>
	</Condition>	

	<Condition Id="SameInstitutionName">
		<Tag Name="Primary.Dicom.InstitutionName" Op="SameAs">Overlay</Tag>
	</Condition>	

	<Condition Id="SameModel">
		<Tag Name="Primary.Dicom.ManufacturersModelName" Op="SameAs">Overlay</Tag>
	</Condition>	

	<Condition Id="SameReferrer">
		<Tag Name="Primary.Dicom.ReferringPhysiciansName" Op="SameAs">Overlay</Tag>
	</Condition>	


<!-- 
	****************************************************************************
	Default for Single Modality. Only common tags.
	****************************************************************************
-->
	<Modality Primary="Default">

<!-- debug 
		<Tile Pos="NW" Row="1" Tag="Primary.Abstract.Empty"       DefaultText="!!! "           />
		<Tile Pos="NW" Row="1" Tag="Primary.Abstract.Empty"       DefaultText="(CURVED)" Condition="ViewerTypeCurved"  />
-->

        <!-- upper left corner in normal colors if this is a current study -->
		<Tile Pos="NW" Row="1" Tag="Primary.Dicom.PatientsName"       Prefix=""     Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="2" Tag="Primary.Dicom.AccessionNumber"    Prefix=""     Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="3" Tag="Primary.Dicom.PatientsBirthDate"  Prefix="* " 	Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="3" Tag="Primary.Dicom.PatientsSex"        Prefix=" "    Postfix="" PriorStyle="color:red;" />
		<Tile Pos="NW" Row="3" Tag="Primary.Abstract.PatientsAge"     Prefix=" "    Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="4" Tag="Primary.Dicom.StudyDescription"   Prefix=""     Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="5" Tag="Primary.Dicom.StudyDate"          Prefix=""     Postfix="" PriorStyle="color:red; background-color:foreground; font-weight:bold; " />
<!-- study time not needed, since acq time is displayed? 
		<Tile Pos="NW" Row="5" Tag="Primary.Dicom.StudyTime"          Prefix=", "     	Postfix=""	PriorStyle="color:red; background-color:foreground; font-weight:bold; " />
-->

        <!-- upper right: institution, machine, referrer -->
		<Tile Pos="NE" Row="1" Tag="Primary.Dicom.InstitutionName"          	Prefix=""     Postfix="" />
		<Tile Pos="NE" Row="2" Tag="Primary.Dicom.Manufacturer"                 Prefix=""     Postfix=" " />
		<Tile Pos="NE" Row="2" Tag="Primary.Dicom.ManufacturersModelName"   	Prefix=""     Postfix="" />
		<Tile Pos="NE" Row="3" Tag="Primary.Dicom.ReferringPhysiciansName"  	Prefix=""     Postfix="" />

        <!-- Display hint on how accurate measurements are -->
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(on projection)"
		        Postfix=""  Condition="IsApproximate"/>
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(not calibrated)"
		        Postfix=""  Condition="IsNotCalibrated"/>
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(manual calibration)"
		        Postfix=""  Condition="IsCalibratedManually"/>

		<!-- lower left - series and image details -->
		<Tile Pos="SW" Row="1" Tag="Primary.Dicom.SeriesDescription"  Prefix=""  Postfix="" />
		<Tile Pos="SW" Row="4" Tag="Primary.Dicom.AcquisitionTime"    Prefix="" Postfix="\n" />
		<Tile Pos="SW" Row="7" Tag="Primary.Dicom.SeriesNumber"    	  Prefix="Series "  Postfix=": " />		
		<Tile Pos="SW" Row="7" Tag="Viewer.Abstract.CurrentVessel"    Prefix=""         Postfix=" " Condition="ViewerTypeVessel" />
		<Tile Pos="SW" Row="7" Tag="Primary.Abstract.ReformatPosition" Prefix="" Postfix="" /> 

		<!-- lower right - slice and contrast -->
		<Tile Pos="SE" Row="1" Tag="Primary.Dicom.TablePosition"        Prefix="pos/"   Postfix=""          Condition="!ViewerModeThick" />
		<Tile Pos="SE" Row="2" Tag="Primary.Dicom.SliceThickness"       Prefix="thk/"   Postfix="mm"        Condition="!ViewerModeThick" />
		<Tile Pos="SE" Row="3" Tag="Primary.Dicom.SpacingBetweenSlices" Prefix="sp/"    Postfix="mm"        Condition="!ViewerModeThick" />
        
		<Tile Pos="SE" Row="2" Tag="Primary.Abstract.RenderMode"        Prefix=""       Postfix=""          Condition="ViewerModeThick" />
		<Tile Pos="SE" Row="2" Tag="Primary.Abstract.SliceThickness"    Prefix=" "      Postfix=""          Condition="ViewerModeThick" />
		<Tile Pos="SE" Row="2" Tag="Viewer.Abstract.SlabThickness"      Prefix="Slab: " Postfix=""          Condition="ViewerModeSlab" />
		<Tile Pos="SE" Row="3" Tag="Primary.Dicom.SliceThickness"       Prefix=" (native " Postfix=" mm)"   Condition="ViewerModeThick" />

		<Tile Pos="SE" Row="5" Tag="Primary.Dicom.ContrastBolusAgent"   Prefix="CM: "   Postfix="" />

		<!-- lower right - information from viewer controls --> 
		<Tile Pos="SE" Row="7" Tag="Primary.Abstract.WLCenter"      Prefix="C: "  Postfix="  "  Condition="ViewerControlsOff" />
		<Tile Pos="SE" Row="7" Tag="Primary.Abstract.WLWidth"       Prefix="W: "  Postfix=""    Condition="ViewerControlsOff" />
		<Tile Pos="SE" Row="8" Tag="Viewer.Abstract.ZoomLevel"      Prefix="Zoom: " Postfix="%" Condition="ViewerControlsOff" />

		<!-- bottom - image comments (study comments are also shown in popup) -->
		<Tile Pos="S2" Row="1" Tag="Primary.Dicom.ImageComments"      Prefix=""     Postfix="" Condition="!ViewerTypeCurved" />

	</Modality>

<!-- 
	****************************************************************************
	Default for Fusion Mode.
    * Priors in red
    * Show second patient if multiple patients are fused 
    * Show for both: series descr, series num, IMA, acq time
    * Because of space constraints, general series information is moved 
       from lower left to lower right
	****************************************************************************
-->
	<Modality Primary="Default" Overlay="Default">
        <!-- upper left corner in normal colors if this is a current study -->
		<Tile Pos="NW" Row="1" Tag="Primary.Dicom.PatientsName"       Prefix=""     Postfix=" " PriorStyle="color:red;" />
		<Tile Pos="NW" Row="1" Tag="Overlay.Dicom.PatientsName"       Prefix="/ "   Postfix=""  Condition="!SameName" CurrentStyle="color:yellow;" PriorStyle="color:yellow;"   />
		<Tile Pos="NW" Row="2" Tag="Primary.Dicom.AccessionNumber"    Prefix=""     Postfix=" " PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="2" Tag="Overlay.Dicom.AccessionNumber"    Prefix="/ "   Postfix=""  Condition="!SameAccession" CurrentStyle="color:yellow;" PriorStyle="color:yellow;" />

		<Tile Pos="NW" Row="3" Tag="Primary.Dicom.PatientsBirthDate"  Prefix="* "   Postfix=""  PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="3" Tag="Primary.Dicom.PatientsSex"        Prefix=" "    Postfix=""  PriorStyle="color:red;" />
		<Tile Pos="NW" Row="3" Tag="Primary.Abstract.PatientsAge"     Prefix=" "    Postfix=" " PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="3" Tag="Overlay.Dicom.PatientsBirthDate"  Prefix="/ "   Postfix=""  Condition="!SameDOB" CurrentStyle="color:yellow;" PriorStyle="color:yellow;" />
		<Tile Pos="NW" Row="3" Tag="Overlay.Dicom.PatientsSex"        Prefix=" "    Postfix=""  Condition="!SameDOB" CurrentStyle="color:yellow;" PriorStyle="color:yellow;" />
		<Tile Pos="NW" Row="3" Tag="Overlay.Abstract.PatientsAge"     Prefix=" "    Postfix=""  Condition="!SameDOB" CurrentStyle="color:yellow;" PriorStyle="color:yellow;" />

		<Tile Pos="NW" Row="4" Tag="Primary.Dicom.StudyDescription"   Prefix=""     Postfix=" " PriorStyle="color:red;"   />
		<Tile Pos="NW" Row="4" Tag="Overlay.Dicom.StudyDescription"   Prefix="/ "   Postfix=""  Condition="!SameStudyDesc" CurrentStyle="color:yellow;" PriorStyle="color:yellow;" />
		<Tile Pos="NW" Row="5" Tag="Primary.Dicom.StudyDate"          Prefix=""    	Postfix=" "	PriorStyle="color:red; background-color:foreground; font-weight:bold;"/>
		<Tile Pos="NW" Row="5" Tag="Overlay.Dicom.StudyDate"          Prefix="/ "   Postfix=""	Condition="!SameStudyDate" CurrentStyle="color:yellow;" PriorStyle="color:yellow; background-color:foreground; font-weight:bold; " />

        <!-- upper right: institution, machine, referrer -->
		<Tile Pos="NE" Row="1" Tag="Primary.Dicom.InstitutionName"          	Prefix=""     Postfix=" " />
		<Tile Pos="NE" Row="1" Tag="Overlay.Dicom.InstitutionName"          	Prefix="/ "   Postfix="" Condition="!SameInstitutionName" CurrentStyle="color:yellow;" PriorStyle="color:yellow;"/>
		<Tile Pos="NE" Row="2" Tag="Primary.Dicom.Manufacturer"                 Prefix=""     Postfix="" />
		<Tile Pos="NE" Row="2" Tag="Primary.Dicom.ManufacturersModelName"   	Prefix=" "    Postfix=" " DefaultText=" " />
		<Tile Pos="NE" Row="2" Tag="Overlay.Dicom.Manufacturer"                 Prefix="/ "   Postfix=" " Condition="!SameModel" />
		<Tile Pos="NE" Row="2" Tag="Overlay.Dicom.ManufacturersModelName"   	Prefix=" "    Postfix=""  Condition="!SameModel" />
		<Tile Pos="NE" Row="3" Tag="Primary.Dicom.ReferringPhysiciansName"  	Prefix=""     Postfix=" " />
		<Tile Pos="NE" Row="3" Tag="Overlay.Dicom.ReferringPhysiciansName"  	Prefix="/ "   Postfix=" " Condition="!SameReferrer" CurrentStyle="color:yellow;" PriorStyle="color:yellow;"/>

         <!-- Display hint on how accurate measurements are -->
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(on projection)"       Postfix=""  Condition="IsApproximate"/>
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(not calibrated)"      Postfix=""  Condition="IsNotCalibrated"/>
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(manual calibration)"  Postfix=""  Condition="IsCalibratedManually"/>

        <!-- lower left - series and image numbers for both primary and overlay -->
		<Tile Pos="SW" Row="6" Tag="Primary.Dicom.Modality"             Prefix=""           Postfix=" " />
		<Tile Pos="SW" Row="6" Tag="Primary.Dicom.SeriesNumber"         Prefix="Series "    Postfix=": "  />		
		<Tile Pos="SW" Row="6" Tag="Viewer.Abstract.CurrentVessel"      Prefix=""           Postfix=" " Condition="ViewerTypeVessel" />
		<Tile Pos="SW" Row="6" Tag="Primary.Abstract.ReformatPosition"  Prefix=""           Postfix=""  /> 
		<Tile Pos="SW" Row="7" Tag="Overlay.Dicom.Modality"             Prefix=""           Postfix=" " />
		<Tile Pos="SW" Row="7" Tag="Overlay.Dicom.SeriesNumber"         Prefix="Series "    Postfix=": "  />		
		<Tile Pos="SW" Row="7" Tag="Viewer.Abstract.CurrentVessel"      Prefix=""           Postfix=" " Condition="ViewerTypeVessel" />
		<Tile Pos="SW" Row="7" Tag="Overlay.Abstract.ReformatPosition"  Prefix=""           Postfix=""  /> 

		<!-- general series details moved to the lower right because of space constraints -->
		<Tile Pos="SE" Row="1" Tag="Primary.Dicom.Modality"             Prefix=""  Postfix=": " />
		<Tile Pos="SE" Row="1" Tag="Primary.Dicom.SeriesDescription"    Prefix=""  Postfix=""   />
		<Tile Pos="SE" Row="2" Tag="Primary.Dicom.SeriesDate"           Prefix=""  Postfix=" "  />
		<Tile Pos="SE" Row="2" Tag="Primary.Dicom.AcquisitionTime"      Prefix=""  Postfix=""   />
		<Tile Pos="SE" Row="3" Tag="Overlay.Dicom.Modality"             Prefix=""  Postfix=": " />
		<Tile Pos="SE" Row="3" Tag="Overlay.Dicom.SeriesDescription"    Prefix=""  Postfix=""   />
		<Tile Pos="SE" Row="4" Tag="Overlay.Dicom.SeriesDate"           Prefix=""  Postfix=" "  />
		<Tile Pos="SE" Row="4" Tag="Overlay.Dicom.AcquisitionTime"      Prefix=""  Postfix="\n" />

		<!-- lower right - slice and contrast -->
		<Tile Pos="SE" Row="5" Tag="Primary.Dicom.SliceThickness"    Prefix="thk/"  Postfix=""      DefaultText="thk/"  Condition="!ViewerModeThick" />
		<Tile Pos="SE" Row="5" Tag="Overlay.Dicom.SliceThickness"    Prefix="/"     Postfix="mm"    DefaultText="mm"    Condition="!ViewerModeThick" />

		<Tile Pos="SE" Row="5" Tag="Primary.Abstract.RenderMode"        Prefix=""  Postfix=""   Condition="ViewerModeThick" />
		<Tile Pos="SE" Row="5" Tag="Primary.Abstract.SliceThickness"    Prefix=" " Postfix=""   Condition="ViewerModeThick" />
		<Tile Pos="SE" Row="6" Tag="Primary.Dicom.SliceThickness"       Prefix=" (native " Postfix="" DefaultText="(native " Condition="ViewerModeThick" />
		<Tile Pos="SE" Row="6" Tag="Overlay.Dicom.SliceThickness"       Prefix="/" Postfix=" mm)" DefaultText="/mm" Condition="ViewerModeThick" />

		<Tile Pos="SE" Row="7" Tag="Viewer.Abstract.SlabThickness"      Prefix="Slab: " Postfix="" Condition="ViewerModeSlab" />
		<Tile Pos="SE" Row="9" Tag="Primary.Dicom.ContrastBolusAgent"   Prefix="CM: "   Postfix="" />
		<Tile Pos="SE" Row="9" Tag="Overlay.Dicom.ContrastBolusAgent"   Prefix=" /CM: " Postfix="" />

<!-- saving some space in fusion case 
		<Tile Pos="SE" Row="1" Tag="Primary.Dicom.TablePosition"    Prefix="pos/"     Postfix="" Condition="!ViewerModeThick" />
		<Tile Pos="SE" Row="6" Tag="Primary.Dicom.SpacingBetweenSlices"    Prefix="sp/"     Postfix="" DefaultText="sp/" Condition="!ViewerModeThick" />
		<Tile Pos="SE" Row="6" Tag="Overlay.Dicom.SpacingBetweenSlices"    Prefix="/"     Postfix="mm" DefaultText="mm" Condition="!ViewerModeThick" />
-->


		<!-- lower right - information from viewer controls --> 
		<Tile Pos="SE" Row="10" Tag="Primary.Abstract.WLCenter"   Prefix="C: "      Postfix="  "    Condition="ViewerControlsOff" />
		<Tile Pos="SE" Row="10" Tag="Primary.Abstract.WLWidth"    Prefix="W: "      Postfix=""      Condition="ViewerControlsOff" />
		<Tile Pos="SE" Row="11" Tag="Viewer.Abstract.ZoomLevel"   Prefix="Zoom: "   Postfix="%"     Condition="ViewerControlsOff" />

		<!-- bottom - image comments (study comments are also shown in popup) -->
		<Tile Pos="S2" Row="1" Tag="Primary.Dicom.ImageComments"      Prefix=""     Postfix=""  />
		<Tile Pos="S2" Row="1" Tag="Overlay.Dicom.ImageComments"      Prefix=" / "  Postfix=""  Condition="!SameImageComments"/>

	</Modality>



<!-- 
	****************************************************************************
     	Ultrasound 
     	US images are screen captures that contain all patient and study information. 
     	So only show image number, prior hint, and zoom level 
	****************************************************************************
-->

	<Modality Primary="US">
		<!-- show study date only if this is a prior study - to indicate prior data -->
		<Tile Pos="NE" Row="2" Tag="Primary.Dicom.StudyDate"          Prefix=" "     Postfix=" "
		      PriorStyle="color:red; background-color:foreground; font-weight:bold; " Condition="IsPriorStudy" />

		<!-- the image comments are not displayed - they are shown in the screenshot.
                     the study comments are also not shown - they are displayed in the study info popup window  -->
		<!-- <Tile Pos="S2" Row="1" Tag="Primary.Dicom.ImageComments"      Prefix=""       Postfix="" /> -->
		<!-- <Tile Pos="S2" Row="2" Tag="Primary.Dicom.StudyComments"      Prefix="* "      Postfix=" *" /> -->

        <!-- Display hint on how accurate measurements are -->
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(on projection)"
		        Postfix=""  Condition="IsApproximate"/>
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(not calibrated)"
		        Postfix=""  Condition="IsNotCalibrated"/>
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(manual calibration)"
		        Postfix=""  Condition="IsCalibratedManually"/>

		<!-- series number and image number so references to this image are always accurate -->
		<Tile Pos="SW2" Row="1" Tag="Primary.Abstract.SeriesNumber"     Prefix="Series " Postfix=": " />
		<Tile Pos="SW2" Row="2" Tag="Primary.Abstract.ReformatPosition" Prefix="" Postfix=""  />          

		<!-- things that should be shown if there are no viewer controls -->
		<Tile Pos="SE" Row="4" Tag="Viewer.Abstract.ZoomLevel"        Prefix="\nZoom: " Postfix="%" Condition="ViewerControlsOff" />

		<!-- bottom - image comments (study comments are also shown in popup) -->
<!--
		<Tile Pos="S2" Row="1" Tag="Primary.Dicom.ImageComments"      Prefix=""     Postfix="" Condition="!ViewerTypeCurved" />
		<Tile Pos="S2" Row="2" Tag="Primary.Dicom.StudyComments"      Prefix=""     Postfix="" Condition="!ViewerTypeCurved" />
-->

	</Modality>



<!-- 
	****************************************************************************
	MRI
    Several MRI specific things in the lower left corner (SW)
	****************************************************************************
-->

	<Modality Primary="MR">

        <!-- upper left corner in normal colors if this is a current study -->
		<Tile Pos="NW" Row="1" Tag="Primary.Dicom.PatientsName"       Prefix=""     Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="2" Tag="Primary.Dicom.AccessionNumber"    Prefix=""     Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="3" Tag="Primary.Dicom.PatientsBirthDate"  Prefix="* " 	Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="3" Tag="Primary.Dicom.PatientsSex"        Prefix=" "    Postfix="" PriorStyle="color:red;" />
		<Tile Pos="NW" Row="3" Tag="Primary.Abstract.PatientsAge"     Prefix=" "    Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="4" Tag="Primary.Dicom.StudyDescription"   Prefix=""     Postfix="" PriorStyle="color:red;"  />
		<Tile Pos="NW" Row="5" Tag="Primary.Dicom.StudyDate"          Prefix=""     Postfix="" PriorStyle="color:red; background-color:foreground; font-weight:bold; " />
<!-- study time not needed, since acq time is displayed? 
		<Tile Pos="NW" Row="5" Tag="Primary.Dicom.StudyTime"          Prefix=", "     	Postfix=""	PriorStyle="color:red; background-color:foreground; font-weight:bold; " />
-->

        <!-- upper right: institution, machine, referrer -->
		<Tile Pos="NE" Row="1" Tag="Primary.Dicom.InstitutionName"          	Prefix=""     Postfix="" />
		<Tile Pos="NE" Row="2" Tag="Primary.Dicom.Manufacturer"                 Prefix=""     Postfix=" " />
		<Tile Pos="NE" Row="2" Tag="Primary.Dicom.ManufacturersModelName"   	Prefix=""     Postfix="" />
		<Tile Pos="NE" Row="3" Tag="Primary.Dicom.ReferringPhysiciansName"  	Prefix=""     Postfix="" />

        <!-- Display hint on how accurate measurements are -->
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(on projection)"
		        Postfix=""  Condition="IsApproximate"/>
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(not calibrated)"
		        Postfix=""  Condition="IsNotCalibrated"/>
		<Tile Pos="NE" Row="4" Tag="Primary.Abstract.Empty"    Prefix=""  DefaultText="\n(manual calibration)"
		        Postfix=""  Condition="IsCalibratedManually"/>

        <!-- lower left - series and image details -->
		<Tile Pos="SW" Row="1" Tag="Primary.Dicom.SeriesDescription"    Prefix=""       Postfix="" />
		<Tile Pos="SW" Row="2" Tag="Primary.Dicom.AcquisitionTime"      Prefix=""       Postfix="\n" />
		<Tile Pos="SW" Row="3" Tag="Primary.Dicom.RepetitionTime"       Prefix="TR: "   Postfix="" />
		<Tile Pos="SW" Row="4" Tag="Primary.Dicom.EchoTime"             Prefix="TE: "   Postfix="" />
		<Tile Pos="SW" Row="5" Tag="Primary.Dicom.ScanningSequence"     Prefix=""       Postfix=" " />
		<Tile Pos="SW" Row="5" Tag="Primary.Dicom.Rows"                 Prefix=""       Postfix="" />
		<Tile Pos="SW" Row="5" Tag="Primary.Dicom.Columns"              Prefix=" x "    Postfix="\n" />

		<Tile Pos="SW" Row="7" Tag="Primary.Abstract.ReformatOrientation"   Prefix=""           Postfix="" Condition="ViewerTypeNot2DAndNotVessel" />
		<Tile Pos="SW" Row="8" Tag="Primary.Dicom.SeriesNumber"             Prefix="Series "    Postfix=": " />		
		<Tile Pos="SW" Row="8" Tag="Viewer.Abstract.CurrentVessel"          Prefix=""           Postfix=" " Condition="ViewerTypeVessel" />
		<Tile Pos="SW" Row="8" Tag="Primary.Abstract.ReformatPosition"      Prefix=""           Postfix="" /> 


		<!-- lower right - slice and contrast -->
		<Tile Pos="SE" Row="1" Tag="Primary.Dicom.TablePosition"        Prefix="pos/"   Postfix=""          Condition="!ViewerModeThick" />
		<Tile Pos="SE" Row="2" Tag="Primary.Dicom.SliceThickness"       Prefix="thk/"   Postfix="mm"        Condition="!ViewerModeThick" />
		<Tile Pos="SE" Row="3" Tag="Primary.Dicom.SpacingBetweenSlices" Prefix="sp/"    Postfix="mm"        Condition="!ViewerModeThick" />
        
		<Tile Pos="SE" Row="2" Tag="Primary.Abstract.RenderMode"        Prefix=""       Postfix=""          Condition="ViewerModeThick" />
		<Tile Pos="SE" Row="2" Tag="Primary.Abstract.SliceThickness"    Prefix=" "      Postfix=""          Condition="ViewerModeThick" />
		<Tile Pos="SE" Row="2" Tag="Viewer.Abstract.SlabThickness"      Prefix="Slab: " Postfix=""          Condition="ViewerModeSlab" />
		<Tile Pos="SE" Row="3" Tag="Primary.Dicom.SliceThickness"       Prefix=" (native " Postfix=" mm)"   Condition="ViewerModeThick" />

		<Tile Pos="SE" Row="5" Tag="Primary.Dicom.ContrastBolusAgent"   Prefix="CM: "   Postfix="" />

		<!-- lower right - information from viewer controls --> 
		<Tile Pos="SE" Row="7" Tag="Primary.Abstract.WLCenter"      Prefix="C: "  Postfix="  "  Condition="ViewerControlsOff" />
		<Tile Pos="SE" Row="7" Tag="Primary.Abstract.WLWidth"       Prefix="W: "  Postfix=""    Condition="ViewerControlsOff" />
		<Tile Pos="SE" Row="8" Tag="Viewer.Abstract.ZoomLevel"      Prefix="Zoom: " Postfix="%" Condition="ViewerControlsOff" />

		<!-- bottom - image comments (study comments are also shown in popup) -->
		<Tile Pos="S2" Row="1" Tag="Primary.Dicom.ImageComments"      Prefix=""     Postfix="" Condition="!ViewerTypeCurved" />


	</Modality>



</ViewerText>
