<definitions>

	<defineiod name="BasicTextSR" sopclass="1.2.840.10008.5.1.4.1.1.88.11">
		<invokecontentitemconstraints name="BasicTextSRContentItemConstraints"/>
		
		<invokeroottemplate tid="2000" templatemappingresource="DCMR"/>
	</defineiod>

	<defineiod name="EnhancedSR" sopclass="1.2.840.10008.5.1.4.1.1.88.22">
		<invokecontentitemconstraints name="EnhancedSRContentItemConstraints"/>

		<invokeroottemplate tid="10001" templatemappingresource="DCMR"/>							<!-- Projection X-Ray Radiation Dose -->
		<invokeroottemplate tid="10011" templatemappingresource="DCMR"/>							<!-- CT Radiation Dose -->

		<invokeroottemplate tid="10001" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="113704"   csdProcedureReported="DCM"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Projection X-Ray"-->
		<invokeroottemplate tid="10001" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="P5-40010" csdProcedureReported="SRT"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Mammography"-->
		<invokeroottemplate tid="10011" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="P5-08000" csdProcedureReported="SRT"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Computed Tomography X-Ray"-->
		
		<invokeroottemplate tid="2000" templatemappingresource="DCMR"/>
		
		<invokeroottemplate tid="1500" templatemappingresource="DCMR"/>
		<invokeroottemplate tid="1500" cvDocumentTitle="126000" csdDocumentTitle="DCM"/>			<!-- cmDocumentTitle="Imaging Measurement Report"-->

		<invokeroottemplate tid="4200" templatemappingresource="DCMR"/>								<!-- Breast Imaging Report -->
		
		<invokeroottemplate tid="QIICR_2000" templatemappingresource="99QIICR"/>
		
		<invokeroottemplate tid="IHE_TCE_AddTFInfo" cvDocumentTitle="TCE006" csdDocumentTitle="IHERADTF"/>			<!-- cmDocumentTitle="Additional Teaching File Information" -->
		
	</defineiod>

	<defineiod name="ComprehensiveSR" sopclass="1.2.840.10008.5.1.4.1.1.88.33">
		<invokecontentitemconstraints name="ComprehensiveSRContentItemConstraints"/>

		<invokeroottemplate tid="2000" templatemappingresource="DCMR"/>

		<invokeroottemplate tid="10001" templatemappingresource="DCMR"/>							<!-- Projection X-Ray Radiation Dose -->
		<invokeroottemplate tid="10011" templatemappingresource="DCMR"/>							<!-- CT Radiation Dose -->

		<invokeroottemplate tid="10001" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="113704"   csdProcedureReported="DCM"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Projection X-Ray"-->
		<invokeroottemplate tid="10001" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="P5-40010" csdProcedureReported="SRT"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Mammography"-->
		<invokeroottemplate tid="10011" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="P5-08000" csdProcedureReported="SRT"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Computed Tomography X-Ray"-->

		<invokeroottemplate tid="RPH_0001" templatemappingresource="99RPH"/>
		<invokeroottemplate tid="RPH_0001" cvDocumentTitle="RP-100001" csdDocumentTitle="99RPH"/>
		
		<invokeroottemplate tid="1500" templatemappingresource="DCMR"/>
		<invokeroottemplate tid="1500" cvDocumentTitle="126000" csdDocumentTitle="DCM"/>			<!-- cmDocumentTitle="Imaging Measurement Report"-->

		<invokeroottemplate tid="4200" templatemappingresource="DCMR"/>								<!-- Breast Imaging Report -->
		
		<invokeroottemplate tid="QIICR_2000" templatemappingresource="99QIICR"/>
		
	</defineiod>

	<defineiod name="Comprehensive3DSR" sopclass="1.2.840.10008.5.1.4.1.1.88.34">
		<invokecontentitemconstraints name="Comprehensive3DSRContentItemConstraints"/>

		<invokeroottemplate tid="2000" templatemappingresource="DCMR"/>

		<invokeroottemplate tid="10001" templatemappingresource="DCMR"/>							<!-- Projection X-Ray Radiation Dose -->
		<invokeroottemplate tid="10011" templatemappingresource="DCMR"/>							<!-- CT Radiation Dose -->

		<invokeroottemplate tid="10001" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="113704"   csdProcedureReported="DCM"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Projection X-Ray"-->
		<invokeroottemplate tid="10001" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="P5-40010" csdProcedureReported="SRT"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Mammography"-->
		<invokeroottemplate tid="10011" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="P5-08000" csdProcedureReported="SRT"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Computed Tomography X-Ray"-->

		<invokeroottemplate tid="RPH_0001" templatemappingresource="99RPH"/>
		<invokeroottemplate tid="RPH_0001" cvDocumentTitle="RP-100001" csdDocumentTitle="99RPH"/>
		
		<invokeroottemplate tid="1500" templatemappingresource="DCMR"/>
		<invokeroottemplate tid="1500" cvDocumentTitle="126000" csdDocumentTitle="DCM"/>			<!-- cmDocumentTitle="Imaging Measurement Report"-->

		<invokeroottemplate tid="QIICR_2000" templatemappingresource="99QIICR"/>
		
	</defineiod>
	
	<defineiod name="ProcedureLog" sopclass="1.2.840.10008.5.1.4.1.1.88.40">
		<invokecontentitemconstraints name="ProcedureLogContentItemConstraints"/>
	</defineiod>

	<defineiod name="MammographyCADSR" sopclass="1.2.840.10008.5.1.4.1.1.88.50">
		<invokecontentitemconstraints name="MammographyCADSRContentItemConstraints"/>

		<invokeroottemplate tid="4000" templatemappingresource="DCMR" tidRequired="T"/>
	</defineiod>

	<defineiod name="KeyObjectSelectionDocument" sopclass="1.2.840.10008.5.1.4.1.1.88.59">
		<invokecontentitemconstraints name="KeyObjectSelectionDocumentContentItemConstraints"/>

		<invokeroottemplate tid="2010" templatemappingresource="DCMR" tidRequired="T"/>
	</defineiod>

	<defineiod name="ChestCADSR" sopclass="1.2.840.10008.5.1.4.1.1.88.65">
		<invokecontentitemconstraints name="ChestCADSRContentItemConstraints"/>
	</defineiod>

	<defineiod name="XRayRadiationDoseSR" sopclass="1.2.840.10008.5.1.4.1.1.88.67">
		<invokecontentitemconstraints name="XRayRadiationDoseSRContentItemConstraints"/>

		<invokeroottemplate tid="10001" templatemappingresource="DCMR"/>							<!-- Projection X-Ray Radiation Dose -->
		<invokeroottemplate tid="10011" templatemappingresource="DCMR"/>							<!-- CT Radiation Dose -->

		<invokeroottemplate tid="10001" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="113704"   csdProcedureReported="DCM"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Projection X-Ray"-->
		<invokeroottemplate tid="10001" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="P5-40010" csdProcedureReported="SRT"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Mammography"-->
		<invokeroottemplate tid="10011" cvDocumentTitle="113701" csdDocumentTitle="DCM" cvProcedureReported="P5-08000" csdProcedureReported="SRT"/>			<!-- cmDocumentTitle="X-Ray Radiation Dose Report" cmProcedureReported="Computed Tomography X-Ray"-->
	</defineiod>

	<defineiod name="RadiopharmaceuticalRadiationDoseSR" sopclass="1.2.840.10008.5.1.4.1.1.88.68">
		<invokecontentitemconstraints name="RadiopharmaceuticalRadiationDoseSRContentItemConstraints"/>

		<invokeroottemplate tid="10021" templatemappingresource="DCMR"/>							<!-- Radiopharmaceutical Radiation Dose -->
	</defineiod>

	<defineiod name="AcquisitionContextSR" sopclass="1.2.840.10008.5.1.4.1.1.88.71">
		<invokecontentitemconstraints name="AcquisitionContextSRContentItemConstraints"/>
		
		<invokeroottemplate tid="8101" templatemappingresource="DCMR"/>							<!-- Preclinical Small Animal Image Acquisition Context -->
		
		<invokeroottemplate tid="8101" cvDocumentTitle="127001" csdDocumentTitle="DCM"/>		<!-- Preclinical Small Animal Image Acquisition Context -->
	</defineiod>

	<definecontentitemconstraints name="BasicTextSRContentItemConstraints">
	
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="text"/>
			<permittedchildcontentitem relationship="CONTAINS" name="code"/>
			<permittedchildcontentitem relationship="CONTAINS" name="datetime"/>
			<permittedchildcontentitem relationship="CONTAINS" name="date"/>
			<permittedchildcontentitem relationship="CONTAINS" name="time"/>
			<permittedchildcontentitem relationship="CONTAINS" name="uidref"/>
			<permittedchildcontentitem relationship="CONTAINS" name="pname"/>
			<permittedchildcontentitem relationship="CONTAINS" name="composite"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image"/>
			<permittedchildcontentitem relationship="CONTAINS" name="waveform"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="image">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="waveform">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="composite">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
		</parentcontentitem>

		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="datetime">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="date">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="time">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="uidref">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="pname">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>
	
	</definecontentitemconstraints>

	<definecontentitemconstraints name="EnhancedSRContentItemConstraints">

		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="text"/>
			<permittedchildcontentitem relationship="CONTAINS" name="code"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num"/>
			<permittedchildcontentitem relationship="CONTAINS" name="datetime"/>
			<permittedchildcontentitem relationship="CONTAINS" name="date"/>
			<permittedchildcontentitem relationship="CONTAINS" name="time"/>
			<permittedchildcontentitem relationship="CONTAINS" name="uidref"/>
			<permittedchildcontentitem relationship="CONTAINS" name="pname"/>
			<permittedchildcontentitem relationship="CONTAINS" name="scoord"/>
			<permittedchildcontentitem relationship="CONTAINS" name="tcoord"/>
			<permittedchildcontentitem relationship="CONTAINS" name="composite"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image"/>
			<permittedchildcontentitem relationship="CONTAINS" name="waveform"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="image">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="waveform">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="composite">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord"/>
		</parentcontentitem>

		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="datetime">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="date">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="time">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="uidref">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="pname">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>

		<parentcontentitem name="scoord">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="image"/>
		</parentcontentitem>

		<parentcontentitem name="tcoord">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="scoord"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="image"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="waveform"/>
		</parentcontentitem>

	</definecontentitemconstraints>

	<definecontentitemconstraints name="ComprehensiveSRContentItemConstraints">
	
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="image">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="waveform">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="composite">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="datetime">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		<parentcontentitem name="date">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		<parentcontentitem name="time">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		<parentcontentitem name="uidref">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		<parentcontentitem name="pname">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>
		
		<parentcontentitem name="scoord">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="image" byreference="T"/>
		</parentcontentitem>

		<parentcontentitem name="tcoord">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="waveform" byreference="T"/>
		</parentcontentitem>

	</definecontentitemconstraints>

	<definecontentitemconstraints name="Comprehensive3DSRContentItemConstraints">
	
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="scoord3d" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord3d" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord3d" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord3d" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord3d" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord3d" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord3d" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="image">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="waveform">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="composite">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname" byreference="T"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="datetime">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		<parentcontentitem name="date">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		<parentcontentitem name="time">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		<parentcontentitem name="uidref">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		<parentcontentitem name="pname">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>
		
		<parentcontentitem name="scoord">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="image" byreference="T"/>
		</parentcontentitem>

		<parentcontentitem name="scoord3d">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="tcoord">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="scoord3d" byreference="T"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="waveform" byreference="T"/>
		</parentcontentitem>

	</definecontentitemconstraints>

	<definecontentitemconstraints name="ProcedureLogContentItemConstraints">
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="text"/>
			<permittedchildcontentitem relationship="CONTAINS" name="code"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num"/>
			<permittedchildcontentitem relationship="CONTAINS" name="pname"/>
			<permittedchildcontentitem relationship="CONTAINS" name="composite"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image"/>
			<permittedchildcontentitem relationship="CONTAINS" name="waveform"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
		</parentcontentitem>
		
		<parentcontentitem name="composite">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>

		<parentcontentitem name="datetime">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>

		<parentcontentitem name="date">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>

		<parentcontentitem name="image">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>
		
		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
		</parentcontentitem>
		
		<parentcontentitem name="pname">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>
		
		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
		</parentcontentitem>

		<parentcontentitem name="time">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>

		<parentcontentitem name="uidref">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>

		<parentcontentitem name="waveform">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>
	</definecontentitemconstraints>

	<definecontentitemconstraints name="MammographyCADSRContentItemConstraints">
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="code"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num"/>
			<permittedchildcontentitem relationship="CONTAINS" name="scoord"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="CONTAINS" name="text"/>
			<permittedchildcontentitem relationship="CONTAINS" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="image">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
		</parentcontentitem>
		
		<parentcontentitem name="scoord">
			<permittedchildcontentitem relationship="SELECTED FROM" name="image" byreference="T"/>
		</parentcontentitem>

		<parentcontentitem name="composite">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

	</definecontentitemconstraints>

	<definecontentitemconstraints name="KeyObjectSelectionDocumentContentItemConstraints">
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="text"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image"/>
			<permittedchildcontentitem relationship="CONTAINS" name="waveform"/>
			<permittedchildcontentitem relationship="CONTAINS" name="composite"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
	</definecontentitemconstraints>

	<definecontentitemconstraints name="ChestCADSRContentItemConstraints">
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="code"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="waveform" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="tcoord" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container" byreference="T"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="composite">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>

		<parentcontentitem name="image">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
		</parentcontentitem>
		
		<parentcontentitem name="waveform">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
		</parentcontentitem>
		
		<parentcontentitem name="scoord">
			<permittedchildcontentitem relationship="SELECTED FROM" name="image" byreference="T"/>
		</parentcontentitem>
		
		<parentcontentitem name="tcoord">
			<permittedchildcontentitem relationship="SELECTED FROM" name="scoord" byreference="T"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="image" byreference="T"/>
			<permittedchildcontentitem relationship="SELECTED FROM" name="waveform" byreference="T"/>
		</parentcontentitem>

	</definecontentitemconstraints>

	<definecontentitemconstraints name="XRayRadiationDoseSRContentItemConstraints">
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="text"/>
			<permittedchildcontentitem relationship="CONTAINS" name="code"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num"/>
			<permittedchildcontentitem relationship="CONTAINS" name="datetime"/>
			<permittedchildcontentitem relationship="CONTAINS" name="uidref"/>
			<permittedchildcontentitem relationship="CONTAINS" name="pname"/>
			<permittedchildcontentitem relationship="CONTAINS" name="image"/>
			<permittedchildcontentitem relationship="CONTAINS" name="composite"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container"/>
		</parentcontentitem>
		
		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container"/>
		</parentcontentitem>
		
		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container"/>
		</parentcontentitem>
		
		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="composite"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="image"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="composite"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="image"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="composite"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container"/>
		</parentcontentitem>
		
		
		<parentcontentitem name="image">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="composite">
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="datetime">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="uidref">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="pname">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="date"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="time"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
		</parentcontentitem>
	</definecontentitemconstraints>

	<definecontentitemconstraints name="RadiopharmaceuticalRadiationDoseSRContentItemConstraints">
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="text"/>
			<permittedchildcontentitem relationship="CONTAINS" name="code"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num"/>
			<permittedchildcontentitem relationship="CONTAINS" name="datetime"/>
			<permittedchildcontentitem relationship="CONTAINS" name="uidref"/>
			<permittedchildcontentitem relationship="CONTAINS" name="pname"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS ACQ CONTEXT" name="container"/>
		</parentcontentitem>
		
		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container"/>
		</parentcontentitem>
		
		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container"/>
		</parentcontentitem>
		
		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container"/>
		</parentcontentitem>
		
		<parentcontentitem name="datetime">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="uidref">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="pname">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container"/>
		</parentcontentitem>
	</definecontentitemconstraints>
	
	<definecontentitemconstraints name="AcquisitionContextSRContentItemConstraints">
		<parentcontentitem name="container">
			<permittedchildcontentitem relationship="CONTAINS" name="code"/>
			<permittedchildcontentitem relationship="CONTAINS" name="container"/>
			<permittedchildcontentitem relationship="CONTAINS" name="datetime"/>
			<permittedchildcontentitem relationship="CONTAINS" name="num"/>
			<permittedchildcontentitem relationship="CONTAINS" name="pname"/>
			<permittedchildcontentitem relationship="CONTAINS" name="text"/>
			<permittedchildcontentitem relationship="CONTAINS" name="time"/>
			<permittedchildcontentitem relationship="CONTAINS" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="date"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="time"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="text">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="text"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="num"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="datetime"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="uidref"/>
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="pname"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="uidref"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="pname"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="container"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="text"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="code"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="num"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="datetime"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="uidref"/>
			<permittedchildcontentitem relationship="INFERRED FROM" name="container"/>
		</parentcontentitem>
		
		<parentcontentitem name="code">
			<permittedchildcontentitem relationship="HAS OBS CONTEXT" name="code"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="code"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="datetime"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="num"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="scoord3d"/>
			<permittedchildcontentitem relationship="HAS PROPERTIES" name="text"/>
		</parentcontentitem>
		
		<parentcontentitem name="num">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="date">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="datetime">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="time">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="uidref">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="pname">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
		
		<parentcontentitem name="scoord3d">
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="text"/>
			<permittedchildcontentitem relationship="HAS CONCEPT MOD" name="code"/>
		</parentcontentitem>
	</definecontentitemconstraints>

	<definetemplate tid="RPH_0001" name="RadPharmClinicalTrialsResults" root="T" extensible="T">
		<templatecontentitem     row="1"                          valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100001" csdConceptName="99RPH" cmConceptName="Clinical Trial Results">
			<includetemplate     row="2"  tid="1204" requiredType="M"/>
			<includetemplate     row="3"  tid="RPH_0002a" requiredType="M"/>
			<includetemplate     row="4"  tid="RPH_0002b" requiredType="M"/>
			<includetemplate     row="4b" tid="RPH_0002c" requiredType="M"/>
			<includetemplate     row="4c" tid="RPH_0002d" requiredType="M"/>
			<templatecontentitem row="5"  relationship="CONTAINS" valueType="container" vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111028" csdConceptName="DCM" cmConceptName="Image Library" condition="count(/DicomStructuredReport/DicomStructuredReportContent//image) &gt; 0" mbpo="F">
				<includetemplate row="6"  tid="RPH_0010" requiredType="M"/>	<!-- 1-n multiplicity on include propagated to root node of included template -->
			</templatecontentitem>
			<templatecontentitem row="7"  relationship="CONTAINS" valueType="container" vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-100702" csdConceptName="99RPH" cmConceptName="General Lesion Observations" condition="count(/DicomStructuredReport/DicomStructuredReportContent//container/concept[@cv = 'RP-100280' and @csd = '99RPH']) = 0" mbpo="F">
				<includetemplate row="8"  tid="RPH_0006b" requiredType="M"/>
			</templatecontentitem>
			<templatecontentitem row="9"  relationship="CONTAINS" valueType="container" vmmin="1" vmmax="n" requiredType="M"  cvConceptName="RP-100023" csdConceptName="99RPH" cmConceptName="Reading Sub-task">
				<includetemplate row="10" tid="RPH_0003" requiredType="M"/>
			</templatecontentitem>
			<templatecontentitem row="11" relationship="CONTAINS" valueType="container" vmmin="1" vmmax="n" requiredType="M"  cvConceptName="RP-100024" csdConceptName="99RPH" cmConceptName="Time Point">
				<includetemplate row="12" tid="RPH_0004" requiredType="M"/>
				<includetemplate row="13" tid="RPH_0005"/>	<!-- 1 MC conditional;	Shall not be present if Row 15 is present. -->
				<includetemplate row="14" tid="RPH_0006"/>	<!-- 1 MC conditional;	Shall not be present if Row 15 is present. -->
				<includetemplate row="15" tid="RPH_0005b"/>	<!-- 1 MC conditional;	required if EV (RP-100212, 99RPH, "Worklist Task Level") in TID RPH_0003 is (RP-100214, 99RPH, "Perform Comparision") -->
			</templatecontentitem>
			<templatecontentitem row="16" relationship="CONTAINS" valueType="code"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-100074" csdConceptName="99RPH" cmConceptName="Signature meaning" condition="/DicomStructuredReport/DicomStructuredReportHeader/VerificationFlag/value[1] = 'VERIFIED'" mbpo="F" valueSetCID="RPH_7015" valueSetBDE="D"/>			
		</templatecontentitem>	
	</definetemplate>

	<definetemplate tid="RPH_0002a" name="RadPharmPersonObserverIdentifyingAttributes" root="F" extensible="T">
		<templatecontentitem row="1" relationship="HAS OBS CONTEXT" valueType="pname" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121008" csdConceptName="DCM" cmConceptName="Person Observer Name"/>
		<templatecontentitem row="2" relationship="HAS OBS CONTEXT" valueType="text"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100006" csdConceptName="99RPH" cmConceptName="Person Observer's Login Name"/>
		<templatecontentitem row="3" relationship="HAS OBS CONTEXT" valueType="text"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121009" csdConceptName="DCM" cmConceptName="Person Observer's Organization Name">
			<verify test="value != /DicomStructuredReport/DicomStructuredReportHeader/InstitutionName/value" status="Error" message="Person Observer's Organization Name does not match Institution Name"/>
		</templatecontentitem>
		<templatecontentitem row="4" relationship="HAS OBS CONTEXT" valueType="code"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121011" csdConceptName="DCM" cmConceptName="Person Observer's Role in this Procedure" valueSetCID="RPH_7001" valueSetBDE="D"/>
		<templatecontentitem row="5" relationship="HAS OBS CONTEXT" valueType="text"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100007" csdConceptName="99RPH" cmConceptName="Identifier within Person Observer's Role"/>
	</definetemplate>

	<definetemplate tid="RPH_0002b" name="RadPharmDeviceObserverIdentifyingAttributes" root="F" extensible="T">
		<templatecontentitem     row="1"  relationship="HAS OBS CONTEXT" valueType="text"  vmmin="1" vmmax="n" requiredType="U"  cvConceptName="RP-100084" csdConceptName="99RPH" cmConceptName="Application Name">
			<templatecontentitem row="2"  relationship="HAS PROPERTIES"  valueType="text"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100083" csdConceptName="99RPH" cmConceptName="Version"/>
		</templatecontentitem>
		<templatecontentitem     row="3"  relationship="HAS OBS CONTEXT" valueType="text"  vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111001" csdConceptName="DCM" cmConceptName="Algorithm Name">
			<templatecontentitem row="4"  relationship="HAS PROPERTIES"  valueType="text"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100083" csdConceptName="99RPH" cmConceptName="Version"/>
			<templatecontentitem row="5"  relationship="HAS PROPERTIES"  valueType="code"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100085" csdConceptName="99RPH" cmConceptName="Algorithm Type" valueSetCID="RPH_7016" valueSetBDE="D"/>
			<templatecontentitem row="6"  relationship="HAS PROPERTIES"  valueType="text"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100926" csdConceptName="99RPH" cmConceptName="Algorithm UID"/>
			<templatecontentitem row="7"  relationship="HAS PROPERTIES"  valueType="text"  vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111002" csdConceptName="DCM" cmConceptName="Algorithm Parameters"/>
		</templatecontentitem>
		<templatecontentitem     row="8"  relationship="HAS OBS CONTEXT" valueType="text"  vmmin="1" vmmax="n" requiredType="M"  cvConceptName="RP-100086" csdConceptName="99RPH" cmConceptName="Business Rule Set Name">                  <!-- actually MC, but condition is real-world -->
			<templatecontentitem row="9"  relationship="HAS PROPERTIES"  valueType="text"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100083" csdConceptName="99RPH" cmConceptName="Version"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0002c" name="RadPharmClinicalTrialProtocolContext" root="F" extensible="T">
		<!-- all actually MC - Required if present with a value in the worklist - cannot check so make U -->
		<templatecontentitem row="1" relationship="HAS OBS CONTEXT" valueType="text" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101100" csdConceptName="99RPH" cmConceptName="Protocol Name"/>
		<templatecontentitem row="2" relationship="HAS OBS CONTEXT" valueType="text" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101101" csdConceptName="99RPH" cmConceptName="Protocol UID"/>
		<templatecontentitem row="3" relationship="HAS OBS CONTEXT" valueType="text" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101109" csdConceptName="99RPH" cmConceptName="Protocol Number"/>
	</definetemplate>

	<definetemplate tid="RPH_0002d" name="RadPharmSubjectContext" root="F" extensible="T">
		<!-- all actually MC - Required if present with a value in the worklist - cannot check so make U -->
		<templatecontentitem row="1" relationship="HAS OBS CONTEXT" valueType="text" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101102" csdConceptName="99RPH" cmConceptName="Site UID"/>
		<templatecontentitem row="2" relationship="HAS OBS CONTEXT" valueType="text" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101103" csdConceptName="99RPH" cmConceptName="Subject UID"/>
		<templatecontentitem row="3" relationship="HAS OBS CONTEXT" valueType="date" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101104" csdConceptName="99RPH" cmConceptName="Enrollment Date"/>
		<templatecontentitem row="4" relationship="HAS OBS CONTEXT" valueType="date" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101105" csdConceptName="99RPH" cmConceptName="Randomization Date"/>
		<templatecontentitem row="5" relationship="HAS OBS CONTEXT" valueType="date" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101106" csdConceptName="99RPH" cmConceptName="First Dose Date"/>
		<templatecontentitem row="6" relationship="HAS OBS CONTEXT" valueType="date" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101107" csdConceptName="99RPH" cmConceptName="End of Treatment Date"/>
		<templatecontentitem row="7" relationship="HAS OBS CONTEXT" valueType="date" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101108" csdConceptName="99RPH" cmConceptName="Termination Date"/>
	</definetemplate>

	<definetemplate tid="RPH_0003" name="RadPharmReadingSessionAndTaskContext" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="HAS OBS CONTEXT"  valueType="text"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100008" csdConceptName="99RPH" cmConceptName="Worklist Task Name">	
			<templatecontentitem     row="2"  relationship="HAS OBS CONTEXT"  valueType="uidref"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100081" csdConceptName="99RPH" cmConceptName="Worklist Task UID"/>	
			<templatecontentitem     row="3"  relationship="HAS OBS CONTEXT"  valueType="text"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100010" csdConceptName="99RPH" cmConceptName="Worklist Task Version"/>
			<templatecontentitem     row="4"  relationship="HAS OBS CONTEXT"  valueType="text"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100011" csdConceptName="99RPH" cmConceptName="Worklist Task Description"/>
			<templatecontentitem     row="5"  relationship="HAS OBS CONTEXT"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100212" csdConceptName="99RPH" cmConceptName="Worklist Task Level"	          valueSetCID="RPH_7003b" valueSetBDE="D"/>
			<templatecontentitem     row="6"  relationship="HAS OBS CONTEXT"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100210" csdConceptName="99RPH" cmConceptName="Worklist Task Type"	          valueSetCID="RPH_7002" valueSetBDE="D"/> 
			<templatecontentitem     row="7"  relationship="HAS OBS CONTEXT"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100211" csdConceptName="99RPH" cmConceptName="Worklist Task Category"	      valueSetCID="RPH_7003" valueSetBDE="D"/>
			<templatecontentitem     row="8"  relationship="HAS OBS CONTEXT"  valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100232" csdConceptName="99RPH" cmConceptName="Worklist Task Repeat Type"	  valueSetCID="RPH_7003c" valueSetBDE="D"/>	<!-- actually MC, but condition is real-world -->
			<templatecontentitem     row="9"  relationship="HAS OBS CONTEXT"  valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100233" csdConceptName="99RPH" cmConceptName="Worklist Task Variability Type" valueSetCID="RPH_7003d" valueSetBDE="D"/>	<!-- actually MC, but condition is real-world -->
			<templatecontentitem     row="10" relationship="HAS OBS CONTEXT"  valueType="text"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100009" csdConceptName="99RPH" cmConceptName="Worklist Sub-task Name">
				<templatecontentitem row="11" relationship="HAS OBS CONTEXT"  valueType="uidref"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100082" csdConceptName="99RPH" cmConceptName="Worklist Sub-task UID"/>
				<templatecontentitem row="12" relationship="HAS OBS CONTEXT"  valueType="datetime"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100924" csdConceptName="99RPH" cmConceptName="Worklist Sub-task Start DateTime"/>
				<templatecontentitem row="13" relationship="HAS OBS CONTEXT"  valueType="datetime"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100925" csdConceptName="99RPH" cmConceptName="Worklist Sub-task Closed DateTime"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0004" name="RadPharmTimePointContext" root="F" extensible="T">
		<templatecontentitem         row="1"   relationship="HAS OBS CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100018" csdConceptName="99RPH"  cmConceptName="Subject Time Point Unique Identifier"/>
		<templatecontentitem         row="2"   relationship="HAS OBS CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100017" csdConceptName="99RPH"  cmConceptName="Protocol Time Point Unique Identifier"/>
		<templatecontentitem         row="3"   relationship="HAS OBS CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100019" csdConceptName="99RPH"  cmConceptName="Time Point Name"/>
		<templatecontentitem         row="4"   relationship="HAS OBS CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100550" csdConceptName="99RPH"  cmConceptName="Time Point Sponsor Name"/>
		<templatecontentitem         row="4a"  relationship="HAS OBS CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100551" csdConceptName="99RPH"  cmConceptName="Time Point Type"/>
		<templatecontentitem         row="4b"  relationship="HAS OBS CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100552" csdConceptName="99RPH"  cmConceptName="Days from enrollment"   cvUnits="d"       csdUnits="UCUM" cmUnits="Days"/>
		<templatecontentitem         row="4c"  relationship="HAS OBS CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100553" csdConceptName="99RPH"  cmConceptName="Time Point Order"       cvUnits="{order}" csdUnits="UCUM" cmUnits="order"/>
		<templatecontentitem         row="5"   relationship="HAS OBS CONTEXT" valueType="code"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100021" csdConceptName="99RPH"  cmConceptName="Time Point Unscheduled" valueSetCID="RPH_7230" valueSetBDE="D"/>
		<templatecontentitem         row="6"   relationship="HAS OBS CONTEXT" valueType="code"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100022" csdConceptName="99RPH"  cmConceptName="Time Point Baseline"    valueSetCID="RPH_7230" valueSetBDE="D"/>
		<templatecontentitem         row="7"   relationship="HAS OBS CONTEXT" valueType="code"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100090" csdConceptName="99RPH"  cmConceptName="Completed"              valueSetCID="RPH_7230" valueSetBDE="D"/>
		<templatecontentitem         row="8"   relationship="HAS OBS CONTEXT" valueType="text"   vmmin="1" vmmax="n" requiredType="M"  cvConceptName="121065" csdConceptName="DCM" cmConceptName="Procedure Description">                  <!-- actually MC, but condition is real-world -->
			<templatecontentitem     row="9"   relationship="HAS PROPERTIES"  valueType="uidref" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="110180" csdConceptName="DCM" cmConceptName="Study Instance UID"/>
			<templatecontentitem     row="10"  relationship="HAS PROPERTIES"  valueType="code"   vmmin="1" vmmax="n" requiredType="M"  cvConceptName="121139" csdConceptName="DCM" cmConceptName="Modality" valueSetCID="29" valueSetBDE="D"/>
			<templatecontentitem     row="10a" relationship="HAS PROPERTIES"  valueType="code"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121058" csdConceptName="DCM" cmConceptName="Procedure reported"/>                    <!-- actually MC, but condition is real-world -->
			<templatecontentitem     row="11"  relationship="HAS PROPERTIES"  valueType="date"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111060" csdConceptName="DCM" cmConceptName="Study Date"/>
			<templatecontentitem     row="12"  relationship="HAS PROPERTIES"  valueType="time"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111061" csdConceptName="DCM" cmConceptName="Study Time"/>
			<templatecontentitem     row="13"  relationship="HAS PROPERTIES"  valueType="code"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RID12236"  csdConceptName="RADLEX" cmConceptName="Anatomic Region Covered" valueSetCID="RPH_7007" valueSetBDE="D">	<!-- include RPH_7007b Anatomic Regions for External Photography Procedures in RPH_7007 -->
				<templatecontentitem row="13b" relationship="HAS CONCEPT MOD" valueType="code"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality"   valueSetCID="244"      valueSetBDE="D"/>
			</templatecontentitem>
			<templatecontentitem     row="14"  relationship="HAS PROPERTIES"  valueType="uidref" vmmin="1" vmmax="n" requiredType="M"  cvConceptName="RP-100904" csdConceptName="99RPH"  cmConceptName="Exam Identifier"/>
			<templatecontentitem     row="15"  relationship="HAS PROPERTIES"  valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RID12405"  csdConceptName="RADLEX" cmConceptName="Reconstruction Interval"            cvUnits="mm"     csdUnits="UCUM" cmUnits="millimeter"/>   <!-- actually MC, but condition is real-world -->	
			<templatecontentitem     row="16"  relationship="HAS PROPERTIES"  valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="15074-8"   csdConceptName="LN"     cmConceptName="Blood Glucose"                      cvUnits="mmol/l" csdUnits="UCUM" cmUnits="mmol/l"/>	      <!-- actually MC, but condition is real-world -->
			<templatecontentitem     row="17"  relationship="HAS PROPERTIES"  valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100900" csdConceptName="99RPH"  cmConceptName="PET Radionuclide Incubation Time"   cvUnits="min"    csdUnits="UCUM" cmUnits="min"/>          <!-- actually MC, but condition is real-world -->
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0005" name="RadPharmTimePointObservations" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="CONTAINS"  valueType="container"   vmmin="1" vmmax="n" requiredType="U"  cvConceptName="RP-100073" csdConceptName="99RPH"  cmConceptName="Time Point Observation">
			<templatecontentitem     row="2"  relationship="CONTAINS"  valueType="uidref"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100401" csdConceptName="99RPH"  cmConceptName="Observation UID"/>

			<templatecontentitem     row="3"  relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="UC" cvConceptName="RP-101019" csdConceptName="99RPH"  cmConceptName="Baseline fluid collection is present"  valueSetCID="RPH_7230" valueSetBDE="D"
											  condition="count(num) = 0
													 and count(code[concept/@cv = 'RP-101018' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101020' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101021' and concept/@csd = '99RPH']) = 0
													 and count(../code[concept/@cv = 'RP-100022' and concept/@csd = '99RPH' and value/@cv = 'R-0038D' and value/@csd = 'SRT']) = 1"
											  mbpo="F"/>	<!-- not codes for other rows or num and baseline is Yes -->

			<templatecontentitem     row="4"  relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="UC" cvConceptName="RP-101018" csdConceptName="99RPH"  cmConceptName="Pseudo-progression"  valueSetCID="RPH_7230" valueSetBDE="D"
											  condition="count(num) = 0
													 and count(code[concept/@cv = 'RP-101019' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101020' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101021' and concept/@csd = '99RPH']) = 0
													 and count(../code[concept/@cv = 'RP-100022' and concept/@csd = '99RPH' and value/@cv = 'R-00339' and value/@csd = 'SRT']) = 1"
											  mbpo="F"/>	<!-- not codes for other rows or num and baseline is No -->

			<templatecontentitem     row="5" relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="UC" cvConceptName="RP-101021" csdConceptName="99RPH"  cmConceptName="New fluid collection is present"  valueSetCID="RPH_7231" valueSetBDE="D"
											  condition="count(num) = 0
													 and count(code[concept/@cv = 'RP-101018' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101019' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101020' and concept/@csd = '99RPH']) = 0
													 and count(../code[concept/@cv = 'RP-100022' and concept/@csd = '99RPH' and value/@cv = 'R-00339' and value/@csd = 'SRT']) = 1"
											  mbpo="F"/>	<!-- not codes for other rows or num and baseline is No -->

			<templatecontentitem     row="6" relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="UC" cvConceptName="RP-101020" csdConceptName="99RPH"  cmConceptName="Baseline fluid collection has increased"  valueSetCID="RPH_7232" valueSetBDE="D"
											  condition="count(num) = 0
													 and count(code[concept/@cv = 'RP-101018' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101019' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101021' and concept/@csd = '99RPH']) = 0
													 and count(../code[concept/@cv = 'RP-100022' and concept/@csd = '99RPH' and value/@cv = 'R-00339' and value/@csd = 'SRT']) = 1"
											  mbpo="F"/>	<!-- not codes for other rows or num and baseline is No -->

			<templatecontentitem     row="7"  relationship="CONTAINS"  valueType="num"         vmmin="1" vmmax="1" requiredType="UC" conceptNameCID="RPH_7031" conceptNameBDE="D"      unitsCID="RPH_7032" unitsBDE="D"
											  condition="count(code[concept/@cv = 'RP-101018' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101019' and concept/@csd = '99RPH']) = 0
													 and count(code[concept/@cv = 'RP-101020' and concept/@csd = '99RPH']) = 0
												     and count(code[concept/@cv = 'RP-101021' and concept/@csd = '99RPH']) = 0"
											  mbpo="F"/>
											  
			<templatecontentitem     row="8"  relationship="CONTAINS"  valueType="text"        vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<includetemplate         row="9"  tid="RPH_0020" requiredType="M">
				<parameter name="ChangeReasons"   value="RPH_7014"/>	<!-- Time Point Change Reasons -->
				<parameter name="AdditionReasons" value="RPH_7014c"/>	<!-- Time Point Observation Addition Reasons -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0005b" name="RadPharmAdjudicationObservations" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="CONTAINS"  valueType="container"   vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-100280" csdConceptName="99RPH"  cmConceptName="Adjudication Observation"
												condition="count(//code[concept/@cv = 'RP-100212' and concept/@csd = '99RPH' and value/@cv = 'RP-100214' and value/@csd = '99RPH']) &gt; 0" mbpo="F">
												<!-- EV (RP-100212, 99RPH, "Worklist Task Level") in TID RPH_0003 is (RP-100214, 99RPH, "Perform Comparision") -->
			<templatecontentitem     row="2"  relationship="CONTAINS"  valueType="uidref"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100401" csdConceptName="99RPH"  cmConceptName="Observation UID"/>
			<templatecontentitem	 row="3"  relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121011" csdConceptName="DCM" cmConceptName="Person Observer's Role in this Procedure" valueSetCID="RPH_7001b" valueSetBDE="D"/>
			<templatecontentitem	 row="4"  relationship="CONTAINS"  valueType="container"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100281" csdConceptName="99RPH"  cmConceptName="Observers Accepted"> <!-- MC on being an accepted observer; real-world -->
				<templatecontentitem row="5"  relationship="CONTAINS"  valueType="text"        vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100007" csdConceptName="99RPH"  cmConceptName="Identifier within Person Observer's Role"/>
			</templatecontentitem>
			<templatecontentitem	 row="6"  relationship="CONTAINS"  valueType="container"   vmmin="1" vmmax="n" requiredType="M"  cvConceptName="RP-100282" csdConceptName="99RPH"  cmConceptName="Observers Rejected">
				<templatecontentitem row="7"  relationship="CONTAINS"  valueType="text"        vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100007" csdConceptName="99RPH"  cmConceptName="Identifier within Person Observer's Role"/>
			</templatecontentitem>
			<templatecontentitem	 row="8"  relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-100283" csdConceptName="99RPH"  cmConceptName="Reason for Choice" valueSetCID="RPH_7050a" valueSetBDE="D"
												condition="count(code[concept/@cv = 'RP-100286' and concept/@csd = '99RPH' and value/@cv = 'R-00339' and value/@csd = 'SRT']) &gt; 0
													   and count(code[concept/@cv = 'RP-100284' and concept/@csd = '99RPH' and
																(value/@cv = 'RP-100290' or value/@cv = 'RP-100292' or value/@cv = 'RP-100294' or value/@cv = 'RP-100296' or value/@cv = 'RP-100298' or value/@cv = 'RP-100300' or value/@cv = 'RP-100305' or value/@cv = 'RP-100307' or value/@cv = 'RP-100309')
																and value/@csd = '99RPH']) &gt; 0" mbpo="F"/>
												<!-- Required if Row 8b (RP-100286, 99RPH, "Image Quality Issues Contribute to Discordance") is (R-00339, SRT, "No") and Row 8a RP-100284, "Reason for Discordance") value is not justifiable. -->
			<templatecontentitem	 row="8a" relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100284" csdConceptName="99RPH"  cmConceptName="Reason for Discordance" valueSetCID="RPH_7050b" valueSetBDE="D"/>
			<templatecontentitem	 row="8b" relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100286" csdConceptName="99RPH"  cmConceptName="Image Quality Issues Contribute to Discordance" valueSetCID="RPH_7230" valueSetBDE="D"/>
			<templatecontentitem     row="9"  relationship="CONTAINS"  valueType="text"        vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<templatecontentitem	 row="10" relationship="CONTAINS"  valueType="code"        vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100277" csdConceptName="99RPH"  cmConceptName="Observation Scope" valueSetCID="RPH_7052" valueSetBDE="D"/>
			<includetemplate         row="15" tid="RPH_0020" requiredType="M">
				<parameter name="ChangeReasons"   value="RPH_7014a"/>	<!-- Adjudication Change Reasons -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0006" name="RadPharmTimePointLesionObservations" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="CONTAINS"        valueType="container" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="RP-100025" csdConceptName="99RPH"  cmConceptName="Lesion">
			<templatecontentitem         row="2"  relationship="CONTAINS"        valueType="uidref"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="112040" csdConceptName="DCM" cmConceptName="Tracking Unique Identifier"/>
			<templatecontentitem         row="3"  relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100320" csdConceptName="99RPH"  cmConceptName="Calibration" valueSetCID="RPH_7230" valueSetBDE="D"/>
			<templatecontentitem         row="4"  relationship="CONTAINS"        valueType="uidref"    vmmin="1" vmmax="n" requiredType="U"  cvConceptName="RP-100028" csdConceptName="99RPH"  cmConceptName="Predecessor Lesion Tracking Unique Identifier"/>                <!-- actually MC, but condition is real-world -->
			<verify test="count(uidref[concept/@cv = 'RP-100028' and concept/@csd = '99RPH']) &gt; 0
			          and count(code[concept/@cv = 'RP-100320' and concept/@csd = '99RPH' and value/@cv = 'R-0038D' and value/@csd = 'SRT']) &gt; 0"
					status="Error" message="Predecessor Lesion Tracking Unique Identifier not permitted when Calibration == Yes"/>
			<templatecontentitem         row="5"  relationship="CONTAINS"        valueType="text"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<includetemplate             row="7"  tid="RPH_0007" requiredType="M"/> <!-- 1 MC conditional;	Required if Row 11 (RP-100042, 99RPH, "Unable to evaluate lesion") is (R-00339,SRT, "No"). mbpo="T" -->
			<!-- <includetemplate        row="8"  tid="RPH_0007"/> 1-n UC conditional; Shall be present otherwise only if Row 11 (RP-100042, 99RPH, "Unable to evaluate lesion") is (R-00339,SRT, "No") and Row 3 RP-100320, 99RPH, "Calibration") is (R-00339,SRT, "No"). -->
			<!-- only include once, and verify other conditions -->
			<templatecontentitem         row="9"  relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RID11510"  csdConceptName="RADLEX" cmConceptName="Therapeutic Response"      valueSetCID="RPH_7010" valueSetBDE="D"/>  <!-- actually MC, but condition is hard :( ; also if PET use CID RPH_7010b instead -->
			<templatecontentitem         row="9b" relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100901" csdConceptName="99RPH"  cmConceptName="Qualitative Assessment"    valueSetCID="RPH_7010c" valueSetBDE="D"/>
			<templatecontentitem         row="11" relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="n" requiredType="MC" cvConceptName="RP-100042" csdConceptName="99RPH" cmConceptName="Unable to evaluate lesion"  valueSetCID="RPH_7230" valueSetBDE="D"
												  condition="count(code[concept/@cv = 'RP-100320' and concept/@csd = '99RPH' and value/@cv = 'R-00339' and value/@csd = 'SRT']) &gt; 0" mbpo="F"/>
			<templatecontentitem		 row="12" relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-100043" csdConceptName="99RPH" cmConceptName="Reason unable to evaluate" valueSetCID="RPH_7011" valueSetBDE="D"
													condition="count(code[concept/@cv = 'RP-100042' and concept/@csd = '99RPH' and value/@cv = 'R-0038D' and value/@csd = 'SRT']) &gt; 0" mbpo="F"/>	<!-- Unable to evaluate lesion = yes -->
			<templatecontentitem         row="13" relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-100053" csdConceptName="99RPH" cmConceptName="Unable to measure lesion"  valueSetCID="RPH_7230" valueSetBDE="D"
													condition="count(../code[concept/@cv = 'RP-100022' and concept/@csd = '99RPH' and value/@cv = 'R-00339' and value/@csd = 'SRT']) &gt; 0
														   and count(code[concept/@cv = 'RP-100042' and concept/@csd = '99RPH' and value/@cv = 'R-00339' and value/@csd = 'SRT']) &gt; 0
														   and count(code[concept/@cv = 'RP-100901' and concept/@csd = '99RPH']) = 0" mbpo="F"/>	<!-- Not baseline and not UE and no qualitative assessment; should check is not NT -->
													<!-- and Row 4 EV (RP-100026, 99RPH, “Lesion Type”) of RPH_0006b for the same Tracking Unique Identifier is NOT (RP-100030, 99RPH, “Non-target lesion”) -->
			
			<templatecontentitem		 row="14" relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-100054" csdConceptName="99RPH" cmConceptName="Reason unable to measure" valueSetCID="RPH_7012b" valueSetBDE="D"
													condition="count(code[concept/@cv = 'RP-100053' and concept/@csd = '99RPH' and value/@cv = 'R-0038D' and value/@csd = 'SRT']) &gt; 0
													       and count(code[concept/@cv = 'RP-100285' and concept/@csd = '99RPH' and value/@cv = 'R-0038D' and value/@csd = 'SRT']) = 0" mbpo="F"/>	<!-- Unable to measure lesion = yes and Unequivocal Progression != yes -->
										<!-- should use RPH_7012 instead of RPH_7012b values for target not new lesions; too hard to get lesion type to verify :( -->
		<templatecontentitem         row="14b" relationship="CONTAINS"       valueType="code"      vmmin="1" vmmax="1" requiredType="U" cvConceptName="RP-100285" csdConceptName="99RPH"  cmConceptName="Unequivocal Progression" valueSetCID="RPH_7230" valueSetBDE="D"/>  <!-- actually UC, but condition is hard :( -->
			<includetemplate             row="15" tid="RPH_0020" requiredType="M">
				<parameter name="ChangeReasons"   value="RPH_7013"/>	<!-- Lesion Change Reasons --> <!-- should use instead RPH_7013c Calibration Change Reasons, if Row 3 (RP-100320, 99RPH, "Calibration") is (R-0038D,SRT, "Yes") -->
				<parameter name="AdditionReasons" value="RPH_7013b"/>	<!-- Lesion Addition Reasons -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0006b" name="RadPharmGeneralLesionObservations" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="CONTAINS"        valueType="container" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="RP-100025" csdConceptName="99RPH" cmConceptName="Lesion">
			<templatecontentitem     row="2"  relationship="CONTAINS"        valueType="uidref"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="112040" csdConceptName="DCM" cmConceptName="Tracking Unique Identifier"/>
			<templatecontentitem     row="3"  relationship="CONTAINS"        valueType="text"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="112039" csdConceptName="DCM" cmConceptName="Tracking Identifier"/>
			<templatecontentitem     row="4"  relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100026" csdConceptName="99RPH" cmConceptName="Lesion Type"  valueSetCID="RPH_7004" valueSetBDE="D"/>
			<templatecontentitem     row="5b" relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100036" csdConceptName="99RPH" cmConceptName="Reconstruction Interval Unknown, Sufficient To Select Lesion"  valueSetCID="RPH_7230" valueSetBDE="D"/>  <!-- actually MC, but condition (Required if target lesion and RI is unknown.) is hard :( -->
			<templatecontentitem     row="6"  relationship="CONTAINS"        valueType="code"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="363698007" csdConceptName="SCT" cvAltConceptName="G-C0E3" csdAltConceptName="SRT" cmConceptName="Finding Site" valueSetCID="RPH_7006" valueSetBDE="D"
												condition="count(code[concept/@cv = 'RP-100026' and concept/@csd = '99RPH' and value/@cv = 'RP-100320' and value/@csd = '99RPH']) = 0" mbpo="F"/> <!-- Lesion Type is not Calibration -->
			<templatecontentitem	 row="6b" relationship="CONTAINS"		 valueType="code"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality"      valueSetBDE="D"
												condition="count(code[concept/@cv = 'RP-100026' and concept/@csd = '99RPH' and value/@cv = 'RP-100320' and value/@csd = '99RPH']) = 0" mbpo="F"/> <!-- Lesion Type is not Calibration -->
			<templatecontentitem	 row="6c" relationship="CONTAINS"		 valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="263648007" csdConceptName="SCT" cvAltConceptName="G-C2CE" csdAltConceptName="SRT" cmConceptName="Multiplicity" valueSetCID="RPH_7702" valueSetBDE="D"/>  <!-- actually MC, but condition (is lymph node site) is hard :( -->
			<includetemplate         row="10" tid="RPH_0020" requiredType="M">
				<parameter name="ChangeReasons"   value="RPH_7013"/>	<!-- Lesion Change Reasons -->
				<parameter name="AdditionReasons" value="RPH_7013b"/>	<!-- Lesion Addition Reasons -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0007" name="RadPharmMeasurementObjects" root="F" extensible="T">

		<templatecontentitem             row="1"  relationship="CONTAINS"         valueType="container"   vmmin="1" vmmax="n" requiredType="M"  cvConceptName="RP-100502" csdConceptName="99RPH"  cmConceptName="Measurement Object">         <!-- is really  vm=1, not vm=1-n, but this simplifies single rather than double inclusion from TID RPH_0006 -->
			<templatecontentitem         row="1a" relationship="CONTAINS"         valueType="uidref"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100403" csdConceptName="99RPH"  cmConceptName="Measurement Object UID"/>
			<templatecontentitem         row="1b" relationship="CONTAINS"         valueType="composite"   vmmin="1" vmmax="n" requiredType="U"  cvConceptName="RP-100700" csdConceptName="99RPH"  cmConceptName="Registration Used">         <!-- actually MC, but condition is real-world -->
				<templatecontentitem     row="1c" relationship="HAS OBS CONTEXT"  valueType="text"        vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100926" csdConceptName="99RPH"  cmConceptName="Algorithm UID"/>            <!-- actually MC, but condition is real-world -->
			</templatecontentitem>
			<templatecontentitem         row="2b" relationship="CONTAINS"         valueType="code"        vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="121139" csdConceptName="DCM" cmConceptName="Modality" valueSetCID="29" valueSetBDE="D"
										 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH']) &gt; 0
												and count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100111' and value/@csd = '99RPH']) = 0" mbpo="F"/>

			<templatecontentitem         row="2c" relationship="CONTAINS"         valueType="date"        vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-100600" csdConceptName="99RPH"  cmConceptName="Acquisition Date"
										 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH']) &gt; 0
												and count(code[concept/@cv = 'RP-100601' and concept/@csd = '99RPH']) = 0" mbpo="F"/>
			<templatecontentitem         row="2d" relationship="CONTAINS"         valueType="text"        vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-100601" csdConceptName="99RPH"  cmConceptName="Acquisition Date Alias"
										 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH']) &gt; 0
												and count(date[concept/@cv = 'RP-100600' and concept/@csd = '99RPH']) = 0" mbpo="F"/>
			
			<templatecontentitem         row="3"  relationship="CONTAINS"         valueType="code"        vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-100503" csdConceptName="99RPH"  cmConceptName="Measurement Object Type" valueSetCID="RPH_7601" valueSetBDE="D"
										 condition="count(../code[concept/@cv = 'RP-100042' and concept/@csd = '99RPH' and value/@cv = 'R-0038D' and value/@csd = 'SRT']) = 0
												and count(../code[concept/@cv = 'RP-100053' and concept/@csd = '99RPH' and value/@cv = 'R-0038D' and value/@csd = 'SRT']) = 0" mbpo="F"/>	<!-- Not UE or UTM  -->
			<!-- should verify constraint to Line Segment only if Calibration  -->
			<includetemplate             row="4"  tid="RPH_0007a"/>  <!-- 1 MC conditional; $MeasurementType = Row 3 value -->
			<includetemplate             row="5"  tid="RPH_0007b"/>  <!-- 1 MC conditional;	$RegionType = Row 3 value -->
			<includetemplate             row="6"  tid="RPH_0007c"/>  <!-- 1 MC conditional;	-->
			<includetemplate             row="7"  tid="RPH_0007d"/>  <!-- 1 MC conditional;	-->
			<templatecontentitem	     row="8"  relationship="CONTAINS"         valueType="code"          vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100150" csdConceptName="99RPH"  cmConceptName="Discarded" valueSetCID="RPH_7230" valueSetBDE="D"/>
			<templatecontentitem         row="9"  relationship="HAS OBS CONTEXT"  valueType="datetime"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100920" csdConceptName="99RPH"  cmConceptName="Observation Creation DateTime"/>		
			<templatecontentitem         row="9a" relationship="HAS OBS CONTEXT"  valueType="TEXT"          vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100006" csdConceptName="99RPH"  cmConceptName="Person Observer's Login Name"/>
			<templatecontentitem         row="10" relationship="HAS OBS CONTEXT"  valueType="datetime"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100921" csdConceptName="99RPH"  cmConceptName="Observation Modification DateTime"/>				<!-- actually MC Required if measurement object has been modified, but condition is real-world -->
			<templatecontentitem         row="10a" relationship="HAS OBS CONTEXT" valueType="TEXT"          vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100012" csdConceptName="99RPH"  cmConceptName="Last Modifying Person Observer's Login Name"/>   <!-- actually MC Required if measurement object has been modified, but condition is real-world -->

			<templatecontentitem         row="11" relationship="CONTAINS"         valueType="num"			vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-100140" csdConceptName="99RPH"  cmConceptName="Product of Short and Long Axes"            unitsCID="PMP_RPH_0007ROW11" unitsBDE="D"
										 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and (value/@cv = 'RP-100104' or value/@cv = 'RP-100106') and value/@csd = '99RPH']) &gt; 0" mbpo="F"/>	<!-- if bi- or tri-orthogonal  -->
			<templatecontentitem         row="12" relationship="CONTAINS"         valueType="num"			vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-100141" csdConceptName="99RPH"  cmConceptName="Product of Short and Long and Normal Axes" unitsCID="PMP_RPH_0007ROW12" unitsBDE="D"
										 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100106' and value/@csd = '99RPH']) &gt; 0" mbpo="F"/>	<!-- if tri-orthogonal  -->

		</templatecontentitem>
	</definetemplate>

			
	<definetemplate tid="RPH_0007a" name="RadPharmSimpleMeasurements" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="CONTAINS"        valueType="container" vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="RP-101002" csdConceptName="99RPH" cmConceptName="Simple Measurement"
		                                 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100103' and value/@csd = '99RPH']) &gt; 0
										         or count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100104' and value/@csd = '99RPH']) &gt; 0
												 or count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100105' and value/@csd = '99RPH']) &gt; 0"  mbpo="F">    <!-- is actually M, not MC, but emulate conditional inclusion -->

			<templatecontentitem         row="2"  relationship="CONTAINS"        valueType="num"        vmmin="1" vmmax="1" requiredType="MC" conceptNameCID="RPH_7017" conceptNameBDE="D" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"
		                                 condition="count(../code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100103' and value/@csd = '99RPH']) &gt; 0"  mbpo="T">    <!-- mbpo is in case is really Row 5 or 8 -->
				<templatecontentitem     row="3"  relationship="INFERRED FROM"   valueType="scoord"     vmmin="1" vmmax="1" requiredType="M" cvConceptName="121112" csdConceptName="DCM" cmConceptName="Source of Measurement" graphicType="POLYLINE" numpointsmin="2" numpointsmax="2">
					<templatecontentitem row="4"  relationship="SELECTED FROM"   valueType="image"      vmmin="1" vmmax="1" requiredType="M"/>
				</templatecontentitem>
			</templatecontentitem>

			<templatecontentitem         row="5"  relationship="CONTAINS"        valueType="num"        vmmin="1" vmmax="1" requiredType="MC" cvConceptName="103339001" csdConceptName="SCT" cvAltConceptName="G-A185" csdAltConceptName="SRT" cmConceptName="Long Axis" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"
		                                 condition="count(../code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100104' and value/@csd = '99RPH']) &gt; 0"  mbpo="T">    <!-- mbpo is in case is really Row 2 -->
				<templatecontentitem     row="6"  relationship="INFERRED FROM"   valueType="scoord"     vmmin="1" vmmax="1" requiredType="M" cvConceptName="121112" csdConceptName="DCM" cmConceptName="Source of Measurement" graphicType="POLYLINE" numpointsmin="2" numpointsmax="2">
					<templatecontentitem row="7"  relationship="SELECTED FROM"   valueType="image"      vmmin="1" vmmax="1" requiredType="M"/>		
				</templatecontentitem>
			</templatecontentitem>
			
			<templatecontentitem         row="8"  relationship="CONTAINS"        valueType="num"        vmmin="1" vmmax="1" requiredType="MC" cvConceptName="103340004" csdConceptName="SCT" cvAltConceptName="G-A186" csdAltConceptName="SRT" cmConceptName="Short Axis" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"
		                                 condition="count(../code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100104' and value/@csd = '99RPH']) &gt; 0"  mbpo="T">    <!-- mbpo is in case is really Row 2 -->
				<templatecontentitem     row="9"  relationship="INFERRED FROM"   valueType="scoord"     vmmin="1" vmmax="1" requiredType="M" cvConceptName="121112" csdConceptName="DCM" cmConceptName="Source of Measurement" graphicType="POLYLINE" numpointsmin="2" numpointsmax="2">
					<templatecontentitem row="10" relationship="SELECTED FROM"   valueType="image"      vmmin="1" vmmax="1" requiredType="M"/>		
				</templatecontentitem>
			</templatecontentitem>

			<templatecontentitem         row="11" relationship="CONTAINS"        valueType="num"        vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-100105" csdConceptName="99RPH" cmConceptName="Angle" cvUnits="deg" csdUnits="UCUM" cmUnits="degrees"
		                                 condition="count(../code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100105' and value/@csd = '99RPH']) &gt; 0"  mbpo="F">
				<templatecontentitem     row="12" relationship="INFERRED FROM"   valueType="scoord"     vmmin="2" vmmax="2" requiredType="M" cvConceptName="RP-100120" csdConceptName="99RPH" cmConceptName="Angle Line Segment" graphicType="MULTIPOINT" numpointsmin="2" numpointsmax="2">
					<templatecontentitem row="13" relationship="SELECTED FROM"   valueType="image"      vmmin="1" vmmax="1" requiredType="M"/>		
				</templatecontentitem>
			</templatecontentitem>

			<templatecontentitem         row="14" relationship="HAS OBS CONTEXT" valueType="code"      vmmin="1" vmmax="1" requiredType="M"   cvConceptName="RP-101012" csdConceptName="99RPH"  cmConceptName="Automation" valueSetCID="RPH_7041" valueSetBDE="D"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0007b" name="RadPharmSubRegionsAndMeasurements" root="F" extensible="T">
		<templatecontentitem             row="1a" relationship="CONTAINS"        valueType="container"   vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-101003" csdConceptName="99RPH" cmConceptName="Image Region"
		                                 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = '111041' and value/@csd = 'DCM']) &gt; 0
												 or count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'G-D705' and value/@csd = 'SRT']) &gt; 0"  mbpo="F">    <!-- is actually M, not MC, but emulate conditional inclusion -->
			<templatecontentitem         row="1b" relationship="CONTAINS"        valueType="container"   vmmin="1" vmmax="n" requiredType="M"  cvConceptName="RP-100102" csdConceptName="99RPH" cmConceptName="Image Sub-region">		
				<templatecontentitem     row="2"  relationship="CONTAINS"        valueType="code"        vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100034" csdConceptName="99RPH" cmConceptName="Include Flag" valueSetCID="RPH_7230" valueSetBDE="D"/>
				<templatecontentitem     row="3"  relationship="CONTAINS"        valueType="code"        vmmin="1" vmmax="1" requiredType="M"  cvConceptName="122554" csdConceptName="DCM" cmConceptName="Segmentation Method" valueSetCID="RPH_7040" valueSetBDE="D">
					<templatecontentitem row="3a" relationship="HAS OBS CONTEXT" valueType="text"        vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-100926" csdConceptName="99RPH" cmConceptName="Algorithm UID"
					                     condition="count(code[concept/@cv = '122554' and concept/@csd = 'DCM' and value/@cv = 'G-D221' and value/@csd = 'SRT']) &gt; 0"  mbpo="F"/>
				</templatecontentitem>
				<templatecontentitem     row="4"  relationship="CONTAINS"        valueType="scoord"      vmmin="1" vmmax="n" requiredType="MC" cvConceptName="111041" csdConceptName="DCM" cmConceptName="Outline" graphicType="ELLIPSE_OR_POLYLINE" numpointsmin="4" numpointsmax="n"
		                                 condition="count(../../code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = '111041' and value/@csd = 'DCM']) &gt; 0"  mbpo="F">
					<templatecontentitem row="4a" relationship="HAS CONCEPT MOD" valueType="code"        vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100899" csdConceptName="99RPH" cmConceptName="Closed Curve Type"   valueSetCID="RPH_7070" valueSetBDE="D"/>   <!-- actually MC, but condition is real-world; should verify mutual exclusivity :( -->
					<templatecontentitem row="4b" relationship="HAS CONCEPT MOD" valueType="code"        vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100897" csdConceptName="99RPH" cmConceptName="Closed Polygon Type" valueSetCID="RPH_7071" valueSetBDE="D"/>   <!-- actually MC, but condition is real-world; should verify mutual exclusivity :( -->
					<templatecontentitem row="5"  relationship="SELECTED FROM"   valueType="image"       vmmin="1" vmmax="1" requiredType="M"/>		
				</templatecontentitem>
				<templatecontentitem     row="6"  relationship="CONTAINS"        valueType="image"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-100100" csdConceptName="99RPH" cmConceptName="Region Raster"
					                     condition="count(../../code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'G-D705' and value/@csd = 'SRT']) &gt; 0"  mbpo="F"/>
			    <includetemplate         row="7" tid="RPH_0009"/>  <!-- 1 U -->
			</templatecontentitem>
			<includetemplate             row="8" tid="RPH_0009"/>  <!-- 1 M -->
			<templatecontentitem         row="9"  relationship="CONTAINS"        valueType="code"        vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100503" csdConceptName="99RPH" cmConceptName="Measurement Object Type" cvValue="RP-100104" csdValue="99RPH" cmValue="Biorthogonal Line Segments"/>
			<includetemplate             row="10" tid="RPH_0007a"/>  <!-- 1 MC conditional;	Required if Row 9 is present	$MeasurementType = Row 9 value -->
			<verify test="count(container[concept/@cv = 'RP-101002' and concept/@csd = '99RPH']/code[concept/@cv = 'RP101012' and concept/@csd = '99RPH' and value/@cv = 'G-D231' and value/@csd = 'SRT']) &gt; 0"
					status="Error" message="Row 10 Automation is required to be present and have a value of Automated"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0007c" name="RadPharmTextAnnotation" root="F" extensible="T">
		<templatecontentitem             row="1a" relationship="CONTAINS"      valueType="container" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-100106" csdConceptName="99RPH" cmConceptName="Text Annotation"
		                                 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100106' and value/@csd = '99RPH']) &gt; 0"  mbpo="F">    <!-- is actually M, not MC, but emulate conditional inclusion -->
			<templatecontentitem         row="1b" relationship="CONTAINS"      valueType="scoord" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="MULTIPOINT" numpointsmin="2" numpointsmax="2">
				<templatecontentitem     row="2"  relationship="SELECTED FROM" valueType="image"  vmmin="1" vmmax="1" requiredType="M"/>		
			</templatecontentitem>
			<templatecontentitem         row="3"  relationship="CONTAINS"      valueType="text"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100106" csdConceptName="99RPH" cmConceptName="Text Annotation"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0007d" name="RadPharmMeasurementsDerivedFromOtherMeasurements" root="F" extensible="T">
		<templatecontentitem             row="1a" relationship="CONTAINS"      valueType="container" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="RP-101004" csdConceptName="99RPH" cmConceptName="Derived Measurement"
		                                 condition="count(code[concept/@cv = 'RP-100503' and concept/@csd = '99RPH' and value/@cv = 'RP-100111' and value/@csd = '99RPH']) &gt; 0"  mbpo="F">    <!-- is actually M, not MC, but emulate conditional inclusion -->
			<templatecontentitem         row="1b" relationship="CONTAINS"      valueType="num"       vmmin="1" vmmax="1" requiredType="M">    <!-- 	DCID RPH_7022 Measurements Derived From Other Measurements -->
				<templatecontentitem     row="2"  relationship="INFERRED FROM" valueType="uidref"    vmmin="2" vmmax="n" requiredType="M" cvConceptName="RP-100112" csdConceptName="99RPH" cmConceptName="Source Measurement Object UID"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0009" name="RadPharmRegionMeasurements" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="CONTAINS"        valueType="num"       vmmin="1" vmmax="n" requiredType="U"/>   <!--  DCID RPH_7018 (Region Linear Measurements) ;  cvUnits="mm" csdUnits="UCUM" cmUnits="mm" -->
		<templatecontentitem         row="2"  relationship="CONTAINS"        valueType="num"       vmmin="1" vmmax="n" requiredType="U">    <!--  DCID RPH_7019 (Region Area Measurements)   ;  cvUnits="mm2" csdUnits="UCUM" cmUnits="mm2" -->
		<!-- verify May only be present if $RegionType is (111041, DCM, "Outline") :( -->
			<templatecontentitem     row="3"  relationship="HAS CONCEPT MOD" valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7473" valueSetBDE="D"/>
		</templatecontentitem>
		<templatecontentitem         row="4"  relationship="CONTAINS"        valueType="num"       vmmin="1" vmmax="n" requiredType="U">    <!--  DCID RPH_7020 (Region Volume Measurements) ;  cvUnits="mm3" csdUnits="UCUM" cmUnits="mm3" -->
		<!-- verify May only be present if $RegionType is (111041, DCM, "Outline") or (G-D705, SRT, "Volume") :( -->
			<templatecontentitem     row="5"  relationship="HAS CONCEPT MOD" valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7474" valueSetBDE="D"/>
		</templatecontentitem>
		<templatecontentitem         row="6"  relationship="CONTAINS"        valueType="num"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100410" csdConceptName="99RPH" cmConceptName="Pixel Count"/> <!--  cvUnits="{count}" csdUnits="UCUM" cmUnits="count" -->
		<templatecontentitem         row="7"  relationship="CONTAINS"        valueType="num"       vmmin="1" vmmax="n" requiredType="U">   <!--  DCID RPH_7021 (Region Pixel Value Measurements); Units depend on measurement and are defined in DCID RPH_7021 -->
			<templatecontentitem     row="8"  relationship="HAS CONCEPT MOD" valueType="code"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121401" csdConceptName="DCM" cmConceptName="Derivation" valueSetCID="RPH_7030" valueSetBDE="D"
									 condition="count(num[concept/@cv = '121401' and concept/@csd = 'DCM']) &gt; 0"  mbpo="T"/>    <!-- is actually M, not MC, but may be triggered from other rows in this template -->
			<templatecontentitem     row="9"  relationship="HAS CONCEPT MOD" valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7473_7474" valueSetBDE="D"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0010" name="RadPharmClinicalTrialResultsImageLibraryEntry" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="CONTAINS"        valueType="image"  vmmin="1" vmmax="n" requiredType="M">	<!-- actually vmmax in document is 1, but 1-n multiplicity from inclusion propagated here -->
			<templatecontentitem     row="2"  relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111026" csdConceptName="DCM" cmConceptName="Horizontal Pixel Spacing" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter">
				<templatecontentitem row="2a" relationship="HAS PROPERTIES"  valueType="uidref" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100403" csdConceptName="99RPH"  cmConceptName="Measurement Object UID"/>
			</templatecontentitem>
			<templatecontentitem     row="3"  relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111066" csdConceptName="DCM" cmConceptName="Vertical Pixel Spacing" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter">
				<templatecontentitem row="3a" relationship="HAS PROPERTIES"  valueType="uidref" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100403" csdConceptName="99RPH"  cmConceptName="Measurement Object UID"/>
			</templatecontentitem>
			<templatecontentitem     row="4"  relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RID12405"  csdConceptName="RADLEX" cmConceptName="Reconstruction Interval" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
			<templatecontentitem     row="5"  relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RID12636"  csdConceptName="RADLEX" cmConceptName="Slice Thickness" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
			<templatecontentitem     row="6"  relationship="HAS ACQ CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100881" csdConceptName="99RPH"	cmConceptName="Message Digest">
				<templatecontentitem row="7"  relationship="HAS PROPERTIES"  valueType="code"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100882" csdConceptName="99RPH"  cmConceptName="Message Digest Algorithm" valueSetCID="RPH_7060" valueSetBDE="D"/>
				<templatecontentitem row="8"  relationship="HAS PROPERTIES"  valueType="code"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100886" csdConceptName="99RPH"  cmConceptName="Message Digest Scope" cvValue="RP-100887" csdValue="99RPH" cmValue="Entire file"/>
			</templatecontentitem>
			<templatecontentitem     row="9"  relationship="HAS ACQ CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-101090" csdConceptName="99RPH"  cmConceptName="Input URL"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="RPH_0020" name="RadPharmAuditTrailEntry" root="F" extensible="T">
		<parameters>
			<parameter name="ChangeReasons"/>
			<parameter name="AdditionReasons"/>
		</parameters>

		<templatecontentitem         row="1"  relationship="HAS OBS CONTEXT" valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100090" csdConceptName="99RPH" cmConceptName="Completed" valueSetCID="RPH_7230" valueSetBDE="D"/>
		<templatecontentitem         row="2a" relationship="CONTAINS"        valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-101010" csdConceptName="99RPH" cmConceptName="Creation Information">		
			<templatecontentitem     row="2b" relationship="HAS OBS CONTEXT" valueType="datetime"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100920" csdConceptName="99RPH" cmConceptName="Observation Creation DateTime"/>		
			<templatecontentitem     row="3"  relationship="HAS OBS CONTEXT" valueType="text"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100006" csdConceptName="99RPH" cmConceptName="Person Observer's Login Name"/>	
			<templatecontentitem     row="4"  relationship="HAS OBS CONTEXT" valueType="uidref"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100082" csdConceptName="99RPH" cmConceptName="Worklist Sub-task UID"/>
		</templatecontentitem>
		<templatecontentitem         row="5a" relationship="CONTAINS"        valueType="container" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="RP-101011" csdConceptName="99RPH" cmConceptName="Modification Information">	<!-- actually MC, but condition is real-world -->
			<templatecontentitem     row="5b" relationship="HAS OBS CONTEXT" valueType="datetime"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100921" csdConceptName="99RPH" cmConceptName="Observation Modification DateTime"/>
			<templatecontentitem     row="6"  relationship="HAS OBS CONTEXT" valueType="text"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100006" csdConceptName="99RPH" cmConceptName="Person Observer's Login Name"/>
			<templatecontentitem     row="7"  relationship="HAS OBS CONTEXT" valueType="uidref"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100082" csdConceptName="99RPH" cmConceptName="Worklist Sub-task UID"/>
			<templatecontentitem     row="8"  relationship="HAS OBS CONTEXT" valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100058" csdConceptName="99RPH" cmConceptName="Edit Reason">		<!-- DCID $ChangeReasons-->
				<templatecontentitem row="9"  relationship="HAS OBS CONTEXT" valueType="text"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100923" csdConceptName="99RPH" cmConceptName="Edit Comment"/>		
			</templatecontentitem>
		</templatecontentitem>
		<templatecontentitem         row="10"  relationship="HAS OBS CONTEXT" valueType="code"     vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100922" csdConceptName="99RPH" cmConceptName="Additional Observation" cvValue="R-0038D" csdValue="SRT" cmValue="Yes">	<!-- actually MC, but condition is real-world -->
			<templatecontentitem     row="10b" relationship="HAS OBS CONTEXT" valueType="datetime" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-101014" csdConceptName="99RPH" cmConceptName="Observation Addition DateTime"/>
			<templatecontentitem     row="11"  relationship="HAS OBS CONTEXT" valueType="text"     vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100006" csdConceptName="99RPH" cmConceptName="Person Observer's Login Name"/>	
			<templatecontentitem     row="12"  relationship="HAS OBS CONTEXT" valueType="uidref"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100082" csdConceptName="99RPH" cmConceptName="Worklist Sub-task UID"/>
			<templatecontentitem     row="13"  relationship="HAS OBS CONTEXT" valueType="code"     vmmin="1" vmmax="1" requiredType="M"  cvConceptName="RP-100058" csdConceptName="99RPH" cmConceptName="Edit Reason">		<!-- DCID $AdditionReasons-->
				<templatecontentitem row="14"  relationship="HAS OBS CONTEXT" valueType="text"     vmmin="1" vmmax="1" requiredType="U"  cvConceptName="RP-100923" csdConceptName="99RPH" cmConceptName="Edit Comment"/>	
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>

    <definetemplate tid="300" name="Measurement" root="F" extensible="T" ordersignificant="T">
        <templatecontentitem				row="1" relationship="" valueType="NUM" vmmin="1" vmmax="1" requiredType="M">
    		<templatecontentitem			row="2" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" />
    		<templatecontentitem			row="3" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" />
    		<templatecontentitem			row="4" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121401" csdConceptName="DCM" cmConceptName="Derivation" />
    		<templatecontentitem			row="5" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="363698007" csdConceptName="SCT" cvAltConceptName="G-C0E3" csdAltConceptName="SRT" cmConceptName="Finding Site">
    			<templatecontentitem		row="6" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="244" valueSetBDE="D" />
    			<templatecontentitem		row="7" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="106233006" csdConceptName="SCT" cvAltConceptName="G-A1F8" csdAltConceptName="SRT" cmConceptName="Topographical modifier" />
    		</templatecontentitem>
    		<includetemplate				row="8" tid="310" relationship="HAS PROPERTIES" vmmin="1" vmmax="1" requiredType="U" />
    		<!--$RefAuthority = $RefAuthority, $RangeAuthority = $RangeAuthority-->
    		<templatecontentitem			row="9" relationship="INFERRED FROM" valueType="NUM" vmmin="1" vmmax="n" requiredType="U"/> <!-- Actually UC, but cannot check relationship by value versus reference yet - XOR Row 10 :( -->
    		<templatecontentitem			row="10" relationship="R-INFERRED FROM" valueType="NUM" vmmin="1" vmmax="n" requiredType="U"/> <!-- Actually UC, but cannot check relationship by value versus reference yet - XOR Row 9 :( -->
			<includetemplate				row="11" tid="315" relationship="INFERRED FROM" vmmin="1" vmmax="1" requiredType="UC"
											condition="count(code[concept/@cv='121420' and concept/@csd='DCM']) &gt; 0
													or count(code[concept/@cv='121421' and concept/@csd='DCM']) &gt; 0
													or count(code[concept/@cv='121424' and concept/@csd='DCM']) &gt; 0
													or count(code[concept/@cv='121422' and concept/@csd='DCM']) &gt; 0
													or count(code[concept/@cv='121423' and concept/@csd='DCM']) &gt; 0" mbpo="F"/>	<!-- use CID 228 values to detect it --> <!--$Equation = $Equation--> <!--XOR Row 12-->
			<templatecontentitem			row="12" relationship="INFERRED FROM" valueType="TEXT" vmmin="1" vmmax="1" requiredType="UC" conceptNameCID="228" conceptNameBDE="D"
											condition="count(text[concept/@cv='121420' and concept/@csd='DCM']) &gt; 0
													or count(text[concept/@cv='121421' and concept/@csd='DCM']) &gt; 0
													or count(text[concept/@cv='121424' and concept/@csd='DCM']) &gt; 0
													or count(text[concept/@cv='121422' and concept/@csd='DCM']) &gt; 0
													or count(text[concept/@cv='121423' and concept/@csd='DCM']) &gt; 0" mbpo="F"/>	<!--XOR Row 11-->
    		<includetemplate				row="13" tid="320" relationship="" vmmin="1" vmmax="n" requiredType="U" />
    		<!--$Purpose = $ImagePurpose-->
    		<includetemplate				row="14" tid="321" relationship="" vmmin="1" vmmax="n" requiredType="U" />
    		<!--$Purpose = $WavePurpose-->
    		<includetemplate				row="15" tid="1000" relationship="" vmmin="1" vmmax="1" requiredType="U" />
    		<templatecontentitem			row="16" relationship="HAS CONCEPT MOD" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121050" csdConceptName="DCM" cmConceptName="Equivalent Meaning of Concept Name" />
    		<includetemplate				row="17" tid="4108" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="U" />
    		<templatecontentitem			row="18" relationship="INFERRED FROM" valueType="COMPOSITE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126100" csdConceptName="DCM" cmConceptName="Real World Value Map used for measurement" />	<!-- CP 1388  -->
			<includetemplate				row="19" tid="4019HasConceptMod" vmmin="1" vmmax="1" requiredType="U" />
        </templatecontentitem>
    </definetemplate>

    <definetemplate tid="310" name="MeasurementProperties" root="F" extensible="T" ordersignificant="T">
        <templatecontentitem				row="1" relationship="" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121402" csdConceptName="DCM" cmConceptName="Normality" valueSetCID="222" valueSetBDE="D" />
        <includetemplate					row="2" tid="311" relationship="" vmmin="1" vmmax="1" requiredType="U" />
        <!--$RefAuthority = $RefAuthority-->
        <includetemplate					row="3" tid="312" relationship="" vmmin="1" vmmax="1" requiredType="U" />
        <!--$RangeAuthority = $RangeAuthority-->
        <templatecontentitem				row="4" relationship="" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121403" csdConceptName="DCM" cmConceptName="Level of Significance" valueSetCID="220" valueSetBDE="D" />
        <templatecontentitem				row="5" relationship="" valueType="NUM" vmmin="1" vmmax="n" requiredType="U" conceptNameCID="225" conceptNameBDE="D" />
        <templatecontentitem				row="6" relationship="" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121404" csdConceptName="DCM" cmConceptName="Selection Status" valueSetCID="224" valueSetBDE="D" />
    </definetemplate>

    <definetemplate tid="311" name="MeasurementStatisticalProperties" root="F" extensible="T" ordersignificant="T">
        <templatecontentitem				row="1" relationship="" valueType="NUM" vmmin="1" vmmax="n" requiredType="M" conceptNameCID="221" conceptNameBDE="D" />
        <templatecontentitem				row="2" relationship="" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121405" csdConceptName="DCM" cmConceptName="Population description" />
        <templatecontentitem				row="3" relationship="" valueType="TEXT" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121406" csdConceptName="DCM" cmConceptName="Reference Authority"
											condition="count(code[concept/@cv='121406' and concept/@csd='DCM']) = 0" mbpo="F"/>	<!--XOR row 4-->
        <templatecontentitem				row="4" relationship="" valueType="CODE" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121406" csdConceptName="DCM" cmConceptName="Reference Authority"
											condition="count(text[concept/@cv='121406' and concept/@csd='DCM']) = 0" mbpo="F"/>	<!--XOR row 3-->
    </definetemplate>

    <definetemplate tid="312" name="NormalRangeProperties" root="F" extensible="T" ordersignificant="T">
        <templatecontentitem				row="1" relationship="" valueType="NUM" vmmin="1" vmmax="n" requiredType="M" conceptNameCID="223" conceptNameBDE="D" />
        <templatecontentitem				row="2" relationship="" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121407" csdConceptName="DCM" cmConceptName="Normal Range description" />
        <templatecontentitem				row="3" relationship="" valueType="TEXT" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121408" csdConceptName="DCM" cmConceptName="Normal Range Authority"
											condition="count(code[concept/@cv='121408' and concept/@csd='DCM']) = 0" mbpo="F"/> <!--XOR row 4-->
        <templatecontentitem				row="4" relationship="" valueType="CODE" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121408" csdConceptName="DCM" cmConceptName="Normal Range Authority"
											condition="count(text[concept/@cv='121408' and concept/@csd='DCM']) = 0" mbpo="F"/> <!--XOR row 3-->
    </definetemplate>

    <definetemplate tid="315" name="EquationOrTable" root="F" extensible="T" ordersignificant="T">
        <templatecontentitem				row="1" relationship="" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" conceptNameCID="228" conceptNameBDE="D">
    		<templatecontentitem			row="2" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="n" requiredType="U" />
    		<templatecontentitem			row="3" relationship="R-HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="n" requiredType="U" />
        </templatecontentitem>
    </definetemplate>

    <definetemplate tid="320" name="ImageOrSpatialCoordinates" root="F" extensible="T" ordersignificant="T">
        <templatecontentitem				row="1" relationship="INFERRED FROM" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(reference) = 0 and count(scoord) = 0" mbpo="F"/> <!--XOR Rows 2, 3-->
        <templatecontentitem				row="2" relationship="R-INFERRED FROM" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(image) = 0 and count(scoord) = 0" mbpo="F"/> <!--XOR Rows 1, 3-->
        <templatecontentitem				row="3" relationship="INFERRED FROM" valueType="SCOORD" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(reference) = 0 and count(image) = 0" mbpo="F"> <!--XOR Rows 1, 2-->
    		<templatecontentitem			row="4" relationship="SELECTED FROM" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(reference) = 0" mbpo="F"/> <!--XOR Row 5-->
    		<templatecontentitem			row="5" relationship="R-SELECTED FROM" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(image) = 0" mbpo="F"/> <!--XOR Row 4-->
        </templatecontentitem>
    </definetemplate>

    <definetemplate tid="321" name="WaveformOrTemporalCoordinates" root="F" extensible="T" ordersignificant="T">
        <templatecontentitem				row="1" relationship="INFERRED FROM" valueType="WAVEFORM" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(reference) = 0 and count(tcoord) = 0" mbpo="F"/> <!--XOR Rows 2, 3-->
        <templatecontentitem				row="2" relationship="R-INFERRED FROM" valueType="WAVEFORM" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(waveform) = 0 and count(tcoord) = 0" mbpo="F"/> <!--XOR Rows 1, 3-->
        <templatecontentitem				row="3" relationship="INFERRED FROM" valueType="TCOORD" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(reference) = 0 and count(waveform) = 0" mbpo="F"> <!--XOR Rows 1, 2-->
    		<templatecontentitem			row="4" relationship="SELECTED FROM" valueType="WAVEFORM" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(reference) = 0" mbpo="F"/> <!--XOR Row 5-->
    		<templatecontentitem			row="5" relationship="R-SELECTED FROM" valueType="WAVEFORM" vmmin="1" vmmax="1" requiredType="MC"
											condition="count(waveform) = 0" mbpo="F"/> <!--XOR Row 4-->
        </templatecontentitem>
    </definetemplate>
	
	<definetemplate tid="350" name="ReferencesToSupportingEvidence" root="F" extensible="F" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="IMAGE" vmmin="1" vmmax="n" requiredType="U" conceptNameCID="7003" conceptNameBDE="B"/>
		<templatecontentitem row="2" relationship="" valueType="SCOORD" vmmin="1" vmmax="n" requiredType="U" conceptNameCID="7003" conceptNameBDE="B">
			<templatecontentitem row="3" relationship="SELECTED FROM" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="M"/>
		</templatecontentitem>
		<templatecontentitem row="4" relationship="" valueType="COMPOSITE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="122073" csdConceptName="DCM" cmConceptName="Current procedure evidence">
			<templatecontentitem row="5" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121144" csdConceptName="DCM" cmConceptName="Document Title"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="1000" name="Quotation" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem				row="1" relationship="HAS OBS CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121001" csdConceptName="DCM" cmConceptName="Quotation Mode" valueSetCID="PMP_1000A" valueSetBDE="E">
		</templatecontentitem>
		<templatecontentitem				row="2" relationship="HAS OBS CONTEXT" valueType="COMPOSITE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121002" csdConceptName="DCM" cmConceptName="Quoted Source">
			<!-- is really MC but real world "Required if quoted material source is a DICOM composite object" -->
		</templatecontentitem>
		<includetemplate					row="3" tid="1001" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="M" />
	</definetemplate>

	<definetemplate tid="1001" name="ObservationContext" root="F" extensible="F">
		<includetemplate     row="1"  tid="1002" vmmin="1" vmmax="n" requiredType="U"/> <!-- is really MC but real-world and "defaults" to header values -->
		<includetemplate     row="2"  tid="1005" vmmin="1" vmmax="1" requiredType="M"/> <!-- 1	MC -->
		<includetemplate     row="3"  tid="1006" vmmin="1" vmmax="1" requiredType="M"/> <!-- 1	MC -->
	</definetemplate>
	
	<definetemplate tid="1002" name="ObserverContext" root="F" extensible="F">
		<templatecontentitem row="1"  relationship="HAS OBS CONTEXT" valueType="CODE"     vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121005" csdConceptName="DCM" cmConceptName="Observer Type" valueSetCID="270" valueSetBDE="D"/> <!-- is really MC, but condition is real-world -->
		<includetemplate     row="2"  tid="1003" vmmin="1" vmmax="1" requiredType="MC" condition="(count(code[concept/@cv='121005' and concept/@csd='DCM']) = 0 and count(pname[concept/@cv='121008' and concept/@csd='DCM']) &gt; 0) or count(code[concept/@cv='121005' and concept/@csd='DCM' and value/@cv='121006' and value/@csd='DCM']) &gt; 0" mbpo="F"/> <!-- IFF Row 1 value = (121006,DCM, “Person”) or Row 1 is absent -->
		<includetemplate     row="3"  tid="1004" vmmin="1" vmmax="1" requiredType="MC" condition="count(code[concept/@cv='121005' and concept/@csd='DCM' and value/@cv='121007' and value/@csd='DCM']) &gt; 0" mbpo="F"/> <!-- IFF Row 1 value = (121007,DCM, “Device”) -->
	</definetemplate>

	<definetemplate tid="1003" name="PersonObserverIdentifyingAttributes" root="F" extensible="T">
		<templatecontentitem     row="1"  relationship="HAS OBS CONTEXT" valueType="PNAME" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121008" csdConceptName="DCM" cmConceptName="Person Observer Name"/>
		<templatecontentitem     row="1a" relationship="HAS OBS CONTEXT" valueType="TEXT"  vmmin="1" vmmax="1" requiredType="U"  cvConceptName="128774" csdConceptName="DCM" cmConceptName="Person Observer's Login Name"/>
		<templatecontentitem     row="2"  relationship="HAS OBS CONTEXT" valueType="TEXT"  vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121009" csdConceptName="DCM" cmConceptName="Person Observer's Organization Name"/>
		<templatecontentitem     row="3"  relationship="HAS OBS CONTEXT" valueType="CODE"  vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121010" csdConceptName="DCM" cmConceptName="Person Observer's Role in the Organization" valueSetCID="7452" valueSetBDE="B"/>
		<templatecontentitem     row="4"  relationship="HAS OBS CONTEXT" valueType="CODE"  vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121011" csdConceptName="DCM" cmConceptName="Person Observer's Role in this Procedure"   valueSetCID="7453" valueSetBDE="B">
			<templatecontentitem row="5"  relationship="HAS OBS CONTEXT" valueType="TEXT"  vmmin="1" vmmax="1" requiredType="U"  cvConceptName="128775" csdConceptName="DCM" cmConceptName="Identifier within Person Observer's Role"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="1004" name="DeviceObserverIdentifyingAttributes" root="F" extensible="T">
		<templatecontentitem row="1"  relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121012" csdConceptName="DCM" cmConceptName="Device Observer UID"/>
		<templatecontentitem row="2"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121013" csdConceptName="DCM" cmConceptName="Device Observer Name"/>
		<templatecontentitem row="3"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121014" csdConceptName="DCM" cmConceptName="Device Observer Manufacturer"/>
		<templatecontentitem row="4"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121015" csdConceptName="DCM" cmConceptName="Device Observer Model Name"/>
		<templatecontentitem row="5"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121016" csdConceptName="DCM" cmConceptName="Device Observer Serial Number"/>
		<templatecontentitem row="6"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121017" csdConceptName="DCM" cmConceptName="Device Observer Physical Location During Observation"/>	
		<templatecontentitem row="7"  relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="n" requiredType="U"  cvConceptName="113876" csdConceptName="DCM" cmConceptName="Device Role in Procedure" valueSetCID="7445" valueSetBDE="D"/>
	</definetemplate>

	<definetemplate tid="1005" name="ProcedureContext" root="F" extensible="F">
		<templatecontentitem     row="1" relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121018" csdConceptName="DCM" cmConceptName="Procedure Study Instance UID"/>
		<templatecontentitem     row="2" relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="121019" csdConceptName="DCM" cmConceptName="Procedure Study Component UID"/>
		<templatecontentitem     row="3" relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121020" csdConceptName="DCM" cmConceptName="Placer Number">	
			<templatecontentitem row="4" relationship="HAS CONCEPT MOD" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110190" csdConceptName="DCM" cmConceptName="Issuer of Identifier"/>
		</templatecontentitem>
		<templatecontentitem     row="5" relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121021" csdConceptName="DCM" cmConceptName="Filler Number">	
			<templatecontentitem row="6" relationship="HAS CONCEPT MOD" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110190" csdConceptName="DCM" cmConceptName="Issuer of Identifier"/>
		</templatecontentitem>
		<templatecontentitem     row="7" relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121022" csdConceptName="DCM" cmConceptName="Accession Number">
			<templatecontentitem row="8" relationship="HAS CONCEPT MOD" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110190" csdConceptName="DCM" cmConceptName="Issuer of Identifier"/>
		</templatecontentitem>
		<templatecontentitem     row="9" relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="n" requiredType="U"  cvConceptName="121023" csdConceptName="DCM" cmConceptName="Procedure Code"/>
	</definetemplate>
	
	<definetemplate tid="1006" name="SubjectContext" root="F" extensible="F">
		<templatecontentitem         row="1" relationship="HAS OBS CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121024" csdConceptName="DCM" cmConceptName="Subject Class" valueSetCID="271" valueSetBDE="D"/>  <!-- is really MC but real-world -->
		<includetemplate             row="2" tid="1007"                                      vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	UC 1	UC	IFF Row 1 value = (121025,DCM,"Patient") or Row 1 is absent -->
		<includetemplate             row="3" tid="1008"                                      vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	UC 1	UC	IFF Row 1 value = (121026,DCM","Fetus")	 -->
		<includetemplate             row="4" tid="1009"                                      vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	UC 1	UC	IFF Row 1 value = (121027,DCM,"Specimen")	 -->
		<includetemplate             row="5" tid="1010"                                      vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	UC	IFF Row 1 value = (121192,DCM,"Device Subject")  -->
	</definetemplate>

	<definetemplate tid="1007" name="SubjectContextPatient" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121028" csdConceptName="DCM" cmConceptName="Subject UID"/>
		<templatecontentitem         row="2"  relationship="HAS OBS CONTEXT" valueType="PNAME"  vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121029" csdConceptName="DCM" cmConceptName="Subject Name"/> <!-- actually MC but real-world -->
		<templatecontentitem         row="3"  relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121030" csdConceptName="DCM" cmConceptName="Subject ID"/>   <!-- actually MC but real-world -->
		<templatecontentitem         row="4"  relationship="HAS OBS CONTEXT" valueType="DATE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121031" csdConceptName="DCM" cmConceptName="Subject Birth Date"/>
		<templatecontentitem         row="5"  relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121032" csdConceptName="DCM" cmConceptName="Subject Sex"     valueSetCID="7455" valueSetBDE="D"/>
		<templatecontentitem         row="6"  relationship="HAS OBS CONTEXT" valueType="NUM"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121033" csdConceptName="DCM" cmConceptName="Subject Age"     unitsCID="7456" unitsBDE="D"/>
		<templatecontentitem         row="7"  relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121034" csdConceptName="DCM" cmConceptName="Subject Species" valueSetCID="7454" valueSetBDE="D"/> <!-- actually MC but real-world -->
		<templatecontentitem         row="8"  relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121035" csdConceptName="DCM" cmConceptName="Subject Breed"   valueSetCID="7480" valueSetBDE="D"/>
        <templatecontentitem         row="9"  relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="415229000" csdConceptName="SCT" cvAltConceptName="S-0004D" csdAltConceptName="SRT" cmConceptName="Racial group" valueSetCID="6099" valueSetBDE="D"/>
	</definetemplate>

	<definetemplate tid="1008" name="SubjectContextFetus" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="HAS OBS CONTEXT" valueType="PNAME"  vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121036"  csdConceptName="DCM" cmConceptName="Mother of fetus"/>
		<templatecontentitem         row="2"  relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121028"  csdConceptName="DCM" cmConceptName="Subject UID"/>
		<templatecontentitem         row="3"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121030"  csdConceptName="DCM" cmConceptName="Subject ID"
		                             condition="count(text[concept/@cv='11951-1' and concept/@csd='LN']) = 0" mbpo="F"/> <!-- IF row 4 is absent -->
		<templatecontentitem         row="4"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="MC" cvConceptName="11951-1" csdConceptName="LN"  cmConceptName="Fetus ID"
		                             condition="count(text[concept/@cv='121030' and concept/@csd='DCM']) = 0" mbpo="F"/> <!-- IF row 3 is absent -->
		<templatecontentitem         row="5"  relationship="HAS OBS CONTEXT" valueType="NUM"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="11878-6" csdConceptName="LN"  cmConceptName="Number of Fetuses" cvUnits="1" csdUnits="UCUM" cmUnits="no units"/>
	</definetemplate>

	<definetemplate tid="1009" name="SubjectContextSpecimen" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121039" csdConceptName="DCM" cmConceptName="Specimen UID"/>
		<includetemplate             row="2" tid="1007"                                         vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	UC -->
		<templatecontentitem         row="3"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121041" csdConceptName="DCM" cmConceptName="Specimen Identifier"/>
		<templatecontentitem         row="4"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111724" csdConceptName="DCM" cmConceptName="Issuer of Specimen Identifier"/>
		<templatecontentitem         row="5"  relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="371439000" csdConceptName="SCT" cvAltConceptName="R-00254" csdAltConceptName="SRT" cmConceptName="Specimen Type" valueSetCID="8103" valueSetBDE="D"/>
		<templatecontentitem         row="6"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111700" csdConceptName="DCM" cmConceptName="Specimen Container Identifier"/>
	</definetemplate>

	<definetemplate tid="1010" name="SubjectContextDevice" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="HAS OBS CONTEXT" valueType="TEXT"     vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121193" csdConceptName="DCM" cmConceptName="Device Subject Name"/>
		<templatecontentitem         row="2"  relationship="HAS OBS CONTEXT" valueType="UIDREF"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121198" csdConceptName="DCM" cmConceptName="Device Subject UID"/>	
		<templatecontentitem         row="3"  relationship="HAS OBS CONTEXT" valueType="TEXT"     vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121194" csdConceptName="DCM" cmConceptName="Device Subject Manufacturer"/>
		<templatecontentitem         row="4"  relationship="HAS OBS CONTEXT" valueType="TEXT"     vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121195" csdConceptName="DCM" cmConceptName="Device Subject Model Name"/>
		<templatecontentitem         row="5"  relationship="HAS OBS CONTEXT" valueType="TEXT"     vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121196" csdConceptName="DCM" cmConceptName="Device Subject Serial Number"/>	
		<templatecontentitem         row="6"  relationship="HAS OBS CONTEXT" valueType="TEXT"     vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121197" csdConceptName="DCM" cmConceptName="Device Subject Physical Location during observation"/>	
	</definetemplate>

	<definetemplate tid="1020" name="PersonParticipant" root="F" extensible="T">
		<parameters>
			<parameter name="PersonProcedureRole"/>
		</parameters>
		<templatecontentitem         row="1"  relationship="CONTAINS"        valueType="PNAME"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113870" csdConceptName="DCM" cmConceptName="Person Name">
			<templatecontentitem	 row="2"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113875" csdConceptName="DCM" cmConceptName="Person Role in Procedure"/>		<!-- DCID $PersonProcedureRole -->
			<templatecontentitem	 row="3"  relationship="HAS PROPERTIES"  valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113871" csdConceptName="DCM" cmConceptName="Person ID"/>
			<templatecontentitem	 row="4"  relationship="HAS PROPERTIES"  valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113872" csdConceptName="DCM" cmConceptName="Person ID Issuer"/>
			<templatecontentitem	 row="5"  relationship="HAS PROPERTIES"  valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113873" csdConceptName="DCM" cmConceptName="Organization Name"/>
			<templatecontentitem     row="6"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113874" csdConceptName="DCM" cmConceptName="Person Role in Organization" valueSetCID="7452" valueSetBDE="B"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="1021" name="DeviceParticipant" root="F" extensible="T">
		<parameters>
			<parameter name="DeviceProcedureRole"/>
		</parameters>
		<templatecontentitem         row="1"  relationship="CONTAINS"        valueType="CODE"   vmmin="1" vmmax="2" requiredType="M"  cvConceptName="113876" csdConceptName="DCM" cmConceptName="Device Role in Procedure">		<!-- DCID $DeviceProcedureRole; VM should really be 1, not 2, but can occur at same level in TID 10003a and 10003b, and currently no better way to handle this :(-->
			<templatecontentitem	 row="2"  relationship="HAS PROPERTIES"  valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113877" csdConceptName="DCM" cmConceptName="Device Name"/>
			<templatecontentitem	 row="3"  relationship="HAS PROPERTIES"  valueType="TEXT"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113878" csdConceptName="DCM" cmConceptName="Device Manufacturer"/>
			<templatecontentitem	 row="4"  relationship="HAS PROPERTIES"  valueType="TEXT"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113879" csdConceptName="DCM" cmConceptName="Device Model Name"/>
			<templatecontentitem	 row="5"  relationship="HAS PROPERTIES"  valueType="TEXT"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113880" csdConceptName="DCM" cmConceptName="Device Serial Number"/>
			<templatecontentitem	 row="6"  relationship="HAS PROPERTIES"  valueType="UIDREF" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121012" csdConceptName="DCM" cmConceptName="Device Observer UID"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="1201" name="LanguageOfValue" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS CONCEPT MOD" valueType="CODE"     vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121047" csdConceptName="DCM" cmConceptName="Language of Value"   valueSetCID="5000" valueSetBDE="D">
			<templatecontentitem     row="2"  relationship="HAS CONCEPT MOD" valueType="CODE"     vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121046" csdConceptName="DCM" cmConceptName="Country of Language" valueSetCID="5001" valueSetBDE="D"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="1204" name="LanguageOfContentItemAndDescendants" root="F" extensible="F">
		<templatecontentitem     row="1"  relationship="HAS CONCEPT MOD" valueType="code" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121049" csdConceptName="DCM" cmConceptName="Language of Content Item and Descendants" valueSetCID="5000" valueSetBDE="D">
			<templatecontentitem row="2"  relationship="HAS CONCEPT MOD" valueType="code" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121046" csdConceptName="DCM" cmConceptName="Country of Language" valueSetCID="5001" valueSetBDE="D"/>
		</templatecontentitem>	
	</definetemplate>

	<definetemplate tid="1210" name="EquivalentMeaningOfConceptName" root="F" extensible="F">
		<templatecontentitem     row="1"  relationship="HAS  CONCEPT MOD" valueType="TEXT" vmmin="1" vmmax="n" requiredType="MC"  cvConceptName="121050" csdConceptName="DCM" cmConceptName="Equivalent Meaning of Concept Name"
		                         condition="count(code[concept/@cv='121050' and concept/@csd='DCM']) = 0" mbpo="F"> <!-- XOR Row 3 -->
			<includetemplate     row="2"  tid="1201"                                       vmmin="1" vmmax="1" requiredType="U"/>
		</templatecontentitem>	
		<templatecontentitem     row="3"  relationship="HAS  CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="MC"  cvConceptName="121050" csdConceptName="DCM" cmConceptName="Equivalent Meaning of Concept Name"
		                         condition="count(text[concept/@cv='121050' and concept/@csd='DCM']) = 0" mbpo="F">	 <!-- XOR Row 1 -->
			<includetemplate     row="4"  tid="1201"                                       vmmin="1" vmmax="1" requiredType="U"/>
		</templatecontentitem>	
	</definetemplate>

	<!-- cannot not check relationship yet ... sometimes CONTAINS, sometimes INFERRED FROM, sometimes HAS PROPERTIES -->
	<definetemplate tid="1400M" name="LinearMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"                                 valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7470"	unitsCID="7460" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="POLYLINE_CIRCLE_ELLIPSE" numpointsmin="2" numpointsmax="n"
		                                 condition="count(scoord[concept/@cv = '121230' and concept/@csd = 'DCM']) = 0"  mbpo="F">
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>	
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="2" vmmax="n" requiredType="UC" cvConceptName="121230" csdConceptName="DCM" cmConceptName="Path Vertex" graphicType="POINT" numpointsmin="1" numpointsmax="1"
		                                 condition="count(scoord[concept/@cv = '121055' and concept/@csd = 'DCM']) = 0"  mbpo="F" >
				<templatecontentitem     row="6"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 7 -->
				<templatecontentitem     row="7"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/>  <!-- XOR Row 6 -->
			</templatecontentitem>	
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1400IF" name="LinearMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="INFERRED FROM"   valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7470"	unitsCID="7460" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="POLYLINE_CIRCLE_ELLIPSE" numpointsmin="2" numpointsmax="n"
		                                 condition="count(scoord[concept/@cv = '121230' and concept/@csd = 'DCM']) = 0"  mbpo="F">
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>	
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="2" vmmax="n" requiredType="UC" cvConceptName="121230" csdConceptName="DCM" cmConceptName="Path Vertex" graphicType="POINT" numpointsmin="1" numpointsmax="1"
		                                 condition="count(scoord[concept/@cv = '121055' and concept/@csd = 'DCM']) = 0"  mbpo="F" >
				<templatecontentitem     row="6"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 7 -->
				<templatecontentitem     row="7"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/>  <!-- XOR Row 6 -->
			</templatecontentitem>	
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1400HP" name="LinearMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="HAS PROPERTIES"   valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7470"	unitsCID="7460" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="POLYLINE_CIRCLE_ELLIPSE" numpointsmin="2" numpointsmax="n"
		                                 condition="count(scoord[concept/@cv = '121230' and concept/@csd = 'DCM']) = 0"  mbpo="F">
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>	
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="2" vmmax="n" requiredType="UC" cvConceptName="121230" csdConceptName="DCM" cmConceptName="Path Vertex" graphicType="POINT" numpointsmin="1" numpointsmax="1"
		                                 condition="count(scoord[concept/@cv = '121055' and concept/@csd = 'DCM']) = 0"  mbpo="F" >
				<templatecontentitem     row="6"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 7 -->
				<templatecontentitem     row="7"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/>  <!-- XOR Row 6 -->
			</templatecontentitem>	
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1400CN" name="LinearMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="CONTAINS"        valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7470"	unitsCID="7460" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="POLYLINE_CIRCLE_ELLIPSE" numpointsmin="2" numpointsmax="n"
		                                 condition="count(scoord[concept/@cv = '121230' and concept/@csd = 'DCM']) = 0"  mbpo="F">
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>	
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="2" vmmax="n" requiredType="UC" cvConceptName="121230" csdConceptName="DCM" cmConceptName="Path Vertex" graphicType="POINT" numpointsmin="1" numpointsmax="1"
		                                 condition="count(scoord[concept/@cv = '121055' and concept/@csd = 'DCM']) = 0"  mbpo="F" >
				<templatecontentitem     row="6"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 7 -->
				<templatecontentitem     row="7"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/>  <!-- XOR Row 6 -->
			</templatecontentitem>	
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<!-- cannot not check relationship yet ... sometimes CONTAINS, sometimes INFERRED FROM, sometimes HAS PROPERTIES -->
	<definetemplate tid="1401M" name="AreaMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"                                 valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7471"	unitsCID="7461" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="NOT_MULTIPOINT" numpointsmin="2" numpointsmax="n"
		                                 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(image)=0 and count(reference)=0"  mbpo="F"> <!-- XOR Row 2,5,6 -->
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(scoord)=0 and count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="6"  relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(scoord)=0 and count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="7"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7473" valueSetBDE="D"/>
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1401IF" name="AreaMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="INFERRED FROM"  valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7471"	unitsCID="7461" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="NOT_MULTIPOINT" numpointsmin="2" numpointsmax="n"
		                                 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(image)=0 and count(reference)=0"  mbpo="F"> <!-- XOR Row 2,5,6 -->
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(scoord)=0 and count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="6"  relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(scoord)=0 and count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="7"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7473" valueSetBDE="D"/>
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1401HP" name="AreaMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="HAS PROPERTIES"  valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7471"	unitsCID="7461" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="NOT_MULTIPOINT" numpointsmin="2" numpointsmax="n"
		                                 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(image)=0 and count(reference)=0"  mbpo="F"> <!-- XOR Row 2,5,6 -->
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(scoord)=0 and count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="6"  relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(scoord)=0 and count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="7"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7473" valueSetBDE="D"/>
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1401CN" name="AreaMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="CONTAINS"        valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7471"	unitsCID="7461" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121055" csdConceptName="DCM" cmConceptName="Path" graphicType="NOT_MULTIPOINT" numpointsmin="2" numpointsmax="n"
		                                 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(image)=0 and count(reference)=0"  mbpo="F"> <!-- XOR Row 2,5,6 -->
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(scoord)=0 and count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="6"  relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv = 'G-A16A' and concept/@csd = 'SRT'])&gt;0 and count(scoord)=0 and count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="7"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7473" valueSetBDE="D"/>
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<!-- cannot not check relationship yet ... sometimes CONTAINS, sometimes INFERRED FROM, sometimes HAS PROPERTIES -->
	<definetemplate tid="1402M" name="VolumeMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"                                 valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7472"	unitsCID="7462" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121057" csdConceptName="DCM" cmConceptName="Perimeter Outline" graphicType="NOT_MULTIPOINT" numpointsmin="2" numpointsmax="n"
		                                 condition="count(image)=0 and count(reference)=0"  mbpo="F"> <!-- XOR Row 2,5,6 -->
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(scoord)=0 and count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="6"  relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(scoord)=0 and count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="7"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7474" valueSetBDE="D"/>
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1402IF" name="VolumeMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="INFERRED FROM"   valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7472"	unitsCID="7462" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121057" csdConceptName="DCM" cmConceptName="Perimeter Outline" graphicType="NOT_MULTIPOINT" numpointsmin="2" numpointsmax="n"
		                                 condition="count(image)=0 and count(reference)=0"  mbpo="F"> <!-- XOR Row 2,5,6 -->
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(scoord)=0 and count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="6"  relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(scoord)=0 and count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="7"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7474" valueSetBDE="D"/>
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1402HP" name="VolumeMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="HAS PROPERTIES"  valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7472"	unitsCID="7462" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121057" csdConceptName="DCM" cmConceptName="Perimeter Outline" graphicType="NOT_MULTIPOINT" numpointsmin="2" numpointsmax="n"
		                                 condition="count(image)=0 and count(reference)=0"  mbpo="F"> <!-- XOR Row 2,5,6 -->
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(scoord)=0 and count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="6"  relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(scoord)=0 and count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="7"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7474" valueSetBDE="D"/>
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1402CN" name="VolumeMeasurementTemplate" root="F" extensible="T">
		<templatecontentitem             row="1"  relationship="CONTAINS"        valueType="NUM"    vmmin="1" vmmax="n" requiredType="M"  conceptNameCID="7472"	unitsCID="7462" unitsBDE="D"> <!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem         row="2"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="121057" csdConceptName="DCM" cmConceptName="Perimeter Outline" graphicType="NOT_MULTIPOINT" numpointsmin="2" numpointsmax="n"
		                                 condition="count(image)=0 and count(reference)=0"  mbpo="F"> <!-- XOR Row 2,5,6 -->
				<templatecontentitem     row="3"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 4 -->
				<templatecontentitem     row="4"  relationship="SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 3 -->
			</templatecontentitem>
			<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(scoord)=0 and count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="6"  relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(scoord)=0 and count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 2,5,6 -->
			<templatecontentitem         row="7"  relationship="HAS PROPERTIES"  valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="7474" valueSetBDE="D"/>
		</templatecontentitem>
		<includetemplate				 row="8"  tid="4108"                                        vmmin="1" vmmax="1" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="1404IF" name="NumericMeasurementTemplate" root="F" extensible="T">
	</definetemplate>

	<definetemplate tid="1404CN" name="NumericMeasurementTemplate" root="F" extensible="T">
	</definetemplate>


	<definetemplate tid="2000" name="BasicDiagnosticImagingReport" root="T" extensible="F">
		<templatecontentitem             row="1"                                  valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M"  conceptNameCID="7000" conceptNameBDE="B">
			<templatecontentitem         row="2"  relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="121058" csdConceptName="DCM" cmConceptName="Procedure reported"/>
			<includetemplate             row="3"  tid="1204"                                            vmmin="1" vmmax="1" requiredType="M"/>
			<includetemplate             row="4"  tid="1210"                                            vmmin="1" vmmax="n" requiredType="U"/>
			<includetemplate             row="5"  tid="1001"                                            vmmin="1" vmmax="1" requiredType="M"/>

			<templatecontentitem         row="6"  relationship="CONTAINS"  valueType="CONTAINER"        vmmin="1" vmmax="n" requiredType="U"  conceptNameCID="7001" conceptNameBDE="B">
				<includetemplate         row="7"  tid="1001"                                            vmmin="1" vmmax="1" requiredType="U"/>
				<includetemplate         row="8"  tid="2002"                                            vmmin="1" vmmax="1" requiredType="M"/>
			</templatecontentitem>	
		</templatecontentitem>	
	</definetemplate>

	<definetemplate tid="2001IF" name="BasicDiagnosticImagingReportObservations" root="F" extensible="F">	<!-- included with INFERRED FROM relationship -->
		<templatecontentitem             row="1" relationship="INFERRED FROM" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC"  conceptNameCID="7003" condition="count(num) = 0" mbpo="F"/> <!-- XOR Rows 2,3,4,5 -->
		<includetemplate                 row="2"  tid="1400IF"									vmmin="1" vmmax="1" requiredType="MC"  condition="count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) &gt; 0" mbpo="F"/> <!-- 1	MC	XOR Rows 1,3,4,5. Disambiguate using "Path" concept -->
		<includetemplate                 row="3"  tid="1401IF"                                  vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	MC	XOR Rows 1,2,4,5. -->
		<includetemplate                 row="4"  tid="1402IF"                                  vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	MC	XOR Rows 1,2,3,5. -->
		<includetemplate                 row="5"  tid="1404IF"                                  vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	MC	XOR Rows 1,2,3,4. -->
	</definetemplate>

	<definetemplate tid="2001CN" name="BasicDiagnosticImagingReportObservations" root="F" extensible="F">	<!-- included with CONTAINS relationship -->
		<templatecontentitem             row="1" relationship="CONTAINS" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC"  conceptNameCID="7003" condition="count(num) = 0" mbpo="F"/> <!-- XOR Rows 2,3,4,5 -->
		<includetemplate                 row="2"  tid="1400CN"                                  vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	MC	XOR Rows 1,3,4,5. -->
		<includetemplate                 row="3"  tid="1401CN"                                  vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	MC	XOR Rows 1,2,4,5. -->
		<includetemplate                 row="4"  tid="1402CN"                                  vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	MC	XOR Rows 1,2,3,5. -->
		<includetemplate                 row="5"  tid="1404CN"                                  vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	MC	XOR Rows 1,2,3,4. -->
	</definetemplate>

	<definetemplate tid="2002" name="ReportNarrative" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="CONTAINS"  valueType="CODE"             vmmin="1" vmmax="n" requiredType="U"  conceptNameCID="7002" conceptNameBDE="B">
			<includetemplate             row="2"  tid="2001IF"                                          vmmin="1" vmmax="n" requiredType="U"/>
		</templatecontentitem>	
		<templatecontentitem             row="3"  relationship="CONTAINS"  valueType="TEXT"             vmmin="1" vmmax="n" requiredType="U"  conceptNameCID="7002" conceptNameBDE="B">
			<includetemplate             row="4"  tid="2001IF"                                          vmmin="1" vmmax="n" requiredType="U"/>
		</templatecontentitem>	
		<includetemplate                 row="5"  tid="2001CN"                                          vmmin="1" vmmax="n" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="2010" name="KeyObjectSelection" root="T" extensible="F">
		<templatecontentitem             row="1"                                  valueType="container" vmmin="1" vmmax="1" requiredType="M"  conceptNameCID="7010_WithTCE" conceptNameBDE="D">
			<templatecontentitem         row="2"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="113011" csdConceptName="DCM" cmConceptName="Document Title Modifier"/>
			<templatecontentitem         row="3"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113011" csdConceptName="DCM" cmConceptName="Document Title Modifier" conceptNameCID="7011" conceptNameBDE="D"
										 condition="count(../code[concept/@cv='113001' and concept/@csd='DCM']) &gt; 0 or count(../code[concept/@cv='113010' and concept/@csd='DCM']) &gt; 0" mbpo="F"/> <!-- Actually UC< not MC :( Need rejected for quality reason-->
			<templatecontentitem         row="4"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113011" csdConceptName="DCM" cmConceptName="Document Title Modifier" conceptNameCID="7012" conceptNameBDE="D"
										 condition="count(../code[concept/@cv='113013' and concept/@csd='DCM']) &gt; 0" mbpo="F"/> <!-- Best in Set requires entity-->
			<includetemplate             row="5"  tid="1204"                                            vmmin="1" vmmax="1" requiredType="U"/>
			<includetemplate			 row="6"  tid="1002" vmmin="1" vmmax="n"  requiredType="U"/>
			<templatecontentitem         row="7"  relationship="CONTAINS"         valueType="text"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113012" csdConceptName="DCM" cmConceptName="Key Object Description"/>

			<templatecontentitem         row="8"  relationship="CONTAINS"         valueType="image"     vmmin="1" vmmax="n" requiredType="MC"
										 condition="count(waveform) = 0 and count(composite) = 0" mbpo="T"/>
			<verify						 test="count(image/concept) &gt; 0"
										 status="Error" message="Row 8 Purpose of Reference (Concept) is forbidden for IMAGE content item"/>

			<templatecontentitem         row="9"  relationship="CONTAINS"         valueType="waveform"  vmmin="1" vmmax="n" requiredType="MC"
										 condition="count(image) = 0 and count(composite) = 0" mbpo="T"/>
			<verify						 test="count(waveform/concept) &gt; 0"
										 status="Error" message="Row 9 Purpose of Reference (Concept) is forbidden for WAVEFORM content item"/>

			<templatecontentitem         row="10" relationship="CONTAINS"         valueType="composite" vmmin="1" vmmax="n" requiredType="MC"
										 condition="count(image) = 0 and count(waveform) = 0" mbpo="T"/>
			<verify						 test="count(composite/concept) &gt; 0"
										 status="Error" message="Row 10 Purpose of Reference (Concept) is forbidden for COMPOSITE content item"/>
		</templatecontentitem>	
	</definetemplate>

	<definetemplate tid="4000" name="MammographyCADDocumentRoot" root="T" extensible="F">
		<templatecontentitem             row="1"                                  valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111036" csdConceptName="DCM" cmConceptName="Mammography CAD Report">
			<includetemplate             row="2"  tid="1204"                                            vmmin="1" vmmax="1" requiredType="M"/>
			<templatecontentitem		 row="3"  relationship="CONTAINS"		  valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111028" csdConceptName="DCM" cmConceptName="Image Library">
				<includetemplate		 row="4"  tid="4020Mammo"				  requiredType="M"/>	<!-- 1-n multiplicity on include propagated to root node of included template -->
			</templatecontentitem>
			<includetemplate             row="5"  tid="4001"                                            vmmin="1" vmmax="1" requiredType="M"/>
			<templatecontentitem		 row="6"  relationship="CONTAINS"		  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111064" csdConceptName="DCM" cmConceptName="Summary of Detections" valueSetCID="6042" valueSetBDE="D">
				<includetemplate		 row="7"  tid="4015MammoParameters"		  requiredType="MC"
										 condition="count(../code[concept/@cv='111064' and concept/@csd='DCM' and value/@cv='111225' and value/@csd='DCM']) = 0" mbpo="F"/> <!-- unless not attempted -->
			</templatecontentitem>
			<templatecontentitem		 row="8"  relationship="CONTAINS"		  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111065" csdConceptName="DCM" cmConceptName="Summary of Analyses" valueSetCID="6042" valueSetBDE="D">
				<includetemplate		 row="9"  tid="4016MammoParameters"		  requiredType="MC"
										 condition="count(../code[concept/@cv='111065' and concept/@csd='DCM' and value/@cv='111225' and value/@csd='DCM']) = 0" mbpo="F"/> <!-- unless not attempted -->
			</templatecontentitem>

		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4001" name="MammographyCADOverallImpressionRecommendation" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="CONTAINS"		  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111017" csdConceptName="DCM" cmConceptName="CAD Processing and Findings Summary" valueSetCID="6047" valueSetBDE="D">
			<includetemplate             row="2"  tid="4002"                                            vmmin="1" vmmax="1" requiredType="U"/>
			<includetemplate             row="3"  tid="4003"                                            vmmin="1" vmmax="n" requiredType="U"/> <!-- Actually MC Shall be present if 1 or more (111059, DCM, “Single Image Finding”) or (111015, DCM, “Composite Feature”) content items are reported -->
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4002" name="MammographyCADImpressionRecommendationBody" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="HAS PROPERTIES"   valueType="code"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111005" csdConceptName="DCM" cmConceptName="Assessment Category" valueSetCID="6026" valueSetBDE="D"
										 condition="count(code[concept/@cv='111023' and concept/@csd='DCM']) = 0
										        and count(text[concept/@cv='111033' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111053' and concept/@csd='DCM']) = 0
										        and count( num[concept/@cv='111055' and concept/@csd='DCM']) = 0
										        and count(date[concept/@cv='111054' and concept/@csd='DCM']) = 0"
										 mbpo="T"> <!-- At least one of rows 1, 3, 5, 6, 8, 9 shall be present -->
			<templatecontentitem		 row="2" relationship="HAS CONCEPT MOD"   valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
		</templatecontentitem>
		<templatecontentitem             row="3"  relationship="HAS PROPERTIES"   valueType="code"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111023" csdConceptName="DCM" cmConceptName="Differential Diagnosis/Impression" valueSetCID="6002" valueSetBDE="D"
										 condition="count(code[concept/@cv='111005' and concept/@csd='DCM']) = 0
										        and count(text[concept/@cv='111033' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111053' and concept/@csd='DCM']) = 0
										        and count( num[concept/@cv='111055' and concept/@csd='DCM']) = 0
										        and count(date[concept/@cv='111054' and concept/@csd='DCM']) = 0"
										 mbpo="T"> <!-- At least one of rows 1, 3, 5, 6, 8, 9 shall be present -->
			<templatecontentitem		 row="4" relationship="HAS CONCEPT MOD"   valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
		</templatecontentitem>
		<templatecontentitem             row="5"  relationship="HAS PROPERTIES"   valueType="text"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111033" csdConceptName="DCM" cmConceptName="Impression Description"
										 condition="count(code[concept/@cv='111005' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111023' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111053' and concept/@csd='DCM']) = 0
										        and count( num[concept/@cv='111055' and concept/@csd='DCM']) = 0
										        and count(date[concept/@cv='111054' and concept/@csd='DCM']) = 0"
										 mbpo="T"/> <!-- At least one of rows 1, 3, 5, 6, 8, 9 shall be present -->
		<templatecontentitem             row="6"  relationship="HAS PROPERTIES"   valueType="code"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111053" csdConceptName="DCM" cmConceptName="Recommended Follow-up" valueSetCID="6028" valueSetBDE="D"
										 condition="count(code[concept/@cv='111005' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111023' and concept/@csd='DCM']) = 0
										        and count(text[concept/@cv='111033' and concept/@csd='DCM']) = 0
										        and count( num[concept/@cv='111055' and concept/@csd='DCM']) = 0
										        and count(date[concept/@cv='111054' and concept/@csd='DCM']) = 0"
										 mbpo="T"> <!-- At least one of rows 1, 3, 5, 6, 8, 9 shall be present -->
			<templatecontentitem		 row="7" relationship="HAS CONCEPT MOD"   valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
		</templatecontentitem>
		<templatecontentitem             row="8"  relationship="HAS PROPERTIES"   valueType="num"       vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111055" csdConceptName="DCM" cmConceptName="Recommended Follow-up Interval" unitsCID="6046" unitsBDE="D"
										 condition="count(code[concept/@cv='111005' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111023' and concept/@csd='DCM']) = 0
										        and count(text[concept/@cv='111033' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111053' and concept/@csd='DCM']) = 0
										        and count(date[concept/@cv='111054' and concept/@csd='DCM']) = 0"
										 mbpo="T"/> <!-- At least one of rows 1, 3, 5, 6, 8, 9 shall be present; MBP only if row 9 not present (checked seperately) -->
		<templatecontentitem             row="9"  relationship="HAS PROPERTIES"   valueType="date"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111054" csdConceptName="DCM" cmConceptName="Recommended Follow-up Date"
										 condition="count(code[concept/@cv='111005' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111023' and concept/@csd='DCM']) = 0
										        and count(text[concept/@cv='111033' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111053' and concept/@csd='DCM']) = 0
										        and count( num[concept/@cv='111055' and concept/@csd='DCM']) = 0"
										 mbpo="T"/> <!-- At least one of rows 1, 3, 5, 6, 8, 9 shall be present; MBP only if row 8 not present (checked seperately) -->

		<verify test="count(num[concept/@cv='111055' and concept/@csd='DCM'])&gt;0 and number(date[concept/@cv='111054' and concept/@csd='DCM']/value)&gt;0" status="Error" message="Recommended Follow-up Interval and Date are both present when only one should be"/>

		<templatecontentitem             row="10" relationship="HAS PROPERTIES"   valueType="num"       vmmin="1" vmmax="1" requiredType="UC"  cvConceptName="111013" csdConceptName="DCM" cmConceptName="Certainty of impression" cvUnits="%" csdUnits="UCUM" cmUnits="Percent"
										 condition="count(code[concept/@cv='111005' and concept/@csd='DCM']) = 0
										        and count(code[concept/@cv='111023' and concept/@csd='DCM']) = 0
										        and count(text[concept/@cv='111033' and concept/@csd='DCM']) = 0"
										 mbpo="T"/> <!-- MBP only if rows 1, 3, 5 are present -->
		<verify test="count(num[concept/@cv='111013' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111013' and concept/@csd='DCM']/value)&lt;0"   status="Error" message="value of Certainty of impression cannot be less than 0%"/>
		<verify test="count(num[concept/@cv='111013' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111013' and concept/@csd='DCM']/value)&gt;100" status="Error" message="value of Certainty of impression cannot be greater than 100%"/>

		<includetemplate                 row="11" tid="4019HasProperties"                               vmmin="1" vmmax="n" requiredType="MC"
										 condition="count(code[concept/@cv='111005' and concept/@csd='DCM'])&gt;0
										         or count(code[concept/@cv='111023' and concept/@csd='DCM'])&gt;0
										         or count(text[concept/@cv='111033' and concept/@csd='DCM'])&gt;0
										         or count(code[concept/@cv='111053' and concept/@csd='DCM'])&gt;0
										         or count( num[concept/@cv='111055' and concept/@csd='DCM'])&gt;0
										         or count(date[concept/@cv='111054' and concept/@csd='DCM'])&gt;0"/>	<!-- Actually M, but don't want to fire unless enclosing template actually used -->		
		<templatecontentitem             row="12" relationship="HAS PROPERTIES"   valueType="num"       vmmin="1" vmmax="n" requiredType="U" conceptNameCID="6142" conceptNameBDE="D">
			<templatecontentitem		 row="13" relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
			<templatecontentitem		 row="14" relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121401" csdConceptName="DCM" cmConceptName="Derivation" valueSetCID="6140" valueSetBDE="D"/>
			<templatecontentitem		 row="15" relationship="INFERRED FROM"    valueType="text"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="112034" csdConceptName="DCM" cmConceptName="Calculation Description"/>
		</templatecontentitem>

	</definetemplate>

	<definetemplate tid="4003" name="MammographyCADIndividualImpressionRecommendation" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="INFERRED FROM"    valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111034" csdConceptName="DCM" cmConceptName="Individual Impression/Recommendation">
			<templatecontentitem		 row="2"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111056" csdConceptName="DCM" cmConceptName="Rendering Intent" valueSetCID="6034" valueSetBDE="D"/>
			<includetemplate             row="3"  tid="4002"                                            vmmin="1" vmmax="1" requiredType="U"/>
			<includetemplate             row="4"  tid="4004"                                            vmmin="1" vmmax="n" requiredType="MC"
										 condition="count(code[concept/@cv='111059' and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- MC At least one of rows 4, 5 shall be present --> <!-- relationship CONTAINS -->
			<includetemplate             row="5"  tid="4006"                                            vmmin="1" vmmax="n" requiredType="MC"
										 condition="count(code[concept/@cv='111015' and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- MC At least one of rows 4, 5 shall be present --> <!-- relationship CONTAINS -->
		</templatecontentitem>
	</definetemplate>

	<!-- cannot not check relationship yet ... sometimes CONTAINS, sometimes INFERRED FROM -->
	<definetemplate tid="4004" name="MammographyCADCompositeFeature" root="F" extensible="F">
		<templatecontentitem             row="1"                                  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111015" csdConceptName="DCM" cmConceptName="Composite Feature" valueSetCID="6016" valueSetBDE="D">
			<templatecontentitem		 row="2"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111056" csdConceptName="DCM" cmConceptName="Rendering Intent"  valueSetCID="6034" valueSetBDE="D"/>
			<includetemplate             row="3"  tid="4108"                                            vmmin="1" vmmax="1" requiredType="U"/>
			<includetemplate             row="4"  tid="4005"                                            vmmin="1" vmmax="1" requiredType="U"/> <!-- relationship HAS PROPERTIES -->
			<includetemplate             row="5"  tid="4004"                                            vmmin="1" vmmax="n" requiredType="MC"
										 condition="(count(code[concept/@cv='111015' and concept/@csd='DCM']) = 1 and count(code[concept/@cv='111059' and concept/@csd='DCM']) = 1)
										         or (count(code[concept/@cv='111015' and concept/@csd='DCM']) = 2 and count(code[concept/@cv='111059' and concept/@csd='DCM']) = 0)" mbpo="F"/> <!-- At least two items shall be present: two of row 5, two of row 6, or one of each --> <!-- relationship INFERRED FROM -->
			<includetemplate             row="6"  tid="4006"                                            vmmin="1" vmmax="n" requiredType="MC"
										 condition="(count(code[concept/@cv='111015' and concept/@csd='DCM']) = 1 and count(code[concept/@cv='111059' and concept/@csd='DCM']) = 1)
										         or (count(code[concept/@cv='111015' and concept/@csd='DCM']) = 0 and count(code[concept/@cv='111059' and concept/@csd='DCM']) = 2)" mbpo="F"/> <!-- At least two items shall be present: two of row 5, two of row 6, or one of each --> <!-- relationship INFERRED FROM -->
			<includetemplate             row="7"  tid="4022"                                            vmmin="1" vmmax="1" requiredType="U"/> <!-- MC Shall be present only if this feature is incorporated from a different report than its parent -->
		</templatecontentitem>
	</definetemplate>


	<!-- cannot not check relationship yet ... sometimes CONTAINS, sometimes HAS PROPERTIES :( -->
	<definetemplate tid="4005" name="MammographyCADCompositeFeatureBody " root="F" extensible="F"> 
		<templatecontentitem             row="1"                                  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111016" csdConceptName="DCM" cmConceptName="Composite Type" valueSetCID="6035" valueSetBDE="D"/>
		<verify test="count(code[concept/@cv='111016' and concept/@csd='DCM' and not (value/@cv='111155' and value/@csd='DCM')])&gt;0
				  and count(../code[(((value/@cv='F-01792' and value/@csd='SRT') or (value/@cv='129789007' and value/@csd='SCT'))) or (((value/@cv='F-01793' and value/@csd='SRT') or (value/@cv='129790003' and value/@csd='SCT')))])&gt;0" status="Error" message="Composite Type is not Target content items are related contra-laterally for asymettric breast tissue"/>
		<templatecontentitem             row="2"                                  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111057" csdConceptName="DCM" cmConceptName="Scope of Feature" valueSetCID="6036" valueSetBDE="D"/>
		<includetemplate                 row="3"  tid="4019"                                            vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(code[concept/@cv='111016' and concept/@csd='DCM'])&gt;0"/>	<!-- Actually M, but don't want to fire unless enclosing template actually used -->		
		<templatecontentitem             row="4"                                  valueType="num"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111011" csdConceptName="DCM" cmConceptName="Certainty of Feature" cvUnits="%" csdUnits="UCUM" cmUnits="Percent"/>
		<verify test="count(num[concept/@cv='111011' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111011' and concept/@csd='DCM']/value)&lt;0" status="Error"   message="value of Certainty of Feature cannot be less than 0%"/>
		<verify test="count(num[concept/@cv='111011' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111011' and concept/@csd='DCM']/value)&gt;100" status="Error" message="value of Certainty of Feature cannot be greater than 100%"/>
		<templatecontentitem             row="5"                                  valueType="num"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="111047" csdConceptName="DCM" cmConceptName="Probability of cancer" cvUnits="%" csdUnits="UCUM" cmUnits="Percent"
										 condition="count(../code[value/@cv='111102' and value/@csd='DCM'])=0"/>	<!-- May be present only if value of parent is not (111102, DCM, “Non-lesion”) -->
		<verify test="count(num[concept/@cv='111047' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111047' and concept/@csd='DCM']/value)&lt;0"   status="Error" message="value of Probability of cancer cannot be less than 0%"/>
		<verify test="count(num[concept/@cv='111047' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111047' and concept/@csd='DCM']/value)&gt;100" status="Error" message="value of Probability of cancer cannot be greater than 100%"/>
		<templatecontentitem             row="6"                                  valueType="code"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111042" csdConceptName="DCM" cmConceptName="Pathology" valueSetCID="6030" valueSetBDE="D"/>
		<includetemplate                 row="7"  tid="1400M"                                           vmmin="1" vmmax="n" requiredType="U"/>
		<includetemplate                 row="8"  tid="1401M"                                           vmmin="1" vmmax="n" requiredType="U"/>
		<includetemplate                 row="9"  tid="1402M"                                           vmmin="1" vmmax="n" requiredType="U"/>
		<includetemplate                 row="10" tid="4021INFM"                                        vmmin="1" vmmax="n" requiredType="U"/>

		<!-- more TBD :( -->
		
	</definetemplate>

	<!-- cannot not check relationship yet ... sometimes CONTAINS, sometimes INFERRED FROM :( -->
	<definetemplate tid="4006" name="MammographyCADSingleImageFinding" root="F" extensible="F">
		<templatecontentitem             row="1"                                  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111059" csdConceptName="DCM" cmConceptName="Single Image Finding" valueSetCID="6014" valueSetBDE="D">
			<templatecontentitem		 row="2"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111056" csdConceptName="DCM" cmConceptName="Rendering Intent" valueSetCID="6034" valueSetBDE="D">
				<templatecontentitem	 row="3"  relationship="HAS PROPERTIES"   valueType="NUM"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="111071" csdConceptName="DCM" cmConceptName="CAD Operating Point" cvUnits="{1:n}" csdUnits="UCUM" cmUnits="range: 1:n"
										 condition="count(../code[value/@cv='111151' and value/@csd='DCM'])&gt;0 and count(//num[concept/@cv='111072' and concept/@csd='DCM'])&gt;0" mbpo="F"/> <!-- IFF value of row 2 is (111151, DCM, “Presentation Optional”) and row 9 of TID 4017 is present -->
			</templatecontentitem>
			<includetemplate             row="4"  tid="4108"                                            vmmin="1" vmmax="1" requiredType="U"/>
			<includetemplate                 row="5"  tid="4019HasProperties"                               vmmin="1" vmmax="1" requiredType="M"/>
			<templatecontentitem             row="6"  relationship="HAS PROPERTIES"   valueType="num"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111012" csdConceptName="DCM" cmConceptName="Certainty of Finding" cvUnits="%" csdUnits="UCUM" cmUnits="Percent"/>
			<verify test="count(num[concept/@cv='111012' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111012' and concept/@csd='DCM']/value)&lt;0"   status="Error" message="value of Certainty of Finding cannot be less than 0%"/>
			<verify test="count(num[concept/@cv='111012' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111012' and concept/@csd='DCM']/value)&gt;100" status="Error" message="value of Certainty of Finding cannot be greater than 100%"/>
			<templatecontentitem		 row="7"                                  valueType="num"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="111047" csdConceptName="DCM" cmConceptName="Probability of cancer" cvUnits="%" csdUnits="UCUM" cmUnits="Percent"
										 condition="count(../code[((value/@cv='F-01710' and value/@csd='SRT') or (value/@cv='129715009' and value/@csd='SCT'))])=0
										        and count(../code[value/@cv='111100'  and value/@csd='DCM'])=0
										        and count(../code[((value/@cv='T-04100' and value/@csd='SRT') or (value/@cv='24142002' and value/@csd='SCT'))])=0
										        and count(../code[value/@cv='111099'  and value/@csd='DCM'])=0
										        and count(../code[value/@cv='111101'  and value/@csd='DCM'])=0
										        and count(../code[value/@cv='111102'  and value/@csd='DCM'])=0" mbpo="F"/>
			<verify test="count(num[concept/@cv='111047' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111047' and concept/@csd='DCM']/value)&lt;0"   status="Error" message="value of Probability of cancer cannot be less than 0%"/>
			<verify test="count(num[concept/@cv='111047' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111047' and concept/@csd='DCM']/value)&gt;100" status="Error" message="value of Probability of cancer cannot be greater than 100%"/>
			<includetemplate			 row="8"  tid="4021HP"                                          vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(../code[((value/@cv='F-01710' and value/@csd='SRT') or (value/@cv='129715009' and value/@csd='SCT'))])=0
										        and count(../code[value/@cv='111100'  and value/@csd='DCM'])=0
										        and count(../code[value/@cv='111101'  and value/@csd='DCM'])=0"/>
			<includetemplate			 row="9"  tid="4007"                                          vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(../code[((value/@cv='F-01710' and value/@csd='SRT') or (value/@cv='129715009' and value/@csd='SCT'))])&gt;0"/>
			<templatecontentitem			 row="10" relationship="R-INFERRED FROM"  valueType="code"      vmmin="1" vmmax="n" requiredType="UC"  cvConceptName="111059" csdConceptName="DCM" cmConceptName="Single Image Finding"
										 condition="count(../code[((value/@cv='F-01710' and value/@csd='SRT') or (value/@cv='129715009' and value/@csd='SCT'))])&gt;0" mbpo="F" matchRelationship="T"/> <!-- This is ambiguous with row 25, unless matchRelationship also checks mode, since by-reference :( -->
			<includetemplate			 row="11" tid="4008"                                          vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(../code[value/@cv='111100' and value/@csd='DCM'])&gt;0"/>
			<includetemplate			 row="12" tid="4009"                                          vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(../code[((value/@cv='F-01776' and value/@csd='SRT') or (value/@cv='129770007' and value/@csd='SCT'))])&gt;0"/>
			<includetemplate			 row="13" tid="4010"                                          vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(../code[((value/@cv='F-01775' and value/@csd='SRT') or (value/@cv='129769006' and value/@csd='SCT'))])&gt;0"/>
			<includetemplate			 row="14" tid="4011"                                          vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(../code[((value/@cv='F-01796' and value/@csd='SRT') or (value/@cv='129793001' and value/@csd='SCT'))])&gt;0"/>
			<templatecontentitem		 row="15" relationship="HAS PROPERTIES"   valueType="code"      vmmin="1" vmmax="1" requiredType="UC"  cvConceptName="111297" csdConceptName="DCM" cmConceptName="Nipple Characteristic" valueSetCID="6039" valueSetBDE="D"
										 condition="count(../code[((value/@cv='T-04100' and value/@csd='SRT') or (value/@cv='24142002' and value/@csd='SCT'))])&gt;0" mbpo="F"/>
			<includetemplate			 row="16" tid="4012"                                          vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(../code[value/@cv='111102' and value/@csd='DCM'])&gt;0"/>
			<includetemplate			 row="17" tid="4013"                                          vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(../code[value/@cv='111099' and value/@csd='DCM'])&gt;0"/>
			<templatecontentitem		 row="18" relationship="R-INFERRED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC"
										 condition="count(../code[concept/@cv = '111101' and concept/@csd = 'DCM'])&gt;0 and count(scoord[concept/@cv = '111030' and concept/@csd = 'DCM'])=0" mbpo="F" matchRelationship="T"/>
			<templatecontentitem		 row="19" relationship="HAS PROPERTIES"  valueType="SCOORD" vmmin="1" vmmax="n" requiredType="MC" cvConceptName="111030" csdConceptName="DCM" cmConceptName="Image Region"
		                                 condition="count(../code[concept/@cv = '111101' and concept/@csd = 'DCM'])&gt;0 and count(reference)=0"  mbpo="F">
				<templatecontentitem	 row="20" relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/>
			</templatecontentitem>
			<includetemplate			 row="21" tid="4014MammoParameters"                         vmmin="1" vmmax="n" requiredType="MC"
										 condition="count(../code[value/@cv='111101' and value/@csd='DCM'])&gt;0"/>
			<templatecontentitem		 row="22" relationship="HAS PROPERTIES"  valueType="NUM"    vmmin="1" vmmax="n" requiredType="U" conceptNameCID="6142" conceptNameBDE="D">
				<templatecontentitem	 row="23" relationship="HAS CONCEPT MOD" valueType="CODE"   vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121401" csdConceptName="DCM" cmConceptName="Derivation" valueSetCID="6140" valueSetBDE="D"
										 condition="count(../num[concept/@cv='111038' and concept/@csd='DCM'])=0" mbpo="F"/> <!-- Actually M, but need to exclude check for ambiguous NumberOfCalcifications, with Row 13 included 4010 Row 3-->
				<templatecontentitem	 row="24" relationship="INFERRED FROM"   valueType="TEXT"   vmmin="1" vmmax="1" requiredType="UC"  cvConceptName="112034" csdConceptName="DCM" cmConceptName="Calculation Description"
										 condition="count(../num[concept/@cv='111038' and concept/@csd='DCM'])=0" mbpo="F"/> <!-- Actually U, but need to exclude check for ambiguous NumberOfCalcifications, with Row 13 included 4010 Row 3-->
			</templatecontentitem>
			<includetemplate			 row="25"  tid="4006"                                        vmmin="1" vmmax="n" requiredType="UC"
										 condition="count(../code[((value/@cv='F-01775' and value/@csd='SRT') or (value/@cv='129769006' and value/@csd='SCT'))])&gt;0"/>	<!-- This is ambiguous with row 10, so have row 10 match relationship and mode as workaround :( -->
			<includetemplate			 row="26"  tid="4022"                                        vmmin="1" vmmax="1" requiredType="U"/> <!-- MC Shall be present only if this finding is incorporated from a different report than its parent -->
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4007" name="BreastComposition" root="F" extensible="F">
		<templatecontentitem             row="1" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="129715009" csdConceptName="SCT" cvAltConceptName="F-01710" csdAltConceptName="SRT" cmConceptName="Breast composition" valueSetCID="6000" valueSetBDE="D"
										 condition="count(code[concept/@cv='111046' and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of row 1 or 2 shall be present	DCID (6000) Overall Breast Composition -->
		<templatecontentitem             row="2" relationship="CONTAINS" valueType="NUM"  vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111046" csdConceptName="DCM" cmConceptName="Percent Fibroglandular Tissue" cvUnits="%" csdUnits="UCUM" cmUnits="Percent"
										 condition="count(code[((concept/@cv='F-01710' and concept/@csd='SRT') or (concept/@cv='129715009' and concept/@csd='SCT'))]) = 0" mbpo="T"/> <!-- At least one of row 1 or 2 shall be present Value = 0 - 100 -->
		<verify test="count(num[concept/@cv='111046' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111046' and concept/@csd='DCM']/value)&lt;0"   status="Error" message="value of Percent Fibroglandular Tissue cannot be less than 0%"/>
		<verify test="count(num[concept/@cv='111046' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111046' and concept/@csd='DCM']/value)&gt;100" status="Error" message="value of Percent Fibroglandular Tissue cannot be greater than 100%"/>
	</definetemplate>

	<definetemplate tid="4008" name="BreastGeometry" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS PROPERTIES"  valueType="SCOORD" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111007" csdConceptName="DCM" cmConceptName="Breast Outline Including Pectoral Muscle Tissue" graphicType="POLYLINE" numpointsmin="2" numpointsmax="n">
			<templatecontentitem     row="2"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/> <!-- Shall reference an IMAGE content item in the (111028, DCM, “Image Library”) :( -->
		</templatecontentitem>
		<templatecontentitem         row="3"  relationship="HAS PROPERTIES"  valueType="SCOORD" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111045" csdConceptName="DCM" cmConceptName="Pectoral Muscle Outline" graphicType="POLYLINE" numpointsmin="2" numpointsmax="n">
			<templatecontentitem     row="4"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/> <!-- Shall reference the same node  as row 2 :( -->
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4009" name="MammographyCADIndividualCalcification" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="MC"  cvConceptName="111009" csdConceptName="DCM" cmConceptName="Calcification Type" valueSetCID="6010" valueSetBDE="D"
								     condition="count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0
											and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of rows 1, 2, 3 shall be present -->
		<includetemplate             row="2"  tid="1400M"                                    vmmin="1" vmmax="n" requiredType="UC"
									 condition="count(code[concept/@cv='111009' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T" matchCondition="T"/> <!-- Really MC not UC, but cannot distinguish presence of optional template with only this item from absence of optional template :(; At least one of rows 1, 2, 3 shall be present -->
		<includetemplate             row="3"  tid="1401M"                                    vmmin="1" vmmax="n" requiredType="UC"
									 condition="count(code[concept/@cv='111009' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0" mbpo="T" matchCondition="T"/> <!-- Really MC not UC, but cannot distinguish presence of optional template with only this item from absence of optional template :(; At least one of rows 1, 2, 3 shall be present -->
		<includetemplate             row="4"  tid="1402M"                                    vmmin="1" vmmax="n" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="4010" name="MammographyCADCalcificationCluster" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="MC"  cvConceptName="111009" csdConceptName="DCM" cmConceptName="Calcification Type" valueSetCID="6010" valueSetBDE="D"
								     condition="count(code[concept/@cv='111008' and concept/@csd='DCM']) = 0
									        and count(num[concept/@cv='111038'  and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0
											and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of rows 1, 2, 3, 4, 5 shall be present -->
		<templatecontentitem         row="2"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111008" csdConceptName="DCM" cmConceptName="Calcification Distribution" valueSetCID="6012" valueSetBDE="D"
								     condition="count(code[concept/@cv='111009' and concept/@csd='DCM']) = 0
									        and count(num[concept/@cv='111038'  and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0
											and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of rows 1, 2, 3, 4, 5 shall be present -->
		<templatecontentitem         row="3"  relationship="HAS PROPERTIES" valueType="NUM"  vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111038" csdConceptName="DCM" cmConceptName="Number of calcifications" cvUnits="1" csdUnits="UCUM" cmUnits="no units"
								     condition="count(code[concept/@cv='111009' and concept/@csd='DCM']) = 0
									        and count(code[concept/@cv='111008' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0
											and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of rows 1, 2, 3, 4, 5 shall be present -->
		<includetemplate             row="4"  tid="1400M"                                    vmmin="1" vmmax="n" requiredType="UC"
									 condition="count(code[concept/@cv='111009' and concept/@csd='DCM']) = 0
											and count(code[concept/@cv='111008' and concept/@csd='DCM']) = 0
									        and count(num[concept/@cv='111038'  and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T" matchCondition="T"/> <!-- Really MC not UC, but cannot distinguish presence of optional template with only this item from absence of optional template :(; At least one of rows 1, 2, 3 shall be present -->
		<includetemplate             row="5"  tid="1401M"                                    vmmin="1" vmmax="n" requiredType="UC"
									 condition="count(code[concept/@cv='111009' and concept/@csd='DCM']) = 0
											and count(code[concept/@cv='111008' and concept/@csd='DCM']) = 0
									        and count(num[concept/@cv='111038'  and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0" mbpo="T" matchCondition="T"/> <!-- Really MC not UC, but cannot distinguish presence of optional template with only this item from absence of optional template :(; At least one of rows 1, 2, 3 shall be present -->
		<includetemplate             row="6"  tid="1402M"                                    vmmin="1" vmmax="n" requiredType="UC"
									 condition="count(num/scoord[concept/@cv='121057' and concept/@csd='DCM'])&gt;0" mbpo="T" matchCondition="T"/> <!-- Really U, not UC, but need to disambiguate from Row 3 so check for SCOORD concept Perimeter Outline :( -->
	</definetemplate>

	<definetemplate tid="4011" name="MammographyCADDensity" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="111035" csdConceptName="DCM" cmConceptName="Lesion Density" valueSetCID="6008" valueSetBDE="D"
								     condition="count(code[((concept/@cv='M-020F9' and concept/@csd='SRT') or (concept/@cv='107644003' and concept/@csd='SCT'))]) = 0
									        and count(code[concept/@cv='111037' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0
											and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of rows 1, 2, 3, 4, 5 shall be present -->
		<templatecontentitem         row="2"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="107644003" csdConceptName="SCT" cvAltConceptName="M-020F9" csdAltConceptName="SRT" cmConceptName="Shape" valueSetCID="6004" valueSetBDE="D"
								     condition="count(code[concept/@cv='111035' and concept/@csd='DCM']) = 0
									        and count(code[concept/@cv='111037' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0
											and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of rows 1, 2, 3, 4, 5 shall be present -->
		<templatecontentitem         row="3"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="MC"  cvConceptName="111037" csdConceptName="DCM" cmConceptName="Margins" valueSetCID="6006" valueSetBDE="D"
								     condition="count(code[concept/@cv='111035' and concept/@csd='DCM']) = 0
									        and count(code[((concept/@cv='M-020F9' and concept/@csd='SRT') or (concept/@cv='107644003' and concept/@csd='SCT'))]) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0
											and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of rows 1, 2, 3, 4, 5 shall be present -->
		<includetemplate             row="4"  tid="1400M"                                    vmmin="1" vmmax="n" requiredType="UC"
									 condition="count(code[concept/@cv='111035' and concept/@csd='DCM']) = 0
									        and count(code[((concept/@cv='M-020F9' and concept/@csd='SRT') or (concept/@cv='107644003' and concept/@csd='SCT'))]) = 0
											and count(code[concept/@cv='111037' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121056' and concept/@csd='DCM']) = 0
									        and count(num/image[concept/@cv='121214'  and concept/@csd='DCM']) = 0" mbpo="T" matchCondition="T"/> <!-- Really MC not UC, but cannot distinguish presence of optional template with only this item from absence of optional template :(; At least one of rows 1, 2, 3 shall be present -->
		<includetemplate             row="5"  tid="1401M"                                    vmmin="1" vmmax="n" requiredType="UC"
									 condition="count(code[concept/@cv='111035' and concept/@csd='DCM']) = 0
									        and count(code[((concept/@cv='M-020F9' and concept/@csd='SRT') or (concept/@cv='107644003' and concept/@csd='SCT'))]) = 0
											and count(code[concept/@cv='111037' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121055' and concept/@csd='DCM']) = 0
									        and count(num/scoord[concept/@cv='121230' and concept/@csd='DCM']) = 0" mbpo="T" matchCondition="T"/> <!-- Really MC not UC, but cannot distinguish presence of optional template with only this item from absence of optional template :(; At least one of rows 1, 2, 3 shall be present -->
		<includetemplate             row="6"  tid="1402M"                                    vmmin="1" vmmax="n" requiredType="UC"
									 condition="count(num/scoord[concept/@cv='121057' and concept/@csd='DCM'])&gt;0" mbpo="T" matchCondition="T"/> <!-- Realy U, not UC, but need to disambiguate from Row 3 so check for SCOORD concept Perimeter Outline :( -->
	</definetemplate>

	<definetemplate tid="4012" name="MammographyCADNonLesion" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111039" csdConceptName="DCM" cmConceptName="Object type" valueSetCID="6040" valueSetBDE="D"/>
		<includetemplate             row="2"  tid="1400M"                                    vmmin="1" vmmax="n" requiredType="U"/>
		<includetemplate             row="3"  tid="1401M"                                    vmmin="1" vmmax="n" requiredType="U"/>
		<includetemplate             row="4"  tid="1402M"                                    vmmin="1" vmmax="n" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="4013" name="MammographySelectedRegion" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS PROPERTIES" valueType="TEXT" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111058" csdConceptName="DCM" cmConceptName="Selected Region Description"/>
		<includetemplate             row="2"  tid="1400M"                                    vmmin="1" vmmax="n" requiredType="U"/>
		<includetemplate             row="3"  tid="1401M"                                    vmmin="1" vmmax="n" requiredType="U"/>
		<includetemplate             row="4"  tid="1402M"                                    vmmin="1" vmmax="n" requiredType="U"/>
	</definetemplate>

	<definetemplate tid="4014MammoParameters" name="CADImageQualityMammo" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111052" csdConceptName="DCM" cmConceptName="Quality Finding" valueSetCID="6041" valueSetBDE="D">
			<templatecontentitem     row="2"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111050" csdConceptName="DCM" cmConceptName="Quality Assessment" valueSetCID="6044" valueSetBDE="D"/>
			<templatecontentitem     row="3"  relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="111051" csdConceptName="DCM" cmConceptName="Quality Control Standard" valueSetCID="6045" valueSetBDE="D"
									 condition="count(code[concept/@cv='111050' and concept/@csd='DCM'])&gt;0" mbpo="T"/>
			<templatecontentitem     row="4"  relationship="HAS PROPERTIES" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111029" csdConceptName="DCM" cmConceptName="Image Quality Rating" cvUnits="{0:100}" csdUnits="UCUM" cmUnits="range:0:100"/>
			<verify test="count(num[concept/@cv='111029' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111029' and concept/@csd='DCM']/value)&lt;0"   status="Error" message="value of Certainty of Feature cannot be less than 0%"/>
			<verify test="count(num[concept/@cv='111029' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111029' and concept/@csd='DCM']/value)&gt;100" status="Error" message="value of Certainty of Feature cannot be greater than 100%"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4015MammoParameters" name="CADDetectionsPerformedMammo" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="INFERRED FROM"    valueType="container" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="111063" csdConceptName="DCM" cmConceptName="Successful Detections"
										 condition="count(../code[value/@cv='111222' and value/@csd='DCM'])&gt;0 or count(../code[value/@cv='111223' and value/@csd='DCM'])&gt;0" mbpo="F">
			<includetemplate             row="2"  tid="4017MammoParameters"       vmmin="1" vmmax="n" requiredType="M"/>
		</templatecontentitem>
		<templatecontentitem             row="3"  relationship="INFERRED FROM"    valueType="container" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="111025" csdConceptName="DCM" cmConceptName="Failed  Detections"
										 condition="count(../code[value/@cv='111224' and value/@csd='DCM'])&gt;0 or count(../code[value/@cv='111223' and value/@csd='DCM'])&gt;0" mbpo="F">
			<includetemplate             row="4"  tid="4017MammoParameters"       vmmin="1" vmmax="n" requiredType="M"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4016MammoParameters" name="CADAnalysesPerformedMammo" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="INFERRED FROM"    valueType="container" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="111062" csdConceptName="DCM" cmConceptName="Successful Analyses"
										 condition="count(../code[value/@cv='111222' and value/@csd='DCM'])&gt;0 or count(../code[value/@cv='111223' and value/@csd='DCM'])&gt;0" mbpo="F">
			<includetemplate             row="2"  tid="4018MammoParameters"       vmmin="1" vmmax="n" requiredType="M"/>
		</templatecontentitem>
		<templatecontentitem             row="3"  relationship="INFERRED FROM"    valueType="container" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="111024" csdConceptName="DCM" cmConceptName="Failed  Analyses"
										 condition="count(../code[value/@cv='111224' and value/@csd='DCM'])&gt;0 or count(../code[value/@cv='111223' and value/@csd='DCM'])&gt;0" mbpo="F">
			<includetemplate             row="4"  tid="4018MammoParameters"       vmmin="1" vmmax="n" requiredType="M"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4017MammoParameters" name="CADDetectionsPerformedMammo" root="F" extensible="F">
		<templatecontentitem			 row="1"  relationship="CONTAINS"          valueType="code"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111022"  csdConceptName="DCM" cmConceptName="Detection Performed" valueSetCID="6014" valueSetBDE="D">
			<includetemplate             row="2"  tid="4019HasProperties"                             vmmin="1" vmmax="1" requiredType="M"/>
			<templatecontentitem		 row="3"  relationship="HAS PROPERTIES"    valueType="IMAGE"  vmmin="1" vmmax="n" requiredType="MC" condition="count(reference)=0 and count(uidref)=0 and count(scoord)=0" mbpo="T" matchRelationship="T"/>
			<templatecontentitem		 row="4"  relationship="R-HAS PROPERTIES"  valueType="IMAGE"  vmmin="1" vmmax="n" requiredType="MC" condition="count(image)=0 and count(uidref)=0 and count(scoord)=0" mbpo="T" matchRelationship="T"/>
			<templatecontentitem		 row="5"  relationship="HAS PROPERTIES"    valueType="UIDREF" vmmin="1" vmmax="n" requiredType="MC" cvConceptName="112002" csdConceptName="DCM" cmConceptName="Series Instance UID" condition="count(image)=0 and count(reference)=0 and count(scoord)=0" mbpo="T" matchRelationship="T"/>

			<templatecontentitem         row="6"  relationship="INFERRED FROM"     valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="111030" csdConceptName="DCM" cmConceptName="Image Region" condition="count(image)=0 and count(reference)=0 and count(uidref)=0"  mbpo="T">
				<templatecontentitem     row="7"  relationship="R-SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 8 -->
				<templatecontentitem     row="8"  relationship="SELECTED FROM"     valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 7 -->
			</templatecontentitem>
			<includetemplate             row="9"  tid="4023"                                          vmmin="1" vmmax="1" requiredType="U"/>		
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4018MammoParameters" name="CADAnalysisPerformedMammo" root="F" extensible="F">
		<templatecontentitem			 row="1"  relationship="CONTAINS"          valueType="code"   vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111004"  csdConceptName="DCM" cmConceptName="Analysis Performed" valueSetCID="6043" valueSetBDE="D">
			<includetemplate             row="2"  tid="4019HasProperties"                             vmmin="1" vmmax="1" requiredType="M"/>
			<templatecontentitem		 row="3"  relationship="HAS PROPERTIES"    valueType="IMAGE"  vmmin="1" vmmax="n" requiredType="MC" condition="count(reference)=0 and count(uidref)=0 and count(scoord)=0" mbpo="T" matchRelationship="T"/>
			<templatecontentitem		 row="4"  relationship="R-HAS PROPERTIES"  valueType="IMAGE"  vmmin="1" vmmax="n" requiredType="MC" condition="count(image)=0 and count(uidref)=0 and count(scoord)=0" mbpo="T" matchRelationship="T"/>
			<templatecontentitem		 row="5"  relationship="HAS PROPERTIES"    valueType="UIDREF" vmmin="1" vmmax="n" requiredType="MC" cvConceptName="112002" csdConceptName="DCM" cmConceptName="Series Instance UID" condition="count(image)=0 and count(reference)=0 and count(scoord)=0" mbpo="T" matchRelationship="T"/>

			<templatecontentitem         row="6"  relationship="INFERRED FROM"     valueType="SCOORD" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="111030" csdConceptName="DCM" cmConceptName="Image Region" condition="count(image)=0 and count(reference)=0 and count(uidref)=0"  mbpo="T">
				<templatecontentitem     row="7"  relationship="R-SELECTED FROM"   valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(image)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 8 -->
				<templatecontentitem     row="8"  relationship="SELECTED FROM"     valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="MC" condition="count(reference)=0" mbpo="F" matchRelationship="T"/> <!-- XOR Row 7 -->
			</templatecontentitem>
			<includetemplate             row="9"  tid="4023"                                          vmmin="1" vmmax="1" requiredType="U"/>		
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4019" name="CADAlgorithmIdentification" root="F" extensible="F">	<!-- no relationship, e.g., could be HAS PROPERTIES or CONTAINS from TID 4005 Mammography CAD Composite Feature Body -->
		<templatecontentitem             row="1"                                   valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111001" csdConceptName="DCM" cmConceptName="Algorithm Name"/>
		<templatecontentitem             row="2"                                   valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111003" csdConceptName="DCM" cmConceptName="Algorithm Version"/>
		<templatecontentitem             row="3"                                   valueType="text" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111002" csdConceptName="DCM" cmConceptName="Algorithm Parameters"/>
	</definetemplate>

	<definetemplate tid="4019Contains" name="CADAlgorithmIdentificationContains" root="F" extensible="F">	<!-- used by TID 3708 ECG Waveform Information -->
		<templatecontentitem             row="1"  relationship="CONTAINS"          valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111001" csdConceptName="DCM" cmConceptName="Algorithm Name"/>
		<templatecontentitem             row="2"  relationship="CONTAINS"          valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111003" csdConceptName="DCM" cmConceptName="Algorithm Version"/>
		<templatecontentitem             row="3"  relationship="CONTAINS"          valueType="text" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111002" csdConceptName="DCM" cmConceptName="Algorithm Parameters"/>
	</definetemplate>

	<definetemplate tid="4019HasConceptMod" name="CADAlgorithmIdentificationConceptMod" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="HAS CONCEPT MOD"   valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111001" csdConceptName="DCM" cmConceptName="Algorithm Name"/>
		<templatecontentitem             row="2"  relationship="HAS CONCEPT MOD"   valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111003" csdConceptName="DCM" cmConceptName="Algorithm Version"/>
		<templatecontentitem             row="3"  relationship="HAS CONCEPT MOD"   valueType="text" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111002" csdConceptName="DCM" cmConceptName="Algorithm Parameters"/>
	</definetemplate>

	<definetemplate tid="4019HasObsContext" name="CADAlgorithmIdentificationHasObsContext" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="HAS OBS CONTEXT"   valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111001" csdConceptName="DCM" cmConceptName="Algorithm Name"/>
		<templatecontentitem             row="2"  relationship="HAS OBS CONTEXT"   valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111003" csdConceptName="DCM" cmConceptName="Algorithm Version"/>
		<templatecontentitem             row="3"  relationship="HAS OBS CONTEXT"   valueType="text" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111002" csdConceptName="DCM" cmConceptName="Algorithm Parameters"/>
	</definetemplate>

	<definetemplate tid="4019HasProperties" name="CADAlgorithmIdentificationHasProperties" root="F" extensible="F"> <!-- TID 4002 Mammography CAD Impression/Recommendation Body called from TID 4001 Mammography CAD Overall Impression/Recommendation-->
		<templatecontentitem             row="1"  relationship="HAS PROPERTIES"    valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111001" csdConceptName="DCM" cmConceptName="Algorithm Name"/>
		<templatecontentitem             row="2"  relationship="HAS PROPERTIES"    valueType="text" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111003" csdConceptName="DCM" cmConceptName="Algorithm Version"/>
		<templatecontentitem             row="3"  relationship="HAS PROPERTIES"    valueType="text" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111002" csdConceptName="DCM" cmConceptName="Algorithm Parameters"/>
	</definetemplate>

	<definetemplate tid="4020Mammo" name="CADImageLibraryEntry_MammoParameters" root="F" extensible="T">
		<templatecontentitem         row="1"  relationship="CONTAINS"        valueType="image"  vmmin="1" vmmax="n" requiredType="M">	<!-- actually vmmax in document is 1, but 1-n multiplicity from inclusion propagated here -->
			<!-- ignore MC/UC Shall/may be present if XX is in the Image Instance ... cannot check that so just use U instead -->
			<templatecontentitem     row="2"  relationship="HAS ACQ CONTEXT" valueType="code"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111027"  csdConceptName="DCM" cmConceptName="Image Laterality" valueSetCID="6022" valueSetBDE="D"/>
			<templatecontentitem     row="3"  relationship="HAS ACQ CONTEXT" valueType="code"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111031"  csdConceptName="DCM" cmConceptName="Image View" valueSetCID="4014" valueSetBDE="D">
				<templatecontentitem row="4"  relationship="HAS CONCEPT MOD" valueType="code"   vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111032"  csdConceptName="DCM" cmConceptName="Image View Modifier" valueSetCID="4015" valueSetBDE="D"/>
			</templatecontentitem>
			<templatecontentitem     row="5"  relationship="HAS ACQ CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111044"  csdConceptName="DCM" cmConceptName="Patient Orientation Row"/>
			<templatecontentitem     row="6"  relationship="HAS ACQ CONTEXT" valueType="text"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111043"  csdConceptName="DCM" cmConceptName="Patient Orientation Column"/>
			<templatecontentitem     row="7"  relationship="HAS ACQ CONTEXT" valueType="date"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111060"  csdConceptName="DCM" cmConceptName="Study Date"/>
			<templatecontentitem     row="8"  relationship="HAS ACQ CONTEXT" valueType="time"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111061"  csdConceptName="DCM" cmConceptName="Study Time"/>
			<templatecontentitem     row="9"  relationship="HAS ACQ CONTEXT" valueType="date"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111018"  csdConceptName="DCM" cmConceptName="Content Date"/>
			<templatecontentitem     row="10" relationship="HAS ACQ CONTEXT" valueType="time"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111019"  csdConceptName="DCM" cmConceptName="Content Time"/>
			<templatecontentitem     row="11" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111026"  csdConceptName="DCM" cmConceptName="Horizontal Pixel Spacing" unitsCID="PMP_4020ROW1112" unitsBDE="E"/>
			<templatecontentitem     row="12" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111066"  csdConceptName="DCM" cmConceptName="Vertical Pixel Spacing"   unitsCID="PMP_4020ROW1112" unitsBDE="E"/>
			<templatecontentitem     row="13" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="112011"  csdConceptName="DCM" cmConceptName="Positioner Primary Angle"   cvUnits="deg" csdUnits="UCUM" cmUnits="degrees"/> <!-- no unit restriction in standard, but seems sensible to check -->
			<templatecontentitem     row="14" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="112012"  csdConceptName="DCM" cmConceptName="Positioner Secondary Angle" cvUnits="deg" csdUnits="UCUM" cmUnits="degrees"/> <!-- no unit restriction in standard, but seems sensible to check -->
			<templatecontentitem     row="15" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="112226"  csdConceptName="DCM" cmConceptName="Spacing between slices"     cvUnits="mm"  csdUnits="UCUM" cmUnits="millimeter"/>
			<templatecontentitem     row="16" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="112225"  csdConceptName="DCM" cmConceptName="Slice Thickness"            cvUnits="mm"  csdUnits="UCUM" cmUnits="millimeter"/>
			<templatecontentitem     row="17" relationship="HAS ACQ CONTEXT" valueType="uidref" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="112227"  csdConceptName="DCM" cmConceptName="Frame of Reference UID"/>
			<templatecontentitem     row="18" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110901"  csdConceptName="DCM" cmConceptName="Image Position (Patient) X" cvUnits="mm"  csdUnits="UCUM" cmUnits="millimeter"/>
			<templatecontentitem     row="19" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110902"  csdConceptName="DCM" cmConceptName="Image Position (Patient) Y" cvUnits="mm"  csdUnits="UCUM" cmUnits="millimeter"/>
			<templatecontentitem     row="20" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110903"  csdConceptName="DCM" cmConceptName="Image Position (Patient) Z" cvUnits="mm"  csdUnits="UCUM" cmUnits="millimeter"/>
			<templatecontentitem     row="21" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110904"  csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row X"     cvUnits="{-1:1}"  csdUnits="UCUM" cmUnits="{-1:1}"/>
			<templatecontentitem     row="22" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110905"  csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row Y"     cvUnits="{-1:1}"  csdUnits="UCUM" cmUnits="{-1:1}"/>
			<templatecontentitem     row="23" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110906"  csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row Z"     cvUnits="{-1:1}"  csdUnits="UCUM" cmUnits="{-1:1}"/>
			<templatecontentitem     row="24" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110907"  csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column  X" cvUnits="{-1:1}"  csdUnits="UCUM" cmUnits="{-1:1}"/>
			<templatecontentitem     row="25" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110908"  csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column  Y" cvUnits="{-1:1}"  csdUnits="UCUM" cmUnits="{-1:1}"/>
			<templatecontentitem     row="26" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110909"  csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column  Z" cvUnits="{-1:1}"  csdUnits="UCUM" cmUnits="{-1:1}"/>
			<templatecontentitem     row="27" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110910"  csdConceptName="DCM" cmConceptName="Pixel Data Rows"    cvUnits="{pixels}"  csdUnits="UCUM" cmUnits="pixels"/>
			<templatecontentitem     row="27" relationship="HAS ACQ CONTEXT" valueType="num"    vmmin="1" vmmax="1" requiredType="U"  cvConceptName="110911"  csdConceptName="DCM" cmConceptName="Pixel Data Columns" cvUnits="{pixels}"  csdUnits="UCUM" cmUnits="pixels"/>
		</templatecontentitem>
	</definetemplate>
	
	<!-- this is the unparameterized form extracted from 2013; see also 4020Mammo that was created before for Mammo CAD - need to hamronize these :( -->
	<definetemplate tid="4020" name="CADImageLibraryEntry" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem				row="1" relationship="" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="M">
			<templatecontentitem			row="2" relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111027" csdConceptName="DCM" cmConceptName="Image Laterality">
				<!-- Really MC but real world - Shall be present if (0020,0062) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="3" relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111031" csdConceptName="DCM" cmConceptName="Image View">
				<!-- Really MC but real world - Shall be present if (0054,0220) is in the Image Instance-->
				<templatecontentitem		row="4" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111032" csdConceptName="DCM" cmConceptName="Image View Modifier">
					<!-- Really MC but real world - Shall be present if (0054,0222) is in the Image Instance-->
				</templatecontentitem>
			</templatecontentitem>
			<templatecontentitem			row="5" relationship="HAS ACQ CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111044" csdConceptName="DCM" cmConceptName="Patient Orientation Row">
				<!-- Really MC but real world - Shall be present if (0020,0020) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="6" relationship="HAS ACQ CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111043" csdConceptName="DCM" cmConceptName="Patient Orientation Column">
				<!-- Really MC but real world - Shall be present if (0020,0020) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="7" relationship="HAS ACQ CONTEXT" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111060" csdConceptName="DCM" cmConceptName="Study Date">
				<!-- Really MC but real world - Shall be present if (0008,0020) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="8" relationship="HAS ACQ CONTEXT" valueType="TIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111061" csdConceptName="DCM" cmConceptName="Study Time">
				<!-- Really MC but real world - Shall be present if (0008,0030) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="9" relationship="HAS ACQ CONTEXT" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111018" csdConceptName="DCM" cmConceptName="Content Date">
				<!-- Really MC but real world - Shall be present if (0008,0023) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="10" relationship="HAS ACQ CONTEXT" valueType="TIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111019" csdConceptName="DCM" cmConceptName="Content Time">
				<!-- Really MC but real world - Shall be present if (0008,0033) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="11" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111026" csdConceptName="DCM" cmConceptName="Horizontal Pixel Spacing" unitsCID="PMP_4020ROW1112" unitsBDE="E">
				<!-- Really MC but real world - Shall be present if (0018,1164) or (0028,0030) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="12" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111066" csdConceptName="DCM" cmConceptName="Vertical Pixel Spacing" unitsCID="PMP_4020ROW1112" unitsBDE="E">
				<!-- Really MC but real world - Shall be present if (0018,1164) or (0028,0030) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="13" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="112011" csdConceptName="DCM" cmConceptName="Positioner Primary Angle">
				<!-- Really UC but real world - May be present if (0018,1510) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="14" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="112012" csdConceptName="DCM" cmConceptName="Positioner Secondary Angle">
				<!-- Really UC but real world - May be present if (0018,1511) is in the Image Instance-->
			</templatecontentitem>
			<templatecontentitem			row="15" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="112226" csdConceptName="DCM" cmConceptName="Spacing between slices" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter">
				<!-- Really UC but real world - May be computed from the Image Position (Patient) (0020,0032) projected onto the normal to the Image Orientation (Patient) (0020,0037) if present; may or may not be the same as the Spacing Between Slices (0018,0088) if present.-->
			</templatecontentitem>
			<templatecontentitem			row="16" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="112225" csdConceptName="DCM" cmConceptName="Slice Thickness" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter">
				<!-- Really UC but real world - May be present if Slice Thickness (0018,0050) is in the Image Instance.-->
			</templatecontentitem>
			<templatecontentitem			row="17" relationship="HAS ACQ CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="U" cvConceptName="112227" csdConceptName="DCM" cmConceptName="Frame of Reference UID">
				<!-- Really UC but real world - May be present if Frame of Reference UID (0020,0052) is in the Image Instance.-->
			</templatecontentitem>
			<templatecontentitem			row="18" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110901" csdConceptName="DCM" cmConceptName="Image Position (Patient) X" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter">
				<!-- Really UC but real world - May be present if Image Position (Patient) (0020,0032) is in the Image Instance, and is the first value of Image Position (Patient) (0020,0032) for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="19" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110902" csdConceptName="DCM" cmConceptName="Image Position (Patient) Y" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter">
				<!--Shall be present if Row 18 is present, and is the second value of Image Position (Patient) (0020,0032) in the Image Instance for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="20" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110903" csdConceptName="DCM" cmConceptName="Image Position (Patient) Z" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter">
				<!--Shall be present if Row 18 is present, and is the second value of Image Position (Patient) (0020,0032) in the Image Instance for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="21" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110904" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row X" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}">
				<!-- Really UC but real world - May be present if Image Position (Patient) (0020,0037) is in the Image Instance, and is the first value of Image Orientation (Patient) (0020,0037) for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="22" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110905" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row Y" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}">
				<!-- Really MC but real world - Shall be present if Row 21 is present, and is the second value of Image Orientation (Patient) (0020,0037) in the Image Instance for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="23" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110906" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row Z" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}">
				<!-- Really MC but real world - Shall be present if Row 21 is present, and is the third value of Image Orientation (Patient) (0020,0037) in the Image Instance for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="24" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110907" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column X" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}">
				<!-- Really MC but real world - Shall be present if Row 21 is present, and is the fourth value of Image Orientation (Patient) (0020,0037) in the Image Instance for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="25" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110908" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column Y" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}">
				<!-- Really MC but real world - Shall be present if Row 21 is present, and is the fifth value of Image Orientation (Patient) (0020,0037) in the Image Instance for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="26" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110909" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column Z" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}">
				<!-- Really MC but real world - Shall be present if Row 21 is present, and is the sixth value of Image Orientation (Patient) (0020,0037) in the Image Instance for the referenced image or frame.-->
			</templatecontentitem>
			<templatecontentitem			row="27" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110910" csdConceptName="DCM" cmConceptName="Pixel Data Rows" cvUnits="{pixels}" csdUnits="UCUM" cmUnits="pixels">
				<!-- Really UC but real world - May be present if Rows (0028,0010) is in the Image Instance.-->
			</templatecontentitem>
			<templatecontentitem			row="28" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110911" csdConceptName="DCM" cmConceptName="Pixel Data Columns" cvUnits="{pixels}" csdUnits="UCUM" cmUnits="pixels">
				<!-- Really MC but real world - Shall be present if Row 27 is present, and is the value of Columns (0028,0011) in the Image Instance.-->
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4021HP" name="MammographyCADGeometry" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="HAS PROPERTIES"  valueType="SCOORD" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111010" csdConceptName="DCM" cmConceptName="Center" graphicType="POINT" numpointsmin="1" numpointsmax="1">
			<templatecontentitem     row="2"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/>
		</templatecontentitem>
		<templatecontentitem         row="3"  relationship="HAS PROPERTIES"  valueType="SCOORD" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111041" csdConceptName="DCM" cmConceptName="Outline" graphicType="POLYLINE_CIRCLE_ELLIPSE" numpointsmin="2" numpointsmax="n">	<!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem     row="4"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/>
		</templatecontentitem>
		<templatecontentitem         row="5"  relationship="HAS PROPERTIES"  valueType="SCOORD" vmmin="1" vmmax="n" requiredType="U" conceptNameCID="6166" conceptNameBDE="D">
			<templatecontentitem     row="6"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4021INFM" name="MammographyCADGeometry" root="F" extensible="F">
		<templatecontentitem         row="1"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="n" requiredType="M" cvConceptName="111010" csdConceptName="DCM" cmConceptName="Center" graphicType="POINT" numpointsmin="1" numpointsmax="1">	<!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem     row="2"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/>
		</templatecontentitem>
		<templatecontentitem         row="3"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111041" csdConceptName="DCM" cmConceptName="Outline" graphicType="POLYLINE_CIRCLE_ELLIPSE" numpointsmin="2" numpointsmax="n">	<!-- is really vm 1, but invoked multiple times as siblings :( -->
			<templatecontentitem     row="4"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/>
		</templatecontentitem>
		<templatecontentitem         row="5"  relationship="INFERRED FROM"   valueType="SCOORD" vmmin="1" vmmax="n" requiredType="U" conceptNameCID="6166" conceptNameBDE="D">
			<templatecontentitem     row="6"  relationship="R-SELECTED FROM" valueType="IMAGE"  vmmin="1" vmmax="1" requiredType="M"/>
		</templatecontentitem>
	</definetemplate>


	<definetemplate tid="4022" name="CADObservationContext" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="HAS OBS CONTEXT"  valueType="composite" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111040" csdConceptName="DCM" cmConceptName="Original Source"> <!-- MC Shall be present if the original source is a DICOM object -->
			<includetemplate             row="2"  tid="1204"                                            vmmin="1" vmmax="1" requiredType="M"/>
		</templatecontentitem>
		<includetemplate				 row="3"  tid="1001"                                            vmmin="1" vmmax="1" requiredType="M"/>
	</definetemplate>

	<definetemplate tid="4023" name="CADOperatingPoints" root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="HAS PROPERTIES"  valueType="NUM"        vmmin="1" vmmax="1" requiredType="M" cvConceptName="111072" csdConceptName="DCM" cmConceptName="Maximum CAD Operating Point"     unitsCID="PMP_4023ROW1" unitsBDE="D"/> <!-- Value is restricted to being an integer :( -->
		<templatecontentitem             row="2"  relationship="HAS PROPERTIES"  valueType="NUM"        vmmin="1" vmmax="1" requiredType="U" cvConceptName="111092" csdConceptName="DCM" cmConceptName="Recommended CAD Operating Point" cvUnits="{0:n}" csdUnits="UCUM" cmUnits="range:0:n"/> <!-- where n is the value specified in row 1; value is restricted to being an integer :( -->
		<templatecontentitem             row="3"  relationship="HAS PROPERTIES"  valueType="CONTAINER"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="111093" csdConceptName="DCM" cmConceptName="Operating Point Table">
			<templatecontentitem		 row="4"  relationship="CONTAINS"        valueType="CODE"       vmmin="1" vmmax="1" requiredType="M" cvConceptName="122698" csdConceptName="DCM" cmConceptName="X-Concept" valueSetCID="6048" valueSetBDE="D"/>
			<templatecontentitem		 row="5"  relationship="CONTAINS"        valueType="CODE"       vmmin="1" vmmax="1" requiredType="M" cvConceptName="122699" csdConceptName="DCM" cmConceptName="Y-Concept" valueSetCID="6048" valueSetBDE="D"/>
			<templatecontentitem         row="6"  relationship="CONTAINS"        valueType="NUM"        vmmin="1" vmmax="n" requiredType="M" cvConceptName="111071" csdConceptName="DCM" cmConceptName="CAD Operating Point" cvUnits="{0:n}" csdUnits="UCUM" cmUnits="range:0:n"> <!-- Number of instances of this row shall equal value of row 1, plus 1.; where n is the value specified in row 1; value is restricted to being an integer that is unique within the invocation of this template :( -->
				<templatecontentitem	 row="7"  relationship="HAS PROPERTIES"  valueType="TEXT"       vmmin="1" vmmax="1" requiredType="U" cvConceptName="111081" csdConceptName="DCM" cmConceptName="CAD Operating Point Description"/>
				<templatecontentitem	 row="8"  relationship="HAS PROPERTIES"  valueType="NUM"        vmmin="1" vmmax="1" requiredType="U"/> <!-- Concept name should be value of Row 4 :( -->
				<templatecontentitem	 row="9"  relationship="HAS PROPERTIES"  valueType="NUM"        vmmin="1" vmmax="1" requiredType="U"/> <!-- Concept name should be value of Row 5 :( -->
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="4108" name="TrackingIdentifier " root="F" extensible="F">
		<templatecontentitem             row="1"  relationship="HAS OBS CONTEXT"  valueType="text"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="112039" csdConceptName="DCM" cmConceptName="Tracking Identifier"
										 condition="count(uidref[concept/@cv='112040' and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of row 1 or 2 shall be present -->
		<templatecontentitem             row="2"  relationship="HAS OBS CONTEXT"  valueType="uidref"    vmmin="1" vmmax="1" requiredType="MC" cvConceptName="112040" csdConceptName="DCM" cmConceptName="Tracking Unique Identifier"
										 condition="count(text[concept/@cv='112039' and concept/@csd='DCM']) = 0" mbpo="T"/> <!-- At least one of row 1 or 2 shall be present -->
	</definetemplate>
	
	<definetemplate tid="1410" name="PlanarROIMeasurements" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem				row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="125007" csdConceptName="DCM" cmConceptName="Measurement Group">
			<templatecontentitem			row="1b" relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C67447" csdConceptName="NCIt" cmConceptName="Activity Session" />
			<templatecontentitem			row="2" relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="M" cvConceptName="112039" csdConceptName="DCM" cmConceptName="Tracking Identifier" />
			<templatecontentitem			row="3" relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="M" cvConceptName="112040" csdConceptName="DCM" cmConceptName="Tracking Unique Identifier" />
			<templatecontentitem			row="3b" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121071" csdConceptName="DCM" cmConceptName="Finding"/>
			<templatecontentitem			row="3c" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="130400" csdConceptName="DCM" cmConceptName="Geometric purpose of region" valueSetCID="219" valueSetBDE="B"/>
    		<includetemplate				row="4"  tid="1502" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="U" />
			<templatecontentitem			row="5" relationship="CONTAINS" valueType="SCOORD" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="111030" csdConceptName="DCM" cmConceptName="Image Region"
											condition="count(image[concept/@cv='121214' and concept/@csd='DCM']) = 0" mbpo="F"> <!--XOR Row 7-->
				<templatecontentitem		row="6" relationship="SELECTED FROM" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="M" />
			</templatecontentitem>
			<templatecontentitem			row="7" relationship="CONTAINS" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121214" csdConceptName="DCM" cmConceptName="Referenced Segmentation Frame"
											condition="count(scoord[concept/@cv='111030' and concept/@csd='DCM']) = 0" mbpo="F"> <!--XOR Row 5-->
			</templatecontentitem>
			<templatecontentitem			row="8" relationship="CONTAINS" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121233" csdConceptName="DCM" cmConceptName="Source image for segmentation"
											condition="count(image[concept/@cv='121214' and concept/@csd='DCM']) &gt; 0" mbpo="F"> <!--IFF Row 7-->
			</templatecontentitem>
			<templatecontentitem			row="9" relationship="CONTAINS" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121200" csdConceptName="DCM" cmConceptName="Illustration of ROI" />
    		<templatecontentitem			row="10" relationship="CONTAINS" valueType="COMPOSITE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126100" csdConceptName="DCM" cmConceptName="Real World Value Map used for measurement" />	<!-- CP 1388  -->
			<includetemplate				row="11" tid="1419" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U" />
			<!--$Measurement = $Measurement, $Units = $Units, $ModType = $ModType, $ModValue = $ModValue, $Method = $Method, $Derivation = $Derivation, $TargetSite = $TargetSite, $TargetSiteMod = $TargetSiteMod, $Equation = $Equation, $RefAuthority = $RefAuthority, $RangeAuthority = $RangeAuthority, $DerivationParameter = $DerivationParameter, $DerivationParameterUnits = $DerivationParameterUnits-->
			<!-- <templatecontentitem			row="12" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" matchRelationship="T"/> -->	<!-- do not activate, otherwise does not flag extra content items that are actually errors --> <!-- use relationship to disambiguate from other rows -->
			<!-- <templatecontentitem			row="13" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="n" requiredType="U" matchRelationship="T"/> -->	<!-- do not activate, otherwise does not flag extra content items that are actually errors --> <!-- use relationship to disambiguate from row 2 -->
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="1411" name="VolumetricROIMeasurements" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem				row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="125007" csdConceptName="DCM" cmConceptName="Measurement Group">
			<templatecontentitem			row="1b" relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C67447" csdConceptName="NCIt" cmConceptName="Activity Session" />
			<templatecontentitem			row="2" relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="M" cvConceptName="112039" csdConceptName="DCM" cmConceptName="Tracking Identifier" />
			<templatecontentitem			row="3" relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="M" cvConceptName="112040" csdConceptName="DCM" cmConceptName="Tracking Unique Identifier" />
			<templatecontentitem			row="3b" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121071" csdConceptName="DCM" cmConceptName="Finding"/>
			<templatecontentitem			row="3c" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="130400" csdConceptName="DCM" cmConceptName="Geometric purpose of region" valueSetCID="219" valueSetBDE="B"/>
    		<includetemplate				row="4"  tid="1502" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="U" />
			<templatecontentitem			row="5" relationship="CONTAINS" valueType="SCOORD" vmmin="1" vmmax="n" requiredType="MC" cvConceptName="111030" csdConceptName="DCM" cmConceptName="Image Region"
											condition="count(image   [concept/@cv='121191' and concept/@csd='DCM']) = 0
												   and count(scoord3d[concept/@cv='121231' and concept/@csd='DCM']) = 0" mbpo="F"> <!--XOR Rows 7, 10-->
				<templatecontentitem		row="6" relationship="SELECTED FROM" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="M" />
			</templatecontentitem>
			<templatecontentitem			row="7" relationship="CONTAINS" valueType="IMAGE" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121191" csdConceptName="DCM" cmConceptName="Referenced Segment"
											condition="count(scoord  [concept/@cv='111030' and concept/@csd='DCM']) = 0
												   and count(scoord3d[concept/@cv='121231' and concept/@csd='DCM']) = 0" mbpo="F"> <!--XOR Rows 5, 10-->
			</templatecontentitem>
			<templatecontentitem			row="10" relationship="CONTAINS" valueType="SCOORD3D" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121231" csdConceptName="DCM" cmConceptName="Volume Surface"
											condition="count(scoord[concept/@cv='111030' and concept/@csd='DCM']) = 0
												   and count(image [concept/@cv='121191' and concept/@csd='DCM']) = 0" mbpo="F"> <!--XOR Rows 5, 7-->
			</templatecontentitem>
			<templatecontentitem			row="11" relationship="CONTAINS" valueType="IMAGE" vmmin="1" vmmax="n" requiredType="MC" cvConceptName="121233" csdConceptName="DCM" cmConceptName="Source image for segmentation"
											condition="count(uidref[concept/@cv='121232' and concept/@csd='DCM']) = 0
												  and (count(image [concept/@cv='121191' and concept/@csd='DCM']) &gt; 0
												    or count(image [concept/@cv='121231' and concept/@csd='DCM']) &gt; 0)" mbpo="F"> <!--XOR Row 12 and IFF Row 7 or 10-->
			</templatecontentitem>
			<templatecontentitem			row="12" relationship="CONTAINS" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121232" csdConceptName="DCM" cmConceptName="Source series for segmentation"
											condition="count(image   [concept/@cv='121233' and concept/@csd='DCM']) = 0
												  and (count(image   [concept/@cv='121191' and concept/@csd='DCM']) &gt; 0
												    or count(scoord3d[concept/@cv='121231' and concept/@csd='DCM']) &gt; 0)" mbpo="F"> <!--XOR Row 11 and IFF Row 7 or 10-->
			</templatecontentitem>
			<templatecontentitem			row="13" relationship="CONTAINS" valueType="IMAGE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="121200" csdConceptName="DCM" cmConceptName="Illustration of ROI" />
    		<templatecontentitem			row="14" relationship="CONTAINS" valueType="COMPOSITE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126100" csdConceptName="DCM" cmConceptName="Real World Value Map used for measurement" />	<!-- CP 1388  -->
			<includetemplate				row="15" tid="1419" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U" />
			<!--$Measurement = $Measurement, $Units = $Units, $ModType = $ModType, $ModValue = $ModValue, $Method = $Method, $Derivation = $Derivation, $TargetSite = $TargetSite, $TargetSiteMod = $TargetSiteMod, $Equation = $Equation, $RefAuthority = $RefAuthority, $RangeAuthority = $RangeAuthority, $DerivationParameter = $DerivationParameter, $DerivationParameterUnits = $DerivationParameterUnits-->
			<!--<templatecontentitem			row="16" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" matchRelationship="T"/> -->	<!-- do not activate, otherwise does not flag extra content items that are actually errors --> <!-- use relationship to disambiguate from other rows -->
			<!--<templatecontentitem			row="17" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="n" requiredType="U" matchRelationship="T"/> -->	<!-- do not activate, otherwise does not flag extra content items that are actually errors --> <!-- use relationship to disambiguate from row 2 -->
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="1419" name="ROIMeasurements" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem				row="1" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" />
		<templatecontentitem				row="2" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="363698007" csdConceptName="SCT" cvAltConceptName="G-C0E3" csdAltConceptName="SRT" cmConceptName="Finding Site">
			<templatecontentitem			row="3" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="244" valueSetBDE="D" />
			<templatecontentitem			row="4" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="106233006" csdConceptName="SCT" cvAltConceptName="G-A1F8" csdAltConceptName="SRT" cmConceptName="Topographical modifier" />
		</templatecontentitem>
		<templatecontentitem				row="5" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="n" requiredType="M">
			<templatecontentitem			row="6" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" />	<!-- $ModType = $ModValue -->
			<templatecontentitem			row="7" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" />
			<templatecontentitem			row="8" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121401" csdConceptName="DCM" cmConceptName="Derivation" />
			<templatecontentitem			row="9" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="363698007" csdConceptName="SCT" cvAltConceptName="G-C0E3" csdAltConceptName="SRT" cmConceptName="Finding Site">
				<templatecontentitem		row="10" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="244" valueSetBDE="D" />
				<templatecontentitem		row="11" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="106233006" csdConceptName="SCT" cvAltConceptName="G-A1F8" csdAltConceptName="SRT" cmConceptName="Topographical modifier" />
			</templatecontentitem>
			<includetemplate				row="12" tid="310" relationship="HAS PROPERTIES" vmmin="1" vmmax="1" requiredType="U" />
			<!--$RefAuthority = $RefAuthority, $RangeAuthority = $RangeAuthority-->
			<templatecontentitem			row="13" relationship="INFERRED FROM" valueType="NUM" vmmin="1" vmmax="n" requiredType="U"/>	<!-- Actually UC, and can check num v. reference, but no cvConceptName to match on - XOR Row 14 :( -->
			<templatecontentitem			row="14" relationship="R-INFERRED FROM" valueType="NUM" vmmin="1" vmmax="n" requiredType="U"/>	<!-- Actually UC, and can check num v. reference, but no cvConceptName to match on - XOR Row 13 :( -->
			<includetemplate				row="15" tid="315" relationship="INFERRED FROM" vmmin="1" vmmax="1" requiredType="UC"
											condition="count(code[concept/@cv='121420' and concept/@csd='DCM']) &gt; 0
													or count(code[concept/@cv='121421' and concept/@csd='DCM']) &gt; 0
													or count(code[concept/@cv='121424' and concept/@csd='DCM']) &gt; 0
													or count(code[concept/@cv='121422' and concept/@csd='DCM']) &gt; 0
													or count(code[concept/@cv='121423' and concept/@csd='DCM']) &gt; 0" mbpo="F"/>	<!-- use CID 228 values to detect it --> <!--$Equation = $Equation--> <!--XOR Row 12-->
			<templatecontentitem			row="16" relationship="INFERRED FROM" valueType="TEXT" vmmin="1" vmmax="1" requiredType="UC" conceptNameCID="228" conceptNameBDE="D"
											condition="count(text[concept/@cv='121420' and concept/@csd='DCM']) &gt; 0
													or count(text[concept/@cv='121421' and concept/@csd='DCM']) &gt; 0
													or count(text[concept/@cv='121424' and concept/@csd='DCM']) &gt; 0
													or count(text[concept/@cv='121422' and concept/@csd='DCM']) &gt; 0
													or count(text[concept/@cv='121423' and concept/@csd='DCM']) &gt; 0" mbpo="F"/>	<!--XOR Row 11-->
			<includetemplate				row="17" tid="1000" relationship="" vmmin="1" vmmax="1" requiredType="U" />
			<templatecontentitem			row="18" relationship="HAS CONCEPT MOD" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121050" csdConceptName="DCM" cmConceptName="Equivalent Meaning of Concept Name" />
    		<templatecontentitem			row="19" relationship="INFERRED FROM" valueType="COMPOSITE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126100" csdConceptName="DCM" cmConceptName="Real World Value Map used for measurement" />	<!-- CP 1388  -->
			<includetemplate				row="20" tid="4019HasConceptMod" vmmin="1" vmmax="1" requiredType="U" />
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="1420" name="MeasurementsDerivedFromMultipleROIMeasurements" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem				row="1" relationship="" valueType="NUM" vmmin="1" vmmax="n" requiredType="M" conceptNameCID="7465" conceptNameBDE="D">
			<includetemplate				row="2" tid="1410" relationship="R-INFERRED FROM" vmmin="1" vmmax="n" requiredType="MC" />
			<!--$Measurement = $Measurement, $Units = $MeasurementUnits, $ModType = $ModType, $ModValue = $ModValue, $Method = $Method, $Derivation = $Derivation, $TargetSite = $TargetSite, $TargetSiteMod = $TargetSiteMod, $Equation = $Equation, $RefAuthority = $RefAuthority, $RangeAuthority = $RangeAuthority, $DerivationParameter = $DerivationParameter, $DerivationParameterUnits = $DerivationParameterUnits-->
			<!--XOR Row 3-->
			<includetemplate				row="3" tid="1411" relationship="R-INFERRED FROM" vmmin="1" vmmax="n" requiredType="MC" />
			<!--$Measurement = $Measurement, $Units = $MeasurementUnits, $ModType = $ModType, $ModValue = $ModValue, $Method = $Method, $Derivation = $Derivation, $TargetSite = $TargetSite, $TargetSiteMod = $TargetSiteMod, $Equation = $Equation, $RefAuthority = $RefAuthority, $RangeAuthority = $RangeAuthority, $DerivationParameter = $DerivationParameter, $DerivationParameterUnits = $DerivationParameterUnits-->
			<!--XOR Row 2-->
			<includetemplate				row="4" tid="310" relationship="HAS PROPERTIES" vmmin="1" vmmax="1" requiredType="U" />
			<!--$RefAuthority = $RefAuthority, $RangeAuthority = $RangeAuthority-->
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="8101" name="PreclinicalSmallAnimalImageAcquisitionContext" root="T" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127001" csdConceptName="DCM" cmConceptName="Preclinical Small Animal Imaging Acquisition Context">
			<includetemplate row="2" tid="1204" relationship="HAS CONCEPT MOD" vmmin="1" vmmax="1" requiredType="M"/>
			<includetemplate row="3" tid="1001" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="M"/>
			<includetemplate row="5" tid="8110" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
			<templatecontentitem row="6" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="U" cvConceptName="127005" csdConceptName="DCM" cmConceptName="Animal handling during specified phase">
				<templatecontentitem row="7" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127006" csdConceptName="DCM" cmConceptName="Phase of animal handling" valueSetCID="634" valueSetBDE="D"/>
				<templatecontentitem row="8" relationship="CONTAINS" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111526" csdConceptName="DCM" cmConceptName="DateTime Started"/>
				<templatecontentitem row="9" relationship="CONTAINS" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111527" csdConceptName="DCM" cmConceptName="DateTime Ended"/>
				<includetemplate row="10" tid="8121" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
				<includetemplate row="11" tid="8122" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="U"/>
				<includetemplate row="12" tid="8140" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
				<includetemplate row="13" tid="8150" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
				<includetemplate row="14" tid="8170" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
			</templatecontentitem>
			<includetemplate row="15" tid="8130" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
			<includetemplate row="16" tid="9002for8101" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
			<!--$ContainerConcept = EV (10160-0, LN, "History Of Medication Use"), $CodeConcept = EV (111516, DCM, "Medication Type"), $Route = DCID 11-->
			<includetemplate row="17" tid="8182for8101" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
			<!--$ContainerConcept = EV (127400, DCM, "Exogenous substance"), $CodeConcept = DCID 637, $CodeValue = DCID 638, $Route = DCID 11, $Site = DCID 644, $TissueOfOrigin = DCID 645, $TaxonomicRankOfOrigin = DCID 7454 "Animal Taxonomic Rank Values"-->
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="8110" name="BiosafetyConditions" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127010" csdConceptName="DCM" cmConceptName="Biosafety conditions">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="409599009" csdConceptName="SCT" cvAltConceptName="F-0061F" csdAltConceptName="SRT" cmConceptName="Biosafety level" valueSetCID="601" valueSetBDE="D"/>
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127011" csdConceptName="DCM" cmConceptName="Reason for biosafety controls" valueSetCID="602" valueSetBDE="D"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="8121" name="AnimalHousing" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127120" csdConceptName="DCM" cmConceptName="Animal housing">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127121" csdConceptName="DCM" cmConceptName="Animal room type" valueSetCID="603" valueSetBDE="D"/>
			<templatecontentitem row="2b" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127122" csdConceptName="DCM" cmConceptName="Animal room identifier"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127125" csdConceptName="DCM" cmConceptName="Housing manufacturer"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127126" csdConceptName="DCM" cmConceptName="Housing rack product name"/>
			<templatecontentitem row="5" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127127" csdConceptName="DCM" cmConceptName="Housing rack product code"/>
			<templatecontentitem row="6" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127128" csdConceptName="DCM" cmConceptName="Housing unit product name"/>
			<templatecontentitem row="7" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127129" csdConceptName="DCM" cmConceptName="Housing unit product code"/>
			<templatecontentitem row="8" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127130" csdConceptName="DCM" cmConceptName="Housing unit lid product name"/>
			<templatecontentitem row="9" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127131" csdConceptName="DCM" cmConceptName="Housing unit lid product code"/>
			<templatecontentitem row="10" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127140" csdConceptName="DCM" cmConceptName="Number of racks per room" cvUnits="{racks}" csdUnits="UCUM" cmUnits="racks"/>
			<templatecontentitem row="11" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127141" csdConceptName="DCM" cmConceptName="Number of housing units per rack" cvUnits="{housing units}" csdUnits="UCUM" cmUnits="housing units"/>
			<templatecontentitem row="12" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127142" csdConceptName="DCM" cmConceptName="Housing unit location in rack"/>
			<templatecontentitem row="13" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127143" csdConceptName="DCM" cmConceptName="Number of animals within same housing unit" cvUnits="{animals}" csdUnits="UCUM" cmUnits="animals"/>
			<templatecontentitem row="14" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127144" csdConceptName="DCM" cmConceptName="Sex of animals within same housing unit" valueSetCID="7457" valueSetBDE="D"/>
			<templatecontentitem row="15" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127145" csdConceptName="DCM" cmConceptName="Sex of handler" valueSetCID="7457" valueSetBDE="D"/>
			<templatecontentitem row="16" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127150" csdConceptName="DCM" cmConceptName="Total duration in housing" cvUnits="d" csdUnits="UCUM" cmUnits="days"/>
			<templatecontentitem row="17" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127151" csdConceptName="DCM" cmConceptName="Housing change interval" cvUnits="d" csdUnits="UCUM" cmUnits="days"/>
			<templatecontentitem row="18" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127152" csdConceptName="DCM" cmConceptName="Manual handling interval" cvUnits="h" csdUnits="UCUM" cmUnits="hours"/>
			<templatecontentitem row="19" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127153" csdConceptName="DCM" cmConceptName="Housing unit movement"/>
			<templatecontentitem row="20" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127160" csdConceptName="DCM" cmConceptName="Housing unit width" cvUnits="cm" csdUnits="UCUM" cmUnits="cm"/>
			<templatecontentitem row="21" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127161" csdConceptName="DCM" cmConceptName="Housing unit height" cvUnits="cm" csdUnits="UCUM" cmUnits="cm"/>
			<templatecontentitem row="22" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127162" csdConceptName="DCM" cmConceptName="Housing unit length" cvUnits="cm" csdUnits="UCUM" cmUnits="cm"/>
			<templatecontentitem row="23" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127170" csdConceptName="DCM" cmConceptName="Housing individually ventilated" valueSetCID="231" valueSetBDE="D"/>
			<templatecontentitem row="24" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127172" csdConceptName="DCM" cmConceptName="Air changes" cvUnits="/h" csdUnits="UCUM" cmUnits="/hour"/>
			<templatecontentitem row="25" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C90380" csdConceptName="NCIt" cmConceptName="Environmental temperature" cvUnits="Cel" csdUnits="UCUM" cmUnits="C"/>
			<templatecontentitem row="26" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C90395" csdConceptName="NCIt" cmConceptName="Housing humidity" cvUnits="%" csdUnits="UCUM" cmUnits="%"/>
			<templatecontentitem row="27" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127175" csdConceptName="DCM" cmConceptName="Housing unit reuse" valueSetCID="604" valueSetBDE="D"/>
			<templatecontentitem row="28" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C90366" csdConceptName="NCIt" cmConceptName="Bedding material" valueSetCID="605" valueSetBDE="D"/>
			<templatecontentitem row="29" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C90366" csdConceptName="NCIt" cmConceptName="Bedding material"/>
			<templatecontentitem row="30" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127180" csdConceptName="DCM" cmConceptName="Bedding manufacturer"/>
			<templatecontentitem row="31" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127181" csdConceptName="DCM" cmConceptName="Bedding product name"/>
			<templatecontentitem row="32" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127182" csdConceptName="DCM" cmConceptName="Bedding product code"/>
			<templatecontentitem row="33" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127183" csdConceptName="DCM" cmConceptName="Bedding volume" cvUnits="ml" csdUnits="UCUM" cmUnits="ml"/>
			<templatecontentitem row="34" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127184" csdConceptName="DCM" cmConceptName="Bedding mass" cvUnits="g" csdUnits="UCUM" cmUnits="g"/>
			<templatecontentitem row="34b" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127185" csdConceptName="DCM" cmConceptName="Bedding depth" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
			<templatecontentitem row="35" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C90365" csdConceptName="NCIt" cmConceptName="Bedding change" cvUnits="d" csdUnits="UCUM" cmUnits="days"/>
			<templatecontentitem row="36" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127192" csdConceptName="DCM" cmConceptName="Enrichment material present" valueSetCID="241" valueSetBDE="D"/>
			<templatecontentitem row="36b" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127191" csdConceptName="DCM" cmConceptName="Enrichment manufacturer"/>
			<templatecontentitem row="37" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127190" csdConceptName="DCM" cmConceptName="Enrichment material"/>
			<templatecontentitem row="38" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127193" csdConceptName="DCM" cmConceptName="Exerciser device present" valueSetCID="241" valueSetBDE="D"/>
			<templatecontentitem row="39" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111045004" csdConceptName="SCT" cvAltConceptName="A-17200" csdAltConceptName="SRT" cmConceptName="Exerciser device"/>
			<templatecontentitem row="40" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127195" csdConceptName="DCM" cmConceptName="Shelter type" valueSetCID="606" valueSetBDE="D"/>
			<templatecontentitem row="41" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127196" csdConceptName="DCM" cmConceptName="Shelter manufacturer"/>
			<templatecontentitem row="42" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127197" csdConceptName="DCM" cmConceptName="Shelter product name"/>
			<templatecontentitem row="43" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127198" csdConceptName="DCM" cmConceptName="Shelter product code"/>
			<templatecontentitem row="44" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="8122" name="AnimalFeeding" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="75118006" csdConceptName="SCT" cvAltConceptName="PA-00600" csdAltConceptName="SRT" cmConceptName="Feeding">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="82566005" csdConceptName="SCT" cvAltConceptName="C-F5000" csdAltConceptName="SRT" cmConceptName="Animal feed" valueSetCID="607" valueSetBDE="D"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127205" csdConceptName="DCM" cmConceptName="Feed source" valueSetCID="608" valueSetBDE="D"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127200" csdConceptName="DCM" cmConceptName="Feed manufacturer"/>
			<templatecontentitem row="5" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127201" csdConceptName="DCM" cmConceptName="Feed product name"/>
			<templatecontentitem row="6" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127202" csdConceptName="DCM" cmConceptName="Feed product code"/>
			<templatecontentitem row="7" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C0015746" csdConceptName="UMLS" cmConceptName="Feeding method" valueSetCID="609" valueSetBDE="D"/>
			<templatecontentitem row="8" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="11713004" csdConceptName="SCT" cvAltConceptName="C-10120" csdAltConceptName="SRT" cmConceptName="Water" valueSetCID="610" valueSetBDE="D"/>
			<templatecontentitem row="9" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C90486" csdConceptName="NCIt" cmConceptName="Water delivery" valueSetCID="609" valueSetBDE="D"/>
			<templatecontentitem row="10" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="8130" name="Anesthesia" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="399097000" csdConceptName="SCT" cvAltConceptName="P1-0512A" csdAltConceptName="SRT" cmConceptName="Administration of anesthesia">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127300" csdConceptName="DCM" cmConceptName="Anesthesia Method Set">
				<templatecontentitem row="3" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" cvConceptName="127301" csdConceptName="DCM" cmConceptName="Anesthesia Method">
					<templatecontentitem row="4" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127302" csdConceptName="DCM" cmConceptName="Anesthesia Category" valueSetCID="611" valueSetBDE="D"/>
					<templatecontentitem row="5" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127303" csdConceptName="DCM" cmConceptName="Anesthesia SubCategory"/>
					<templatecontentitem row="6" relationship="CONTAINS" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="398325003" csdConceptName="SCT" cvAltConceptName="DF-0068E" csdAltConceptName="SRT" cmConceptName="Anesthesia Start Time"/>
					<templatecontentitem row="7" relationship="CONTAINS" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="398164008" csdConceptName="SCT" cvAltConceptName="DF-0070B" csdAltConceptName="SRT" cmConceptName="Anesthesia Finish Time"/>
					<templatecontentitem row="8" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="241687005" csdConceptName="SCT" cvAltConceptName="P1-C0012" csdAltConceptName="SRT" cmConceptName="Anesthesia Induction" valueSetCID="613" valueSetBDE="D"/>
					<templatecontentitem row="9" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="241695009" csdConceptName="SCT" cvAltConceptName="P1-C001A" csdAltConceptName="SRT" cmConceptName="Anesthesia Maintenance" valueSetCID="615" valueSetBDE="D"/>
					<templatecontentitem row="10" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U"/>
				</templatecontentitem>
			</templatecontentitem>
			<templatecontentitem row="11" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127310" csdConceptName="DCM" cmConceptName="Airway Management Set">
				<templatecontentitem row="12" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" cvConceptName="386509000" csdConceptName="SCT" cvAltConceptName="P0-0409B" csdAltConceptName="SRT" cmConceptName="Airway Management">
					<templatecontentitem row="13" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127312" csdConceptName="DCM" cmConceptName="Airway Management Method" valueSetCID="617" valueSetBDE="D"/>
					<templatecontentitem row="14" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127313" csdConceptName="DCM" cmConceptName="Airway Sub-Management Method" valueSetCID="619" valueSetBDE="D"/>
				</templatecontentitem>
			</templatecontentitem>
			<templatecontentitem row="15" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" cvConceptName="127320" csdConceptName="DCM" cmConceptName="Medications Set">
				<templatecontentitem row="16" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="128954007" csdConceptName="SCT" cvAltConceptName="G-7292" csdAltConceptName="SRT" cmConceptName="Procedure Phase" valueSetCID="631" valueSetBDE="D"/>
				<includetemplate row="17" tid="8131" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="M"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="8131" name="MedicationsandMixtureMedications" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="182833002" csdConceptName="SCT" cvAltConceptName="F-04460" csdAltConceptName="SRT" cmConceptName="Medication given">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="122081" csdConceptName="DCM" cmConceptName="Drug start"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="122082" csdConceptName="DCM" cmConceptName="Drug end"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="410675002" csdConceptName="SCT" cvAltConceptName="G-C340" csdAltConceptName="SRT" cmConceptName="Route of administration" valueSetCID="11" valueSetBDE="D"/>
			<templatecontentitem row="5" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" cvConceptName="272163001" csdConceptName="SCT" cvAltConceptName="R-40826" csdAltConceptName="SRT" cmConceptName="Mixture">
				<templatecontentitem row="6" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="122083" csdConceptName="DCM" cmConceptName="Drug administered" valueSetCID="623" valueSetBDE="D"
					condition="count(text[concept/@cv='122083' and concept/@csd='DCM']) = 0"/><!--XOR Row 7-->
				<templatecontentitem row="7" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="122083" csdConceptName="DCM" cmConceptName="Drug administered"
					condition="count(code[concept/@cv='122083' and concept/@csd='DCM']) = 0"/><!--XOR Row 6-->
				<templatecontentitem row="8" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111516" csdConceptName="DCM" cmConceptName="Medication Type" valueSetCID="621" valueSetBDE="D"/>
				<templatecontentitem row="9" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="260911001" csdConceptName="SCT" cvAltConceptName="G-C0B7" csdAltConceptName="SRT" cmConceptName="Dosage" cvUnits="" csdUnits="" cmUnits=""/>
				<templatecontentitem row="10" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="122093" csdConceptName="DCM" cmConceptName="Concentration" cvUnits="" csdUnits="" cmUnits=""/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="8140" name="HeatingConditions" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127040" csdConceptName="DCM" cmConceptName="Heating conditions">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="128954007" csdConceptName="SCT" cvAltConceptName="G-7292" csdAltConceptName="SRT" cmConceptName="Procedure Phase" valueSetCID="631" valueSetBDE="D"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C0018851" csdConceptName="UMLS" cmConceptName="Heating" valueSetCID="635" valueSetBDE="D"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127210" csdConceptName="DCM" cmConceptName="Feedback temperature regulation" valueSetCID="231" valueSetBDE="D"/>
			<templatecontentitem row="5" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C50304" csdConceptName="NCIt" cmConceptName="Temperature sensor device component" valueSetCID="636" valueSetBDE="D"/>
			<templatecontentitem row="6" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="250881009" csdConceptName="SCT" cvAltConceptName="F-021FF" csdAltConceptName="SRT" cmConceptName="Equipment Temperature" cvUnits="Cel" csdUnits="UCUM" cmUnits="C"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="8150" name="CircadianEffects" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127050" csdConceptName="DCM" cmConceptName="Circadian effects">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127214" csdConceptName="DCM" cmConceptName="Total duration of light-dark cycle" cvUnits="h" csdUnits="UCUM" cmUnits="hours"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C90419" csdConceptName="NCIt" cmConceptName="Light cycle" cvUnits="%" csdUnits="UCUM" cmUnits="%"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="TIME" vmmin="1" vmmax="n" requiredType="U" cvConceptName="127215" csdConceptName="DCM" cmConceptName="Lights on time of day"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="8170" name="PhysiologicalMonitoringPerformedDuringProcedure" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="281691001" csdConceptName="SCT" cvAltConceptName="P0-005ED" csdAltConceptName="SRT" cmConceptName="Physiological monitoring">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="266706003" csdConceptName="SCT" cvAltConceptName="P2-31209" csdAltConceptName="SRT" cmConceptName="Electrocardiographic monitoring" valueSetCID="231" valueSetBDE="D"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="53617003" csdConceptName="SCT" cvAltConceptName="P2-22010" csdAltConceptName="SRT" cmConceptName="Monitoring of respiration" valueSetCID="231" valueSetBDE="D"/>
		</templatecontentitem>
	</definetemplate>
	
	<!--$ContainerConcept = EV (127400, DCM, "Exogenous substance"), $CodeConcept = DCID 637, $CodeValue = DCID 638, $Route = DCID 11, $Site = DCID 644, $TissueOfOrigin = DCID 645, $TaxonomicRankOfOrigin = DCID 7454 "Animal Taxonomic Rank Values"-->
	<definetemplate tid="8182for8101" name="ExogenousSubstanceAdministration" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="127400" csdConceptName="DCM" cmConceptName="Exogenous substance">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="M" conceptNameCID="637" conceptNameBDE="D" valueSetCID="638" valueSetBDE="D">
				<templatecontentitem row="3" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="278201002" csdConceptName="SCT" cvAltConceptName="G-C032" csdAltConceptName="SRT" cmConceptName="Classification"/>
				<templatecontentitem row="4" relationship="HAS OBS CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111534" csdConceptName="DCM" cmConceptName="Role of person reporting"/>
				<templatecontentitem row="5" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111524" csdConceptName="DCM" cmConceptName="Age Started" cvUnits="" csdUnits="" cmUnits=""/>
				<templatecontentitem row="6" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111525" csdConceptName="DCM" cmConceptName="Age Ended" cvUnits="" csdUnits="" cmUnits=""/>
				<templatecontentitem row="7" relationship="HAS PROPERTIES" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111526" csdConceptName="DCM" cmConceptName="DateTime Started"/>
				<templatecontentitem row="8" relationship="HAS PROPERTIES" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111527" csdConceptName="DCM" cmConceptName="DateTime Ended"/>
				<templatecontentitem row="9" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="103335007" csdConceptName="SCT" cvAltConceptName="G-7290" csdAltConceptName="SRT" cmConceptName="Duration" unitsCID="6046" unitsBDE="D"/>
				<templatecontentitem row="10" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111528" csdConceptName="DCM" cmConceptName="Ongoing" valueSetCID="230" valueSetBDE="D"/>
				<templatecontentitem row="11" relationship="HAS PROPERTIES" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111529" csdConceptName="DCM" cmConceptName="Brand Name"/>
				<templatecontentitem row="12" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" conceptNameCID="6092" conceptNameBDE="D"/>
				<templatecontentitem row="13" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" conceptNameCID="6093" conceptNameBDE="D" valueSetCID="6090" valueSetBDE="D"/>
				<templatecontentitem row="14" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" conceptNameCID="6094" conceptNameBDE="D" valueSetCID="6091" valueSetBDE="D"/>
				<templatecontentitem row="15" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="410675002" csdConceptName="SCT" cvAltConceptName="G-C340" csdAltConceptName="SRT" cmConceptName="Route of administration" valueSetCID="11" valueSetBDE="D">
					<templatecontentitem row="16" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272737002" csdConceptName="SCT" cvAltConceptName="G-C581" csdAltConceptName="SRT" cmConceptName="Site of" valueSetCID="644" valueSetBDE="D">
						<templatecontentitem row="17" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="244" valueSetBDE="D">
							<!--Actually MC - IF Row 16 has laterality, but real-world -->
						</templatecontentitem>
					</templatecontentitem>
					<templatecontentitem row="18" relationship="HAS PROPERTIES" valueType="SCOORD3D" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127450" csdConceptName="DCM" cmConceptName="Stereotactic coordinates"/>
					<templatecontentitem row="19" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127451" csdConceptName="DCM" cmConceptName="Position reference indicator" valueSetCID="647" valueSetBDE="D"/>
				</templatecontentitem>
				<templatecontentitem row="20" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127401" csdConceptName="DCM" cmConceptName="Tissue of origin" valueSetCID="645" valueSetBDE="D"/>
				<templatecontentitem row="21" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="127402" csdConceptName="DCM" cmConceptName="Taxonomic rank of origin" valueSetCID="7454" valueSetBDE="D"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<!--$ContainerConcept = EV (10160-0, LN, "History Of Medication Use"), $CodeConcept = EV (111516, DCM, "Medication Type"), $Route = DCID 11-->
	<definetemplate tid="9002for8101" name="MedicationSubstanceEnvironmentalExposure" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="10160-0" csdConceptName="LN" cmConceptName="History Of Medication Use">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="M" cvConceptName="111516" csdConceptName="DCM" cmConceptName="Medication Type">
				<templatecontentitem row="3" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="278201002" csdConceptName="SCT" cvAltConceptName="G-C032" csdAltConceptName="SRT" cmConceptName="Classification"/>
				<templatecontentitem row="4" relationship="HAS OBS CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111534" csdConceptName="DCM" cmConceptName="Role of person reporting"/>
				<templatecontentitem row="5" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111524" csdConceptName="DCM" cmConceptName="Age Started" cvUnits="a" csdUnits="UCUM" cmUnits="Year"/>
				<templatecontentitem row="6" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111525" csdConceptName="DCM" cmConceptName="Age Ended" cvUnits="a" csdUnits="UCUM" cmUnits="Year"/>
				<templatecontentitem row="7" relationship="HAS PROPERTIES" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111526" csdConceptName="DCM" cmConceptName="DateTime Started"/>
				<templatecontentitem row="8" relationship="HAS PROPERTIES" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111527" csdConceptName="DCM" cmConceptName="DateTime Ended"/>
				<templatecontentitem row="9" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="103335007" csdConceptName="SCT" cvAltConceptName="G-7290" csdAltConceptName="SRT" cmConceptName="Duration" unitsCID="6046" unitsBDE="D"/>
				<templatecontentitem row="10" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111528" csdConceptName="DCM" cmConceptName="Ongoing" valueSetCID="230" valueSetBDE="D"/>
				<templatecontentitem row="11" relationship="HAS PROPERTIES" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111529" csdConceptName="DCM" cmConceptName="Brand Name"/>
				<templatecontentitem row="12" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" conceptNameCID="6092" conceptNameBDE="D"/>
				<templatecontentitem row="13" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" conceptNameCID="6093" conceptNameBDE="D" valueSetCID="6090" valueSetBDE="D"/>
				<templatecontentitem row="14" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" conceptNameCID="6094" conceptNameBDE="D" valueSetCID="6091" valueSetBDE="D"/>
				<templatecontentitem row="15" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="410675002" csdConceptName="SCT" cvAltConceptName="G-C340" csdAltConceptName="SRT" cmConceptName="Route of administration" valueSetCID="11" valueSetBDE="D">
					<templatecontentitem row="16" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272737002" csdConceptName="SCT" cvAltConceptName="G-C581" csdAltConceptName="SRT" cmConceptName="Site of">
						<templatecontentitem row="17" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality">
							<!--Actually MC - IF Row 16 has laterality, but real-world -->
						</templatecontentitem>
					</templatecontentitem>
				</templatecontentitem>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="10001" name="ProjectionXRayRadiationDose" root="T" extensible="T">
		<templatecontentitem             row="1"                                  valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113701" csdConceptName="DCM" cmConceptName="X-Ray Radiation Dose Report">
			<includetemplate             row="1b" tid="1204" vmmin="1" vmmax="1" requiredType="U"/>
			<templatecontentitem         row="2"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121058" csdConceptName="DCM" cmConceptName="Procedure reported" valueSetCID="PMP_10001" valueSetBDE="D">
				<templatecontentitem	 row="3"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="363703001" csdConceptName="SCT" cvAltConceptName="G-C0E8" csdAltConceptName="SRT" cmConceptName="Has Intent" valueSetCID="3629" valueSetBDE="D"/>
			</templatecontentitem>
			<templatecontentitem         row="4"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="122142" csdConceptName="DCM" cmConceptName="Acquisition Device Type" valueSetCID="10032" valueSetBDE="D"/>
			<includetemplate			 row="5"  tid="1002" vmmin="1" vmmax="n"  requiredType="M"/>
			<templatecontentitem         row="6"  relationship="HAS OBS CONTEXT"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113705" csdConceptName="DCM" cmConceptName="Scope of Accumulation" valueSetCID="10000" valueSetBDE="D">
				<templatecontentitem     row="7"  relationship="HAS PROPERTIES"   valueType="UIDREF"    vmmin="1" vmmax="1" requiredType="M"  conceptNameCID="10001" conceptNameBDE="D"/>
			</templatecontentitem>
			<templatecontentitem         row="8"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113945" csdConceptName="DCM" cmConceptName="X-Ray Detector Data Available"   valueSetCID="230" valueSetBDE="D"/>
			<templatecontentitem         row="9"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113943" csdConceptName="DCM" cmConceptName="X-Ray Source Data Available"     valueSetCID="230" valueSetBDE="D"/>
			<templatecontentitem         row="10" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113944" csdConceptName="DCM" cmConceptName="X-Ray Mechanical Data Available" valueSetCID="230" valueSetBDE="D"/>
			<includetemplate			 row="11" tid="10002" vmmin="1" vmmax="2"  requiredType="M"/>
			<!-- Row 11 is really conditional on being single plane, with biplane A and B as rows 12 and 13 ... simulate this as VM 1-2 instead-->
			<includetemplate			 row="14" tid="10003" vmmin="1" vmmax="n"  requiredType="MC"
								condition="count(code[concept/@cv='113854' and concept/@csd='DCM'
												and not (value/@cv='113858' and value/@csd='DCM')
												and not (value/@cv='113866' and value/@csd='DCM')
												and not (value/@cv='113867' and value/@csd='DCM')
										   ]) &gt; 0" mbpo="T"/> <!-- IF any of the values of TID (10001) Row 18 are not (113858, DCM, "MPPS Content"), (113866, DCM, "Copied From Image Attributes") or (113867, DCM, "Computed From Image Attributes") -->
			<templatecontentitem         row="15" relationship="CONTAINS"          valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U" cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<templatecontentitem         row="16" relationship="CONTAINS"          valueType="IMAGE"     vmmin="1" vmmax="n" requiredType="U" cvConceptName="121342" csdConceptName="DCM" cmConceptName="Dose Image"/>
			<includetemplate			 row="17"  tid="1020" vmmin="1" vmmax="1"  requiredType="U">	<!-- Person Participant -->
				<parameter name="PersonProcedureRole"   value="PMP_1020A"/>	<!-- EV (113850, DCM, "Irradiation Authorizing") -->
			</includetemplate>
			<templatecontentitem         row="18" relationship="CONTAINS"          valueType="CODE"      vmmin="1" vmmax="n" requiredType="M" cvConceptName="113854" csdConceptName="DCM" cmConceptName="Source of Dose Information" valueSetCID="10020" valueSetBDE="D"/>
		</templatecontentitem>	
	</definetemplate>

	<definetemplate tid="10002" name="AccumulatedXRayDoseData" root="F" extensible="T">
		<templatecontentitem             row="1"                                  valueType="CONTAINER" vmmin="1" vmmax="2" requiredType="M"  cvConceptName="113702" csdConceptName="DCM" cmConceptName="Accumulated X-Ray Dose Data">	<!-- actually VM is 1, but condition on template inclusion is VM 1-2 -->
			<templatecontentitem         row="2"  relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113764" csdConceptName="DCM" cmConceptName="Acquisition Plane" valueSetCID="PMP_10002A" valueSetBDE="D"/> <!-- should really check that each value is used only once, etc. -->
			<templatecontentitem         row="3"  relationship="CONTAINS"		  valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="122505" csdConceptName="DCM" cmConceptName="Calibration">	<!-- actually MC real-world condition IFF Calibration Data is available	-->
				<templatecontentitem     row="4"  relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113794" csdConceptName="DCM" cmConceptName="Dose Measurement Device" valueSetCID="10010" valueSetBDE="D"/>
				<templatecontentitem     row="5"  relationship="CONTAINS"         valueType="DATETIME"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113723" csdConceptName="DCM" cmConceptName="Calibration DateTime"/>		
				<templatecontentitem     row="6"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="122322" csdConceptName="DCM" cmConceptName="Calibration Factor" cvUnits="1" csdUnits="UCUM" cmUnits="no units"/>
				<verify test="count(num[concept/@cv='122322' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='122322' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Calibration Factor is not illegal, but is unlikely to be correct"/>

				<templatecontentitem     row="7"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113763" csdConceptName="DCM" cmConceptName="Calibration Uncertainty" cvUnits="%" csdUnits="UCUM" cmUnits="Percent"/>
				<verify test="count(num[concept/@cv='113763' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113763' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Calibration Uncertainty is not illegal, but is unlikely to be correct"/>

				<templatecontentitem     row="8"  relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113724" csdConceptName="DCM" cmConceptName="Calibration Responsible Party"/>		
				<templatecontentitem     row="9"  relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113720" csdConceptName="DCM" cmConceptName="Calibration Protocol"/>
			</templatecontentitem>
			<includetemplate             row="10" tid="10004" vmmin="1" vmmax="1"  requiredType="MC"
								condition="count(../code[concept/@cv='122142' and concept/@csd='DCM' and value/@cv='113957' and value/@csd='DCM']) &gt; 0
									   or (count(../code[concept/@cv='121058' and concept/@csd='DCM' and value/@cv='113704' and value/@csd='DCM']) &gt; 0
									   and count(../code[concept/@cv='122142' and concept/@csd='DCM']) = 0
										  )" mbpo="F"/>	<!-- Accumulated Fluoroscopy and Acquisition Projection X-Ray Dose is IFF TID (10001) Row 4 = (113957, DCM, “Fluoroscopy-Guided Projection Radiography System”) or TID (10001) Row 2 = (113704, DCM, “Projection X-Ray”) and  TID (10001) Row 4 is  absent) -->
			<includetemplate             row="11" tid="10005" vmmin="1" vmmax="1"  requiredType="MC" condition="count(../code[concept/@cv='121058' and concept/@csd='DCM' and ((value/@cv='P5-40010' and value/@csd='SRT') or (value/@cv='71651007' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/>	<!-- Accumulated Mammography X-Ray Dose	                    is IFF TID (10001) Row 2 = (P5-40010, SRT, "Mammography") -->
			<includetemplate             row="12" tid="10007" vmmin="1" vmmax="1"  requiredType="MC"
								condition="count(../code[concept/@cv='122142' and concept/@csd='DCM' and value/@cv='113958' and value/@csd='DCM']) &gt; 0
									   or  count(../code[concept/@cv='122142' and concept/@csd='DCM' and value/@cv='113957' and value/@csd='DCM']) &gt; 0
									   or (count(../code[concept/@cv='121058' and concept/@csd='DCM' and value/@cv='113704' and value/@csd='DCM']) &gt; 0
									   and count(../code[concept/@cv='122142' and concept/@csd='DCM']) = 0
										  )" mbpo="F"/>	<!-- Accumulated Total Projection Radiography Dose	    is IFF TID (10001) Row 4 = (113958, DCM, “Integrated Projection Radiography System”) or TID (10001) Row 4 = (113957, DCM, “Fluoroscopy-Guided Projection Radiography System”) or TID (10001) Row 2 = (113704, DCM, “Projection X-Ray”) and  TID (10001) Row 4 is  absent -->
			<includetemplate             row="13" tid="10006" vmmin="1" vmmax="1"  requiredType="MC" condition="count(../code[concept/@cv='122142' and concept/@csd='DCM' and value/@cv='113959' and value/@csd='DCM']) &gt; 0" mbpo="F"/>	<!-- Accumulated Cassette-based Projection Radiography Dose	is IFF TID (10001) Row 4 = (113959, DCM, “Cassette-based Projection Radiography System”) -->
			<includetemplate             row="14" tid="1021"  vmmin="1" vmmax="1"  requiredType="U">	<!-- Device Participant --> <!-- is really MC but real-world -->
				<parameter name="DeviceProcedureRole"   value="PMP_1021"/>	<!-- EV (113859, DCM, "Irradiating Device") -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="10003" name="IrradiationEventXRayData" root="F" extensible="T">
		<templatecontentitem             row="1"                                  valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113706" csdConceptName="DCM" cmConceptName="Irradiation Event X-Ray Data">
			<templatecontentitem         row="2"  relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113764" csdConceptName="DCM" cmConceptName="Acquisition Plane"                        valueSetCID="10003"     valueSetBDE="D"/> <!-- DCID (10003) Equipment Plane Identification -->
			<templatecontentitem         row="3"  relationship="CONTAINS"         valueType="UIDREF"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113769" csdConceptName="DCM" cmConceptName="Irradiation Event UID"/>
			<templatecontentitem         row="4"  relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113605" csdConceptName="DCM" cmConceptName="Irradiation Event Label">
				<templatecontentitem     row="5"  relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113606" csdConceptName="DCM" cmConceptName="Label Type"                               valueSetCID="10022"     valueSetBDE="D"/> <!-- MC	If the value of Row 4 is the value of an Attribute in the images. -->
			</templatecontentitem>
			<templatecontentitem         row="6"  relationship="CONTAINS"         valueType="DATETIME"  vmmin="1" vmmax="1" requiredType="M"  cvConceptName="111526" csdConceptName="DCM" cmConceptName="DateTime Started"/>
			<templatecontentitem         row="7"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113721" csdConceptName="DCM" cmConceptName="Irradiation Event Type"                   valueSetCID="10002"     valueSetBDE="D"/> <!-- DCID (10002) Irradiation Event Types -->
			<templatecontentitem         row="8"  relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="125203" csdConceptName="DCM" cmConceptName="Acquisition Protocol"/>
			<templatecontentitem         row="9"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="91723000" csdConceptName="SCT" cvAltConceptName="T-D0005" csdAltConceptName="SRT" cmConceptName="Anatomical structure"                    valueSetCID="4009"      valueSetBDE="D">
				<templatecontentitem     row="10" relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality"                               valueSetCID="244"       valueSetBDE="D"/> <!-- UC	If anatomy is bi-lateral	DCID (244) Laterality -->
			</templatecontentitem>
			<templatecontentitem         row="11" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111031" csdConceptName="DCM" cmConceptName="Image View"                               valueSetCID="4010_4014" valueSetBDE="D">	 <!-- DCID (4010) DX View ; DCID (4014) View for Mammography -->
				<templatecontentitem     row="12" relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111032" csdConceptName="DCM" cmConceptName="Image View Modifier"                      valueSetCID="4011_4015" valueSetBDE="D"/> <!-- DCID (4011) DX View Modifier ; DCID (4015) View Modifier for Mammography -->
			</templatecontentitem>
			<templatecontentitem         row="13" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113946" csdConceptName="DCM" cmConceptName="Projection Eponymous Name"                valueSetCID="4012"      valueSetBDE="D"/>
			<templatecontentitem         row="14" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113745" csdConceptName="DCM" cmConceptName="Patient Table Relationship"               valueSetCID="21"        valueSetBDE="D"/> <!-- DCID (21) Patient Gantry Relationship -->
			<templatecontentitem         row="15" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113743" csdConceptName="DCM" cmConceptName="Patient Orientation"                      valueSetCID="19"        valueSetBDE="D">  <!-- DCID (19) Patient Orientation -->
				<templatecontentitem     row="16" relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113744" csdConceptName="DCM" cmConceptName="Patient Orientation Modifier"             valueSetCID="20"        valueSetBDE="D"/> <!-- DCID (20) Patient Orientation Modifier -->
			</templatecontentitem>
			<templatecontentitem         row="17" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="123014" csdConceptName="DCM" cmConceptName="Target Region"                            valueSetCID="4031"      valueSetBDE="D"/> <!-- DCID (4031) Common Anatomic Regions -->
			<templatecontentitem         row="18" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="122130" csdConceptName="DCM" cmConceptName="Dose Area Product"                        cvUnits="Gy.m2" csdUnits="UCUM" cmUnits="Gy.m2"
								 condition="count(//code[concept/@cv='121058' and concept/@csd='DCM' and value/@cv='113704'   and value/@csd='DCM']) &gt; 0"  mbpo="F"/>	<!-- IFF TID (10001) Row 2 = (113704, DCM, "Projection X-Ray")	-->
			<verify test="count(num[concept/@cv='122130' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='122130' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Dose Area Product is not illegal, but is unlikely to be correct"/>

			<templatecontentitem         row="19" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111634" csdConceptName="DCM" cmConceptName="Half Value Layer"                         cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
			<verify test="count(num[concept/@cv='111634' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111634' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Half Value Layer is not illegal, but is unlikely to be correct"/>

			<templatecontentitem         row="20" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111638" csdConceptName="DCM" cmConceptName="Patient Equivalent Thickness"                         cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
			<verify test="count(num[concept/@cv='111638' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111638' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Patient Equivalent Thickness is not illegal, but is unlikely to be correct"/>

			<templatecontentitem         row="21" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="111636" csdConceptName="DCM" cmConceptName="Entrance Exposure at RP"                  cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy"
								 condition="count(//code[concept/@cv='121058' and concept/@csd='DCM' and ((value/@cv='P5-40010' and value/@csd='SRT') or (value/@cv='71651007' and value/@csd='SCT'))]) &gt; 0
									   and (count(//code[concept/@cv='113945' and concept/@csd='DCM']) = 0
									     or count(//code[concept/@cv='113945' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0
										   )
									   and (count(//code[concept/@cv='113943' and concept/@csd='DCM']) = 0
									     or count(//code[concept/@cv='113943' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0
										   )
										   "  mbpo="T"/>	<!-- IF TID (10001) Row 2 = (P5-40010, SRT, “Mammography”) and (TID (10001) Row 8 is absent or value is (R-0038D, SRT, “Yes”)) and (TID (10001) Row 9 is absent or value is (R-0038D, SRT, “Yes”)) -->
			<verify test="count(num[concept/@cv='111636' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111636' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Entrance Exposure at RP is not illegal, but is unlikely to be correct"/>

			<templatecontentitem         row="22" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113780" csdConceptName="DCM" cmConceptName="Reference Point Definition"
								condition="count(num[concept/@cv='111636' and concept/@csd='DCM']) &gt; 0
									   and count(code[concept/@cv='113780' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- MC	IF Row 21 is present and Row 23 is not present	 -->
			<templatecontentitem         row="23"  relationship="CONTAINS"         valueType="CODE"     vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113780" csdConceptName="DCM" cmConceptName="Reference Point Definition"              valueSetCID="10025"     valueSetBDE="D"
								condition="count(num[concept/@cv='111636' and concept/@csd='DCM']) &gt; 0
									   and count(text[concept/@cv='113780' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- MC IF Row 21 is present and Row 22 is not present	DCID (10025) Radiation Dose Reference Points -->
			<includetemplate             row="24" tid="4007" vmmin="1" vmmax="1"  requiredType="U"/>
			<templatecontentitem         row="25" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"   cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<includetemplate             row="26" tid="1020" vmmin="1" vmmax="n"  requiredType="U">	<!-- Person Participant -->
				<parameter name="PersonProcedureRole"   value="PMP_1020B"/>	<!-- EV (113851, DCM, "Irradiation Administering") -->
			</includetemplate>
			<includetemplate             row="27"  tid="10003a" vmmin="1" vmmax="1"  requiredType="MC"
								condition="count(//code[concept/@cv='113945' and concept/@csd='DCM']) = 0
										or count(//code[concept/@cv='113945' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0"/>	<!-- IFF TID (10001) Row 8 is absent or has a value of (R-0038D, SRT, “Yes”) -->
			<includetemplate             row="28"  tid="10003b" vmmin="1" vmmax="1"  requiredType="MC"
								condition="count(//code[concept/@cv='113943' and concept/@csd='DCM']) = 0
										or count(//code[concept/@cv='113943' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0"/>	<!-- IFF TID (10001) Row 9 is absent or has a value of (R-0038D, SRT, “Yes”) -->
			<includetemplate             row="29"  tid="10003c" vmmin="1" vmmax="1"  requiredType="MC"
								condition="count(//code[concept/@cv='113944' and concept/@csd='DCM']) = 0
										or count(//code[concept/@cv='113944' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0"/>	<!-- IFF TID (10001) Row 10 is absent or has a value of (R-0038D, SRT, “Yes”) -->
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="10003a" name="IrradiationEventXRayDetectorData" root="F" extensible="T">
		<templatecontentitem         row="1" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U" cvConceptName="113845" csdConceptName="DCM" cmConceptName="Exposure Index"                        cvUnits="1" csdUnits="UCUM" cmUnits="no units"/>	<!-- MC IF the value is displayable to the X-Ray system operator	-->
		<templatecontentitem         row="2" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U" cvConceptName="113846" csdConceptName="DCM" cmConceptName="Target Exposure Index"                 cvUnits="1" csdUnits="UCUM" cmUnits="no units"/>	<!-- MC IF the value is displayable to the X-Ray system operator	-->
		<templatecontentitem         row="3" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U" cvConceptName="113847" csdConceptName="DCM" cmConceptName="Deviation Index"                       cvUnits="1" csdUnits="UCUM" cmUnits="no units"/>	<!-- MC IF the value is displayable to the X-Ray system operator	-->
		<includetemplate             row="4" tid="1021" vmmin="1" vmmax="1"  requiredType="UC"
								condition="count(code[concept/@cv='113876' and concept/@csd='DCM' and value/@cv='113942' and value/@csd='DCM'])">	<!-- only test if Device Role in Procedure is X-Ray Reading Device, to disambiguate from 10003b inclusion of same template but with Irradiating Device; Device Participant -->
			<parameter name="DeviceProcedureRole"   value="PMP_10003Aa"/>	<!-- EV (113942,DCM,"X-Ray Reading Device") -->
		</includetemplate>
		<templatecontentitem         row="5" relationship="CONTAINS"         valueType="IMAGE"     vmmin="1" vmmax="n" requiredType="U" cvConceptName="113795" csdConceptName="DCM" cmConceptName="Acquired Image"/> <!-- IFF Image Object is created for this irradiation event -->
	</definetemplate>

	<definetemplate tid="10003b" name="IrradiationEventXRaySourceData" root="F" extensible="T">
		<templatecontentitem     row="1" relationship="CONTAINS"             valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113738" csdConceptName="DCM" cmConceptName="Dose (RP)"                            cvUnits="Gy" csdUnits="UCUM" cmUnits="Gy"
								 condition="count(//code[concept/@cv='121058' and concept/@csd='DCM' and  value/@cv='113704'   and value/@csd='DCM']) &gt; 0
								        and count(//code[concept/@cv='113854' and concept/@csd='DCM' and (value/@cv!='113858' or value/@csd!='DCM')]) &gt; 0"  mbpo="F"/>	<!-- IFF TID (10001) Row 2 = (113704, DCM, "Projection X-Ray") AND any of the values of TID (10001) Row 18 are not (113858, DCM, "MPPS Content") -->
		<verify test="count(num[concept/@cv='113738' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113738' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Dose (RP) is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="2" relationship="CONTAINS"             valueType="TEXT"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113780" csdConceptName="DCM" cmConceptName="Reference Point Definition"
								condition="count(num[concept/@cv='111636' and concept/@csd='DCM']) &gt; 0
									   and count(code[concept/@cv='113780' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- MC	IF Row 1 is present and Row 3 is not present	 -->
		<templatecontentitem     row="3"  relationship="CONTAINS"            valueType="CODE"     vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113780" csdConceptName="DCM" cmConceptName="Reference Point Definition"           valueSetCID="10025"     valueSetBDE="D"
								condition="count(num[concept/@cv='111636' and concept/@csd='DCM']) &gt; 0
									   and count(text[concept/@cv='113780' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- MC IF Row 1 is present and Row 2 is not present	DCID (10025) Radiation Dose Reference Points -->

		<templatecontentitem     row="4" relationship="CONTAINS"             valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="111631" csdConceptName="DCM" cmConceptName="Average Glandular Dose"               cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy"
								 condition="count(//code[concept/@cv='121058' and concept/@csd='DCM' and ((value/@cv='P5-40010' and value/@csd='SRT') or (value/@cv='71651007' and value/@csd='SCT'))]) &gt; 0"  mbpo="F"/>	<!-- IFF TID (10001) Row 2 = (P5-40010, SRT, "Mammography")	-->
		<verify test="count(num[concept/@cv='111631' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111631' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Average Glandular Dose is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="5" relationship="CONTAINS"            valueType="CODE"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="113732" csdConceptName="DCM" cmConceptName="Fluoro Mode"                              valueSetCID="10004" valueSetBDE="D"
			                     condition="count(code[concept/@cv='113721' and concept/@csd='DCM' and ((value/@cv='P5-06000' and value/@csd='SRT') or (value/@cv='44491008' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/>	<!-- IFF TID (10003) Row 7 value = (P5-06000, SRT, “Fluoroscopy”) -->

		<templatecontentitem     row="6" relationship="CONTAINS"             valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113791" csdConceptName="DCM" cmConceptName="Pulse Rate"                               cvUnits="{pulse}/s" csdUnits="UCUM" cmUnits="pulse/s"
			                     condition="count(code[concept/@cv='113732' and concept/@csd='DCM' and value/@cv='113631' and value/@csd='DCM']) &gt; 0" mbpo="F"/>	<!-- IFF Row 5 value = (113631, DCM, "Pulsed")	-->
		<verify test="count(num[concept/@cv='113791' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113791' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Pulse Rate is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="7" relationship="CONTAINS"             valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113768" csdConceptName="DCM" cmConceptName="Number of Pulses"                         cvUnits="1" csdUnits="UCUM" cmUnits="no units"
			                     condition="count(code[concept/@cv='113732' and concept/@csd='DCM']) = 0
										 or count(code[concept/@cv='113732' and concept/@csd='DCM' and value/@cv='113631' and value/@csd='DCM']) &gt; 0" mbpo="F">	<!-- IFF Row 5 is not present or Row 5 is present and equals (113631, DCM, “Pulsed”) -->
			<templatecontentitem row="8" relationship="HAS CONCEPT MOD"      valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121401" csdConceptName="DCM" cmConceptName="Derivation"                               valueSetCID="PMP_10003A" valueSetBDE="E"/> <!-- MC	IFF count of pulses in Row 28 is estimated -->
		</templatecontentitem>
		<verify test="count(num[concept/@cv='113768' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113768' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Number of Pulses is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="9" relationship="CONTAINS"             valueType="NUM"       vmmin="1" vmmax="n" requiredType="U"  cvConceptName="113793" csdConceptName="DCM" cmConceptName="Pulse Width"                              cvUnits="ms" csdUnits="UCUM" cmUnits="ms"/>
		<verify test="count(num[concept/@cv='113793' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113793' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Pulse Width is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="10" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113742" csdConceptName="DCM" cmConceptName="Irradiation Duration"                     cvUnits="s" csdUnits="UCUM" cmUnits="s"/>
		<verify test="count(num[concept/@cv='113742' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113742' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Irradiation Duration is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="11" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="n" requiredType="U"  cvConceptName="113733" csdConceptName="DCM" cmConceptName="KVP"                                      cvUnits="kV" csdUnits="UCUM" cmUnits="kV"/>
		<verify test="count(num[concept/@cv='113733' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113733' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for KVP is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="12" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="n" requiredType="MC" cvConceptName="113734" csdConceptName="DCM" cmConceptName="X-Ray Tube Current"                       cvUnits="mA" csdUnits="UCUM" cmUnits="mA"
			                     condition="count(num[concept/@cv='113736' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- IF Row 15 is not present	-->
		<verify test="count(num[concept/@cv='113734' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113734' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for X-Ray Tube Current is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="13" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113767" csdConceptName="DCM" cmConceptName="Average X-Ray Tube Current"               cvUnits="mA" csdUnits="UCUM" cmUnits="mA"/>
		<verify test="count(num[concept/@cv='113767' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113767' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Average X-Ray Tube Current is not illegal, but is unlikely to be correct"/>

		<templatecontentitem	 row="14"  relationship="CONTAINS"           valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113824" csdConceptName="DCM" cmConceptName="Exposure Time" cvUnits="ms" csdUnits="UCUM" cmUnits="ms"
			                     condition="count(num[concept/@cv='113736' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- IF Row 15 is not present	-->
		<verify test="count(num[concept/@cv='113824' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113824' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Exposure Time is not illegal, but is unlikely to be correct"/>
		<verify test="count(num[concept/@cv='113824' and concept/@csd='DCM'])=0 and count(num[concept/@cv='113735' and concept/@csd='DCM'])&gt;0" status="Error" message="(113735,DCM,'Exposure Time') is present but should not be used ... it has been replaced by (113824,DCM,'Exposure Time')"/>

		<templatecontentitem     row="15" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="n" requiredType="MC"  cvConceptName="113736" csdConceptName="DCM" cmConceptName="Exposure"                                 cvUnits="uA.s" csdUnits="UCUM" cmUnits="uA.s"
			                     condition="count(num[concept/@cv='113734' and concept/@csd='DCM']) = 0
										and count(num[concept/@cv='113824' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- IF Row 12 and 14 are not present (really should be "or", but the standard says "and" -->
		<verify test="count(num[concept/@cv='113736' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113736' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Exposure is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="16" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113766" csdConceptName="DCM" cmConceptName="Focal Spot Size"                          cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113766' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113766' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Focal Spot Size is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="17" relationship="CONTAINS"            valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111632" csdConceptName="DCM" cmConceptName="Anode Target Material"                    valueSetCID="10016" valueSetBDE="D"/> <!-- DCID (10016) Anode Target Material -->

		<templatecontentitem     row="18" relationship="CONTAINS"            valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="U"  cvConceptName="113771" csdConceptName="DCM" cmConceptName="X-Ray Filters">
			<templatecontentitem row="19" relationship="CONTAINS"            valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113772" csdConceptName="DCM" cmConceptName="X-Ray Filter Type"                        valueSetCID="10007" valueSetBDE="D"/> <!-- DCID (10007) X-Ray Filter Types -->
			<templatecontentitem row="20" relationship="CONTAINS"            valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113757" csdConceptName="DCM" cmConceptName="X-Ray Filter Material"                    valueSetCID="10006" valueSetBDE="D"/> <!-- DCID (10006) X-Ray Filter Materials -->
			<templatecontentitem row="21" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113758" csdConceptName="DCM" cmConceptName="X-Ray Filter Thickness Minimum"           cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
			<templatecontentitem row="22" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113773" csdConceptName="DCM" cmConceptName="X-Ray Filter Thickness Maximum"           cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		</templatecontentitem>

		<templatecontentitem     row="23" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113790" csdConceptName="DCM" cmConceptName="Collimated Field Area"                    cvUnits="m2" csdUnits="UCUM" cmUnits="m2"/>
		<verify test="count(num[concept/@cv='113790' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113790' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Collimated Field Area is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="24" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113788" csdConceptName="DCM" cmConceptName="Collimated Field Height"                    cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113788' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113788' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Collimated Field Height is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="25" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113789" csdConceptName="DCM" cmConceptName="Collimated Field Width"                    cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113789' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113789' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Collimated Field Width is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="26" relationship="CONTAINS"            valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111635" csdConceptName="DCM" cmConceptName="X-Ray Grid"                               valueSetCID="10017" valueSetBDE="D"/> <!-- DCID (10017) X-Ray Grid -->
		<includetemplate         row="27" tid="1021" vmmin="1" vmmax="1"  requiredType="MC"
								condition="count(code[concept/@cv='113876' and concept/@csd='DCM' and value/@cv='113859' and value/@csd='DCM'])">	<!-- only test if Device Role in Procedure is Irradiating Device, to disambiguate from 10003a inclusion of same template but with X-Ray Reading Device; Device Participant -->
			<parameter name="DeviceProcedureRole"   value="PMP_1021"/>	<!-- EV (113859,DCM,"Irradiating Device") -->
		</includetemplate>
	</definetemplate>

	<definetemplate tid="10003c" name="IrradiationEventXRayMechanicalData" root="F" extensible="T">
		<templatecontentitem     row="1"  relationship="CONTAINS"            valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113956" csdConceptName="DCM" cmConceptName="CR/DR Mechanical Configuration"           valueSetCID="10031" valueSetBDE="D"/> <!-- DCID (10031) CR/DR Mechanical Configuration -->

		<templatecontentitem     row="2"  relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="112011" csdConceptName="DCM" cmConceptName="Positioner Primary Angle"                 cvUnits="deg" csdUnits="UCUM" cmUnits="°"
								 condition="count(num[concept/@cv='113770' and concept/@csd='DCM']) = 0" mbpo="F"/> <!-- XOR Row 6 -->

		<templatecontentitem     row="3"  relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="112012" csdConceptName="DCM" cmConceptName="Positioner Secondary Angle"               cvUnits="deg" csdUnits="UCUM" cmUnits="°"
								 condition="count(num[concept/@cv='113770' and concept/@csd='DCM']) = 0" mbpo="F"/> <!-- XOR Row 6 -->
		<templatecontentitem     row="4"  relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="113739" csdConceptName="DCM" cmConceptName="Positioner Primary End Angle"             cvUnits="deg" csdUnits="UCUM" cmUnits="°"
								 condition="count(code[concept/@cv='113721' and concept/@csd='DCM' and value/@cv='113613' and value/@csd='DCM']) &gt; 0" mbpo="F"/> <!-- IFF TID (10003) Row 7 value = (113613, DCM, “Rotational Acquisition”) -->
		<templatecontentitem     row="5"  relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="113740" csdConceptName="DCM" cmConceptName="Positioner Secondary End Angle"           cvUnits="deg" csdUnits="UCUM" cmUnits="°"
								 condition="count(code[concept/@cv='113721' and concept/@csd='DCM' and value/@cv='113613' and value/@csd='DCM']) &gt; 0" mbpo="F"/> <!-- IFF TID (10003) Row 7 value = (113613, DCM, “Rotational Acquisition”) -->
		<templatecontentitem     row="6"  relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="UC" cvConceptName="113770" csdConceptName="DCM" cmConceptName="Column Angulation"                        cvUnits="deg" csdUnits="UCUM" cmUnits="°"
								 condition="count(num[concept/@cv='112011' and concept/@csd='DCM']) = 0
								        and count(num[concept/@cv='112012' and concept/@csd='DCM']) = 0" mbpo="F"/> <!-- XOR Rows 2,3 -->
		<templatecontentitem     row="7"  relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113754" csdConceptName="DCM" cmConceptName="Table Head Tilt Angle"                    cvUnits="deg" csdUnits="UCUM" cmUnits="°"/>
		<templatecontentitem     row="8"  relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113755" csdConceptName="DCM" cmConceptName="Table Horizontal Rotation Angle"          cvUnits="deg" csdUnits="UCUM" cmUnits="°"/>
		<templatecontentitem     row="9"  relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113756" csdConceptName="DCM" cmConceptName="Table Cradle Tilt Angle"                  cvUnits="deg" csdUnits="UCUM" cmUnits="°"/>
		<templatecontentitem     row="10" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="111633" csdConceptName="DCM" cmConceptName="Compression Thickness"                    cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='111633' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='111633' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Compression Thickness is not illegal, but is unlikely to be correct"/>

		<!-- Row 11 - conceptNameCID="10008" conceptNameBDE="D" Dose Related Distance Measurements - interferes with other numeric content items in this template ... do it manually ... -->

		<templatecontentitem     row="11a" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113748" csdConceptName="DCM" cmConceptName="Distance Source to Isocenter"             cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113748' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113748' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Distance Source to Isocenter is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="11b" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113737" csdConceptName="DCM" cmConceptName="Distance Source to Reference Point"       cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113737' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113737' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Distance Source to Reference Point is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="11c" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113750" csdConceptName="DCM" cmConceptName="Distance Source to Detector"              cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113750' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113750' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Distance Source to Detector is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="11d" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113751" csdConceptName="DCM" cmConceptName="Table Longitudinal Position"              cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<templatecontentitem     row="11e" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113752" csdConceptName="DCM" cmConceptName="Table Lateral Position"                   cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<templatecontentitem     row="11f" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113753" csdConceptName="DCM" cmConceptName="Table Height Position"                    cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>

		<templatecontentitem     row="11g" relationship="CONTAINS"            valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113792" csdConceptName="DCM" cmConceptName="Distance Source to Table Plane"           cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113792' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113792' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Distance Source to Table Plane is not illegal, but is unlikely to be correct"/>
	</definetemplate>

	<definetemplate tid="10004" name="AccumulatedFluoroscopyAndAcquisitionProjectionXRayDose" root="F" extensible="T">
		<templatecontentitem     row="1"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113722" csdConceptName="DCM" cmConceptName="Dose Area Product Total"             cvUnits="Gy.m2" csdUnits="UCUM" cmUnits="Gy.m2"/>
		<verify test="count(num[concept/@cv='113722' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113722' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Dose Area Product Total is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="2"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113725" csdConceptName="DCM" cmConceptName="Dose (RP) Total"                     cvUnits="Gy" csdUnits="UCUM" cmUnits="Gy"
								 condition="count(../code[concept/@cv='113854' and concept/@csd='DCM' and value/@cv='113858' and value/@csd='DCM']) = 0"  mbpo="T"/>	<!-- 1	MC	IF any of the values of TID (10001) Row 18 are not (113858, DCM, “MPPS Content”)-->
		<verify test="count(num[concept/@cv='113725' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113725' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Dose (RP) Total is not illegal, but is unlikely to be correct"/>
		<templatecontentitem     row="3"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113726" csdConceptName="DCM" cmConceptName="Fluoro Dose Area Product Total"      cvUnits="Gy.m2" csdUnits="UCUM" cmUnits="Gy.m2" condition="count(//code[concept/@cv='113721' and concept/@csd='DCM' and  ((value/@cv='P5-06000' and value/@csd='SRT') or (value/@cv='44491008' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/>	<!-- 1	MC	IFF TID(10003) Row 7 value = (P5-06000, SRT, "Fluoroscopy") for at least one irradiation event-->
		<verify test="count(num[concept/@cv='113726' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113726' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Fluoro Dose Area Product Total is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="4"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113728" csdConceptName="DCM" cmConceptName="Fluoro Dose (RP) Total"              cvUnits="Gy" csdUnits="UCUM" cmUnits="Gy"
								condition="count(//code[concept/@cv='113721' and concept/@csd='DCM' and  ((value/@cv='P5-06000' and value/@csd='SRT') or (value/@cv='44491008' and value/@csd='SCT'))]) &gt; 0
								       and count(//code[concept/@cv='113854' and concept/@csd='DCM' and (value/@cv!='113858' or value/@csd!='DCM')]) &gt; 0" mbpo="F"/>	<!-- 1	MC	IFF TID(10003) Row 7 value = (P5-06000, SRT, "Fluoroscopy") for at least one irradiation event AND any of the values of TID (10001) Row 18 are not (113858, DCM, "MPPS Content").-->
		<verify test="count(num[concept/@cv='113728' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113728' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Fluoro Dose (RP) Total is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="5"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113730" csdConceptName="DCM" cmConceptName="Total Fluoro Time"                   cvUnits="s" csdUnits="UCUM" cmUnits="s"       condition="count(//code[concept/@cv='113721' and concept/@csd='DCM' and  ((value/@cv='P5-06000' and value/@csd='SRT') or (value/@cv='44491008' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/>	<!-- 1	MC	IFF TID(10003) Row 7 value = (P5-06000, SRT, "Fluoroscopy") for at least one irradiation event.	-->
		<verify test="count(num[concept/@cv='113730' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113730' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Total Fluoro Time is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="6"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113727" csdConceptName="DCM" cmConceptName="Acquisition Dose Area Product Total" cvUnits="Gy.m2" csdUnits="UCUM" cmUnits="Gy.m2"     condition="count(//code[concept/@cv='113854' and concept/@csd='DCM' and (value/@cv!='113858' or value/@csd!='DCM')]) &gt; 0" mbpo="T"/>	<!-- 1	MC	IF any of the values of TID (10001) Row 18 are not (113858, DCM, "MPPS Content"). -->
		<verify test="count(num[concept/@cv='113727' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113727' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Acquisition Dose Area Product Total is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="7"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113729" csdConceptName="DCM" cmConceptName="Acquisition Dose (RP) Total"         cvUnits="Gy" csdUnits="UCUM" cmUnits="Gy"     condition="count(//code[concept/@cv='113854' and concept/@csd='DCM' and (value/@cv!='113858' or value/@csd!='DCM')]) &gt; 0" mbpo="T"/>	<!-- 1	MC	IF any of the values of TID (10001) Row 18 are not (113858, DCM, "MPPS Content"). -->
		<verify test="count(num[concept/@cv='113729' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113729' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Acquisition Dose (RP) Total is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="8"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113855" csdConceptName="DCM" cmConceptName="Total Acquisition Time"              cvUnits="s" csdUnits="UCUM" cmUnits="s"     condition="count(//code[concept/@cv='113854' and concept/@csd='DCM' and (value/@cv!='113858' or value/@csd!='DCM')]) &gt; 0" mbpo="T"/>	<!-- 1	MC	IF any of the values of TID (10001) Row 18 are not (113858, DCM, "MPPS Content"). -->
		<verify test="count(num[concept/@cv='113855' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113855' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Total Acquisition Time is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="9"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113737" csdConceptName="DCM" cmConceptName="Distance Source to Reference Point"              cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113737' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113737' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Distance Source to Reference Point is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="10" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113731" csdConceptName="DCM" cmConceptName="Total Number of Radiographic Frames" cvUnits="1" csdUnits="UCUM" cmUnits="no units"/>
		<templatecontentitem     row="11" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113780" csdConceptName="DCM" cmConceptName="Reference Point Definition"          valueSetCID="10025" valueSetBDE="D"
								 condition="(count(num[concept/@cv='113725' and concept/@csd='DCM']) &gt; 0
								          or count(num[concept/@cv='113728' and concept/@csd='DCM']) &gt; 0
								          or count(num[concept/@cv='113729' and concept/@csd='DCM']) &gt; 0)
									    and count(text[concept/@cv='113780' and concept/@csd='DCM']) = 0" mbpo="F"/>	<!-- 1	MC	IF Row 2, Row 4 or Row 7 is present and Row 12 is not present.-->
		<templatecontentitem     row="12" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113780" csdConceptName="DCM" cmConceptName="Reference Point Definition"
								 condition="(count(num[concept/@cv='113725' and concept/@csd='DCM']) &gt; 0
								          or count(num[concept/@cv='113728' and concept/@csd='DCM']) &gt; 0
								          or count(num[concept/@cv='113729' and concept/@csd='DCM']) &gt; 0)
									    and count(code[concept/@cv='113780' and concept/@csd='DCM']) = 0" mbpo="F"/>	<!-- 1	MC	IF Row 2, Row 4 or Row 7 is present and Row 11 is not present.	 -->

	</definetemplate>

	<definetemplate tid="10005" name="AccumulatedMammographyXRayDose" root="F" extensible="T">
		<templatecontentitem     row="1"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="2" requiredType="M"  cvConceptName="111637" csdConceptName="DCM" cmConceptName="Accumulated Average Glandular Dose" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy">
			<templatecontentitem row="2"  relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="10006" name="AccumulatedCassetteBasedProjectionRadiographyDose" root="F" extensible="T">
		<templatecontentitem     row="1"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113947" csdConceptName="DCM" cmConceptName="Detector Type" valueSetCID="10030" valueSetBDE="D"
								 condition="count(//code[concept/@cv='113945' and concept/@csd='DCM']) = 0
									     or count(//code[concept/@cv='113945' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/> <!-- IF TID (10001) Row 8 is absent or value is (R-0038D, SRT, “Yes”) -->
		<templatecontentitem     row="2"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113731" csdConceptName="DCM" cmConceptName="Total Number of Radiographic Frames" cvUnits="1" csdUnits="UCUM" cmUnits="no units"
								 condition="count(//code[concept/@cv='113945' and concept/@csd='DCM']) = 0
									     or count(//code[concept/@cv='113945' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/> <!-- IF TID (10001) Row 8 is absent or value is (R-0038D, SRT, “Yes”) -->
	</definetemplate>

	<definetemplate tid="10007" name="AccumulatedTotalProjectionRadiographyDose" root="F" extensible="T">
		<templatecontentitem     row="1"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113722" csdConceptName="DCM" cmConceptName="Dose Area Product Total"             cvUnits="Gy.m2" csdUnits="UCUM" cmUnits="Gy.m2"/>
		<verify test="count(num[concept/@cv='113722' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113722' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Dose Area Product Total is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="2"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113725" csdConceptName="DCM" cmConceptName="Dose (RP) Total"                     cvUnits="Gy" csdUnits="UCUM" cmUnits="Gy"
								 condition="count(../code[concept/@cv='122142' and concept/@csd='DCM' and value/@cv='113958' and value/@csd='DCM']) &gt; 0
										 or count(../code[concept/@cv='113854' and concept/@csd='DCM' and value/@cv='113858' and value/@csd='DCM']) = 0"  mbpo="T"/>	<!-- 1	MC	IF TID (10001) Row 4 = (113958, DCM, “Integrated Projection Radiography System”) or any of the values of TID (10001) Row 18 are not (113858, DCM, “MPPS Content”)-->
		<verify test="count(num[concept/@cv='113725' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113725' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Dose (RP) Total is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="3"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"   cvConceptName="113737" csdConceptName="DCM" cmConceptName="Distance Source to Reference Point"  cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113737' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113737' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Distance Source to Reference Point is not illegal, but is unlikely to be correct"/>

		<templatecontentitem     row="4"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113731" csdConceptName="DCM" cmConceptName="Total Number of Radiographic Frames" cvUnits="1" csdUnits="UCUM" cmUnits="no units"/>

		<templatecontentitem     row="5" relationship="CONTAINS"             valueType="TEXT"      vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113780" csdConceptName="DCM" cmConceptName="Reference Point Definition"
								 condition="(count(num[concept/@cv='113725' and concept/@csd='DCM']) &gt; 0
								          or count(num[concept/@cv='113728' and concept/@csd='DCM']) &gt; 0
								          or count(num[concept/@cv='113729' and concept/@csd='DCM']) &gt; 0)
									    and count(code[concept/@cv='113780' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- 1	MC	IF RP concepts are present and Row 5 is not present.-->

		<templatecontentitem     row="6"  relationship="CONTAINS"            valueType="CODE"     vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="113780" csdConceptName="DCM" cmConceptName="Reference Point Definition"           valueSetCID="10025"     valueSetBDE="D"
								 condition="(count(num[concept/@cv='113725' and concept/@csd='DCM']) &gt; 0
								          or count(num[concept/@cv='113728' and concept/@csd='DCM']) &gt; 0
								          or count(num[concept/@cv='113729' and concept/@csd='DCM']) &gt; 0)
									    and count(text[concept/@cv='113780' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- 1	MC	IF RP concepts are present and Row 4 is not present.	 -->
	</definetemplate>

	<definetemplate tid="10011" name="CTRadiationDose" root="T" extensible="T">
		<templatecontentitem             row="1"                                  valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113701" csdConceptName="DCM" cmConceptName="X-Ray Radiation Dose Report">
			<includetemplate             row="1b" tid="1204" vmmin="1" vmmax="1" requiredType="U"/>
			<templatecontentitem         row="2"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="121058" csdConceptName="DCM" cmConceptName="Procedure reported" cvValue="P5-08000" csdValue="SRT" cmValue="Computed Tomography X-Ray">
				<templatecontentitem	 row="3"  relationship="HAS CONCEPT MOD"  valueType="code"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="363703001" csdConceptName="SCT" cvAltConceptName="G-C0E8" csdAltConceptName="SRT" cmConceptName="Has Intent" valueSetCID="3629" valueSetBDE="D"/>
			</templatecontentitem>
			<includetemplate			 row="4"  tid="1002" vmmin="1" vmmax="n"  requiredType="M"/>
			<templatecontentitem         row="5"  relationship="HAS OBS CONTEXT"  valueType="DATETIME"   vmmin="1" vmmax="1" requiredType="M" cvConceptName="113809" csdConceptName="DCM" cmConceptName="Start of X-Ray Irradiation"/>
			<templatecontentitem         row="6"  relationship="HAS OBS CONTEXT"  valueType="DATETIME"   vmmin="1" vmmax="1" requiredType="M" cvConceptName="113810" csdConceptName="DCM" cmConceptName="End of X-Ray Irradiation"/>
			<templatecontentitem         row="7"  relationship="HAS OBS CONTEXT"  valueType="CODE"       vmmin="1" vmmax="1" requiredType="M" cvConceptName="113705" csdConceptName="DCM" cmConceptName="Scope of Accumulation" valueSetCID="10000" valueSetBDE="D">
				<templatecontentitem     row="8"  relationship="HAS PROPERTIES"   valueType="UIDREF"     vmmin="1" vmmax="1" requiredType="M" conceptNameCID="10001" conceptNameBDE="D"/>
			</templatecontentitem>
			<includetemplate			 row="9"  tid="10012" vmmin="1" vmmax="1"  requiredType="M"/>
			<includetemplate			 row="10" tid="10013" vmmin="1" vmmax="n"  requiredType="M"/>
			<templatecontentitem         row="11" relationship="CONTAINS"          valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U" cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<templatecontentitem         row="12" relationship="CONTAINS"          valueType="CODE"      vmmin="1" vmmax="n" requiredType="M" cvConceptName="113854" csdConceptName="DCM" cmConceptName="Source of Dose Information" valueSetCID="10021" valueSetBDE="D"/>
			<includetemplate			 row="13"  tid="1020" vmmin="1" vmmax="1"  requiredType="U">	<!-- Person Participant -->
				<parameter name="PersonProcedureRole"   value="PMP_1020A"/>	<!-- EV (113850, DCM, "Irradiation Authorizing") -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="10012" name="CTAccumulatedDoseData" root="F" extensible="T">
		<templatecontentitem             row="1"                                  valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113811" csdConceptName="DCM" cmConceptName="CT Accumulated Dose Data">
			<templatecontentitem         row="2"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113812" csdConceptName="DCM" cmConceptName="Total Number of Irradiation Events" cvUnits="{events}" csdUnits="UCUM" cmUnits="events"/>
			<verify test="count(num[concept/@cv='113812' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113812' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Total Number of Irradiation Events is not illegal, but is unlikely to be correct"/>

			<templatecontentitem         row="3"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113813" csdConceptName="DCM" cmConceptName="CT Dose Length Product Total" cvUnits="mGy.cm" csdUnits="UCUM" cmUnits="mGy.cm"/>
			<verify test="count(num[concept/@cv='113813' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113813' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for CT Dose Length Product Total is not illegal, but is unlikely to be correct"/>

			<templatecontentitem         row="4"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113814" csdConceptName="DCM" cmConceptName="CT Effective Dose Total" cvUnits="mSv" csdUnits="UCUM" cmUnits="mSv">
				<templatecontentitem     row="5"  relationship="HAS PROPERTIES"   valueType="TEXT"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121406" csdConceptName="DCM" cmConceptName="Reference Authority"
													condition="count(code[concept/@cv='121406' and concept/@csd='DCM']) = 0" mbpo="F"/> <!-- IF row 6 is absent -->
				<templatecontentitem     row="6"  relationship="HAS PROPERTIES"   valueType="CODE"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121406" csdConceptName="DCM" cmConceptName="Reference Authority" valueSetCID="10015" valueSetBDE="D"
													condition="count(text[concept/@cv='121406' and concept/@csd='DCM']) = 0" mbpo="F"/> <!-- IF row 5 is absent -->
				<templatecontentitem     row="7"  relationship="HAS PROPERTIES"   valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="10011" valueSetBDE="D"/>
				<templatecontentitem	 row="8"  relationship="HAS PROPERTIES"   valueType="TEXT"      vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113815" csdConceptName="DCM" cmConceptName="Patient Model"
													condition="count(code[concept/@cv='121406' and concept/@csd='DCM' and value/@cv='113800' and value/@csd='DCM']) &gt; 0
													        or count(code[concept/@cv='121406' and concept/@csd='DCM' and value/@cv='113801' and value/@csd='DCM']) &gt; 0" mbpo="F"/>	<!-- DLP to E conversion via MC computation or CTDIfreeair to E conversion via MC computation -->
				<templatecontentitem	 row="9"  relationship="HAS PROPERTIES"   valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113816" csdConceptName="DCM" cmConceptName="Condition Effective Dose measured"
													condition="count(code[concept/@cv='121406' and concept/@csd='DCM' and value/@cv='113802' and value/@csd='DCM']) &gt; 0
													        or count(code[concept/@cv='121406' and concept/@csd='DCM' and value/@cv='113803' and value/@csd='DCM']) &gt; 0" mbpo="F">	<!-- DLP to E conversion via measurement or CTDIfreeair to E conversion via measurement -->
					<templatecontentitem row="10" relationship="CONTAINS"         valueType="TEXT"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113817" csdConceptName="DCM" cmConceptName="Effective Dose Phantom Type"/>
					<templatecontentitem row="11" relationship="CONTAINS"         valueType="TEXT"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113818" csdConceptName="DCM" cmConceptName="Dosimeter Type"/>
				</templatecontentitem>
			</templatecontentitem>
			<verify test="count(num[concept/@cv='113814' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113814' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for CT Effective Dose Total is not illegal, but is unlikely to be correct"/>

			<templatecontentitem         row="12" relationship="CONTAINS"         valueType="TEXT"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<includetemplate			 row="13" tid="1021" vmmin="1" vmmax="1"  requiredType="U">	<!-- Device Participant --> <!-- is really MC but real-world -->
				<parameter name="DeviceProcedureRole"   value="PMP_1021"/>	<!-- EV (113859, DCM, "Irradiating Device") -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>

	<definetemplate tid="10013" name="CTIrradiationEventData" root="F" extensible="T">
		<templatecontentitem             row="1"                                  valueType="container" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113819" csdConceptName="DCM" cmConceptName="CT Acquisition">
			<templatecontentitem         row="2"  relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="125203" csdConceptName="DCM" cmConceptName="Acquisition Protocol"/>
			<templatecontentitem         row="3"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="123014" csdConceptName="DCM" cmConceptName="Target Region" valueSetCID="4030" valueSetBDE="D"/>
			<templatecontentitem         row="4"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113820" csdConceptName="DCM" cmConceptName="CT Acquisition Type" valueSetCID="10013" valueSetBDE="D"/>
			<templatecontentitem         row="4b" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="113961" csdConceptName="DCM" cmConceptName="Reconstruction Algorithm" valueSetCID="10033" valueSetBDE="D"/>
			<templatecontentitem         row="5"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="408730004" csdConceptName="SCT" cvAltConceptName="G-C32C" csdAltConceptName="SRT" cmConceptName="Procedure Context" valueSetCID="10014" valueSetBDE="D"/>
			<templatecontentitem         row="6"  relationship="CONTAINS"         valueType="UIDREF"    vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113769" csdConceptName="DCM" cmConceptName="Irradiation Event UID"/>
			<templatecontentitem         row="6b" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113605" csdConceptName="DCM" cmConceptName="Irradiation Event Label">
				<templatecontentitem     row="6c" relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113606" csdConceptName="DCM" cmConceptName="Label Type" valueSetCID="10022" valueSetBDE="D"/>	<!-- is really MC based on coming from images but real world -->
			</templatecontentitem>
			<templatecontentitem         row="6d" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="128551" csdConceptName="DCM" cmConceptName="Is Repeated Acquisition" valueSetCID="230" valueSetBDE="D">
				<templatecontentitem     row="6e" relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="128552" csdConceptName="DCM" cmConceptName="Reason for Repeating Acquisition" valueSetCID="10034" valueSetBDE="D"/>
			</templatecontentitem>
			<templatecontentitem		 row="7"  relationship="CONTAINS"		  valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113822" csdConceptName="DCM" cmConceptName="CT Acquisition Parameters">
				<templatecontentitem	 row="8"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113824" csdConceptName="DCM" cmConceptName="Exposure Time" cvUnits="s" csdUnits="UCUM" cmUnits="s"/>
				<verify test="count(num[concept/@cv='113824' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113824' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Exposure Time is not illegal, but is unlikely to be correct"/>
				<includetemplate		 row="9" tid="10014" vmmin="1" vmmax="1"  requiredType="M"/>	<!-- Scanning Length -->
				<templatecontentitem	 row="10" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113826" csdConceptName="DCM" cmConceptName="Nominal Single Collimation Width" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
				<verify test="count(num[concept/@cv='113826' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113826' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Nominal Single Collimation Width is not illegal, but is unlikely to be correct"/>

				<templatecontentitem	 row="11" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113827" csdConceptName="DCM" cmConceptName="Nominal Total Collimation Width" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
				<verify test="count(num[concept/@cv='113827' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113827' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Nominal Total Collimation Width is not illegal, but is unlikely to be correct"/>

				<templatecontentitem	 row="12" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113828" csdConceptName="DCM" cmConceptName="Pitch Factor" cvUnits="{ratio}" csdUnits="UCUM" cmUnits="ratio"
													condition="count(../code[concept/@cv='113820' and concept/@csd='DCM' and ((value/@cv='P5-08001' and value/@csd='SRT') or (value/@cv='116152004' and value/@csd='SCT'))]) &gt; 0
													        or count(../code[concept/@cv='113820' and concept/@csd='DCM' and value/@cv='113804' and value/@csd='DCM']) &gt; 0" mbpo="F"/>	<!-- row 4 equals Spiral Acquisition or Sequenced Acquisition -->
				<verify test="count(num[concept/@cv='113828' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113828' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Pitch Factor is not illegal, but is unlikely to be correct"/>

				<templatecontentitem	 row="13" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113823" csdConceptName="DCM" cmConceptName="Number of X-Ray Sources" cvUnits="{X-Ray sources}" csdUnits="UCUM" cmUnits="X-Ray sources"/>
				<verify test="count(num[concept/@cv='113823' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113823' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Number of X-Ray Sources is not illegal, but is unlikely to be correct"/>

				<templatecontentitem	 row="14" relationship="CONTAINS"		  valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M"  cvConceptName="113831" csdConceptName="DCM" cmConceptName="CT X-Ray Source Parameters">
					<templatecontentitem row="15" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113832" csdConceptName="DCM" cmConceptName="Identification of the X-Ray Source"/>
					<templatecontentitem row="16" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113733" csdConceptName="DCM" cmConceptName="KVP" cvUnits="kV" csdUnits="UCUM" cmUnits="kV"/>
					<verify test="count(num[concept/@cv='113733' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113733' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for KVP is not illegal, but is unlikely to be correct"/>

					<templatecontentitem row="17" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113833" csdConceptName="DCM" cmConceptName="Maximum X-Ray Tube Current" cvUnits="mA" csdUnits="UCUM" cmUnits="mA"/>
					<verify test="count(num[concept/@cv='113833' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113833' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Maximum X-Ray Tube Current is not illegal, but is unlikely to be correct"/>

					<templatecontentitem row="18" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113734" csdConceptName="DCM" cmConceptName="X-Ray Tube Current"         cvUnits="mA" csdUnits="UCUM" cmUnits="mA"/>
					<verify test="count(num[concept/@cv='113734' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113734' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for X-Ray Tube Current is not illegal, but is unlikely to be correct"/>

					<templatecontentitem row="19" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113834" csdConceptName="DCM" cmConceptName="Exposure Time per Rotation" cvUnits="s" csdUnits="UCUM" cmUnits="s"
														condition="count(../../code[concept/@cv='113820' and concept/@csd='DCM' and value/@cv='113805' and value/@csd='DCM']) = 0" mbpo="F"/>	<!-- row 4 not Constant Angle Acquisition -->
					<verify test="count(num[concept/@cv='113834' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113834' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Exposure Time per Rotation is not illegal, but is unlikely to be correct"/>

					<templatecontentitem row="20" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113821" csdConceptName="DCM" cmConceptName="X-Ray Filter Aluminum Equivalent" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
					<verify test="count(num[concept/@cv='113821' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113821' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for X-Ray Filter Aluminum Equivalent is not illegal, but is unlikely to be correct"/>

				</templatecontentitem>
			</templatecontentitem>
			<templatecontentitem		 row="21" relationship="CONTAINS"		  valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113829" csdConceptName="DCM" cmConceptName="CT Dose"
														condition="count(code[concept/@cv='113820' and concept/@csd='DCM' and value/@cv='113805' and value/@csd='DCM']) = 0" mbpo="T">	<!-- row 4 not Constant Angle Acquisition; mbpo per existing IF rather than IFF (CP 1075 unnecessary) -->
				<templatecontentitem	 row="22" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113830" csdConceptName="DCM" cmConceptName="Mean CTDIvol" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy"/>
				<verify test="count(num[concept/@cv='113830' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113830' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Mean CTDIvol is not illegal, but is unlikely to be correct"/>

				<templatecontentitem     row="23" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113835" csdConceptName="DCM" cmConceptName="CTDIw Phantom Type" valueSetCID="4052" valueSetBDE="D"/>

				<templatecontentitem	 row="24" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113836" csdConceptName="DCM" cmConceptName="CTDIfreeair Calculation Factor" cvUnits="mGy/mA.s" csdUnits="UCUM" cmUnits="mGy/mA.s"/>
				<verify test="count(num[concept/@cv='113836' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113836' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for CTDIfreeair Calculation Factor is not illegal, but is unlikely to be correct"/>

				<templatecontentitem	 row="25" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113837" csdConceptName="DCM" cmConceptName="Mean CTDIfreeair" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy"/>
				<verify test="count(num[concept/@cv='113837' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113837' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Mean CTDIfreeair is not illegal, but is unlikely to be correct"/>

				<templatecontentitem	 row="26" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113838" csdConceptName="DCM" cmConceptName="DLP" cvUnits="mGy.cm" csdUnits="UCUM" cmUnits="mGy.cm"/>
				<verify test="count(num[concept/@cv='113838' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113838' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for DLP is not illegal, but is unlikely to be correct"/>

				<templatecontentitem	 row="27" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113839" csdConceptName="DCM" cmConceptName="Effective Dose" cvUnits="mSv" csdUnits="UCUM" cmUnits="mSv">
					<templatecontentitem row="28" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="10011" valueSetBDE="D">
						<templatecontentitem row="29" relationship="CONTAINS"	  valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113840" csdConceptName="DCM" cmConceptName="Effective Dose Conversion Factor" cvUnits="mSv/mGy.cm" csdUnits="UCUM" cmUnits="mSv/mGy.cm"
													condition="(../value/@cv='113800' and ../value/@csd='DCM')
													        or (../value/@cv='113802' and ../value/@csd='DCM')" mbpo="T"/>	<!-- IF row 28 is present and equals (113800, DCM, “DLP to E conversion via MC computation”) or equals (113802, DCM, “DLP to E conversion via measurement”) -->
						<verify test="count(num[concept/@cv='113840' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113840' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Effective Dose Conversion Factor is not illegal, but is unlikely to be correct"/>
					</templatecontentitem>
				</templatecontentitem>
				<verify test="count(num[concept/@cv='113839' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113839' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Effective Dose is not illegal, but is unlikely to be correct"/>

				<templatecontentitem	     row="30" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="n" requiredType="U"  cvConceptName="113930" csdConceptName="DCM" cmConceptName="Size Specific Dose Estimation" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy">
					<templatecontentitem     row="31" relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="10023" valueSetBDE="D">
						<templatecontentitem row="32" relationship="INFERRED FROM  "  valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113931" csdConceptName="DCM" cmConceptName="Measured Lateral Dimension"
													condition="(../value/@cv='113934' and ../value/@csd='DCM')
													        or (../value/@cv='113936' and ../value/@csd='DCM')" mbpo="T" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/> <!-- IF row 31 equals (113934, DCM, “AAPM 204 Lateral Dimension”) or (113936, DCM, “AAPM 204 Sum of Lateral and AP Dimension”) -->
						<templatecontentitem row="33" relationship="INFERRED FROM  "  valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113932" csdConceptName="DCM" cmConceptName="Measured AP Dimension"
													condition="(../value/@cv='113935' and ../value/@csd='DCM')
													        or (../value/@cv='113936' and ../value/@csd='DCM')" mbpo="T" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/> <!-- IF row 31 equals (113935, DCM, “AAPM 204 AP Dimension”) or (113936, DCM, “AAPM 204 Sum of Lateral and AP Dimension”) -->
						<templatecontentitem row="34" relationship="INFERRED FROM  "  valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113933" csdConceptName="DCM" cmConceptName="Derived Effective Diameter"
													condition="(../value/@cv='113934' and ../value/@csd='DCM')
													        or (../value/@cv='113935' and ../value/@csd='DCM')
													        or (../value/@cv='113936' and ../value/@csd='DCM')
													        or (../value/@cv='113937' and ../value/@csd='DCM')" mbpo="T" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/> <!-- IF row 31 equals (113934, DCM, “AAPM 204 Lateral Dimension”) or (113935, DCM, “AAPM 204 AP Dimension”) or (113936, DCM, “AAPM 204 Sum of Lateral and AP Dimension”) or (113937, DCM, “AAPM 204 Effective Diameter Estimated From Patient Age”) -->
					</templatecontentitem>
				</templatecontentitem>

				<includetemplate	     row="35"  tid="10015" vmmin="1" vmmax="1"  requiredType="M"/>	<!-- CT Dose Check Details -->
			</templatecontentitem>
			<templatecontentitem         row="36" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113842" csdConceptName="DCM" cmConceptName="X-Ray Modulation Type"/>
			<templatecontentitem         row="37" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<includetemplate			 row="38"  tid="1020" vmmin="1" vmmax="n"  requiredType="U">	<!-- Person Participant -->
				<parameter name="PersonProcedureRole"   value="PMP_1020B"/>	<!-- EV (113851, DCM, "Irradiation Administering") -->
			</includetemplate>
			<includetemplate			 row="39"  tid="1021" vmmin="1" vmmax="1"  requiredType="U">	<!-- Device Participant --> <!-- is really MC but real-world -->
				<parameter name="DeviceProcedureRole"   value="PMP_1021"/>	<!-- EV (113859, DCM, "Irradiating Device") -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>


	<definetemplate tid="10014" name="ScanningLength" root="F" extensible="T">
		<templatecontentitem	 row="1"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113825" csdConceptName="DCM" cmConceptName="Scanning Length" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113825' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113825' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Scanning Length is not illegal, but is unlikely to be correct"/>

		<templatecontentitem	 row="2"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113893" csdConceptName="DCM" cmConceptName="Length of Reconstructable Volume" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113893' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113893' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Length of Reconstructable Volume, but is unlikely to be correct"/>

		<templatecontentitem	 row="3"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113899" csdConceptName="DCM" cmConceptName="Exposed Range" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"
											condition="count(../code[concept/@cv='113820' and concept/@csd='DCM' and ((value/@cv='P5-08001' and value/@csd='SRT') or (value/@cv='116152004' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/> <!-- IFF TID 10013 row 4 CT Acquisition Type equals (P5-08001, SRT, “Spiral Acquisition”) -->
		<verify test="count(num[concept/@cv='113899' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113899' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Exposed Range, but is unlikely to be correct"/>

		<templatecontentitem	 row="4"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113895" csdConceptName="DCM" cmConceptName="Top Z Location of Reconstructable Volume" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113895' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113895' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Top Z Location of Reconstructable Volume, but is unlikely to be correct"/>

		<templatecontentitem	 row="5"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113896" csdConceptName="DCM" cmConceptName="Bottom Z Location of Reconstructable Volume" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113896' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113896' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Bottom Z Location of Reconstructable Volume, but is unlikely to be correct"/>

		<templatecontentitem	 row="6"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113897" csdConceptName="DCM" cmConceptName="Top Z Location of Scanning Length" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113897' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113897' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Top Z Location of Scanning Length, but is unlikely to be correct"/>

		<templatecontentitem	 row="7"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113898" csdConceptName="DCM" cmConceptName="Bottom Z Location of Scanning Length" cvUnits="mm" csdUnits="UCUM" cmUnits="mm"/>
		<verify test="count(num[concept/@cv='113898' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113898' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Bottom Z Location of Scanning Length, but is unlikely to be correct"/>

		<templatecontentitem	 row="8"  relationship="CONTAINS"         valueType="UIDREF"    vmmin="1" vmmax="1" requiredType="MC"  cvConceptName="112227" csdConceptName="DCM" cmConceptName="Frame of Reference UID"
											condition="count(num[concept/@cv='113895' and concept/@csd='DCM'])&gt;0
													or count(num[concept/@cv='113896' and concept/@csd='DCM'])&gt;0
													or count(num[concept/@cv='113897' and concept/@csd='DCM'])&gt;0
													or count(num[concept/@cv='113898' and concept/@csd='DCM'])&gt;0" mbpo="F"/> <!-- IF any of Rows 4 through 7 are present -->

	</definetemplate>

	<definetemplate tid="10015" name="CTDoseCheckDetails" root="F" extensible="T">
		<templatecontentitem	 row="1"  relationship="CONTAINS"         valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113900" csdConceptName="DCM" cmConceptName="Dose Check Alert Details">	<!-- MC	IF the scanning device has implemented dose alerts -->
			<templatecontentitem row="2"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113901" csdConceptName="DCM" cmConceptName="DLP Alert Value Configured" valueSetCID="230" valueSetBDE="D"/>
			<templatecontentitem row="3"  relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113902" csdConceptName="DCM" cmConceptName="CTDIvol Alert Value Configured" valueSetCID="230" valueSetBDE="D"/>

			<templatecontentitem row="4"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113903" csdConceptName="DCM" cmConceptName="DLP Alert Value" cvUnits="mGy.cm" csdUnits="UCUM" cmUnits="mGy.cm"
														condition="count(code[concept/@cv='113901' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/>	<!-- IFF value of Row 2 is (R-0038D,SRT, “Yes”) -->
			<verify test="count(num[concept/@cv='113903' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113903' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for DLP Alert Value is not illegal, but is unlikely to be correct"/>

			<templatecontentitem row="5"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113904" csdConceptName="DCM" cmConceptName="CTDIvol Alert Value" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy"
														condition="count(code[concept/@cv='113902' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/>	<!-- IFF value of Row 3 is (R-0038D,SRT, “Yes”) -->
			<verify test="count(num[concept/@cv='113904' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113904' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for CTDIvol Alert Value is not illegal, but is unlikely to be correct"/>

			<templatecontentitem row="6"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113905" csdConceptName="DCM" cmConceptName="Accumulated DLP Forward Estimate" cvUnits="mGy.cm" csdUnits="UCUM" cmUnits="mGy.cm"
														condition="count(num[concept/@cv='113905' and concept/@csd='DCM'])&gt;0
															   and count(num[concept/@cv='113903' and concept/@csd='DCM'])&gt;0
															   and number(num[concept/@cv='113905' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113903' and concept/@csd='DCM']/value)"
														mbpo="F"/>	<!-- IF Accumulated DLP Forward Estimate (Row 6) exceeds DLP Alert Value (Row 4) -->
			<verify test="count(num[concept/@cv='113905' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113905' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Accumulated DLP Forward Estimate is not illegal, but is unlikely to be correct"/>

			<templatecontentitem row="7"  relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113906" csdConceptName="DCM" cmConceptName="Accumulated CTDIvol Forward Estimate" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy"
														condition="count(num[concept/@cv='113906' and concept/@csd='DCM'])&gt;0
															   and count(num[concept/@cv='113904' and concept/@csd='DCM'])&gt;0
															   and number(num[concept/@cv='113906' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113904' and concept/@csd='DCM']/value)"
														mbpo="F"/>	<!-- IF Accumulated CTDIvol Forward Estimate (Row 7) exceeds CTDIvol Alert Value (Row 5) -->
			<verify test="count(num[concept/@cv='113906' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113906' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for Accumulated CTDIvol Forward Estimate is not illegal, but is unlikely to be correct"/>

			<templatecontentitem row="8"  relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="UC" cvConceptName="113907" csdConceptName="DCM" cmConceptName="Reason for Proceeding"
														condition="(count(num[concept/@cv='113905' and concept/@csd='DCM'])&gt;0
															    and count(num[concept/@cv='113903' and concept/@csd='DCM'])&gt;0
														        and number(num[concept/@cv='113905' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113903' and concept/@csd='DCM']/value))
															or     (count(num[concept/@cv='113906' and concept/@csd='DCM'])&gt;0
															    and count(num[concept/@cv='113904' and concept/@csd='DCM'])&gt;0
														        and number(num[concept/@cv='113906' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113904' and concept/@csd='DCM']/value))"
														mbpo="F"/>	<!-- FF Accumulated DLP Forward Estimate (Row 6) exceeds DLP Alert Value (Row 4) or Accumulated CTDIvol Forward Estimate (Row 7) exceeds CTDIvol Alert Value (Row 5) -->

			<includetemplate     row="9"  tid="1020" vmmin="1" vmmax="1"  requiredType="MC"
														condition="(count(num[concept/@cv='113905' and concept/@csd='DCM'])&gt;0
															    and count(num[concept/@cv='113903' and concept/@csd='DCM'])&gt;0
														        and number(num[concept/@cv='113905' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113903' and concept/@csd='DCM']/value))
															or     (count(num[concept/@cv='113906' and concept/@csd='DCM'])&gt;0
															    and count(num[concept/@cv='113904' and concept/@csd='DCM'])&gt;0
														        and number(num[concept/@cv='113906' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113904' and concept/@csd='DCM']/value))" mbpo="F">	<!-- Person Participant -->
				<parameter name="PersonProcedureRole"   value="PMP_1020A"/>	<!-- EV (113850, DCM, "Irradiation Authorizing") -->
			</includetemplate>
		</templatecontentitem>

		<templatecontentitem	 row="10" relationship="CONTAINS"         valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="113908" csdConceptName="DCM" cmConceptName="Dose Check Notification Details">	<!-- IF the scanning device has implemented dose notifications -->
			<templatecontentitem row="11" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113909" csdConceptName="DCM" cmConceptName="DLP Notification Value Configured" valueSetCID="230" valueSetBDE="D"/>
			<templatecontentitem row="12" relationship="CONTAINS"         valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="113910" csdConceptName="DCM" cmConceptName="CTDIvol Notification Value Configured" valueSetCID="230" valueSetBDE="D"/>

			<templatecontentitem row="13" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113911" csdConceptName="DCM" cmConceptName="DLP Notification Value" cvUnits="mGy.cm" csdUnits="UCUM" cmUnits="mGy.cm"
														condition="count(code[concept/@cv='113909' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/>	<!-- IFF value of Row 11 is (R-0038D,SRT, “Yes”) -->
			<verify test="count(num[concept/@cv='113911' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113911' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for DLP Notification Value is not illegal, but is unlikely to be correct"/>

			<templatecontentitem row="14" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113912" csdConceptName="DCM" cmConceptName="CTDIvol Notification Value" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy"
														condition="count(code[concept/@cv='113910' and concept/@csd='DCM' and ((value/@cv='R-0038D' and value/@csd='SRT') or (value/@cv='373066001' and value/@csd='SCT'))]) &gt; 0" mbpo="F"/>	<!-- IFF value of Row 12 is (R-0038D,SRT, “Yes”) -->
			<verify test="count(num[concept/@cv='113912' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113912' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for CTDIvol Notification Value is not illegal, but is unlikely to be correct"/>

			<templatecontentitem row="15" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113913" csdConceptName="DCM" cmConceptName="DLP Forward Estimate" cvUnits="mGy.cm" csdUnits="UCUM" cmUnits="mGy.cm"
														condition="count(num[concept/@cv='113913' and concept/@csd='DCM'])&gt;0
															   and count(num[concept/@cv='113911' and concept/@csd='DCM'])&gt;0
															   and number(num[concept/@cv='113913' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113911' and concept/@csd='DCM']/value)"
														mbpo="F"/>	<!-- IF DLP Forward Estimate (Row 15) exceeds DLP Notification Value (Row 13) -->
			<verify test="count(num[concept/@cv='113913' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113913' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for DLP Forward Estimate is not illegal, but is unlikely to be correct"/>

			<templatecontentitem row="16" relationship="CONTAINS"         valueType="NUM"       vmmin="1" vmmax="1" requiredType="MC" cvConceptName="113914" csdConceptName="DCM" cmConceptName="CTDIvol Forward Estimate" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy"
														condition="count(num[concept/@cv='113914' and concept/@csd='DCM'])&gt;0
															   and count(num[concept/@cv='113912' and concept/@csd='DCM'])&gt;0
															   and number(num[concept/@cv='113914' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113912' and concept/@csd='DCM']/value)"
														mbpo="F"/>	<!-- F CTDIvol Forward Estimate (Row 16) exceeds CTDIvol Notification Value (Row 14) -->
			<verify test="count(num[concept/@cv='113914' and concept/@csd='DCM'])&gt;0 and number(num[concept/@cv='113914' and concept/@csd='DCM']/value)=0" status="Warning" message="value of 0 for CTDIvol Forward Estimate is not illegal, but is unlikely to be correct"/>

			<templatecontentitem row="17" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="UC" cvConceptName="113907" csdConceptName="DCM" cmConceptName="Reason for Proceeding"
														condition="(count(num[concept/@cv='113913' and concept/@csd='DCM'])&gt;0
															    and count(num[concept/@cv='113911' and concept/@csd='DCM'])&gt;0
														        and number(num[concept/@cv='113913' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113911' and concept/@csd='DCM']/value))
															or     (count(num[concept/@cv='113914' and concept/@csd='DCM'])&gt;0
															    and count(num[concept/@cv='113912' and concept/@csd='DCM'])&gt;0
														        and number(num[concept/@cv='113914' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113912' and concept/@csd='DCM']/value))"
														mbpo="F"/>	<!-- IFF DLP Forward Estimate (Row 15) exceeds DLP Notification Value (Row 13) or CTDIvol Forward Estimate (Row 16) exceeds CTDIvol Notification Value (Row 14) -->

			<includetemplate     row="18" tid="1020" vmmin="1" vmmax="1"  requiredType="UC"
														condition="(count(num[concept/@cv='113913' and concept/@csd='DCM'])&gt;0
															    and count(num[concept/@cv='113911' and concept/@csd='DCM'])&gt;0
														        and number(num[concept/@cv='113913' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113911' and concept/@csd='DCM']/value))
															or     (count(num[concept/@cv='113914' and concept/@csd='DCM'])&gt;0
															    and count(num[concept/@cv='113911' and concept/@csd='DCM'])&gt;0
														        and number(num[concept/@cv='113914' and concept/@csd='DCM']/value) &gt; number(num[concept/@cv='113912' and concept/@csd='DCM']/value))" mbpo="F">	<!-- Person Participant -->
				<parameter name="PersonProcedureRole"   value="PMP_1020A"/>	<!-- EV (113850, DCM, "Irradiation Authorizing") -->
			</includetemplate>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="10021" name="RadiopharmaceuticalRadiationDose" root="T" extensible="T" ordersignificant="T">
		<templatecontentitem			row="1"									valueType="CONTAINER"	vmmin="1" vmmax="1" requiredType="M" cvConceptName="113500" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Radiation Dose Report">
			<includetemplate            row="1b" tid="1204" vmmin="1" vmmax="1" requiredType="U"/>
			<templatecontentitem		row="2" relationship="HAS CONCEPT MOD"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="363589002" csdConceptName="SCT" cvAltConceptName="G-C2D0" csdAltConceptName="SRT" cmConceptName="Associated Procedure" valueSetCID="3108" valueSetBDE="D">
				<templatecontentitem	row="3" relationship="HAS CONCEPT MOD"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="363703001" csdConceptName="SCT" cvAltConceptName="G-C0E8" csdAltConceptName="SRT" cmConceptName="Has Intent" valueSetCID="3629" valueSetBDE="D"/>
			</templatecontentitem>
			<includetemplate			row="4" tid="10022"	vmmin="1" vmmax="1" requiredType="M"/>
			<includetemplate			row="5" tid="10024"	vmmin="1" vmmax="1" requiredType="U"/>
			<templatecontentitem		row="6"	relationship="CONTAINS"			valueType="TEXT"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="10022" name="RadiopharmaceuticalAdministrationEventData" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem			row="1"	relationship="CONTAINS"			valueType="CONTAINER"	vmmin="1" vmmax="1" requiredType="M" cvConceptName="113502" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Administration">
			<templatecontentitem		row="2"	relationship="CONTAINS"			valueType="CODE"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="417881006" csdConceptName="SCT" cvAltConceptName="F-61FDB" csdAltConceptName="SRT" cmConceptName="Radiopharmaceutical agent">
				<!--DCID 25, DCID 4021-->
				<templatecontentitem	row="3"	relationship="HAS PROPERTIES"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="89457008" csdConceptName="SCT" cvAltConceptName="C-10072" csdAltConceptName="SRT" cmConceptName="Radionuclide">
					<!--DCID 18, DCID 4020-->
				</templatecontentitem>
				<templatecontentitem	row="4"	relationship="HAS PROPERTIES"	valueType="NUM"			vmmin="1" vmmax="1" requiredType="M" cvConceptName="304283002" csdConceptName="SCT" cvAltConceptName="R-42806" csdAltConceptName="SRT" cmConceptName="Radionuclide Half Life" cvUnits="s" csdUnits="UCUM" cmUnits="seconds"/>
			</templatecontentitem>
			<templatecontentitem		row="5" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="123007" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Specific Activity" cvUnits="Bq/mmol" csdUnits="UCUM" cmUnits="Bq/mmol"/>
			<templatecontentitem		row="6" relationship="CONTAINS"			valueType="UIDREF"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="113503" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Administration Event UID"/>
			<templatecontentitem		row="7" relationship="CONTAINS"			valueType="CODE"		vmmin="1" vmmax="n" requiredType="U" cvConceptName="113505" csdConceptName="DCM" cmConceptName="Intravenous Extravasation Symptoms" valueSetCID="10043" valueSetBDE="D"/>
			<templatecontentitem		row="8" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="113506" csdConceptName="DCM" cmConceptName="Estimated Extravasation Activity" cvUnits="%" csdUnits="UCUM" cmUnits="percent"/>
			<templatecontentitem		row="9" relationship="CONTAINS"			valueType="DATETIME"	vmmin="1" vmmax="1" requiredType="M" cvConceptName="123003" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Start DateTime"/>
			<templatecontentitem		row="10" relationship="CONTAINS"		valueType="DATETIME"	vmmin="1" vmmax="1" requiredType="U" cvConceptName="123004" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Stop DateTime"/>
			<templatecontentitem		row="11" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="1" requiredType="M" cvConceptName="113507" csdConceptName="DCM" cmConceptName="Administered activity" cvUnits="MBq" csdUnits="UCUM" cmUnits="MBq"/>
			<templatecontentitem		row="12" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="123005" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Volume" cvUnits="cm3" csdUnits="UCUM" cmUnits="cm3"/>
			<templatecontentitem		row="13" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="113508" csdConceptName="DCM" cmConceptName="Pre-Administration Measured Activity" cvUnits="MBq" csdUnits="UCUM" cmUnits="MBq">
				<templatecontentitem	row="14" relationship="HAS OBS CONTEXT"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="113540" csdConceptName="DCM" cmConceptName="Activity Measurement Device" valueSetCID="10041" valueSetBDE="D"/>
				<includetemplate		row="15" tid="1002"												vmmin="1" vmmax="n" requiredType="U"/>
			</templatecontentitem>
			<templatecontentitem		row="16" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="113509" csdConceptName="DCM" cmConceptName="Post-Administration Measured Activity" cvUnits="MBq" csdUnits="UCUM" cmUnits="MBq">
				<templatecontentitem	row="17" relationship="HAS OBS CONTEXT"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="113540" csdConceptName="DCM" cmConceptName="Activity Measurement Device" valueSetCID="10041" valueSetBDE="D"/>
				<includetemplate		row="18" tid="1002"												vmmin="1" vmmax="n" requiredType="U"/>
			</templatecontentitem>
			<includetemplate			row="19" tid="10023"											vmmin="1" vmmax="n" requiredType="U"/>
			<templatecontentitem		row="20" relationship="CONTAINS"		valueType="CODE"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="410675002" csdConceptName="SCT" cvAltConceptName="G-C340" csdAltConceptName="SRT" cmConceptName="Route of administration" valueSetCID="11" valueSetBDE="B">
				<templatecontentitem	row="21" relationship="HAS PROPERTIES"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="MC" cvConceptName="272737002" csdConceptName="SCT" cvAltConceptName="G-C581" csdAltConceptName="SRT" cmConceptName="Site of" valueSetCID="3746" valueSetBDE="D"
										condition="count(../code[((concept/@cv='G-C340' and concept/@csd='SRT') or (concept/@cv='410675002' and concept/@csd='SCT')) and ((((value/@cv='G-D101' and value/@csd='SRT') or (value/@cv='47625008' and value/@csd='SCT'))) or (((value/@cv='G-D103' and value/@csd='SRT') or (value/@cv='78421000' and value/@csd='SCT'))))]) &gt; 0">
										<!--IF Row 20 equals (G-D101, SRT, "Intravenous route") or (G-D103, SRT, "Intramuscular route")-->
					<templatecontentitem row="22" relationship="HAS CONCEPT MOD" valueType="CODE"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="244" valueSetBDE="D">
						<!-- Actually MC - IF Row 21 has laterality, but real-world -->
					</templatecontentitem>
				</templatecontentitem>
			</templatecontentitem>
			<includetemplate			row="23" tid="1020"												vmmin="1" vmmax="n" requiredType="M"/>
			<!--$PersonProcedureRole = EV (113851, DCM, "Irradiation Administering")-->
			<templatecontentitem		row="24" relationship="CONTAINS"		valueType="CODE"		vmmin="1" vmmax="n" requiredType="U" cvConceptName="121147" csdConceptName="DCM" cmConceptName="Billing Code(s"/>
			<templatecontentitem		row="25" relationship="CONTAINS"		valueType="CODE"		vmmin="1" vmmax="n" requiredType="U" cvConceptName="113510" csdConceptName="DCM" cmConceptName="Drug Product Identifier"/>
			<templatecontentitem		row="26" relationship="CONTAINS"		valueType="TEXT"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="111529" csdConceptName="DCM" cmConceptName="Brand Name"/>
			<templatecontentitem		row="27" relationship="CONTAINS"		valueType="TEXT"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="113511" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Dispense Unit Identifier">
				<templatecontentitem	row="28" relationship="CONTAINS"		valueType="TEXT"		vmmin="1" vmmax="n" requiredType="U" cvConceptName="113512" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Lot Identifier"/>
				<templatecontentitem	row="29" relationship="CONTAINS"		valueType="TEXT"		vmmin="1" vmmax="n" requiredType="U" cvConceptName="113513" csdConceptName="DCM" cmConceptName="Reagent Vial Identifier"/>
				<templatecontentitem	row="30" relationship="CONTAINS"		valueType="TEXT"		vmmin="1" vmmax="n" requiredType="U" cvConceptName="113514" csdConceptName="DCM" cmConceptName="Radionuclide Identifier"/>
			</templatecontentitem>
			<templatecontentitem		row="31" relationship="CONTAINS"		valueType="TEXT"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="113516" csdConceptName="DCM" cmConceptName="Prescription Identifier"/>
			<templatecontentitem		row="32" relationship="CONTAINS"		valueType="TEXT"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="10023" name="OrganDose" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem			row="1" relationship="CONTAINS"			valueType="CONTAINER"	vmmin="1" vmmax="1" requiredType="M" cvConceptName="113517" csdConceptName="DCM" cmConceptName="Organ Dose Information">
			<templatecontentitem		row="2" relationship="HAS CONCEPT MOD"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="363698007" csdConceptName="SCT" cvAltConceptName="G-C0E3" csdAltConceptName="SRT" cmConceptName="Finding Site" valueSetCID="10044" valueSetBDE="D"/>
			<templatecontentitem		row="3" relationship="HAS CONCEPT MOD"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="244" valueSetBDE="D">
				<!-- Actually MC - IFF anatomy has laterality, but real-world -->
			</templatecontentitem>
			<templatecontentitem		row="4" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="118538004" csdConceptName="SCT" cvAltConceptName="G-D701" csdAltConceptName="SRT" cmConceptName="Mass" cvUnits="g" csdUnits="UCUM" cmUnits="grams">
				<templatecontentitem	row="5" relationship="HAS CONCEPT MOD"	valueType="TEXT"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method"/>
			</templatecontentitem>
			<templatecontentitem		row="6" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="M" cvConceptName="113518" csdConceptName="DCM" cmConceptName="Organ Dose" cvUnits="mGy" csdUnits="UCUM" cmUnits="mGy">
				<templatecontentitem	row="7" relationship="HAS PROPERTIES"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121406" csdConceptName="DCM" cmConceptName="Reference Authority" valueSetCID="10040" valueSetBDE="B"
										condition="count(text[concept/@cv='121406' and concept/@csd='DCM']) = 0" mbpo="F">	<!--XOR Row 8-->
				</templatecontentitem>
				<templatecontentitem	row="8" relationship="HAS PROPERTIES"	valueType="TEXT"		vmmin="1" vmmax="1" requiredType="MC" cvConceptName="121406" csdConceptName="DCM" cmConceptName="Reference Authority"
										condition="count(code[concept/@cv='121406' and concept/@csd='DCM']) = 0" mbpo="F">	<!--XOR Row 7-->
				</templatecontentitem>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="10024" name="RadiopharmaceuticalAdministrationPatientCharacteristics" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem			row="1" relationship="CONTAINS"			valueType="CONTAINER"	vmmin="" vmmax="" requiredType="" cvConceptName="121118" csdConceptName="DCM" cmConceptName="Patient Characteristics">
			<templatecontentitem		row="2" relationship="CONTAINS"			valueType="CODE"		vmmin="1" vmmax="n" requiredType="U" cvConceptName="109054" csdConceptName="DCM" cmConceptName="Patient state" valueSetCID="10045" valueSetBDE="D"/>
			<templatecontentitem		row="3" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="121033" csdConceptName="DCM" cmConceptName="Subject Age" unitsCID="7456" unitsBDE="D"/>
			<templatecontentitem		row="4" relationship="CONTAINS"			valueType="CODE"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="121032" csdConceptName="DCM" cmConceptName="Subject Sex" valueSetCID="7455" valueSetBDE="D"/>
			<templatecontentitem		row="5" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="8302-2" csdConceptName="LN" cmConceptName="Patient Height" cvUnits="cm" csdUnits="UCUM" cmUnits="cm"/>
			<templatecontentitem		row="6" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="29463-7" csdConceptName="LN" cmConceptName="Patient Weight" cvUnits="kg" csdUnits="UCUM" cmUnits="kg"/>
			<templatecontentitem		row="7" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="8277-6" csdConceptName="LN" cmConceptName="Body Surface Area" cvUnits="m2" csdUnits="UCUM" cmUnits="m^2">
				<templatecontentitem	row="8" relationship="INFERRED FROM"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="8278-4" csdConceptName="LN" cmConceptName="Body Surface Area Formula" valueSetCID="3663" valueSetBDE="B"/>
			</templatecontentitem>
			<templatecontentitem		row="9" relationship="CONTAINS"			valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="60621009" csdConceptName="SCT" cvAltConceptName="F-01860" csdAltConceptName="SRT" cmConceptName="Body Mass Index" cvUnits="kg/m2" csdUnits="UCUM" cmUnits="kg/m^2">
				<templatecontentitem	row="10" relationship="INFERRED FROM"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="121420" csdConceptName="DCM" cmConceptName="Equation" cvValue="122265" csdValue="DCM" cmValue="BMI = Wt/Ht^2"/>
			</templatecontentitem>
			<templatecontentitem		row="11" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="14749-6" csdConceptName="LN" cmConceptName="Glucose" cvUnits="mmol/l" csdUnits="UCUM" cmUnits="mmol/l"/>
			<templatecontentitem		row="12" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="113550" csdConceptName="DCM" cmConceptName="Fasting Duration" cvUnits="h" csdUnits="UCUM" cmUnits="hours"/>
			<templatecontentitem		row="13" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="113551" csdConceptName="DCM" cmConceptName="Hydration Volume" cvUnits="ml" csdUnits="UCUM" cmUnits="ml"/>
			<templatecontentitem		row="14" relationship="CONTAINS"		valueType="TEXT"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="113552" csdConceptName="DCM" cmConceptName="Recent Physical Activity"/>
			<templatecontentitem		row="15" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="1" requiredType="U" cvConceptName="2160-0" csdConceptName="LN" cmConceptName="Serum Creatinine" cvUnits="mg/dl" csdUnits="UCUM" cmUnits="mg/dl"/>
			<templatecontentitem		row="16" relationship="CONTAINS"		valueType="NUM"			vmmin="1" vmmax="n" requiredType="U" cvConceptName="80274001" csdConceptName="SCT" cvAltConceptName="F-70210" csdAltConceptName="SRT" cmConceptName="Glomerular Filtration Rate" cvUnits="ml/min{1.73_m2}" csdUnits="UCUM" cmUnits="ml/min/1.73m2">
				<templatecontentitem	row="17" relationship="HAS CONCEPT MOD"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="U" cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" valueSetCID="10047" valueSetBDE="D"/>
				<templatecontentitem	row="18" relationship="HAS CONCEPT MOD"	valueType="CODE"		vmmin="1" vmmax="1" requiredType="M" cvConceptName="121050" csdConceptName="DCM" cmConceptName="Equivalent meaning of concept name" valueSetCID="10046" valueSetBDE="D"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>


	<definetemplate tid="1500" name="MeasurementReport" root="T" extensible="T" ordersignificant="F">
        <templatecontentitem				row="1"  relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" conceptNameCID="7021" conceptNameBDE="D">
    		<includetemplate				row="2"  tid="1204" relationship="HAS CONCEPT MOD" vmmin="1" vmmax="1" requiredType="M" />
    		<includetemplate				row="3"  tid="1001" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="M" />
    		<templatecontentitem			row="4"  relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121058" csdConceptName="DCM" cmConceptName="Procedure reported" valueSetCID="100" valueSetBDE="B"/>
    		<includetemplate				row="5"  tid="1600" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="M" />
    		<templatecontentitem			row="6"  relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="126010" csdConceptName="DCM" cmConceptName="Imaging Measurements"
													condition="count(container[concept/@cv='126011' and concept/@csd='DCM'])=0
														   and count(container[concept/@cv='C0034375' and concept/@csd='UMLS'])=0"
													mbpo="T">
    			<includetemplate			row="7"  tid="1410" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="UC"
											condition="count(container[concept/@cv='125007' and concept/@csd='DCM']/scoord  [concept/@cv='111030' and concept/@csd='DCM' and @relationship='CONTAINS']) = 1
													or count(container[concept/@cv='125007' and concept/@csd='DCM']/image   [concept/@cv='121214' and concept/@csd='DCM']) &gt; 0"/> <!-- Actually U, but need to disambiguate from 1411: Image Region 1 and not &gt; 1 or Referenced Segmentation Frame present -->
    			<includetemplate			row="8"  tid="1411" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="UC"
											condition="count(container[concept/@cv='125007' and concept/@csd='DCM']/image   [concept/@cv='111030' and concept/@csd='DCM' and @relationship='CONTAINS']) &gt; 1
													or count(container[concept/@cv='125007' and concept/@csd='DCM']/image   [concept/@cv='121191' and concept/@csd='DCM']) &gt; 0
													or count(container[concept/@cv='125007' and concept/@csd='DCM']/scoord3d[concept/@cv='121233' and concept/@csd='DCM']) &gt; 0"/> <!-- Actually U, but need to disambiguate from 1410: Image Region &gt; 1 or Referenced Segment or Volume Surface present -->
    			<includetemplate			row="9"  tid="1501" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="UC"
											condition="count(container[concept/@cv='125007' and concept/@csd='DCM']/image   [concept/@cv='111030' and concept/@csd='DCM' and @relationship='CONTAINS']) = 0
											       and count(container[concept/@cv='125007' and concept/@csd='DCM']/image   [concept/@cv='121214' and concept/@csd='DCM']) = 0
												   and count(container[concept/@cv='125007' and concept/@csd='DCM']/image   [concept/@cv='121191' and concept/@csd='DCM']) = 0
												   and count(container[concept/@cv='125007' and concept/@csd='DCM']/scoord3d[concept/@cv='121233' and concept/@csd='DCM']) = 0
												   and count(container[concept/@cv='125007' and concept/@csd='DCM']) &gt; 0"
													/> <!-- Actually U, but need to disambiguate from 1410 and 1411 -->
    		</templatecontentitem>
    		<templatecontentitem			row="10" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="126011" csdConceptName="DCM" cmConceptName="Derived Imaging Measurements"
													condition="count(container[concept/@cv='126010' and concept/@csd='DCM'])=0
														   and count(container[concept/@cv='C0034375' and concept/@csd='UMLS'])=0"
													mbpo="T">
    			<includetemplate			row="11" tid="1420" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="U" />
    		</templatecontentitem>
    		<templatecontentitem			row="12" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="C0034375" csdConceptName="UMLS" cmConceptName="Qualitative Evaluations"
													condition="count(container[concept/@cv='126010' and concept/@csd='DCM'])=0
														   and count(container[concept/@cv='126011' and concept/@csd='DCM'])=0"
													mbpo="T">
    			<templatecontentitem		row="13" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U"/>
    			<templatecontentitem		row="14" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="n" requiredType="U"/>
    		</templatecontentitem>
        </templatecontentitem>
    </definetemplate>

	<definetemplate tid="1501" name="MeasurementGroup" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem				row="1"  relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="U" cvConceptName="125007" csdConceptName="DCM" cmConceptName="Measurement Group">
			<templatecontentitem			row="1b" relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C67447" csdConceptName="NCIt" cmConceptName="Activity Session" />
			<templatecontentitem			row="2"  relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="M" cvConceptName="112039" csdConceptName="DCM" cmConceptName="Tracking Identifier"/>
			<templatecontentitem			row="3"  relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="M" cvConceptName="112040" csdConceptName="DCM" cmConceptName="Tracking Unique Identifier"/>
			<templatecontentitem			row="3b" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121071" csdConceptName="DCM" cmConceptName="Finding"/>
    		<includetemplate				row="4"  tid="1502" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="U" />
			<templatecontentitem			row="5"  relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="370129005" csdConceptName="SCT" cvAltConceptName="G-C036" csdAltConceptName="SRT" cmConceptName="Measurement Method" />
			<templatecontentitem			row="6"  relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="363698007" csdConceptName="SCT" cvAltConceptName="G-C0E3" csdAltConceptName="SRT" cmConceptName="Finding Site">
				<templatecontentitem		row="7"  relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="244" valueSetBDE="D" />
				<templatecontentitem		row="8"  relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="106233006" csdConceptName="SCT" cvAltConceptName="G-A1F8" csdAltConceptName="SRT" cmConceptName="Topographical modifier" />
			</templatecontentitem>
    		<templatecontentitem			row="9"  relationship="CONTAINS" valueType="COMPOSITE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126100" csdConceptName="DCM" cmConceptName="Real World Value Map used for measurement" />	<!-- CP 1388  -->
			<includetemplate				row="10" tid="300" relationship="CONTAINS"  vmmin="1" vmmax="n" requiredType="U" />
			<!-- <templatecontentitem			row="11" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" matchRelationship="T"/> -->	<!-- do not activate, otherwise does not flag extra content items that are actually errors --> <!-- use relationship to disambiguate from other rows -->
			<!-- <templatecontentitem			row="12" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="n" requiredType="U" matchRelationship="T"/> -->	<!-- do not activate, otherwise does not flag extra content items that are actually errors --> <!-- use relationship to disambiguate from row 2 -->
		</templatecontentitem>
    </definetemplate>

	<definetemplate tid="1502" name="TimePointContext" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem				row="1"  relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126070" csdConceptName="DCM" cmConceptName="Subject Time Point Identifier"/>
		<templatecontentitem				row="2"  relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126071" csdConceptName="DCM" cmConceptName="Protocol Time Point Identifier"/>
		<templatecontentitem				row="3"  relationship="HAS OBS CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C2348792" csdConceptName="UMLS" cmConceptName="Time Point"/>
		<templatecontentitem				row="4"  relationship="HAS OBS CONTEXT" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="126072" csdConceptName="DCM" cmConceptName="Time Point Type"/>
		<templatecontentitem				row="5"  relationship="HAS OBS CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="126073" csdConceptName="DCM" cmConceptName="Time Point Order"/>
    </definetemplate>

	<definetemplate tid="1600" name="ImageLibrary" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem				row="1"  relationship="CONTAINS" valueType="container" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111028" csdConceptName="DCM" cmConceptName="Image Library">
			<templatecontentitem			row="2"  relationship="CONTAINS" valueType="container" vmmin="1" vmmax="n" requiredType="U" cvConceptName="126200" csdConceptName="DCM" cmConceptName="Image Library Group">
				<includetemplate			row="3"  tid="1602" relationship="HAS ACQ CONTEXT" vmmin="1" vmmax="1" requiredType="U"/>
				<includetemplate			row="4"  tid="1601" relationship="CONTAINS" requiredType="U"/>	<!-- 1-n multiplicity on include propagated to root node of included template -->
			</templatecontentitem>
		</templatecontentitem>
    </definetemplate>

	<definetemplate tid="1601" name="ImageLibraryEntry" root="F" extensible="T" ordersignificant="F">
        <templatecontentitem				row="1" relationship="" valueType="IMAGE" vmmin="1" vmmax="1-n" requiredType="M">	<!-- 1-n multiplicity propagated from inclusion (standard says 1 only) -->
			<includetemplate				row="2" tid="1602" relationship="HAS ACQ CONTEXT" vmmin="1" vmmax="n" requiredType="U"/>
		</templatecontentitem>
    </definetemplate>

	<definetemplate tid="1602" name="ImageLibraryEntryDescriptors" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem				row="1"  relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121139" csdConceptName="DCM" cmConceptName="Modality" valueSetCID="29" valueSetBDE="D"/>
		<templatecontentitem				row="2"  relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="123014" csdConceptName="DCM" cmConceptName="Target Region" valueSetCID="4031" valueSetBDE="D"/>
		<templatecontentitem				row="3"  relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111027" csdConceptName="DCM" cmConceptName="Image Laterality" valueSetCID="244" valueSetBDE="D"/>
		<templatecontentitem				row="4"  relationship="HAS ACQ CONTEXT" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111060" csdConceptName="DCM" cmConceptName="Study Date"/>
		<templatecontentitem				row="5"  relationship="HAS ACQ CONTEXT" valueType="TIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111061" csdConceptName="DCM" cmConceptName="Study Time"/>
		<templatecontentitem				row="6"  relationship="HAS ACQ CONTEXT" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111018" csdConceptName="DCM" cmConceptName="Content Date"/>
		<templatecontentitem				row="7"  relationship="HAS ACQ CONTEXT" valueType="TIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111019" csdConceptName="DCM" cmConceptName="Content Time"/>
		<templatecontentitem				row="8"  relationship="HAS ACQ CONTEXT" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126201" csdConceptName="DCM" cmConceptName="Acquisition Date"/>
		<templatecontentitem				row="9"  relationship="HAS ACQ CONTEXT" valueType="TIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="126202" csdConceptName="DCM" cmConceptName="Acquisition Time"/>
		<templatecontentitem				row="10" relationship="HAS ACQ CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="U" cvConceptName="112227" csdConceptName="DCM" cmConceptName="Frame of Reference UID"/>
		<templatecontentitem				row="11" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110910" csdConceptName="DCM" cmConceptName="Pixel Data Rows" cvUnits="{pixels}" csdUnits="UCUM" cmUnits="pixels"/>
		<templatecontentitem				row="12" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110911" csdConceptName="DCM" cmConceptName="Pixel Data Columns" cvUnits="{pixels}" csdUnits="UCUM" cmUnits="pixels"/>
		<includetemplate				    row="13" tid="1603" relationship="HAS ACQ CONTEXT" vmmin="1" vmmax="1" requiredType="U"/>
		<includetemplate				    row="14" tid="1604" relationship="HAS ACQ CONTEXT" vmmin="1" vmmax="1" requiredType="U"/>
		<includetemplate				    row="15" tid="1605" relationship="HAS ACQ CONTEXT" vmmin="1" vmmax="1" requiredType="U"/>
		<includetemplate				    row="16" tid="1606" relationship="HAS ACQ CONTEXT" vmmin="1" vmmax="1" requiredType="U"/>
		<includetemplate				    row="17" tid="1607" relationship="HAS ACQ CONTEXT" vmmin="1" vmmax="1" requiredType="U"/>
    </definetemplate>

	<definetemplate tid="1603" name="ImageLibraryEntryDescriptorsforProjectionRadiography" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem				row="1" relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111031" csdConceptName="DCM" cmConceptName="Image View">
			<templatecontentitem			row="2" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111032" csdConceptName="DCM" cmConceptName="Image View Modifier"/>
		</templatecontentitem>
		<templatecontentitem				row="3" relationship="HAS ACQ CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111044" csdConceptName="DCM" cmConceptName="Patient Orientation Row"/>
		<templatecontentitem				row="4" relationship="HAS ACQ CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111043" csdConceptName="DCM" cmConceptName="Patient Orientation Column"/>
		<templatecontentitem				row="5" relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="111026" csdConceptName="DCM" cmConceptName="Horizontal Pixel Spacing"/>
		<templatecontentitem				row="6" relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="111066" csdConceptName="DCM" cmConceptName="Vertical Pixel Spacing" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
		<templatecontentitem				row="7" relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="112011" csdConceptName="DCM" cmConceptName="Positioner Primary Angle"/>
		<templatecontentitem				row="8" relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="112012" csdConceptName="DCM" cmConceptName="Positioner Secondary Angle"/>
	</definetemplate>
	
	<definetemplate tid="1604" name="ImageLibraryEntryDescriptorsforCrossSectionalModalities" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem				row="1"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111026" csdConceptName="DCM" cmConceptName="Horizontal Pixel Spacing"/>
		<templatecontentitem				row="2"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111066" csdConceptName="DCM" cmConceptName="Vertical Pixel Spacing" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
		<templatecontentitem				row="3"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="112226" csdConceptName="DCM" cmConceptName="Spacing between slices" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
		<templatecontentitem				row="4"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="112225" csdConceptName="DCM" cmConceptName="Slice Thickness" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
		<templatecontentitem				row="5"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110901" csdConceptName="DCM" cmConceptName="Image Position (Patient) X" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
		<templatecontentitem				row="6"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110902" csdConceptName="DCM" cmConceptName="Image Position (Patient) Y" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
		<templatecontentitem 				row="7"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110903" csdConceptName="DCM" cmConceptName="Image Position (Patient) Z" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
		<templatecontentitem 				row="8"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110904" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row X" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}"/>
		<templatecontentitem 				row="9"  relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110905" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row Y" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}"/>
		<templatecontentitem 				row="10" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110906" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Row Z" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}"/>
		<templatecontentitem 				row="11" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110907" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column X" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}"/>
		<templatecontentitem 				row="12" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110908" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column Y" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}"/>
		<templatecontentitem 				row="13" relationship="HAS ACQ CONTEXT" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="110909" csdConceptName="DCM" cmConceptName="Image Orientation (Patient) Column Z" cvUnits="{-1:1}" csdUnits="UCUM" cmUnits="{-1:1}"/>
	</definetemplate>
	
	<definetemplate tid="1605" name="ImageLibraryEntryDescriptorsforCT" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem 				row="1"  relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="113820" csdConceptName="DCM" cmConceptName="CT Acquisition Type" valueSetCID="10013" valueSetBDE="D"/>
		<templatecontentitem 				row="2"  relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="113961" csdConceptName="DCM" cmConceptName="Reconstruction Algorithm" valueSetCID="10033" valueSetBDE="D"/>
	</definetemplate>

	<definetemplate tid="1606" name="ImageLibraryEntryDescriptorsforMR" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem 				row="1"  relationship="HAS ACQ CONTEXT" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="128230" csdConceptName="DCM" cmConceptName="Pulse Sequence Name"/>
	</definetemplate>

	<definetemplate tid="1607" name="ImageLibraryEntryDescriptorsforPET" root="F" extensible="T" ordersignificant="F">
		<templatecontentitem 				row="1"  relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="89457008" csdConceptName="SCT" cvAltConceptName="C-10072" csdAltConceptName="SRT" cmConceptName="Radionuclide" valueSetCID="4020" valueSetBDE="D"/>
		<templatecontentitem 				row="2"  relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="417881006" csdConceptName="SCT" cvAltConceptName="F-61FDB" csdAltConceptName="SRT" cmConceptName="Radiopharmaceutical agent" valueSetCID="4021" valueSetBDE="D"/>
		<templatecontentitem 				row="3"  relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="304283002" csdConceptName="SCT" cvAltConceptName="R-42806" csdAltConceptName="SRT" cmConceptName="Half-life of radiopharmaceutical" cvUnits="s" csdUnits="UCUM" cmUnits="s"/>
		<templatecontentitem 				row="4"  relationship="HAS ACQ CONTEXT" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="123003" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Start Date Time"/>
		<templatecontentitem 				row="4"  relationship="HAS ACQ CONTEXT" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="123004" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Stop Time"/>
		<templatecontentitem 				row="5"  relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="123005" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Volume" cvUnits="cm3" csdUnits="UCUM" cmUnits="cm3"/>
		<templatecontentitem 				row="6"  relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="123006" csdConceptName="DCM" cmConceptName="Radionuclide Total Dose" cvUnits="Bq" csdUnits="UCUM" cmUnits="Bq"/>
		<templatecontentitem 				row="7"  relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="123007" csdConceptName="DCM" cmConceptName="Radiopharmaceutical Specific Activity" cvUnits="Bq/mol" csdUnits="UCUM" cmUnits="Bq/mol"/>
		<templatecontentitem 				row="8"  relationship="HAS ACQ CONTEXT" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="410675002" csdConceptName="SCT" cvAltConceptName="G-C340" csdAltConceptName="SRT" cmConceptName="Route of Administration" valueSetCID="11" valueSetBDE="B"/>
		<templatecontentitem 				row="9"  relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="123009" csdConceptName="DCM" cmConceptName="Radionuclide Syringe Counts" cvUnits="{counts}/s" csdUnits="" cmUnits=""/>
		<templatecontentitem 				row="10" relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="123010" csdConceptName="DCM" cmConceptName="Radionuclide Residual Syringe Counts" cvUnits="{counts}/s" csdUnits="" cmUnits=""/>
		<templatecontentitem 				row="10" relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="126203" csdConceptName="DCM" cmConceptName="PET Radionuclide Incubation Time" cvUnits="min" csdUnits="UCUM" cmUnits="min"/>
		<templatecontentitem 				row="12" relationship="HAS ACQ CONTEXT" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="14749-6" csdConceptName="LN" cmConceptName="Glucose" cvUnits="mmol/l" csdUnits="UCUM" cmUnits="mmol/l"/>
		<templatecontentitem 				row="13" relationship="HAS ACQ CONTEXT" valueType="DATE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="109081" csdConceptName="DCM" cmConceptName="Glucose Measurement Date"/>
		<templatecontentitem 				row="14" relationship="HAS ACQ CONTEXT" valueType="TIME" vmmin="1" vmmax="1" requiredType="M" cvConceptName="109082" csdConceptName="DCM" cmConceptName="Glucose Measurement Time"/>
	</definetemplate>
	
	<definetemplate tid="4200" name="BreastImagingReport" root="T" extensible="F" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111400" csdConceptName="DCM" cmConceptName="Breast Imaging Report">
			<includetemplate row="2" tid="1204" relationship="HAS CONCEPT MOD" vmmin="1" vmmax="1" requiredType="M"/>
			<includetemplate row="2a" tid="1001" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="U" />
			<includetemplate row="2b" tid="4209" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
			<includetemplate row="3" tid="4202" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="M"/>
			<includetemplate row="4" tid="4208" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4201" name="BreastImagingProcedureReported" root="F" extensible="F" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121058" csdConceptName="DCM" cmConceptName="Procedure reported" valueSetCID="6050" valueSetBDE="D">
			<templatecontentitem row="2" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111464" csdConceptName="DCM" cmConceptName="Procedure Modifier" valueSetCID="6058" valueSetBDE="D"/>
			<templatecontentitem row="3" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
			<templatecontentitem row="4" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111401" csdConceptName="DCM" cmConceptName="Reason for procedure" valueSetCID="6051" valueSetBDE="D">
				<templatecontentitem row="5" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="118578006" csdConceptName="SCT" cvAltConceptName="G-D709" csdAltConceptName="SRT" cmConceptName="Relative time" valueSetCID="12102" valueSetBDE="D"/>
				<templatecontentitem row="6" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="UC" cvConceptName="111402" csdConceptName="DCM" cmConceptName="Clinical Finding" valueSetCID="6055" valueSetBDE="D"
						condition="count(../code[concept/@cv='111402' and concept/@csd='DCM'])&gt;0" mbpo="F"> <!--IFF row 4 value is "Clinical Finding"-->
					<!--DCID 6055, Breast Clinical Finding or Indicated Problem-->
					<templatecontentitem row="7" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
				</templatecontentitem>
			</templatecontentitem>
			<templatecontentitem row="8" relationship="HAS PROPERTIES" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111060" csdConceptName="DCM" cmConceptName="Study Date"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4202" name="BreastImagingReportNarrative" root="F" extensible="F" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111412" csdConceptName="DCM" cmConceptName="Narrative Summary">
			<templatecontentitem row="2" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" conceptNameCID="6052" conceptNameBDE="B">
				<includetemplate row="3" tid="1002" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="n" requiredType="U"/>
				<templatecontentitem row="4" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="M" conceptNameCID="6053" conceptNameBDE="B">
					<includetemplate row="5" tid="350" relationship="INFERRED FROM" vmmin="1" vmmax="1" requiredType="U"/>
				</templatecontentitem>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4203" name="BreastImagingAssessment" root="F" extensible="F" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111005" csdConceptName="DCM" cmConceptName="Assessment Category" valueSetCID="6026" valueSetBDE="D"/>
		<templatecontentitem row="2" relationship="" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111053" csdConceptName="DCM" cmConceptName="Recommended Follow-up" valueSetCID="6028" valueSetBDE="B">
			<templatecontentitem row="3" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
			<templatecontentitem row="4" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111055" csdConceptName="DCM" cmConceptName="Recommended Follow-up Interval" unitsCID="6046" unitsBDE="D">
				<!--UNITS = DCID 6046, Values = Integer ≥ 0, where 0 = immediate follow-up-->
			</templatecontentitem>
			<templatecontentitem row="5" relationship="HAS PROPERTIES" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111054" csdConceptName="DCM" cmConceptName="Recommended Follow-up Date"/>
			<includetemplate row="6" tid="4207" relationship="HAS PROPERTIES" vmmin="1" vmmax="n" requiredType="U"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4204" name="BreastImagingReportInterventionSection" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111463" csdConceptName="DCM" cmConceptName="Supplementary Data for Intervention">
			<includetemplate row="2" tid="4201" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="M"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="57134006" csdConceptName="SCT" cvAltConceptName="A-00110" csdAltConceptName="SRT" cmConceptName="Instrument">
				<templatecontentitem row="4" relationship="HAS PROPERTIES" valueType="TEXT" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="111465" csdConceptName="DCM" cmConceptName="Needle Gauge"
					condition="count(code[concept/@cv='111465' and concept/@csd='DCM'])=0" mbpo="F">
					<!--XOR row 5-->
				</templatecontentitem>
				<templatecontentitem row="5" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="UC" cvConceptName="111465" csdConceptName="DCM" cmConceptName="Needle Gauge"
					condition="count(text[concept/@cv='111465' and concept/@csd='DCM'])=0" mbpo="F">
					<!--XOR row 4-->
				</templatecontentitem>
				<templatecontentitem row="6" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111467" csdConceptName="DCM" cmConceptName="Needle Length" cvUnits="cm" csdUnits="UCUM" cmUnits="centimeter"/>
			</templatecontentitem>
			<templatecontentitem row="7" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111436" csdConceptName="DCM" cmConceptName="Number of passes" cvUnits="{passes}" csdUnits="UCUM" cmUnits="passes"/>
			<templatecontentitem row="8" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111437" csdConceptName="DCM" cmConceptName="Number of specimens" cvUnits="{specimens}" csdUnits="UCUM" cmUnits="specimens"/>
			<templatecontentitem row="9" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111431" csdConceptName="DCM" cmConceptName="Instrument Approach" valueSetCID="6065" valueSetBDE="D"/>
			<templatecontentitem row="10" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111438" csdConceptName="DCM" cmConceptName="Needle in target" valueSetCID="230" valueSetBDE="D"/>
			<templatecontentitem row="11" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111439" csdConceptName="DCM" cmConceptName="Number of needles around target" cvUnits="{needles}" csdUnits="UCUM" cmUnits="needles"/>
			<templatecontentitem row="12" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="182833002" csdConceptName="SCT" cvAltConceptName="F-04460" csdAltConceptName="SRT" cmConceptName="Medication given"/>
			<templatecontentitem row="13" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111440" csdConceptName="DCM" cmConceptName="Incision made" valueSetCID="230" valueSetBDE="D"/>
			<templatecontentitem row="14" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111123" csdConceptName="DCM" cmConceptName="Marker placement" valueSetCID="230" valueSetBDE="D"/>
			<templatecontentitem row="15" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111442" csdConceptName="DCM" cmConceptName="Confirmation of target" valueSetCID="6066" valueSetBDE="D"/>
			<templatecontentitem row="16" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="116224001" csdConceptName="SCT" cvAltConceptName="DD-60002" csdAltConceptName="SRT" cmConceptName="Complication of procedure" valueSetCID="6062" valueSetBDE="D">
				<templatecontentitem row="17" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111466" csdConceptName="DCM" cmConceptName="Severity of Complication" valueSetCID="251" valueSetBDE="D"/>
			</templatecontentitem>
			<templatecontentitem row="18" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="U" cvConceptName="121027" csdConceptName="DCM" cmConceptName="Specimen">
				<includetemplate row="19" tid="1009" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="1" requiredType="U"/>
				<templatecontentitem row="20" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="250431005" csdConceptName="SCT" cvAltConceptName="F-00E6D" csdAltConceptName="SRT" cmConceptName="Color of fluid" valueSetCID="6067" valueSetBDE="D"/>
				<templatecontentitem row="21" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111456" csdConceptName="DCM" cmConceptName="Action on fluid">
					<!--DT (111457, DCM, "Sent for analysis"), DT (111458, DCM, "Discarded")-->
				</templatecontentitem>
				<templatecontentitem row="22" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111455" csdConceptName="DCM" cmConceptName="Occult blood test result" valueSetCID="250" valueSetBDE="D"/>
				<includetemplate row="23" tid="4207" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="U"/>
			</templatecontentitem>
			<includetemplate row="24" tid="350" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4205" name="BreastCompositionSection" root="F" extensible="F" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="129715009" csdConceptName="SCT" cvAltConceptName="F-01710" csdAltConceptName="SRT" cmConceptName="Breast composition">
			<includetemplate row="2" tid="4201" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="U"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="MC" cvConceptName="129715009" csdConceptName="SCT" cvAltConceptName="F-01710" csdAltConceptName="SRT" cmConceptName="Breast composition" valueSetCID="6000" valueSetBDE="D"
					condition="count(code[concept/@cv='111046' and concept/@csd='DCM'])=0" mbpo="T">
				<!--At least one of row 3, 5 shall be present-->
				<templatecontentitem row="4" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
			</templatecontentitem>
			<templatecontentitem row="5" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="n" requiredType="MC" cvConceptName="111046" csdConceptName="DCM" cmConceptName="Percent Fibroglandular Tissue" cvUnits="%" csdUnits="UCUM" cmUnits="Percent"
					condition="count(code[((concept/@cv='F-01710' and concept/@csd='SRT') or (concept/@cv='129715009' and concept/@csd='SCT'))])=0" mbpo="T">
				<!--At least one of row 3, 5 shall be present-->
				<templatecontentitem row="6" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
			</templatecontentitem>
			<templatecontentitem row="7" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="2" requiredType="U" cvConceptName="111350" csdConceptName="DCM" cmConceptName="Breast background echo texture" valueSetCID="6151" valueSetBDE="D">
				<templatecontentitem row="8" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4206" name="BreastImagingReportFindingSection" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121070" csdConceptName="DCM" cmConceptName="Findings">
			<includetemplate row="2" tid="1002" relationship="HAS OBS CONTEXT" vmmin="1" vmmax="n" requiredType="U"/>
			<includetemplate row="3" tid="4201" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="M"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="M" cvConceptName="121071" csdConceptName="DCM" cmConceptName="Finding" valueSetCID="6054" valueSetBDE="D">
				<templatecontentitem row="5" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="n" requiredType="UC" cvConceptName="111405" csdConceptName="DCM" cmConceptName="Implant type" valueSetCID="6059" valueSetBDE="D"
					condition="count(../code[concept/@cv='121071' and concept/@csd='DCM' and ((value/@cv='A-04010' and value/@csd='SRT') or (value/@cv='40388003' and value/@csd='SCT'))])&gt;0" mbpo="F">
					<!--May be present if value of row 4 is (A-04010, SRT, "Implant")-->
				</templatecontentitem>
				<templatecontentitem row="5b" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="272741003" csdConceptName="SCT" cvAltConceptName="G-C171" csdAltConceptName="SRT" cmConceptName="Laterality" valueSetCID="6022" valueSetBDE="D"/>
				<includetemplate row="6" tid="4203" relationship="HAS PROPERTIES" vmmin="1" vmmax="1" requiredType="U"/>
				<templatecontentitem row="7" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111014" csdConceptName="DCM" cmConceptName="Clockface or region" valueSetCID="6018" valueSetBDE="D"/>
				<templatecontentitem row="8" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111048" csdConceptName="DCM" cmConceptName="Quadrant location" valueSetCID="6020" valueSetBDE="D"/>
				<includetemplate row="9" tid="1400HP" relationship="HAS PROPERTIES" vmmin="1" vmmax="n" requiredType="U"/>
				<includetemplate row="10" tid="1401HP" relationship="HAS PROPERTIES" vmmin="1" vmmax="n" requiredType="U"/>
				<includetemplate row="11" tid="1402HP" relationship="HAS PROPERTIES" vmmin="1" vmmax="n" requiredType="U"/>
				<templatecontentitem row="12" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111020" csdConceptName="DCM" cmConceptName="Depth" valueSetCID="6024" valueSetBDE="D"/>
				<templatecontentitem row="13" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111035" csdConceptName="DCM" cmConceptName="Lesion Density" valueSetCID="6008" valueSetBDE="D"/>
				<templatecontentitem row="14" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="107644003" csdConceptName="SCT" cvAltConceptName="M-020F9" csdAltConceptName="SRT" cmConceptName="Shape" valueSetCID="6004" valueSetBDE="D"/>
				<templatecontentitem row="15" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111037" csdConceptName="DCM" cmConceptName="Margins" valueSetCID="6006" valueSetBDE="D"/>
				<templatecontentitem row="16" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111009" csdConceptName="DCM" cmConceptName="Calcification Type" valueSetCID="6010" valueSetBDE="D"/>
				<templatecontentitem row="17" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111008" csdConceptName="DCM" cmConceptName="Calcification Distribution" valueSetCID="6012" valueSetBDE="D"/>
				<templatecontentitem row="18" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111038" csdConceptName="DCM" cmConceptName="Number of calcifications" cvUnits="{calcifications}" csdUnits="UCUM" cmUnits="calcifications">
					<!--UNITS = EV ({calcifications}, UCUM, "calcifications"), Value = Integer 1 - n-->
				</templatecontentitem>
				<templatecontentitem row="19" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111407" csdConceptName="DCM" cmConceptName="Implant finding" valueSetCID="6072" valueSetBDE="D"/>
				<templatecontentitem row="20" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="246090004" csdConceptName="SCT" cvAltConceptName="G-C189" csdAltConceptName="SRT" cmConceptName="Associated Finding" valueSetCID="6056" valueSetBDE="D"/>
				<templatecontentitem row="21" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111406" csdConceptName="DCM" cmConceptName="Number of similar findings" cvUnits="{findings}" csdUnits="UCUM" cmUnits="findings">
					<!--UNITS = EV ({findings}, UCUM, "findings"), Value = Integer 2 - n-->
				</templatecontentitem>
				<templatecontentitem row="22" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="129720009" csdConceptName="SCT" cvAltConceptName="F-01720" csdAltConceptName="SRT" cmConceptName="Change since last mammogram" valueSetCID="6002" valueSetBDE="D"/>
				<templatecontentitem row="23" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111354" csdConceptName="DCM" cmConceptName="Orientation" valueSetCID="6152" valueSetBDE="D"/>
				<templatecontentitem row="24" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111357" csdConceptName="DCM" cmConceptName="Lesion boundary" valueSetCID="6153" valueSetBDE="D"/>
				<templatecontentitem row="25" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111360" csdConceptName="DCM" cmConceptName="Echo pattern" valueSetCID="6154" valueSetBDE="D"/>
				<templatecontentitem row="26" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111366" csdConceptName="DCM" cmConceptName="Posterior acoustic features" valueSetCID="6155" valueSetBDE="D"/>
				<templatecontentitem row="27" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111371" csdConceptName="DCM" cmConceptName="Identifiable effect on surrounding tissues" valueSetCID="6015" valueSetBDE="D"/>
				<templatecontentitem row="28" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111372" csdConceptName="DCM" cmConceptName="Vascularity" valueSetCID="6157" valueSetBDE="D"/>
				<templatecontentitem row="29" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111380" csdConceptName="DCM" cmConceptName="Correlation to Other Findings" valueSetCID="6158" valueSetBDE="D"/>
				<includetemplate row="30" tid="350" relationship="INFERRED FROM" vmmin="1" vmmax="1" requiredType="U"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4207" name="BreastImagingPathologyResults" root="F" extensible="T" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111468" csdConceptName="DCM" cmConceptName="Pathology Results">
			<includetemplate row="2" tid="4201" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="DATETIME" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111469" csdConceptName="DCM" cmConceptName="Sampling DateTime"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="122177" csdConceptName="DCM" cmConceptName="Procedure Result" valueSetCID="6063" valueSetBDE="D"/>
			<templatecontentitem row="5" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="111042" csdConceptName="DCM" cmConceptName="Pathology" valueSetCID="6030" valueSetBDE="B">
				<templatecontentitem row="6" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111388" csdConceptName="DCM" cmConceptName="Malignancy Type" valueSetCID="6159" valueSetBDE="D"/>
				<templatecontentitem row="7" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="n" requiredType="U" conceptNameCID="6165" conceptNameBDE="D" cvUnits="mm" csdUnits="UCUM" cmUnits="millimeter"/>
				<templatecontentitem row="8" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="373372005" csdConceptName="SCT" cvAltConceptName="F-02900" csdAltConceptName="SRT" cmConceptName="Histological grade finding">
					<!--BCID 6069, BCID 6070-->
					<templatecontentitem row="9" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="371469007" csdConceptName="SCT" cvAltConceptName="R-00258" csdAltConceptName="SRT" cmConceptName="Histologic grade" valueSetCID="6071" valueSetBDE="B"/>
				</templatecontentitem>
				<templatecontentitem row="10" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="372249001" csdConceptName="SCT" cvAltConceptName="R-00274" csdAltConceptName="SRT" cmConceptName="Tumor margin status">
					<!--DT (111470, DCM, "Uninvolved"),, DT (111471, DCM, "Involved")-->
				</templatecontentitem>
				<templatecontentitem row="11" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111472" csdConceptName="DCM" cmConceptName="Nipple involved" valueSetCID="230" valueSetBDE="D"/>
				<templatecontentitem row="12" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111473" csdConceptName="DCM" cmConceptName="Number of nodes removed" cvUnits="{nodes}" csdUnits="UCUM" cmUnits="nodes"/>
				<templatecontentitem row="13" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="MC" cvConceptName="111474" csdConceptName="DCM" cmConceptName="Number of nodes positive" cvUnits="{nodes}" csdUnits="UCUM" cmUnits="nodes"
					condition="number(num[concept/@cv='111473' and concept/@csd='DCM']/value)&gt;0" mbpo="F">
					<!--Shall be present IFF value of row 12 is > 0-->
				</templatecontentitem>
				<templatecontentitem row="14" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="385385001" csdConceptName="SCT" cvAltConceptName="R-00465" csdAltConceptName="SRT" cmConceptName="pT category finding" valueSetCID="6160" valueSetBDE="D"/>
				<templatecontentitem row="15" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="385382003" csdConceptName="SCT" cvAltConceptName="R-00463" csdAltConceptName="SRT" cmConceptName="Node stage finding" valueSetCID="6161" valueSetBDE="D"/>
				<templatecontentitem row="16" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="385380006" csdConceptName="SCT" cvAltConceptName="R-00461" csdAltConceptName="SRT" cmConceptName="Metastasis stage finding" valueSetCID="6162" valueSetBDE="D"/>
				<templatecontentitem row="17" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="385356007" csdConceptName="SCT" cvAltConceptName="R-00443" csdAltConceptName="SRT" cmConceptName="Tumor stage finding" valueSetCID="6068" valueSetBDE="B"/>
				<templatecontentitem row="18" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111475"  csdConceptName="DCM" cmConceptName="Estrogen receptor" valueSetCID="250" valueSetBDE="D"/>
				<templatecontentitem row="19" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111476"  csdConceptName="DCM" cmConceptName="Progesterone receptor" valueSetCID="250" valueSetBDE="D"/>
				<templatecontentitem row="20" relationship="HAS PROPERTIES" valueType="NUM"  vmmin="1" vmmax="1" requiredType="U" cvConceptName="111477"  csdConceptName="DCM" cmConceptName="S Phase" cvUnits="%" csdUnits="UCUM" cmUnits="percent"/>
				<templatecontentitem row="21" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="48676-1" csdConceptName="LN"  cmConceptName="HER2" valueSetCID="250" valueSetBDE="D"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4208" name="BreastImagingReportSupplementaryData" root="F" extensible="F" ordersignificant="T">
		<templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111414" csdConceptName="DCM" cmConceptName="Supplementary Data">
			<includetemplate row="2" tid="4201" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="M"/>
			<templatecontentitem row="3" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111403" csdConceptName="DCM" cmConceptName="Baseline screening mammogram" valueSetCID="230" valueSetBDE="D"/>
			<templatecontentitem row="4" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111404" csdConceptName="DCM" cmConceptName="First mammogram ever" valueSetCID="230" valueSetBDE="D"/>
			<includetemplate row="5" tid="4205" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
			<includetemplate row="6" tid="4206" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="U"/>
			<includetemplate row="7" tid="4204" relationship="CONTAINS" vmmin="1" vmmax="n" requiredType="U"/>
			<templatecontentitem row="8" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111413" csdConceptName="DCM" cmConceptName="Overall Assessment">
				<includetemplate row="9" tid="4203" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="M"/>
			</templatecontentitem>
		</templatecontentitem>
	</definetemplate>
	
	<definetemplate tid="4209" name="BreastPatientCharacteristics" root="F" extensible="F" ordersignificant="T">
      <templatecontentitem row="1" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121118" csdConceptName="DCM" cmConceptName="Patient Characteristics">
        <templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="11323-3" csdConceptName="LN" cmConceptName="Health status" valueSetCID="3772" valueSetBDE="D"/>
        <templatecontentitem row="3" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C35461" csdConceptName="NCIt" cmConceptName="Clinical course of disease" valueSetCID="6098" valueSetBDE="D"/>
      </templatecontentitem>
	</definetemplate>

  <definetemplate tid="QIICR_2000" name="MeasurementReport" root="T" extensible="T" ordersignificant="F">
    <templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="422735006" csdConceptName="SCT" cvAltConceptName="R-42BAB" csdAltConceptName="SRT" cmConceptName="Summary Clinical Document">
      <includetemplate row="2" tid="1204" relationship="HAS CONCEPT MOD" vmmin="1" vmmax="1" requiredType="M"/>
      <templatecontentitem row="3" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121118" csdConceptName="DCM" cmConceptName="Patient Characteristics">
        <templatecontentitem row="4" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121031" csdConceptName="DCM" cmConceptName="Subject Birth Date"/>
        <templatecontentitem row="5" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121032" csdConceptName="DCM" cmConceptName="Subject Sex" valueSetCID="7455" valueSetBDE="D"/>
        <templatecontentitem row="6" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="8302-2" csdConceptName="LN" cmConceptName="Patient Height" cvUnits="cm" csdUnits="UCUM" cmUnits="cm"/>
        <templatecontentitem row="7" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="29463-7" csdConceptName="LN" cmConceptName="Patient Weight" cvUnits="kg" csdUnits="UCUM" cmUnits="kg"/>
        <templatecontentitem row="8" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="415229000" csdConceptName="SCT" cvAltConceptName="S-0004D" csdAltConceptName="SRT" cmConceptName="Racial group" valueSetCID="QIICR_2001" valueSetBDE="D"/>
        <templatecontentitem row="9" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="414408004" csdConceptName="SCT" cvAltConceptName="S-00045" csdAltConceptName="SRT" cmConceptName="Hispanic" valueSetCID="230" valueSetBDE="D"/>
      </templatecontentitem>
      <templatecontentitem row="10" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="11450-4" csdConceptName="LN" cmConceptName="Problem List">
        <includetemplate row="11" tid="QIICR_2008" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
      </templatecontentitem>
      <templatecontentitem row="12" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="29762-2" csdConceptName="LN" cmConceptName="Social History">
        <templatecontentitem row="13" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="365981007" csdConceptName="SCT" cvAltConceptName="F-93109" csdAltConceptName="SRT" cmConceptName="Tobacco Smoking Behavior" valueSetCID="3724" valueSetBDE="D"/>
        <templatecontentitem row="14" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="160573003" csdConceptName="SCT" cvAltConceptName="F-02573" csdAltConceptName="SRT" cmConceptName="Alcohol consumption" valueSetCID="QIICR_2003" valueSetBDE="D"/>
        <templatecontentitem row="15" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="363907005" csdConceptName="SCT" cvAltConceptName="F-0434C" csdAltConceptName="SRT" cmConceptName="Details of tobacco chewing" valueSetCID="QIICR_2004" valueSetBDE="D"/>
      </templatecontentitem>
      <templatecontentitem row="16" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="254292007" csdConceptName="SCT" cvAltConceptName="G-E395" csdAltConceptName="SRT" cmConceptName="Tumor Staging">
        <templatecontentitem row="17" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="399687005" csdConceptName="SCT" cvAltConceptName="R-100D9" csdAltConceptName="SRT" cmConceptName="Primary tumor site" valueSetCID="7601" valueSetBDE="D"/>
        <templatecontentitem row="18" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="385356007" csdConceptName="SCT" cvAltConceptName="R-00443" csdAltConceptName="SRT" cmConceptName="Tumor stage finding" valueSetCID="QIICR_2005" valueSetBDE="D"/>
        <templatecontentitem row="19" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="U" cvConceptName="399566009" csdConceptName="SCT" cvAltConceptName="F-005C4" csdAltConceptName="SRT" cmConceptName="TNM Category">
          <templatecontentitem row="20" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="78873005" csdConceptName="SCT" cvAltConceptName="G-F150" csdAltConceptName="SRT" cmConceptName="T Stage" valueSetCID="QIICR_2006" valueSetBDE="D"/>
          <templatecontentitem row="21" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="277206009" csdConceptName="SCT" cvAltConceptName="R-40030" csdAltConceptName="SRT" cmConceptName="N Stage" valueSetCID="QIICR_2007" valueSetBDE="D"/>
          <templatecontentitem row="22" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="277208005" csdConceptName="SCT" cvAltConceptName="R-40031" csdAltConceptName="SRT" cmConceptName="M Stage" valueSetCID="QIICR_2008" valueSetBDE="D"/>
        </templatecontentitem>
      </templatecontentitem>
      <templatecontentitem row="23" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="417662000" csdConceptName="SCT" cvAltConceptName="G-03E7" csdAltConceptName="SRT" cmConceptName="Past medical history">
        <templatecontentitem row="24" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="429479009" csdConceptName="SCT" cvAltConceptName="P0-099EB" csdAltConceptName="SRT" cmConceptName="History of radiation therapy" valueSetCID="QIICR_2002" valueSetBDE="D"/>
        <templatecontentitem row="25" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="266987004" csdConceptName="SCT" cvAltConceptName="G-0133" csdAltConceptName="SRT" cmConceptName="History of malignant neoplasm" valueSetCID="QIICR_2009" valueSetBDE="D"/>
      </templatecontentitem>
      <templatecontentitem row="26" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="103693007" csdConceptName="SCT" cvAltConceptName="P0-00002" csdAltConceptName="SRT" cmConceptName="Diagnostic Procedure">
        <includetemplate row="27" tid="QIICR_2002" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
      </templatecontentitem>
      <templatecontentitem row="28" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="277132007" csdConceptName="SCT" cvAltConceptName="P0-0000E" csdAltConceptName="SRT" cmConceptName="Therapeutic Procedure">
        <includetemplate row="29" tid="QIICR_2003" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
        <includetemplate row="30" tid="QIICR_2004" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
        <includetemplate row="31" tid="QIICR_2005" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
      </templatecontentitem>
      <templatecontentitem row="32" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="300015" csdConceptName="99PMP" cmConceptName="Pathology of original tumor">
        <includetemplate row="33" tid="QIICR_2006" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
        <templatecontentitem row="34" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="53103008" csdConceptName="SCT" cvAltConceptName="P1-65320" csdAltConceptName="SRT" cmConceptName="Excision of cervical lymph nodes group">
          <includetemplate row="35" tid="QIICR_2007" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="U"/>
          <templatecontentitem row="36" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="396642005" csdConceptName="SCT" cvAltConceptName="F-004ED" csdAltConceptName="SRT" cmConceptName="Status of extra-capsular extension of nodal tumor" valueSetCID="QIICR_2010" valueSetBDE="D"/>
          <templatecontentitem row="37" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
        </templatecontentitem>
      </templatecontentitem>
      <templatecontentitem row="38" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="C0679250" csdConceptName="UMLS" cmConceptName="Disease Outcome">
        <templatecontentitem row="39" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C3694716" csdConceptName="UMLS" cmConceptName="Follow-up visit date"/>
        <templatecontentitem row="40" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="308273005" csdConceptName="SCT" cvAltConceptName="F-00F54" csdAltConceptName="SRT" cmConceptName="Followup status" valueSetCID="QIICR_2011" valueSetBDE="D"/>
        <templatecontentitem row="41" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="399753006" csdConceptName="SCT" cvAltConceptName="F-04922" csdAltConceptName="SRT" cmConceptName="Date of death"/>
        <templatecontentitem row="42" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="184305005" csdConceptName="SCT" cvAltConceptName="F-03E6D" csdAltConceptName="SRT" cmConceptName="Cause of death" valueSetCID="QIICR_2012" valueSetBDE="D"/>
        <templatecontentitem row="43" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="300011" csdConceptName="99PMP" cmConceptName="Post-radiotherapy treatment" valueSetCID="230" valueSetBDE="D"/>
        <templatecontentitem row="44" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="63944-3" csdConceptName="LN" cmConceptName="Date of cancer recurrence"/>
        <templatecontentitem row="45" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="300012" csdConceptName="99PMP" cmConceptName="Date of 2nd primary"/>
        <templatecontentitem row="46" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="300013" csdConceptName="99PMP" cmConceptName="Location of first recurrence" valueSetCID="QIICR_2013" valueSetBDE="D"/>
        <templatecontentitem row="47" relationship="CONTAINS" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="U" cvConceptName="300016" csdConceptName="99PMP" cmConceptName="Pathology of recurrent tumor">
          <includetemplate row="48" tid="QIICR_2006" relationship="CONTAINS" vmmin="1" vmmax="1" requiredType="M"/>
        </templatecontentitem>
      </templatecontentitem>
    </templatecontentitem>
  </definetemplate>
  <definetemplate tid="QIICR_2002" name="Biopsy" root="F" extensible="T" ordersignificant="F">
    <templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" cvConceptName="86273004" csdConceptName="SCT" cvAltConceptName="P1-03100" csdAltConceptName="SRT" cmConceptName="Biopsy">
      <templatecontentitem row="2" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="439272007" csdConceptName="SCT" cvAltConceptName="F-05045" csdAltConceptName="SRT" cmConceptName="Date of procedure"/>
      <templatecontentitem row="3" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="396991001" csdConceptName="SCT" cvAltConceptName="F-04956" csdAltConceptName="SRT" cmConceptName="Biopsy Site"/>
    </templatecontentitem>
  </definetemplate>
  <definetemplate tid="QIICR_2003" name="SurgicalProcedureforHeadandNeckCancer" root="F" extensible="T" ordersignificant="F">
    <templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" cvConceptName="387713003" csdConceptName="SCT" cvAltConceptName="P0-009C3" csdAltConceptName="SRT" cmConceptName="Surgical Procedure">
      <templatecontentitem row="2" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="439272007" csdConceptName="SCT" cvAltConceptName="F-05045" csdAltConceptName="SRT" cmConceptName="Date of procedure"/>
      <templatecontentitem row="3" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C0807506" csdConceptName="UMLS" cmConceptName="Procedure Description"/>
      <templatecontentitem row="4" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="300001" csdConceptName="99PMP" cmConceptName="Resection of primary tumor" valueSetCID="QIICR_2014" valueSetBDE="D"/>
      <templatecontentitem row="5" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="178283002" csdConceptName="SCT" cvAltConceptName="P1-65325" csdAltConceptName="SRT" cmConceptName="Block dissection of cervical lymph nodes" valueSetCID="QIICR_2002" valueSetBDE="D"/>
    </templatecontentitem>
  </definetemplate>
  <definetemplate tid="QIICR_2004" name="RadiotherapyProcedure" root="F" extensible="T" ordersignificant="F">
    <templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" cvConceptName="53438000" csdConceptName="SCT" cvAltConceptName="P5-C0000" csdAltConceptName="SRT" cmConceptName="Radiotherapy Procedure">
      <templatecontentitem row="2" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="413946009" csdConceptName="SCT" cvAltConceptName="F-04C2B" csdAltConceptName="SRT" cmConceptName="Date treatment started"/>
      <templatecontentitem row="3" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="413947000" csdConceptName="SCT" cvAltConceptName="F-04C2C" csdAltConceptName="SRT" cmConceptName="Date treatment stopped"/>
      <templatecontentitem row="4" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="445461008" csdConceptName="SCT" cvAltConceptName="R-007B0" csdAltConceptName="SRT" cmConceptName="Total radiation dose delivered" cvUnits="Gy" csdUnits="UCUM" cmUnits="Gy"/>
      <templatecontentitem row="5" relationship="CONTAINS" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="300002" csdConceptName="99PMP" cmConceptName="Radiation dose per fraction" cvUnits="Gy" csdUnits="UCUM" cmUnits="Gy"/>
      <templatecontentitem row="6" relationship="CONTAINS" valueType="TEXT" vmmin="1" vmmax="1" requiredType="U" cvConceptName="C0807506" csdConceptName="UMLS" cmConceptName="Procedure Description"/>
    </templatecontentitem>
  </definetemplate>
  <definetemplate tid="QIICR_2005" name="ChemotherapyProcedure" root="F" extensible="T" ordersignificant="F">
    <templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="n" requiredType="M" cvConceptName="367336001" csdConceptName="SCT" cvAltConceptName="P0-0058E" csdAltConceptName="SRT" cmConceptName="Chemotherapy">
      <templatecontentitem row="2" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="413946009" csdConceptName="SCT" cvAltConceptName="F-04C2B" csdAltConceptName="SRT" cmConceptName="Date treatment started"/>
      <templatecontentitem row="3" relationship="CONTAINS" valueType="DATE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="413947000" csdConceptName="SCT" cvAltConceptName="F-04C2C" csdAltConceptName="SRT" cmConceptName="Date treatment stopped"/>
      <templatecontentitem row="4" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="3" requiredType="U" cvConceptName="372688009" csdConceptName="SCT" cvAltConceptName="F-618AA" csdAltConceptName="SRT" cmConceptName="Antineoplastic agent" valueSetCID="QIICR_2015" valueSetBDE="D"/>
    </templatecontentitem>
  </definetemplate>
  <definetemplate tid="QIICR_2006" name="TumorPathologyResults" root="F" extensible="T" ordersignificant="F">
    <templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="111468" csdConceptName="DCM" cmConceptName="Pathology Results">
      <templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111042" csdConceptName="DCM" cmConceptName="Pathology" cvValue="M-80703" csdValue="SRT" cmValue="Squamous Cell Carcinoma">
        <templatecontentitem row="3" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="373372005" csdConceptName="SCT" cvAltConceptName="F-02900" csdAltConceptName="SRT" cmConceptName="Histological grade finding" valueSetCID="QIICR_2016" valueSetBDE="D"/>
        <templatecontentitem row="4" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111388" csdConceptName="DCM" cmConceptName="Malignancy Type" valueSetCID="QIICR_2017" valueSetBDE="D"/>
        <templatecontentitem row="5" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="372249001" csdConceptName="SCT" cvAltConceptName="R-00274" csdAltConceptName="SRT" cmConceptName="Tumor margin status" valueSetCID="QIICR_2018" valueSetBDE="D"/>
        <templatecontentitem row="6" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="396394004" csdConceptName="SCT" cvAltConceptName="F-0369E" csdAltConceptName="SRT" cmConceptName="Perineural invasion finding" valueSetCID="QIICR_2019" valueSetBDE="D"/>
        <templatecontentitem row="7" relationship="HAS PROPERTIES" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="371512006" csdConceptName="SCT" cvAltConceptName="R-0026E" csdAltConceptName="SRT" cmConceptName="Status of vascular invasion by tumor" valueSetCID="QIICR_2020" valueSetBDE="D"/>
      </templatecontentitem>
    </templatecontentitem>
  </definetemplate>
  <definetemplate tid="QIICR_2007" name="CervicalLymphNodeGroup" root="F" extensible="T" ordersignificant="F">
    <templatecontentitem row="1" relationship="" valueType="CODE" vmmin="1" vmmax="n" requiredType="M" cvConceptName="245257001" csdConceptName="SCT" cvAltConceptName="T-C4207" csdAltConceptName="SRT" cmConceptName="Cervical lymph node group" valueSetCID="QIICR_2021" valueSetBDE="D">
      <templatecontentitem row="2" relationship="HAS CONCEPT MOD" valueType="CODE" vmmin="1" vmmax="1" requiredType="U" cvConceptName="277806003" csdConceptName="SCT" cvAltConceptName="R-400D5" csdAltConceptName="SRT" cmConceptName="Sidedness" valueSetCID="QIICR_2022" valueSetBDE="D"/>
      <templatecontentitem row="3" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111473" csdConceptName="DCM" cmConceptName="Number of nodes removed" cvUnits="{nodes}" csdUnits="UCUM" cmUnits="nodes"/>
      <templatecontentitem row="4" relationship="HAS PROPERTIES" valueType="NUM" vmmin="1" vmmax="1" requiredType="U" cvConceptName="111474" csdConceptName="DCM" cmConceptName="Number of nodes positive" cvUnits="{nodes}" csdUnits="UCUM" cmUnits="nodes"/>
    </templatecontentitem>
  </definetemplate>
  <definetemplate tid="QIICR_2008" name="DiabetesProblemProperties" root="F" extensible="T" ordersignificant="T">
    <templatecontentitem row="1" relationship="" valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M" cvConceptName="121430" csdConceptName="DCM" cmConceptName="Concern">
      <templatecontentitem row="2" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="1" requiredType="M" cvConceptName="55607006" csdConceptName="SCT" cvAltConceptName="F-01000" csdAltConceptName="SRT" cmConceptName="Problem" cvValue="G-023F" csdValue="SRT" cmValue="History of Diabetes mellitus"/>
      <templatecontentitem row="3" relationship="CONTAINS" valueType="CODE" vmmin="1" vmmax="n" requiredType="U" cvConceptName="277132007" csdConceptName="SCT" cvAltConceptName="P0-0000E" csdAltConceptName="SRT" cmConceptName="Therapy" valueSetCID="3722" valueSetBDE="D"/>
    </templatecontentitem>
  </definetemplate>
  
  <!-- per IHE RAD TF Vol 3 Table H-1: Example Additional Teaching File Information Template -->
  <definetemplate tid="IHE_TCE_AddTFInfo" name="AdditionalTeachingFileInformation" root="T" extensible="T" ordersignificant="T">
    <templatecontentitem     row="1"  relationship=""               valueType="CONTAINER" vmmin="1" vmmax="1" requiredType="M"  cvConceptName="TCE006" csdConceptName="IHERADTF" cmConceptName="Additional Teaching File Information">
      <templatecontentitem   row="2"  relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="TCE101" csdConceptName="IHERADTF" cmConceptName="Author">
        <templatecontentitem row="3"  relationship="HAS PROPERTIES" valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="TCE102" csdConceptName="IHERADTF" cmConceptName="Affiliation"/>
        <templatecontentitem row="4"  relationship="HAS PROPERTIES" valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="TCE103" csdConceptName="IHERADTF" cmConceptName="Contact"/>
      </templatecontentitem>
      <templatecontentitem   row="5"  relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="TCE104" csdConceptName="IHERADTF" cmConceptName="Abstract"/>
      <templatecontentitem   row="6"  relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="MC" cvConceptName="TCE105" csdConceptName="IHERADTF" cmConceptName="Keywords"
      		condition="count(code[concept/@cv='TCE105' and concept/@csd='IHERADTF']) = 0" mbpo="F"/>
      <templatecontentitem   row="7"  relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="MC" cvConceptName="TCE105" csdConceptName="IHERADTF" cmConceptName="Keywords"
      		condition="count(text[concept/@cv='TCE105' and concept/@csd='IHERADTF']) = 0" mbpo="F"/>	<!-- ACR or MESH or ICD9CM Diagnosis Codes -->
      <templatecontentitem   row="8"  relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="121060" csdConceptName="DCM"      cmConceptName="History"/>
      <templatecontentitem   row="9"  relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="121060" csdConceptName="DCM"      cmConceptName="History"/>
      <templatecontentitem   row="10" relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="121071" csdConceptName="DCM"      cmConceptName="Finding"/>
      <templatecontentitem   row="11" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="121071" csdConceptName="DCM"      cmConceptName="Finding"/>
      <templatecontentitem   row="12" relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="TCE106" csdConceptName="IHERADTF" cmConceptName="Discussion"/>
      <templatecontentitem   row="13" relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111023" csdConceptName="DCM"      cmConceptName="Differential Diagnosis/Impression"/>
      <templatecontentitem   row="14" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111023" csdConceptName="DCM"      cmConceptName="Differential Diagnosis/Impression"/>
      <templatecontentitem   row="15" relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="TCE107" csdConceptName="IHERADTF" cmConceptName="Diagnosis"/>
      <templatecontentitem   row="16" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="TCE107" csdConceptName="IHERADTF" cmConceptName="Diagnosis"/>
      <templatecontentitem   row="17" relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="112005" csdConceptName="DCM"      cmConceptName="Radiographic anatomy"/>
      <templatecontentitem   row="18" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="112005" csdConceptName="DCM"      cmConceptName="Radiographic anatomy"/>
      <templatecontentitem   row="19" relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111042" csdConceptName="DCM"      cmConceptName="Pathology"/>
      <templatecontentitem   row="20" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="111042" csdConceptName="DCM"      cmConceptName="Pathology"/>
      <templatecontentitem   row="21" relationship="CONTAINS"       valueType="TEXT"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="TCE108" csdConceptName="IHERADTF" cmConceptName="Organ system"/>
      <templatecontentitem   row="22" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="TCE108" csdConceptName="IHERADTF" cmConceptName="Organ system"/>
      <templatecontentitem   row="23" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="121139" csdConceptName="DCM"      cmConceptName="Modality"            valueSetCID="29" valueSetBDE="D"/>
      <templatecontentitem   row="24" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="1" requiredType="M"  cvConceptName="TCE109" csdConceptName="IHERADTF" cmConceptName="Category"            valueSetCID="IHETFH2" valueSetBDE="B"/>
      <templatecontentitem   row="25" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="TCE110" csdConceptName="IHERADTF" cmConceptName="Level"               valueSetCID="IHETFH3" valueSetBDE="B"/>
      <templatecontentitem   row="26" relationship="CONTAINS"       valueType="CODE"      vmmin="1" vmmax="n" requiredType="U"  cvConceptName="TCE111" csdConceptName="IHERADTF" cmConceptName="Diagnoses confirmed" valueSetCID="230" valueSetBDE="D"/>
    </templatecontentitem>
  </definetemplate>
  
</definitions>
