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" : "SubscriptionStatus5to4B",
"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/SubscriptionStatus5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'SubscriptionStatus5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'SubscriptionStatus Transforms: R5 to R4B'</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/5.0/SubscriptionStatus<span style=\"color: navy\">" </span><b>alias </b>SubscriptionStatusR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/SubscriptionStatus<span style=\"color: navy\">" </span><b>alias </b>SubscriptionStatusR4B <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*5to4B<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>SubscriptionStatus<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>SubscriptionStatusR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SubscriptionStatusR4B<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.status = <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/SubscriptionStatus.status-R5toR4'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.type<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.type = <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/SubscriptionStatus.type-R5toR4'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.eventsSinceSubscriptionStart<span style=\"color: navy\"><b> -> </b></span>tgt.eventsSinceSubscriptionStart<span style=\"color: navy\">;</span>\r\n src.notificationEvent<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.notificationEvent<b> as </b><span style=\"color: maroon\">t</span><b> then </b>SubscriptionStatusNotificationEvent<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.subscription<span style=\"color: navy\"><b> -> </b></span>tgt.subscription<span style=\"color: navy\">;</span>\r\n src.topic<span style=\"color: navy\"><b> -> </b></span>tgt.topic<span style=\"color: navy\">;</span>\r\n src.error<span style=\"color: navy\"><b> -> </b></span>tgt.error<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>SubscriptionStatusNotificationEvent<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.eventNumber<span style=\"color: navy\"><b> -> </b></span>tgt.eventNumber<span style=\"color: navy\">;</span>\r\n src.timestamp<span style=\"color: navy\"><b> -> </b></span>tgt.timestamp<span style=\"color: navy\">;</span>\r\n src.focus<span style=\"color: navy\"><b> -> </b></span>tgt.focus<span style=\"color: navy\">;</span>\r\n src.additionalContext<span style=\"color: navy\"><b> -> </b></span>tgt.additionalContext<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/SubscriptionStatus5to4B",
"version" : "0.1.0",
"name" : "SubscriptionStatus5to4B",
"title" : "SubscriptionStatus Transforms: R5 to R4B",
"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" : "SubscriptionStatusTransformsR5toR4B",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/5.0/SubscriptionStatus",
"mode" : "source",
"alias" : "SubscriptionStatusR5"
},
{
"url" : "http://hl7.org/fhir/4.0/SubscriptionStatus",
"mode" : "target",
"alias" : "SubscriptionStatusR4B"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*5to4B"
],
"group" : [
{
"name" : "SubscriptionStatus",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "SubscriptionStatusR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "SubscriptionStatusR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "http://hl7.org/fhir/ConceptMap/SubscriptionStatus.status-R5toR4"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "http://hl7.org/fhir/ConceptMap/SubscriptionStatus.type-R5toR4"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "eventsSinceSubscriptionStart",
"source" : [
{
"context" : "src",
"element" : "eventsSinceSubscriptionStart",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "eventsSinceSubscriptionStart",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "notificationEvent",
"source" : [
{
"context" : "src",
"element" : "notificationEvent",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "notificationEvent",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "SubscriptionStatusNotificationEvent",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
},
{
"name" : "subscription",
"source" : [
{
"context" : "src",
"element" : "subscription",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "subscription",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "topic",
"source" : [
{
"context" : "src",
"element" : "topic",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "topic",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "error",
"source" : [
{
"context" : "src",
"element" : "error",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "error",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "SubscriptionStatusNotificationEvent",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "eventNumber",
"source" : [
{
"context" : "src",
"element" : "eventNumber",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "eventNumber",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "timestamp",
"source" : [
{
"context" : "src",
"element" : "timestamp",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "timestamp",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "focus",
"source" : [
{
"context" : "src",
"element" : "focus",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "focus",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "additionalContext",
"source" : [
{
"context" : "src",
"element" : "additionalContext",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "additionalContext",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}