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 |
{
"resourceType" : "StructureMap",
"id" : "Recommendation4to3",
"text" : {
"status" : "generated",
"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/ImmunizationRecommendation4to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Recommendation4to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'ImmunizationRecommendation 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/ImmunizationRecommendation<span style=\"color: navy\">" </span><b>alias </b>ImmunizationRecommendation <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/ImmunizationRecommendation<span style=\"color: navy\">" </span><b>alias </b>ImmunizationRecommendationR3 <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>ImmunizationRecommendation<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ImmunizationRecommendationR3, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>ImmunizationRecommendation<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.patient<span style=\"color: navy\"><b> -> </b></span>tgt.patient<span style=\"color: navy\">;</span>\r\n src.recommendation<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.recommendation<b> as </b><span style=\"color: maroon\">t</span><b> then </b>recommendation<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: maroon\">src</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>recommendation<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span>, <b>source</b> <span style=\"color: maroon\">res</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> res.date<span style=\"color: navy\"><b> -> </b></span>tgt.date<span style=\"color: navy\">;</span>\r\n src.vaccineCode<span style=\"color: navy\"><b> -> </b></span>tgt.vaccineCode<span style=\"color: navy\">;</span>\r\n src.targetDisease<span style=\"color: navy\"><b> -> </b></span>tgt.targetDisease<span style=\"color: navy\">;</span>\r\n src.doseNumber<span style=\"color: navy\"> : </span>positiveInt<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.doseNumber<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>positiveInt<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.forecastStatus<span style=\"color: navy\"><b> -> </b></span>tgt.forecastStatus<span style=\"color: navy\">;</span>\r\n src.dateCriterion<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.dateCriterion<b> as </b><span style=\"color: maroon\">t</span><b> then </b>dateCriterion<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>\r\n src.description<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span> tgt.protocol<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.description = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n src.seriesDoses<span style=\"color: navy\"> : </span>positiveInt<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span> tgt.protocol<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.doseSequence = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n res.authority<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span> tgt.protocol<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.authority = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n src.series<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span> tgt.protocol<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.series = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n src.supportingImmunization<span style=\"color: navy\"><b> -> </b></span>tgt.supportingImmunization<span style=\"color: navy\">;</span>\r\n src.supportingPatientInformation<span style=\"color: navy\"><b> -> </b></span>tgt.supportingPatientInformation<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>dateCriterion<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\"> {\r\n</span> src.code<span style=\"color: navy\"><b> -> </b></span>tgt.code<span style=\"color: navy\">;</span>\r\n src.value<span style=\"color: navy\"><b> -> </b></span>tgt.value<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/ImmunizationRecommendation4to3",
"version" : "0.1.0",
"name" : "Recommendation4to3",
"title" : "ImmunizationRecommendation Transforms: R4 to R3",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "ImmunizationRecommendationTransformsR4toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/4.0/ImmunizationRecommendation",
"mode" : "source",
"alias" : "ImmunizationRecommendation"
},
{
"url" : "http://hl7.org/fhir/3.0/ImmunizationRecommendation",
"mode" : "target",
"alias" : "ImmunizationRecommendationR3"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*4to3"
],
"group" : [
{
"name" : "ImmunizationRecommendation",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "ImmunizationRecommendationR3",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "ImmunizationRecommendation",
"mode" : "target"
}
],
"rule" : [
{
"name" : "identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "patient",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "recommendation",
"source" : [
{
"context" : "src",
"element" : "recommendation",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "recommendation",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "recommendation",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
},
{
"valueId" : "src"
}
]
}
]
}
]
},
{
"name" : "recommendation",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
},
{
"name" : "res",
"mode" : "source"
}
],
"rule" : [
{
"name" : "date",
"source" : [
{
"context" : "res",
"element" : "date",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "date",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "vaccineCode",
"source" : [
{
"context" : "src",
"element" : "vaccineCode",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "vaccineCode",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "targetDisease",
"source" : [
{
"context" : "src",
"element" : "targetDisease",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "targetDisease",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "doseNumberPositiveInt",
"source" : [
{
"context" : "src",
"type" : "positiveInt",
"element" : "doseNumber",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "doseNumber",
"variable" : "vt"
}
],
"dependent" : [
{
"name" : "positiveInt",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "forecastStatus",
"source" : [
{
"context" : "src",
"element" : "forecastStatus",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "forecastStatus",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dateCriterion",
"source" : [
{
"context" : "src",
"element" : "dateCriterion",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dateCriterion",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "dateCriterion",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
},
{
"name" : "description",
"source" : [
{
"context" : "src",
"element" : "description",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "protocol",
"variable" : "t"
},
{
"context" : "t",
"element" : "description",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "seriesDosesPositiveInt",
"source" : [
{
"context" : "src",
"type" : "positiveInt",
"element" : "seriesDoses",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "protocol",
"variable" : "t"
},
{
"context" : "t",
"element" : "doseSequence",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "authority",
"source" : [
{
"context" : "res",
"element" : "authority",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "protocol",
"variable" : "t"
},
{
"context" : "t",
"element" : "authority",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "series",
"source" : [
{
"context" : "src",
"element" : "series",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "protocol",
"variable" : "t"
},
{
"context" : "t",
"element" : "series",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "supportingImmunization",
"source" : [
{
"context" : "src",
"element" : "supportingImmunization",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "supportingImmunization",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "supportingPatientInformation",
"source" : [
{
"context" : "src",
"element" : "supportingPatientInformation",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "supportingPatientInformation",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "dateCriterion",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "code",
"source" : [
{
"context" : "src",
"element" : "code",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "code",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}