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" : "Condition3to2",
"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/Condition3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Condition3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Condition 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/Condition<span style=\"color: navy\">" </span><b>alias </b>Condition <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/Condition<span style=\"color: navy\">" </span><b>alias </b>ConditionR2 <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>Condition<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Condition, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>ConditionR2<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 <i>"Condition-identifier"</i><span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -> </b></span>tgt.patient <i>"Condition-patient"</i><span style=\"color: navy\">;</span>\r\n src.context<span style=\"color: navy\"><b> -> </b></span>tgt.encounter <i>"Condition-encounter"</i><span style=\"color: navy\">;</span>\r\n src.asserter<span style=\"color: navy\"><b> -> </b></span>tgt.asserter <i>"Condition-asserter"</i><span style=\"color: navy\">;</span>\r\n src.assertedDate<span style=\"color: navy\"><b> -> </b></span>tgt.dateRecorded <i>"Condition-dateRecorded"</i><span style=\"color: navy\">;</span>\r\n src.code<span style=\"color: navy\"><b> -> </b></span>tgt.code <i>"Condition-code"</i><span style=\"color: navy\">;</span>\r\n src.category<span style=\"color: navy\"><b> -> </b></span>tgt.category <i>"Condition-category"</i><span style=\"color: navy\">;</span>\r\n src.clinicalStatus<b> as </b><span style=\"color: maroon\">v</span><b> check </b>$this != 'inactive'<span style=\"color: navy\"><b> -> </b></span>tgt.clinicalStatus = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/ConceptMap/Condition.clinicalStatus-R3toR2'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>"Condition-clinicalStatus"</i><span style=\"color: navy\">;</span>\r\n src.verificationStatus<span style=\"color: navy\"><b> -> </b></span>tgt.verificationStatus <i>"Condition-verificationStatus"</i><span style=\"color: navy\">;</span>\r\n src.severity<span style=\"color: navy\"><b> -> </b></span>tgt.severity <i>"Condition-severity"</i><span style=\"color: navy\">;</span>\r\n src.onset<span style=\"color: navy\"><b> -> </b></span>tgt.onset <i>"Condition-onset"</i><span style=\"color: navy\">;</span>\r\n src.abatement<span style=\"color: navy\"><b> -> </b></span>tgt.abatement <i>"Condition-abatement"</i><span style=\"color: navy\">;</span>\r\n src.stage<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.stage<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>cndStage<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>"Condition-stage"</i><span style=\"color: navy\">;</span>\r\n src.evidence<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.evidence<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>cndEvidence<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>"Condition-evidence"</i><span style=\"color: navy\">;</span>\r\n src.bodySite<span style=\"color: navy\"><b> -> </b></span>tgt.bodySite <i>"Condition-bodySite"</i><span style=\"color: navy\">;</span>\r\n src.note<b> as </b><span style=\"color: maroon\">n</span><b> then</b><span style=\"color: navy\"> {\r\n</span> n.text<span style=\"color: navy\"><b> -> </b></span>tgt.notes <i>"notes-text"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"Condition-note"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>cndStage<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ConditionR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Condition<span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.summary<span style=\"color: navy\"><b> -> </b></span>tgt.summary <i>"stage-summary"</i><span style=\"color: navy\">;</span>\r\n src.assessment<span style=\"color: navy\"><b> -> </b></span>tgt.assessment <i>"stage-assessment"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>cndEvidence<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ConditionR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Condition<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 <i>"evidence-code"</i><span style=\"color: navy\">;</span>\r\n src.detail<span style=\"color: navy\"><b> -> </b></span>tgt.detail <i>"evidence-detail"</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/Condition3to2",
"version" : "0.1.0",
"name" : "Condition3to2",
"title" : "Condition 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" : "ConditionTransformsR3toR2",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/Condition",
"mode" : "source",
"alias" : "Condition"
},
{
"url" : "http://hl7.org/fhir/1.0/Condition",
"mode" : "target",
"alias" : "ConditionR2"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to2"
],
"group" : [
{
"name" : "Condition",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "Condition",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "ConditionR2",
"mode" : "target"
}
],
"rule" : [
{
"name" : "Condition-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" : "Condition-patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-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" : "Condition-asserter",
"source" : [
{
"context" : "src",
"element" : "asserter",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "asserter",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-dateRecorded",
"source" : [
{
"context" : "src",
"element" : "assertedDate",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dateRecorded",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-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" : "Condition-category",
"source" : [
{
"context" : "src",
"element" : "category",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "category",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-clinicalStatus",
"source" : [
{
"context" : "src",
"element" : "clinicalStatus",
"variable" : "v",
"check" : "$this != 'inactive'"
}
],
"target" : [
{
"context" : "tgt",
"element" : "clinicalStatus",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "http://hl7.org/fhir/ConceptMap/Condition.clinicalStatus-R3toR2"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "Condition-verificationStatus",
"source" : [
{
"context" : "src",
"element" : "verificationStatus",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "verificationStatus",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-severity",
"source" : [
{
"context" : "src",
"element" : "severity",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "severity",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-onset",
"source" : [
{
"context" : "src",
"element" : "onset",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "onset",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-abatement",
"source" : [
{
"context" : "src",
"element" : "abatement",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "abatement",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-stage",
"source" : [
{
"context" : "src",
"element" : "stage",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "stage",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "cndStage",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "Condition-evidence",
"source" : [
{
"context" : "src",
"element" : "evidence",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "evidence",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "cndEvidence",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "Condition-bodySite",
"source" : [
{
"context" : "src",
"element" : "bodySite",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "bodySite",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Condition-note",
"source" : [
{
"context" : "src",
"element" : "note",
"variable" : "n"
}
],
"rule" : [
{
"name" : "notes-text",
"source" : [
{
"context" : "n",
"element" : "text",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "notes",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
},
{
"name" : "cndStage",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"type" : "ConditionR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "Condition",
"mode" : "target"
}
],
"rule" : [
{
"name" : "stage-summary",
"source" : [
{
"context" : "src",
"element" : "summary",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "summary",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "stage-assessment",
"source" : [
{
"context" : "src",
"element" : "assessment",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "assessment",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "cndEvidence",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"type" : "ConditionR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "Condition",
"mode" : "target"
}
],
"rule" : [
{
"name" : "evidence-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" : "evidence-detail",
"source" : [
{
"context" : "src",
"element" : "detail",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "detail",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}