This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "SubscriptionStatus4Bto5",
"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/SubscriptionStatus4Bto5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'SubscriptionStatus4Bto5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for SubscriptionStatus: R4B to R5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>conceptmap</b><span style=\"color: navy\"> "</span>SubscriptionNotificationType<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4B/codesystem-subscription-notification-type.html\" title=\"SubscriptionNotificationType\">http://hl7.org/fhir/4.3/subscription-notification-type</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-subscription-notification-type.html\" title=\"Subscription Notification Type\">http://hl7.org/fhir/subscription-notification-type</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>handshake <b>-</b> t<span style=\"color: navy\">:</span>handshake\r\n s<span style=\"color: navy\">:</span>heartbeat <b>-</b> t<span style=\"color: navy\">:</span>heartbeat\r\n s<span style=\"color: navy\">:</span>"event-notification" <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">"</span>event-notification<span style=\"color: navy\">"</span>\r\n s<span style=\"color: navy\">:</span>"query-status" <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">"</span>query-status<span style=\"color: navy\">"</span>\r\n s<span style=\"color: navy\">:</span>"query-event" <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">"</span>query-event<span style=\"color: navy\">"</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> "</span>SubscriptionStatus<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4B/codesystem-subscription-status.html\" title=\"SubscriptionStatus\">http://hl7.org/fhir/4.3/subscription-status</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-subscription-status.html\" title=\"Subscription Status\">http://hl7.org/fhir/subscription-status</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>requested <b>-</b> t<span style=\"color: navy\">:</span>requested\r\n s<span style=\"color: navy\">:</span>active <b>-</b> t<span style=\"color: navy\">:</span>active\r\n s<span style=\"color: navy\">:</span>error <b>-</b> t<span style=\"color: navy\">:</span>error\r\n s<span style=\"color: navy\">:</span>off <b>-</b> t<span style=\"color: navy\">:</span>off\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/subscriptionstatus.html\" title=\"SubscriptionStatus\">http://hl7.org/fhir/4.3/StructureDefinition/SubscriptionStatus</a><span style=\"color: navy\">" </span><b>alias </b>SubscriptionStatusR4B <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/subscriptionstatus.html\" title=\"SubscriptionStatus\">http://hl7.org/fhir/StructureDefinition/SubscriptionStatus</a><span style=\"color: navy\">" </span><b>alias </b>SubscriptionStatusR5 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*4Bto5<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>SubscriptionStatusR4B, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SubscriptionStatusR5<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\">'#SubscriptionStatus'</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\">'#SubscriptionNotificationType'</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\"> : </span>string<b> as </b><span style=\"color: maroon\">s</span><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\"> : </span>string<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>"
},
"contained" : [
{
"resourceType" : "ConceptMap",
"id" : "SubscriptionNotificationType",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/4.3/subscription-notification-type",
"target" : "http://hl7.org/fhir/subscription-notification-type",
"element" : [
{
"code" : "handshake",
"target" : [
{
"code" : "handshake",
"relationship" : "related-to"
}
]
},
{
"code" : "heartbeat",
"target" : [
{
"code" : "heartbeat",
"relationship" : "related-to"
}
]
},
{
"code" : "event-notification",
"target" : [
{
"code" : "event-notification",
"relationship" : "related-to"
}
]
},
{
"code" : "query-status",
"target" : [
{
"code" : "query-status",
"relationship" : "related-to"
}
]
},
{
"code" : "query-event",
"target" : [
{
"code" : "query-event",
"relationship" : "related-to"
}
]
}
]
}
]
},
{
"resourceType" : "ConceptMap",
"id" : "SubscriptionStatus",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/4.3/subscription-status",
"target" : "http://hl7.org/fhir/subscription-status",
"element" : [
{
"code" : "requested",
"target" : [
{
"code" : "requested",
"relationship" : "related-to"
}
]
},
{
"code" : "active",
"target" : [
{
"code" : "active",
"relationship" : "related-to"
}
]
},
{
"code" : "error",
"target" : [
{
"code" : "error",
"relationship" : "related-to"
}
]
},
{
"code" : "off",
"target" : [
{
"code" : "off",
"relationship" : "related-to",
"comment" : "s:\"entered-in-error\" - t:\"entered-in-error\""
}
]
}
]
}
]
}
],
"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.extensions"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "trial-use",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/SubscriptionStatus4Bto5",
"version" : "5.1.0",
"name" : "SubscriptionStatus4Bto5",
"title" : "FML Conversion for SubscriptionStatus: R4B to R5",
"status" : "active",
"date" : "2024-04-27T18:54:50+10:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "FMLConversionforSubscriptionStatusR4BtoR5",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/SubscriptionStatus",
"mode" : "source",
"alias" : "SubscriptionStatusR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/SubscriptionStatus",
"mode" : "target",
"alias" : "SubscriptionStatusR5"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*4Bto5"
],
"group" : [
{
"name" : "SubscriptionStatus",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "SubscriptionStatusR4B",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "SubscriptionStatusR5",
"mode" : "target"
}
],
"rule" : [
{
"name" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#SubscriptionStatus"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#SubscriptionNotificationType"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "eventsSinceSubscriptionStartString",
"source" : [
{
"context" : "src",
"type" : "string",
"element" : "eventsSinceSubscriptionStart",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "eventsSinceSubscriptionStart"
}
]
},
{
"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" : "eventNumberString",
"source" : [
{
"context" : "src",
"type" : "string",
"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"
}
]
}
]
}
]
}
]
}