FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Page standards status: Draft | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="SpecimenDefinition3to4"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/StructureMap/SpecimenDefinition3to4'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'SpecimenDefinition3to4'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'SpecimenDefinition Transforms: R3 to R4'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/3.0/SpecimenDefinition<span style="color: navy">" </span><b>alias </b>SpecimenDefinitionR3 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/4.0/SpecimenDefinition<span style="color: navy">" </span><b>alias </b>SpecimenDefinition <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*3to4<span style="color: navy">"
</span>
<b>group </b>SpecimenDefinition<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>SpecimenDefinitionR3, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>SpecimenDefinition<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier<span style="color: navy">;</span>
src.typeCollected<span style="color: navy"><b> -> </b></span>tgt.typeCollected<span style="color: navy">;</span>
src.patientPreparation<span style="color: navy"><b> -> </b></span>tgt.patientPreparation<span style="color: navy">;</span>
src.timeAspect<span style="color: navy"><b> -> </b></span>tgt.timeAspect<span style="color: navy">;</span>
src.collection<span style="color: navy"><b> -> </b></span>tgt.collection<span style="color: navy">;</span>
src.specimenToLab<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.specimenToLab<b> as </b><span style="color: maroon">t</span><b> then </b>SpecimenDefinitionSpecimenToLab<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>SpecimenDefinitionSpecimenToLab<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span> src.isDerived<span style="color: navy"><b> -> </b></span>tgt.isDerived<span style="color: navy">;</span>
src.type<span style="color: navy"><b> -> </b></span>tgt.type<span style="color: navy">;</span>
src.preference<span style="color: navy"><b> -> </b></span>tgt.preference<span style="color: navy">;</span>
src.containerMaterial<span style="color: navy"><b> -> </b></span>tgt.containerMaterial<span style="color: navy">;</span>
src.containerType<span style="color: navy"><b> -> </b></span>tgt.containerType<span style="color: navy">;</span>
src.containerCap<span style="color: navy"><b> -> </b></span>tgt.containerCap<span style="color: navy">;</span>
src.containerDescription<span style="color: navy"><b> -> </b></span>tgt.containerDescription<span style="color: navy">;</span>
src.containerCapacity<span style="color: navy"><b> -> </b></span>tgt.containerCapacity<span style="color: navy">;</span>
src.containerMinimumVolume<span style="color: navy"><b> -> </b></span>tgt.containerMinimumVolume<span style="color: navy">;</span>
src.containerAdditive<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.containerAdditive<b> as </b><span style="color: maroon">t</span><b> then </b>SpecimenDefinitionSpecimenToLabContainerAdditive<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.containerPreparation<span style="color: navy"><b> -> </b></span>tgt.containerPreparation<span style="color: navy">;</span>
src.requirement<span style="color: navy"><b> -> </b></span>tgt.requirement<span style="color: navy">;</span>
src.retentionTime<span style="color: navy"><b> -> </b></span>tgt.retentionTime<span style="color: navy">;</span>
src.rejectionCriterion<span style="color: navy"><b> -> </b></span>tgt.rejectionCriterion<span style="color: navy">;</span>
src.handling<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.handling<b> as </b><span style="color: maroon">t</span><b> then </b>SpecimenDefinitionSpecimenToLabHandling<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>SpecimenDefinitionSpecimenToLabContainerAdditive<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span> src.additive<span style="color: navy"><b> -> </b></span>tgt.additive<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>SpecimenDefinitionSpecimenToLabHandling<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span> src.conditionSet<span style="color: navy"><b> -> </b></span>tgt.conditionSet<span style="color: navy">;</span>
src.tempRange<span style="color: navy"><b> -> </b></span>tgt.tempRange<span style="color: navy">;</span>
src.maxDuration<span style="color: navy"><b> -> </b></span>tgt.maxDuration<span style="color: navy">;</span>
src.lightExposure<span style="color: navy"><b> -> </b></span>tgt.lightExposure<span style="color: navy">;</span>
src.instruction<span style="color: navy"><b> -> </b></span>tgt.instruction<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="fhir"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="1">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="draft">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/SpecimenDefinition3to4"/>
<version value="0.1.0"/>
<name value="SpecimenDefinition3to4"/>
<title value="SpecimenDefinition Transforms: R3 to R4"/>
<status value="active"/>
<date value="2024-02-22T03:16:50+00:00"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/fiwg"/>
</telecom>
</contact>
<description value="SpecimenDefinitionTransformsR3toR4"/>
<jurisdiction>
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<code value="001"/>
</coding>
</jurisdiction>
<structure>
<url value="http://hl7.org/fhir/3.0/SpecimenDefinition"/>
<mode value="source"/>
<alias value="SpecimenDefinitionR3"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/4.0/SpecimenDefinition"/>
<mode value="target"/>
<alias value="SpecimenDefinition"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*3to4"/>
<group>
<name value="SpecimenDefinition"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="SpecimenDefinitionR3"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="SpecimenDefinition"/>
<mode value="target"/>
</input>
<rule>
<name value="identifier"/>
<source>
<context value="src"/>
<element value="identifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="identifier"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="typeCollected"/>
<source>
<context value="src"/>
<element value="typeCollected"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="typeCollected"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="patientPreparation"/>
<source>
<context value="src"/>
<element value="patientPreparation"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="patientPreparation"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="timeAspect"/>
<source>
<context value="src"/>
<element value="timeAspect"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="timeAspect"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="collection"/>
<source>
<context value="src"/>
<element value="collection"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="collection"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="specimenToLab"/>
<source>
<context value="src"/>
<element value="specimenToLab"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="specimenToLab"/>
<variable value="t"/>
</target>
<dependent>
<name value="SpecimenDefinitionSpecimenToLab"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="SpecimenDefinitionSpecimenToLab"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="isDerived"/>
<source>
<context value="src"/>
<element value="isDerived"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="isDerived"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="type"/>
<source>
<context value="src"/>
<element value="type"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="type"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="preference"/>
<source>
<context value="src"/>
<element value="preference"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="preference"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="containerMaterial"/>
<source>
<context value="src"/>
<element value="containerMaterial"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="containerMaterial"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="containerType"/>
<source>
<context value="src"/>
<element value="containerType"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="containerType"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="containerCap"/>
<source>
<context value="src"/>
<element value="containerCap"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="containerCap"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="containerDescription"/>
<source>
<context value="src"/>
<element value="containerDescription"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="containerDescription"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="containerCapacity"/>
<source>
<context value="src"/>
<element value="containerCapacity"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="containerCapacity"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="containerMinimumVolume"/>
<source>
<context value="src"/>
<element value="containerMinimumVolume"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="containerMinimumVolume"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="containerAdditive"/>
<source>
<context value="src"/>
<element value="containerAdditive"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="containerAdditive"/>
<variable value="t"/>
</target>
<dependent>
<name value="SpecimenDefinitionSpecimenToLabContainerAdditive"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="containerPreparation"/>
<source>
<context value="src"/>
<element value="containerPreparation"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="containerPreparation"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="requirement"/>
<source>
<context value="src"/>
<element value="requirement"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="requirement"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="retentionTime"/>
<source>
<context value="src"/>
<element value="retentionTime"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="retentionTime"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="rejectionCriterion"/>
<source>
<context value="src"/>
<element value="rejectionCriterion"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="rejectionCriterion"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="handling"/>
<source>
<context value="src"/>
<element value="handling"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="handling"/>
<variable value="t"/>
</target>
<dependent>
<name value="SpecimenDefinitionSpecimenToLabHandling"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="SpecimenDefinitionSpecimenToLabContainerAdditive"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="additive"/>
<source>
<context value="src"/>
<element value="additive"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="additive"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="SpecimenDefinitionSpecimenToLabHandling"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="conditionSet"/>
<source>
<context value="src"/>
<element value="conditionSet"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="conditionSet"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="tempRange"/>
<source>
<context value="src"/>
<element value="tempRange"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="tempRange"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="maxDuration"/>
<source>
<context value="src"/>
<element value="maxDuration"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="maxDuration"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="lightExposure"/>
<source>
<context value="src"/>
<element value="lightExposure"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="lightExposure"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="instruction"/>
<source>
<context value="src"/>
<element value="instruction"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="instruction"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
</StructureMap>