This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="RiskAssessment4Bto5"/>
<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/RiskAssessment4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'RiskAssessment4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for RiskAssessment: R4B to R5'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>conceptmap</b><span style="color: navy"> "</span>RiskAssessmentStatus<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-observation-status.html" title="ObservationStatus">http://hl7.org/fhir/4.3/observation-status</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-observation-status.html" title="Observation Status">http://hl7.org/fhir/observation-status</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>registered <b>-</b> t<span style="color: navy">:</span>registered
s<span style="color: navy">:</span>preliminary <b>-</b> t<span style="color: navy">:</span>preliminary
s<span style="color: navy">:</span>final <b>-</b> t<span style="color: navy">:</span>final
s<span style="color: navy">:</span>amended <b>-</b> t<span style="color: navy">:</span>amended
s<span style="color: navy">:</span>corrected <b>-</b> t<span style="color: navy">:</span>corrected
s<span style="color: navy">:</span>cancelled <b>-</b> t<span style="color: navy">:</span>cancelled
s<span style="color: navy">:</span>"entered-in-error" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>entered-in-error<span style="color: navy">"</span>
s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}
</span><b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4B/riskassessment.html" title="RiskAssessment">http://hl7.org/fhir/4.3/StructureDefinition/RiskAssessment</a><span style="color: navy">" </span><b>alias </b>RiskAssessmentR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/riskassessment.html" title="RiskAssessment">http://hl7.org/fhir/StructureDefinition/RiskAssessment</a><span style="color: navy">" </span><b>alias </b>RiskAssessmentR5 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*4Bto5<span style="color: navy">"
</span>
<b>group </b>RiskAssessment<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>RiskAssessmentR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>RiskAssessmentR5<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.basedOn<span style="color: navy"><b> -> </b></span>tgt.basedOn<span style="color: navy">;</span>
src.parent<span style="color: navy"><b> -> </b></span>tgt.parent<span style="color: navy">;</span>
src.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.status = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#RiskAssessmentStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.method<span style="color: navy"><b> -> </b></span>tgt.method<span style="color: navy">;</span>
src.code<span style="color: navy"><b> -> </b></span>tgt.code<span style="color: navy">;</span>
src.subject<span style="color: navy"><b> -> </b></span>tgt.subject<span style="color: navy">;</span>
src.encounter<span style="color: navy"><b> -> </b></span>tgt.encounter<span style="color: navy">;</span>
src.occurrence<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -> </b></span>tgt.occurrence<span style="color: navy">;</span>
src.occurrence<span style="color: navy"> : </span>Period<span style="color: navy"><b> -> </b></span>tgt.occurrence<span style="color: navy">;</span>
src.condition<span style="color: navy"><b> -> </b></span>tgt.condition<span style="color: navy">;</span>
src.performer<span style="color: navy"><b> -> </b></span>tgt.performer<span style="color: navy">;</span>
src.reasonCode<span style="color: navy"><b> -> </b></span>tgt.reason<span style="color: navy">;</span>
src.reasonReference<span style="color: navy"><b> -> </b></span>tgt.reason<span style="color: navy">;</span>
src.basis<span style="color: navy"><b> -> </b></span>tgt.basis<span style="color: navy">;</span>
src.prediction<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.prediction<b> as </b><span style="color: maroon">t</span><b> then </b>RiskAssessmentPrediction<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.mitigation<span style="color: navy"><b> -> </b></span>tgt.mitigation<span style="color: navy">;</span>
src.note<span style="color: navy"><b> -> </b></span>tgt.note<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>RiskAssessmentPrediction<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.outcome<span style="color: navy"><b> -> </b></span>tgt.outcome<span style="color: navy">;</span>
src.probability<span style="color: navy"> : </span>decimal<span style="color: navy"><b> -> </b></span>tgt.probability<span style="color: navy">;</span>
src.probability<span style="color: navy"> : </span>Range<span style="color: navy"><b> -> </b></span>tgt.probability<span style="color: navy">;</span>
src.qualitativeRisk<span style="color: navy"><b> -> </b></span>tgt.qualitativeRisk<span style="color: navy">;</span>
src.relativeRisk<span style="color: navy"><b> -> </b></span>tgt.relativeRisk<span style="color: navy">;</span>
src.when<span style="color: navy"> : </span>Period<span style="color: navy"><b> -> </b></span>tgt.when<span style="color: navy">;</span>
src.when<span style="color: navy"> : </span>Range<span style="color: navy"><b> -> </b></span>tgt.when<span style="color: navy">;</span>
src.rationale<span style="color: navy"><b> -> </b></span>tgt.rationale<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="RiskAssessmentStatus"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.3/observation-status"/>
<target value="http://hl7.org/fhir/observation-status"/>
<element>
<code value="registered"/>
<target>
<code value="registered"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="preliminary"/>
<target>
<code value="preliminary"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="final"/>
<target>
<code value="final"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="amended"/>
<target>
<code value="amended"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="corrected"/>
<target>
<code value="corrected"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="cancelled"/>
<target>
<code value="cancelled"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="entered-in-error"/>
<target>
<code value="entered-in-error"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="unknown"/>
<target>
<code value="unknown"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<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.extensions"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="trial-use">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/RiskAssessment4Bto5"/>
<version value="5.1.0"/>
<name value="RiskAssessment4Bto5"/>
<title value="FML Conversion for RiskAssessment: R4B to R5"/>
<status value="active"/>
<date value="2024-04-27T18:54:50+10: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="FMLConversionforRiskAssessmentR4BtoR5"/>
<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/4.3/StructureDefinition/RiskAssessment"/>
<mode value="source"/>
<alias value="RiskAssessmentR4B"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/RiskAssessment"/>
<mode value="target"/>
<alias value="RiskAssessmentR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
<group>
<name value="RiskAssessment"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="RiskAssessmentR4B"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="RiskAssessmentR5"/>
<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="basedOn"/>
<source>
<context value="src"/>
<element value="basedOn"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="basedOn"/>
<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="parent"/>
<source>
<context value="src"/>
<element value="parent"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="parent"/>
<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="status"/>
<source>
<context value="src"/>
<element value="status"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="status"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#RiskAssessmentStatus"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="method"/>
<source>
<context value="src"/>
<element value="method"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="method"/>
<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="code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="code"/>
<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="subject"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="subject"/>
<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="encounter"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="encounter"/>
<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="occurrenceDateTime"/>
<source>
<context value="src"/>
<type value="dateTime"/>
<element value="occurrence"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="occurrence"/>
<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="occurrencePeriod"/>
<source>
<context value="src"/>
<type value="Period"/>
<element value="occurrence"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="occurrence"/>
<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="condition"/>
<source>
<context value="src"/>
<element value="condition"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="condition"/>
<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="performer"/>
<source>
<context value="src"/>
<element value="performer"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="performer"/>
<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="reasonCode"/>
<source>
<context value="src"/>
<element value="reasonCode"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reason"/>
<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="reasonReference"/>
<source>
<context value="src"/>
<element value="reasonReference"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reason"/>
<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="basis"/>
<source>
<context value="src"/>
<element value="basis"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="basis"/>
<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="prediction"/>
<source>
<context value="src"/>
<element value="prediction"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="prediction"/>
<variable value="t"/>
</target>
<dependent>
<name value="RiskAssessmentPrediction"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="mitigation"/>
<source>
<context value="src"/>
<element value="mitigation"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="mitigation"/>
<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="note"/>
<source>
<context value="src"/>
<element value="note"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="note"/>
<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="RiskAssessmentPrediction"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="outcome"/>
<source>
<context value="src"/>
<element value="outcome"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="outcome"/>
<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="probabilityDecimal"/>
<source>
<context value="src"/>
<type value="decimal"/>
<element value="probability"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="probability"/>
<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="probabilityRange"/>
<source>
<context value="src"/>
<type value="Range"/>
<element value="probability"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="probability"/>
<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="qualitativeRisk"/>
<source>
<context value="src"/>
<element value="qualitativeRisk"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="qualitativeRisk"/>
<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="relativeRisk"/>
<source>
<context value="src"/>
<element value="relativeRisk"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="relativeRisk"/>
<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="whenPeriod"/>
<source>
<context value="src"/>
<type value="Period"/>
<element value="when"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="when"/>
<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="whenRange"/>
<source>
<context value="src"/>
<type value="Range"/>
<element value="when"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="when"/>
<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="rationale"/>
<source>
<context value="src"/>
<element value="rationale"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="rationale"/>
<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>