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" : "EligibilityRequest3to4",
"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/EligibilityRequest3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'EligibilityRequest3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'EligibilityRequest Transforms: R3 to R4'</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/EligibilityRequest<span style=\"color: navy\">" </span><b>alias </b>EligibilityRequestR3 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/CoverageEligibilityRequest<span style=\"color: navy\">" </span><b>alias </b>CoverageEligibilityRequest <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to4<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>EligibilityRequest<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>EligibilityRequestR3, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>CoverageEligibilityRequest<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.status<span style=\"color: navy\"><b> -> </b></span>tgt.status<span style=\"color: navy\">;</span>\r\n src.priority<span style=\"color: navy\"><b> -> </b></span>tgt.priority<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.serviced<span style=\"color: navy\"><b> -> </b></span>tgt.serviced<span style=\"color: navy\">;</span>\r\n src.created<span style=\"color: navy\"><b> -> </b></span>tgt.created<span style=\"color: navy\">;</span>\r\n src.enterer<span style=\"color: navy\"><b> -> </b></span>tgt.enterer<span style=\"color: navy\">;</span>\r\n src.provider<span style=\"color: navy\"><b> -> </b></span>tgt.provider<span style=\"color: navy\">;</span>\r\n src.insurer<span style=\"color: navy\"><b> -> </b></span>tgt.insurer<span style=\"color: navy\">;</span>\r\n src.facility<span style=\"color: navy\"><b> -> </b></span>tgt.facility<span style=\"color: navy\">;</span>\r\n src.coverage<b> as </b><span style=\"color: maroon\">coverage</span><span style=\"color: navy\"><b> -> </b></span>tgt.insurance<b> as </b><span style=\"color: maroon\">insurance</span><b> then</b><span style=\"color: navy\"> {\r\n</span> src<span style=\"color: navy\"><b> -> </b></span> insurance.focal = <span style=\"color: blue\">'true'</span><span style=\"color: navy\">, </span> insurance.coverage = <span style=\"color: maroon\">coverage</span> <i>"focal"</i><span style=\"color: navy\">;</span>\r\n src.businessArrangement<b> as </b><span style=\"color: maroon\">ba</span><span style=\"color: navy\"><b> -> </b></span>insurance.businessArrangement = <span style=\"color: maroon\">ba</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.benefitCategory<b> as </b><span style=\"color: maroon\">bc</span><span style=\"color: navy\"><b> -> </b></span>tgt.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> src<span style=\"color: navy\"><b> -> </b></span>item.category = <span style=\"color: maroon\">bc</span> <i>"category"</i><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></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/EligibilityRequest3to4",
"version" : "0.1.0",
"name" : "EligibilityRequest3to4",
"title" : "EligibilityRequest Transforms: R3 to R4",
"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" : "EligibilityRequestTransformsR3toR4",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/EligibilityRequest",
"mode" : "source",
"alias" : "EligibilityRequestR3"
},
{
"url" : "http://hl7.org/fhir/4.0/CoverageEligibilityRequest",
"mode" : "target",
"alias" : "CoverageEligibilityRequest"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to4"
],
"group" : [
{
"name" : "EligibilityRequest",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "EligibilityRequestR3",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "CoverageEligibilityRequest",
"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" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "priority",
"source" : [
{
"context" : "src",
"element" : "priority",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "priority",
"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" : "serviced",
"source" : [
{
"context" : "src",
"element" : "serviced",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "serviced",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "created",
"source" : [
{
"context" : "src",
"element" : "created",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "created",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "enterer",
"source" : [
{
"context" : "src",
"element" : "enterer",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "enterer",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "provider",
"source" : [
{
"context" : "src",
"element" : "provider",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "provider",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "insurer",
"source" : [
{
"context" : "src",
"element" : "insurer",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "insurer",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "facility",
"source" : [
{
"context" : "src",
"element" : "facility",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "facility",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "coverage",
"source" : [
{
"context" : "src",
"element" : "coverage",
"variable" : "coverage"
}
],
"target" : [
{
"context" : "tgt",
"element" : "insurance",
"variable" : "insurance"
}
],
"rule" : [
{
"name" : "focal",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "insurance",
"element" : "focal",
"transform" : "copy",
"parameter" : [
{
"valueString" : "true"
}
]
},
{
"context" : "insurance",
"element" : "coverage",
"transform" : "copy",
"parameter" : [
{
"valueId" : "coverage"
}
]
}
]
},
{
"name" : "businessArrangement",
"source" : [
{
"context" : "src",
"element" : "businessArrangement",
"variable" : "ba"
}
],
"target" : [
{
"context" : "insurance",
"element" : "businessArrangement",
"transform" : "copy",
"parameter" : [
{
"valueId" : "ba"
}
]
}
]
}
]
},
{
"name" : "benefitCategory",
"source" : [
{
"context" : "src",
"element" : "benefitCategory",
"variable" : "bc"
}
],
"target" : [
{
"context" : "tgt",
"element" : "item",
"variable" : "item"
}
],
"rule" : [
{
"name" : "category",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "item",
"element" : "category",
"transform" : "copy",
"parameter" : [
{
"valueId" : "bc"
}
]
}
]
}
]
}
]
}
]
}