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" : "RiskAssessment3to2",
"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/RiskAssessment3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'RiskAssessment3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'RiskAssessment Transforms: R3 to R2'</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/3.0/RiskAssessment<span style=\"color: navy\">" </span><b>alias </b>RiskAssessment <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/RiskAssessment<span style=\"color: navy\">" </span><b>alias </b>RiskAssessmentR2 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to2<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>RiskAssessment<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>RiskAssessment, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>RiskAssessmentR2<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.subject<span style=\"color: navy\"><b> -> </b></span>tgt.subject <i>"RiskAssessment-subject"</i><span style=\"color: navy\">;</span>\r\n src.occurrence<b> where </b>$this is dateTime<span style=\"color: navy\"><b> -> </b></span>tgt.date <i>"RiskAssessment-date"</i><span style=\"color: navy\">;</span>\r\n src.condition<span style=\"color: navy\"><b> -> </b></span>tgt.condition <i>"RiskAssessment-condition"</i><span style=\"color: navy\">;</span>\r\n src.context<span style=\"color: navy\"><b> -> </b></span>tgt.encounter <i>"RiskAssessment-encounter"</i><span style=\"color: navy\">;</span>\r\n src.performer<span style=\"color: navy\"><b> -> </b></span>tgt.performer <i>"RiskAssessment-performer"</i><span style=\"color: navy\">;</span>\r\n src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier <i>"RiskAssessment-identifier"</i><span style=\"color: navy\">;</span>\r\n src.method<span style=\"color: navy\"><b> -> </b></span>tgt.method <i>"RiskAssessment-method"</i><span style=\"color: navy\">;</span>\r\n src.basis<span style=\"color: navy\"><b> -> </b></span>tgt.basis <i>"RiskAssessment-basis"</i><span style=\"color: navy\">;</span>\r\n src.prediction<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.prediction<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>rskPrediction<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>"RiskAssessment-prediction"</i><span style=\"color: navy\">;</span>\r\n src.mitigation<span style=\"color: navy\"><b> -> </b></span>tgt.mitigation <i>"RiskAssessment-mitigation"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>rskPrediction<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.outcome<span style=\"color: navy\"><b> -> </b></span>tgt.outcome <i>"prediction-outcome"</i><span style=\"color: navy\">;</span>\r\n src.probability<span style=\"color: navy\"><b> -> </b></span>tgt.probability <i>"prediction-probability"</i><span style=\"color: navy\">;</span>\r\n src.relativeRisk<span style=\"color: navy\"><b> -> </b></span>tgt.relativeRisk <i>"prediction-relativeRisk"</i><span style=\"color: navy\">;</span>\r\n src.when<span style=\"color: navy\"><b> -> </b></span>tgt.when <i>"prediction-when"</i><span style=\"color: navy\">;</span>\r\n src.rationale<span style=\"color: navy\"><b> -> </b></span>tgt.rationale <i>"prediction-rationale"</i><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/RiskAssessment3to2",
"version" : "0.1.0",
"name" : "RiskAssessment3to2",
"title" : "RiskAssessment Transforms: R3 to R2",
"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" : "RiskAssessmentTransformsR3toR2",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/RiskAssessment",
"mode" : "source",
"alias" : "RiskAssessment"
},
{
"url" : "http://hl7.org/fhir/1.0/RiskAssessment",
"mode" : "target",
"alias" : "RiskAssessmentR2"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to2"
],
"group" : [
{
"name" : "RiskAssessment",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "RiskAssessment",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "RiskAssessmentR2",
"mode" : "target"
}
],
"rule" : [
{
"name" : "RiskAssessment-subject",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "subject",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "RiskAssessment-date",
"source" : [
{
"context" : "src",
"element" : "occurrence",
"variable" : "vvv",
"condition" : "$this is dateTime"
}
],
"target" : [
{
"context" : "tgt",
"element" : "date",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "RiskAssessment-condition",
"source" : [
{
"context" : "src",
"element" : "condition",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "condition",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "RiskAssessment-encounter",
"source" : [
{
"context" : "src",
"element" : "context",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "encounter",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "RiskAssessment-performer",
"source" : [
{
"context" : "src",
"element" : "performer",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "performer",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "RiskAssessment-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" : "RiskAssessment-method",
"source" : [
{
"context" : "src",
"element" : "method",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "method",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "RiskAssessment-basis",
"source" : [
{
"context" : "src",
"element" : "basis",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "basis",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "RiskAssessment-prediction",
"source" : [
{
"context" : "src",
"element" : "prediction",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "prediction",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "rskPrediction",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "RiskAssessment-mitigation",
"source" : [
{
"context" : "src",
"element" : "mitigation",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "mitigation",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "rskPrediction",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "prediction-outcome",
"source" : [
{
"context" : "src",
"element" : "outcome",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "outcome",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "prediction-probability",
"source" : [
{
"context" : "src",
"element" : "probability",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "probability",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "prediction-relativeRisk",
"source" : [
{
"context" : "src",
"element" : "relativeRisk",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "relativeRisk",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "prediction-when",
"source" : [
{
"context" : "src",
"element" : "when",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "when",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "prediction-rationale",
"source" : [
{
"context" : "src",
"element" : "rationale",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "rationale",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}