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 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:StructureMap ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "MedicationStatement4to3"] ; # fhir:text [ fhir:status [ fhir:v "generated" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/MedicationStatement4to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'MedicationStatement4to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'MedicationStatement Transforms: R4 to R3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/MedicationStatement<span style=\"color: navy\">" </span><b>alias </b>MedicationStatement <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/MedicationStatement<span style=\"color: navy\">" </span><b>alias </b>MedicationStatementR3 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*4to3<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>MedicationStatement<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MedicationStatement, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>MedicationStatementR3<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n src.basedOn<span style=\"color: navy\"><b> -> </b></span>tgt.basedOn<span style=\"color: navy\">;</span>\r\n src.partOf<span style=\"color: navy\"><b> -> </b></span>tgt.partOf<span style=\"color: navy\">;</span>\r\n src.context<span style=\"color: navy\"><b> -> </b></span>tgt.context<span style=\"color: navy\">;</span>\r\n src<b> where </b>src.extension.where(url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationStatement.status').exists()<b> then </b>statusR3<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>"status1"</i><span style=\"color: navy\">;</span>\r\n src<b> where </b>src.extension.where(url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationStatement.status').empty()<b> then </b>statusNR3<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>"status2"</i><span style=\"color: navy\">;</span>\r\n src.category<span style=\"color: navy\"><b> -> </b></span>tgt.category<span style=\"color: navy\">;</span>\r\n src.medication<span style=\"color: navy\"> : </span>CodeableConcept<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.medication = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>CodeableConcept<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.medication<span style=\"color: navy\"> : </span>Reference<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.medication = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Reference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Reference<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.effective<span style=\"color: navy\"> : </span>dateTime<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.effective = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'dateTime'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>dateTime<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.effective<span style=\"color: navy\"> : </span>Period<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.effective = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Period'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Period<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.dateAsserted<span style=\"color: navy\"><b> -> </b></span>tgt.dateAsserted<span style=\"color: navy\">;</span>\r\n src.informationSource<span style=\"color: navy\"><b> -> </b></span>tgt.informationSource<span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -> </b></span>tgt.subject<span style=\"color: navy\">;</span>\r\n src.derivedFrom<span style=\"color: navy\"><b> -> </b></span>tgt.derivedFrom<span style=\"color: navy\">;</span>\r\n src.reasonCode<b> where </b>src.status = 'not-taken'<span style=\"color: navy\"><b> -> </b></span>tgt.reasonNotTaken<span style=\"color: navy\">;</span>\r\n src.reasonCode<b> where </b>src.status != 'not-taken'<span style=\"color: navy\"><b> -> </b></span>tgt.reasonCode<span style=\"color: navy\">;</span>\r\n src.reasonReference<span style=\"color: navy\"><b> -> </b></span>tgt.reasonReference<span style=\"color: navy\">;</span>\r\n src.note<span style=\"color: navy\"><b> -> </b></span>tgt.note<span style=\"color: navy\">;</span>\r\n src.dosage<span style=\"color: navy\"><b> -> </b></span>tgt.dosage<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>statusR3<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><span style=\"color: navy\"> {\r\n</span> src.extension<b> as </b><span style=\"color: maroon\">e</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationStatement.taken'<b> then</b><span style=\"color: navy\"> {\r\n</span> e.value<span style=\"color: navy\"><b> -> </b></span>tgt.taken<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.extension<b> as </b><span style=\"color: maroon\">e</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationStatement.status'<b> then</b><span style=\"color: navy\"> {\r\n</span> e.value<span style=\"color: navy\"><b> -> </b></span>tgt.status<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>statusNR3<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><span style=\"color: navy\"> {\r\n</span> src.status<b> where </b>(value in ('not-taken' | 'unknown')).not()<span style=\"color: navy\"><b> -> </b></span>tgt.status<span style=\"color: navy\">;</span>\r\n src.status<b> where </b>value = 'not-taken'<span style=\"color: navy\"><b> -> </b></span> tgt.status = <span style=\"color: blue\">'completed'</span><span style=\"color: navy\">, </span> tgt.taken = <span style=\"color: blue\">'n'</span><span style=\"color: navy\">;</span>\r\n src.status<b> where </b>value = 'unknown'<span style=\"color: navy\"><b> -> </b></span> tgt.status = <span style=\"color: blue\">'completed'</span><span style=\"color: navy\">, </span> tgt.taken = <span style=\"color: blue\">'unk'</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>" ] ; # fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ; fhir:value [ fhir:v "fhir" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ] ; fhir:value [ fhir:v "1"^^xsd:integer ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ; fhir:value [ fhir:v "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver> ] ] ) ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ] ; fhir:value [ fhir:v "draft" ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ; fhir:value [ fhir:v "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver> ] ] ) ] ] ) ; # fhir:url [ fhir:v "http://hl7.org/fhir/StructureMap/MedicationStatement4to3"^^xsd:anyURI] ; # fhir:version [ fhir:v "0.1.0"] ; # fhir:name [ fhir:v "MedicationStatement4to3"] ; # fhir:title [ fhir:v "MedicationStatement Transforms: R4 to R3"] ; # fhir:status [ fhir:v "active"] ; # fhir:date [ fhir:v "2024-02-22T03:16:50+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # fhir:contact ( [ ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ] ] ) ] ) ; # fhir:description [ fhir:v "MedicationStatementTransformsR4toR3"] ; # fhir:jurisdiction ( [ ( fhir:coding [ fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ; fhir:code [ fhir:v "001" ] ] ) ] ) ; # fhir:structure ( [ fhir:url [ fhir:v "http://hl7.org/fhir/4.0/MedicationStatement"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/4.0/MedicationStatement> ] ; fhir:mode [ fhir:v "source" ] ; fhir:alias [ fhir:v "MedicationStatement" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/3.0/MedicationStatement"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/3.0/MedicationStatement> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "MedicationStatementR3" ] ] ) ; # fhir:import ( [ fhir:v "http://hl7.org/fhir/StructureMap/*4to3"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureMap/*4to3> ] ) ; # fhir:group ( [ fhir:name [ fhir:v "MedicationStatement" ] ; fhir:extends [ fhir:v "DomainResource" ] ; fhir:typeMode [ fhir:v "type-and-types" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "MedicationStatement" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:type [ fhir:v "MedicationStatementR3" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "identifier" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "basedOn" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "basedOn" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "basedOn" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "partOf" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "partOf" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "partOf" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "context" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "context" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "context" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "status1" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.extension.where(url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationStatement.status').exists()" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "statusR3" ] ; ( fhir:parameter [ fhir:value [ fhir:v "src" ] ] [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ] [ fhir:name [ fhir:v "status2" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.extension.where(url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationStatement.status').empty()" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "statusNR3" ] ; ( fhir:parameter [ fhir:value [ fhir:v "src" ] ] [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ] [ fhir:name [ fhir:v "category" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "category" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "category" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "medicationCodeableConcept" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:type [ fhir:v "CodeableConcept" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "vs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "vt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "CodeableConcept" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vs" ] ] [ fhir:value [ fhir:v "vt" ] ] ) ] ) ] [ fhir:name [ fhir:v "medicationReference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:type [ fhir:v "Reference" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "vs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "vt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "Reference" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vs" ] ] [ fhir:value [ fhir:v "vt" ] ] ) ] ) ] [ fhir:name [ fhir:v "effectiveDateTime" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:type [ fhir:v "dateTime" ] ; fhir:element [ fhir:v "effective" ] ; fhir:variable [ fhir:v "vs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "effective" ] ; fhir:variable [ fhir:v "vt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "dateTime" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "dateTime" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vs" ] ] [ fhir:value [ fhir:v "vt" ] ] ) ] ) ] [ fhir:name [ fhir:v "effectivePeriod" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:type [ fhir:v "Period" ] ; fhir:element [ fhir:v "effective" ] ; fhir:variable [ fhir:v "vs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "effective" ] ; fhir:variable [ fhir:v "vt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Period" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "Period" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vs" ] ] [ fhir:value [ fhir:v "vt" ] ] ) ] ) ] [ fhir:name [ fhir:v "dateAsserted" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "dateAsserted" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "dateAsserted" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "informationSource" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "informationSource" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "informationSource" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "subject" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "derivedFrom" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "derivedFrom" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "derivedFrom" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "reasonCode" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "reasonCode" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:condition [ fhir:v "src.status = 'not-taken'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "reasonNotTaken" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "reasonCode" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "reasonCode" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:condition [ fhir:v "src.status != 'not-taken'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "reasonCode" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "reasonReference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "reasonReference" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "reasonReference" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "note" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "note" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "note" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "dosage" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "dosage" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "dosage" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "statusR3" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "e" ] ; fhir:condition [ fhir:v "url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationStatement.taken'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "value" ] ; ( fhir:source [ fhir:context [ fhir:v "e" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "taken" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "e" ] ; fhir:condition [ fhir:v "url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationStatement.status'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "value" ] ; ( fhir:source [ fhir:context [ fhir:v "e" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "status" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "statusNR3" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "status" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:condition [ fhir:v "(value in ('not-taken' | 'unknown')).not()" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "status" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ; ( fhir:parameter [ fhir:value [ fhir:v "vvv" ] ] [ fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "status" ] ; fhir:condition [ fhir:v "value = 'not-taken'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "completed" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "taken" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "n" ] ] ) ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "status" ] ; fhir:condition [ fhir:v "value = 'unknown'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "completed" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:element [ fhir:v "taken" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "unk" ] ] ) ] ) ] ) ] ) . #
IG © 2022+ HL7 International / FHIR Infrastructure. Package hl7.fhir.uv.xver#0.1.0 based on FHIR 5.0.0. Generated 2024-02-22
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change