<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"/>
	</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"/>
	</defineiod>

	<defineiod name="ComprehensiveSR" 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"/>
	</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>

	<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>

	<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="G-C171"    csdConceptName="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="G-C0E3"    csdConceptName="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="G-C171"    csdConceptName="SRT"   cmConceptName="Laterality"   valueSetCID="244"      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="G-C2CE"    csdConceptName="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="G-A185"    csdConceptName="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="G-A186"    csdConceptName="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="G-C036" csdConceptName="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="G-C036" csdConceptName="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="G-C036" csdConceptName="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="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="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"/>
	</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"/>
	</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"/>
		<templatecontentitem         row="2"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121040" csdConceptName="DCM" cmConceptName="Specimen Accession Number"/>
		<includetemplate             row="3" tid="1007"                                         vmmin="1" vmmax="1" requiredType="U"/> <!-- 1	UC -->
		<templatecontentitem         row="4"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121041" csdConceptName="DCM" cmConceptName="Specimen Identifier"/>
		<templatecontentitem         row="5"  relationship="HAS OBS CONTEXT" valueType="CODE"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121042" csdConceptName="DCM" cmConceptName="Specimen Type"/>
		<templatecontentitem         row="6"  relationship="HAS OBS CONTEXT" valueType="TEXT"   vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121043" csdConceptName="DCM" cmConceptName="Slide Identifier"/>
		<templatecontentitem         row="7"  relationship="HAS OBS CONTEXT" valueType="UIDREF" vmmin="1" vmmax="1" requiredType="U"  cvConceptName="121044" csdConceptName="DCM" cmConceptName="Slide UID"/>	
	</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="1" requiredType="M"  cvConceptName="113876" csdConceptName="DCM" cmConceptName="Device Role in Procedure">		<!-- DCID $DeviceProcedureRole -->
			<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="1400IFM" 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="1400CN" name="LinearMeasurementTemplate" root="F" extensible="T">
	</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="G-C036" csdConceptName="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">
	</definetemplate>

	<definetemplate tid="1401CN" name="AreaMeasurementTemplate" root="F" extensible="T">
	</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="MC"
										 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="MC"
										 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="G-C036" csdConceptName="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">
	</definetemplate>

	<definetemplate tid="1402CN" name="VolumeMeasurementTemplate" root="F" extensible="T">
	</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="1400IFM"                                 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="M"/>
			<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="G-C171" csdConceptName="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="G-C171" csdConceptName="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="G-C171" csdConceptName="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="4019"                                            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="G-C171" csdConceptName="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="1" 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="1" 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='F-01793' and value/@csd='SRT')])&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="4019"                                            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'])=0
										        and count(../code[value/@cv='111100'  and value/@csd='DCM'])=0
										        and count(../code[value/@cv='T-04100' and value/@csd='SRT'])=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'])=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'])&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'])&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'])&gt;0"/>
		<includetemplate                 row="13" tid="4010"                                          vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(../code[value/@cv='F-01775' and value/@csd='SRT'])&gt;0"/>
		<includetemplate                 row="14" tid="4011"                                          vmmin="1" vmmax="1" requiredType="UC"
										 condition="count(../code[value/@cv='F-01796' and value/@csd='SRT'])&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'])&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="6142WithNumberOfCalcifications" conceptNameBDE="D"> <!-- Ambiguous otherwise, with Row 13 included 4010 Row 3-->
			<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'])&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="F-01710" csdConceptName="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']) = 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"/> <!-- Realy 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']) = 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="M-020F9" csdConceptName="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']) = 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']) = 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']) = 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="CADAnalyses PerformedMammo" 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="4019"                                          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="4019"                                          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">
		<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>
	
	<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="6166PlusCenterOutline" conceptNameBDE="D"> <!-- Need to avoid failing on re-matching Center and Outline -->
			<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="6166PlusCenterOutline" conceptNameBDE="D"> <!-- Need to avoid failing on re-matching Center and Outline -->
			<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="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">
			<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="G-C0E8" csdConceptName="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="M"/>
			<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 Date"/>		
				<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>
			<includetemplate             row="9"  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="10" 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']) &gt; 0" mbpo="F"/>	<!-- Accumulated Mammography X-Ray Dose	                    is IFF TID (10001) Row 2 = (P5-40010, SRT, "Mammography") -->
			<includetemplate             row="11" 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="12" 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="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="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="T-D0005" csdConceptName="SRT" cmConceptName="Anatomical structure"                    valueSetCID="4009"      valueSetBDE="D">
				<templatecontentitem     row="10" relationship="HAS CONCEPT MOD"  valueType="CODE"      vmmin="1" vmmax="1" requiredType="U"  cvConceptName="G-C171" csdConceptName="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="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']) &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']) &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']) &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="21" 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 20 is present and Row 22 is not present	 -->
			<templatecontentitem         row="22"  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 20 is present and Row 21 is not present	DCID (10025) Radiation Dose Reference Points -->
			<includetemplate             row="23" tid="4007" vmmin="1" vmmax="1"  requiredType="U"/>
			<templatecontentitem         row="24" relationship="CONTAINS"         valueType="TEXT"      vmmin="1" vmmax="1" requiredType="U"   cvConceptName="121106" csdConceptName="DCM" cmConceptName="Comment"/>
			<includetemplate             row="25" tid="1020" vmmin="1" vmmax="n"  requiredType="U">	<!-- Person Participant -->
				<parameter name="PersonProcedureRole"   value="PMP_1020B"/>	<!-- EV (113851, DCM, "Irradiation Administering") -->
			</includetemplate>
			<includetemplate             row="26"  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']) &gt; 0"/>	<!-- IFF TID (10001) Row 8 is absent or has a value of (R-0038D, SRT, “Yes”) -->
			<includetemplate             row="27"  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']) &gt; 0"/>	<!-- IFF TID (10001) Row 9 is absent or has a value of (R-0038D, SRT, “Yes”) -->
			<includetemplate             row="28"  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']) &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="U">	<!-- 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="dGy" csdUnits="UCUM" cmUnits="dGy"
								 condition="count(//code[concept/@cv='121058' and concept/@csd='DCM' and value/@cv='P5-40010' and value/@csd='SRT']) &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']) &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(code[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(code[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(code[concept/@cv='113734' and concept/@csd='DCM']) = 0
										 or count(code[concept/@cv='113824' and concept/@csd='DCM']) = 0" mbpo="T"/>	<!-- IF Row 12 and 14 are not present	-->
		<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="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="25" tid="1021" vmmin="1" vmmax="1"  requiredType="M">	<!-- 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="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']) &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']) &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']) &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="M"  cvConceptName="113727" csdConceptName="DCM" cmConceptName="Acquisition Dose Area Product Total" cvUnits="Gy.m2" csdUnits="UCUM" cmUnits="Gy.m2"/>
		<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").  May be present otherwise. -->
		<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="M"  cvConceptName="113855" csdConceptName="DCM" cmConceptName="Total Acquisition Time"              cvUnits="s" csdUnits="UCUM" cmUnits="s"/>
		<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="10" 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 11 is not present.-->
		<templatecontentitem     row="11" 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 10 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="G-C171" csdConceptName="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']) &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']) &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="113731" csdConceptName="DCM" cmConceptName="Total Number of Radiographic Frames" cvUnits="1" csdUnits="UCUM" cmUnits="no units"/>

		<templatecontentitem     row="4" 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(text[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="5"  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(code[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">
			<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="G-C0E8" csdConceptName="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="G-C036" csdConceptName="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="G-C32C" csdConceptName="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="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']) &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="G-C036" csdConceptName="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="G-C036" csdConceptName="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']) &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']) &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']) &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']) &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']) &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>

</definitions>
