Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | SubscriptionStatus4Bto5 |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-SubscriptionStatus4Bto5.html |
URL | http://hl7.org/fhir/StructureMap/SubscriptionStatus4Bto5 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | SubscriptionStatus4Bto5 |
Title | SubscriptionStatus Transforms: R4B to R5 |
Realm | uv |
Authority | hl7 |
Description | SubscriptionStatusTransformsR4BtoR5 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/SubscriptionStatus4Bto5' /// name = 'SubscriptionStatus4Bto5' /// title = 'SubscriptionStatus Transforms: R4B to R5' /// status = 'active' uses "http://hl7.org/fhir/4.3/SubscriptionStatus" alias SubscriptionStatusR4B as source uses "http://hl7.org/fhir/5.0/SubscriptionStatus" alias SubscriptionStatusR5 as target imports "http://hl7.org/fhir/StructureMap/*4Bto5" group SubscriptionStatus(source src : SubscriptionStatusR4B, target tgt : SubscriptionStatusR5) extends DomainResource <<type+>> { src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/SubscriptionStatusB.status-R4BtoR5', 'code'); src.type as v -> tgt.type = translate(v, 'http://hl7.org/fhir/ConceptMap/SubscriptionStatusB.type-R4BtoR5', 'code'); src.eventsSinceSubscriptionStart : string as s -> tgt.eventsSinceSubscriptionStart; src.notificationEvent as s -> tgt.notificationEvent as t then SubscriptionStatusNotificationEvent(s, t); src.subscription -> tgt.subscription; src.topic -> tgt.topic; src.error -> tgt.error; } group SubscriptionStatusNotificationEvent(source src, target tgt) extends BackboneElement { src.eventNumber : string -> tgt.eventNumber; src.timestamp -> tgt.timestamp; src.focus -> tgt.focus; src.additionalContext -> tgt.additionalContext; }
{ "resourceType": "StructureMap", "id": "SubscriptionStatus4Bto5", "text": { "status": "generated", "div": "<!-- snip (see above) -->" }, "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/SubscriptionStatus4Bto5", "version": "0.1.0", "name": "SubscriptionStatus4Bto5", "title": "SubscriptionStatus Transforms: R4B to R5", "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": "SubscriptionStatusTransformsR4BtoR5", "jurisdiction": [ { "coding": [ { "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "code": "001" } ] } ], "structure": [ { "url": "http://hl7.org/fhir/4.3/SubscriptionStatus", "mode": "source", "alias": "SubscriptionStatusR4B" }, { "url": "http://hl7.org/fhir/5.0/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": "http://hl7.org/fhir/ConceptMap/SubscriptionStatusB.status-R4BtoR5" }, { "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/SubscriptionStatusB.type-R4BtoR5" }, { "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" } ] } ] } ] } ] }