| Package | hl7.fhir.uv.xver |
| Resource Type | StructureMap |
| Id | Subscription5to4 |
| FHIR Version | R5 |
| Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-Subscription5to4.html |
| URL | http://hl7.org/fhir/StructureMap/Subscription5to4 |
| Version | 0.1.0 |
| Status | active |
| Date | 2024-02-22T03:16:50+00:00 |
| Name | Subscription5to4 |
| Title | Subscription Transforms: R5 to R4 |
| Realm | uv |
| Authority | hl7 |
| Description | SubscriptionTransformsR5toR4 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/Subscription5to4' /// name = 'Subscription5to4' /// title = 'Subscription Transforms: R5 to R4' /// status = 'active' uses "http://hl7.org/fhir/5.0/Subscription" alias SubscriptionR5 as source uses "http://hl7.org/fhir/4.0/Subscription" alias SubscriptionR4 as target imports "http://hl7.org/fhir/StructureMap/*5to4" group Subscription(source src : SubscriptionR5, target tgt : SubscriptionR4) extends DomainResource <<type+>> { src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Subscription.status-R5toR4', 'code'); src.contact -> tgt.contact; src.end -> tgt.end; src.reason -> tgt.reason; src -> tgt.channel as t then { src.channelType as s -> tgt then { s.code -> t.type; } "type"; src.endpoint -> t.endpoint; src.contentType -> t.payload; src.parameter as p -> t.header = (%p.name + ': ' + %p.value); } "channel"; }
{
"resourceType": "StructureMap",
"id": "Subscription5to4",
"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/Subscription5to4",
"version": "0.1.0",
"name": "Subscription5to4",
"title": "Subscription Transforms: R5 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": "SubscriptionTransformsR5toR4",
"jurisdiction": [
{
"coding": [
{
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code": "001"
}
]
}
],
"structure": [
{
"url": "http://hl7.org/fhir/5.0/Subscription",
"mode": "source",
"alias": "SubscriptionR5"
},
{
"url": "http://hl7.org/fhir/4.0/Subscription",
"mode": "target",
"alias": "SubscriptionR4"
}
],
"import": [
"http://hl7.org/fhir/StructureMap/*5to4"
],
"group": [
{
"name": "Subscription",
"extends": "DomainResource",
"typeMode": "type-and-types",
"input": [
{
"name": "src",
"type": "SubscriptionR5",
"mode": "source"
},
{
"name": "tgt",
"type": "SubscriptionR4",
"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/Subscription.status-R5toR4"
},
{
"valueString": "code"
}
]
}
]
},
{
"name": "contact",
"source": [
{
"context": "src",
"element": "contact",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "contact",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "end",
"source": [
{
"context": "src",
"element": "end",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "end",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "reason",
"source": [
{
"context": "src",
"element": "reason",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "reason",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "channel",
"source": [
{
"context": "src"
}
],
"target": [
{
"context": "tgt",
"element": "channel",
"variable": "t"
}
],
"rule": [
{
"name": "type",
"source": [
{
"context": "src",
"element": "channelType",
"variable": "s"
}
],
"target": [
{
"transform": "copy",
"parameter": [
{
"valueId": "tgt"
}
]
}
],
"rule": [
{
"name": "code",
"source": [
{
"context": "s",
"element": "code",
"variable": "vvv"
}
],
"target": [
{
"context": "t",
"element": "type",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
}
]
},
{
"name": "endpoint",
"source": [
{
"context": "src",
"element": "endpoint",
"variable": "vvv"
}
],
"target": [
{
"context": "t",
"element": "endpoint",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "contentType",
"source": [
{
"context": "src",
"element": "contentType",
"variable": "vvv"
}
],
"target": [
{
"context": "t",
"element": "payload",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "parameter",
"source": [
{
"context": "src",
"element": "parameter",
"variable": "p"
}
],
"target": [
{
"context": "t",
"element": "header",
"transform": "evaluate",
"parameter": [
{
"valueString": "%p.name + ': ' + %p.value"
}
]
}
]
}
]
}
]
}
]
}