This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). 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="CarePlan4Bto5"/>
<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/CarePlan4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'CarePlan4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for CarePlan: 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>CarePlanStatus<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-request-status.html" title="RequestStatus">http://hl7.org/fhir/4.3/request-status</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-request-status.html" title="RequestStatus">http://hl7.org/fhir/request-status</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
s<span style="color: navy">:</span>"on-hold" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>on-hold<span style="color: navy">"</span>
s<span style="color: navy">:</span>revoked <b>-</b> t<span style="color: navy">:</span>revoked
s<span style="color: navy">:</span>completed <b>-</b> t<span style="color: navy">:</span>completed
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/careplan.html" title="CarePlan">http://hl7.org/fhir/4.3/StructureDefinition/CarePlan</a><span style="color: navy">" </span><b>alias </b>CarePlanR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/careplan.html" title="CarePlan">http://hl7.org/fhir/StructureDefinition/CarePlan</a><span style="color: navy">" </span><b>alias </b>CarePlanR5 <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>CarePlan<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>CarePlanR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>CarePlanR5<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.instantiatesCanonical<span style="color: navy"><b> -> </b></span>tgt.instantiatesCanonical<span style="color: navy">;</span>
src.instantiatesUri<span style="color: navy"><b> -> </b></span>tgt.instantiatesUri<span style="color: navy">;</span>
src.basedOn<span style="color: navy"><b> -> </b></span>tgt.basedOn<span style="color: navy">;</span>
src.replaces<span style="color: navy"><b> -> </b></span>tgt.replaces<span style="color: navy">;</span>
src.partOf<span style="color: navy"><b> -> </b></span>tgt.partOf<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">'#CarePlanStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.intent<span style="color: navy"><b> -> </b></span>tgt.intent<span style="color: navy">;</span>
src.category<span style="color: navy"><b> -> </b></span>tgt.category<span style="color: navy">;</span>
src.title<span style="color: navy"><b> -> </b></span>tgt.title<span style="color: navy">;</span>
src.description<span style="color: navy"><b> -> </b></span>tgt.description<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.period<span style="color: navy"><b> -> </b></span>tgt.period<span style="color: navy">;</span>
src.created<span style="color: navy"><b> -> </b></span>tgt.created<span style="color: navy">;</span>
src.author<span style="color: navy"><b> -> </b></span>tgt.custodian<span style="color: navy">;</span>
src.contributor<span style="color: navy"><b> -> </b></span>tgt.contributor<span style="color: navy">;</span>
src.careTeam<span style="color: navy"><b> -> </b></span>tgt.careTeam<span style="color: navy">;</span>
src.addresses<span style="color: navy"><b> -> </b></span>tgt.addresses<span style="color: navy">;</span>
src.supportingInfo<span style="color: navy"><b> -> </b></span>tgt.supportingInfo<span style="color: navy">;</span>
src.goal<span style="color: navy"><b> -> </b></span>tgt.goal<span style="color: navy">;</span>
src.activity<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.activity<b> as </b><span style="color: maroon">t</span><b> then </b>CarePlanActivity<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.note<span style="color: navy"><b> -> </b></span>tgt.note<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>CarePlanActivity<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.outcomeCodeableConcept<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -> </b></span>tgt.performedActivity<span style="color: navy">;</span>
src.outcomeReference<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -> </b></span>tgt.performedActivity<span style="color: navy">;</span>
src.progress<span style="color: navy"><b> -> </b></span>tgt.progress<span style="color: navy">;</span>
src.reference<span style="color: navy"><b> -> </b></span>tgt.plannedActivityReference<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="CarePlanStatus"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.3/request-status"/>
<target value="http://hl7.org/fhir/request-status"/>
<element>
<code value="draft"/>
<target>
<code value="draft"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="active"/>
<target>
<code value="active"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="on-hold"/>
<target>
<code value="on-hold"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="revoked"/>
<target>
<code value="revoked"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="completed"/>
<target>
<code value="completed"/>
<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-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/CarePlan4Bto5"/>
<version value="1.0.0"/>
<name value="CarePlan4Bto5"/>
<title value="FML Conversion for CarePlan: R4B to R5"/>
<status value="active"/>
<date value="2023-03-26T08:47:34+11:00"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://hl7.org/Special/committees/fhir-i"/>
</telecom>
</contact>
<description value="FMLConversionforCarePlanR4BtoR5"/>
<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/CarePlan"/>
<mode value="source"/>
<alias value="CarePlanR4B"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/CarePlan"/>
<mode value="target"/>
<alias value="CarePlanR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
<group>
<name value="CarePlan"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="CarePlanR4B"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="CarePlanR5"/>
<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="instantiatesCanonical"/>
<source>
<context value="src"/>
<element value="instantiatesCanonical"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="instantiatesCanonical"/>
<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="instantiatesUri"/>
<source>
<context value="src"/>
<element value="instantiatesUri"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="instantiatesUri"/>
<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="replaces"/>
<source>
<context value="src"/>
<element value="replaces"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="replaces"/>
<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="partOf"/>
<source>
<context value="src"/>
<element value="partOf"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="partOf"/>
<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="#CarePlanStatus"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="intent"/>
<source>
<context value="src"/>
<element value="intent"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="intent"/>
<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="category"/>
<source>
<context value="src"/>
<element value="category"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="category"/>
<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="title"/>
<source>
<context value="src"/>
<element value="title"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="title"/>
<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="description"/>
<source>
<context value="src"/>
<element value="description"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="description"/>
<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="period"/>
<source>
<context value="src"/>
<element value="period"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="period"/>
<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="created"/>
<source>
<context value="src"/>
<element value="created"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="created"/>
<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="author"/>
<source>
<context value="src"/>
<element value="author"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="custodian"/>
<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="contributor"/>
<source>
<context value="src"/>
<element value="contributor"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="contributor"/>
<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="careTeam"/>
<source>
<context value="src"/>
<element value="careTeam"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="careTeam"/>
<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="addresses"/>
<source>
<context value="src"/>
<element value="addresses"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="addresses"/>
<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="supportingInfo"/>
<source>
<context value="src"/>
<element value="supportingInfo"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="supportingInfo"/>
<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="goal"/>
<source>
<context value="src"/>
<element value="goal"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="goal"/>
<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="activity"/>
<source>
<context value="src"/>
<element value="activity"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="activity"/>
<variable value="t"/>
</target>
<dependent>
<name value="CarePlanActivity"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</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="CarePlanActivity"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="outcomeCodeableConceptCodeableConcept"/>
<source>
<context value="src"/>
<type value="CodeableConcept"/>
<element value="outcomeCodeableConcept"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="performedActivity"/>
<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="outcomeReferenceReference"/>
<source>
<context value="src"/>
<type value="Reference"/>
<element value="outcomeReference"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="performedActivity"/>
<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="progress"/>
<source>
<context value="src"/>
<element value="progress"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="progress"/>
<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="reference"/>
<source>
<context value="src"/>
<element value="reference"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="plannedActivityReference"/>
<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>
IG © 2022+ HL7 International / FHIR Infrastructure. Package hl7.fhir.uv.extensions#1.0.0 based on FHIR 5.0.0. Generated 2023-03-26
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change