| Package | hl7.fhir.uv.xver |
| Resource Type | StructureMap |
| Id | SupplyDelivery3to2 |
| FHIR Version | R5 |
| Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-SupplyDelivery3to2.html |
| URL | http://hl7.org/fhir/StructureMap/SupplyDelivery3to2 |
| Version | 0.1.0 |
| Status | active |
| Date | 2024-02-22T03:16:50+00:00 |
| Name | SupplyDelivery3to2 |
| Title | SupplyD3 to R2elivery Transforms: R |
| Realm | uv |
| Authority | hl7 |
| Description | SupplyD3toR2eliveryTransformsR |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/SupplyDelivery3to2' /// name = 'SupplyDelivery3to2' /// title = 'SupplyD3 to R2elivery Transforms: R' /// status = 'active' uses "http://hl7.org/fhir/3.0/SupplyDelivery" alias SupplyDelivery as source uses "http://hl7.org/fhir/1.0/SupplyDelivery" alias SupplyDeliveryR2 as target imports "http://hl7.org/fhir/StructureMap/*3to2" group SupplyDelivery(source src : SupplyDelivery, target tgt : SupplyDeliveryR2) extends DomainResource <<type+>> { src.identifier -> tgt.identifier "SupplyDelivery-identifier"; src.status -> tgt.status "SupplyDelivery-status"; src.patient -> tgt.patient "SupplyDelivery-patient"; src.type -> tgt.type "SupplyDelivery-type"; src.suppliedItem as v then sdvItem(v, tgt) "SupplyDelivery-suppliedItem"; src.supplier -> tgt.supplier "SupplyDelivery-supplier"; src.extension as e where e.url = 'http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared' -> tgt.whenPrepared = (e.value) "SupplyDelivery-whenPrepared"; src.occurrence as v where v.is(dateTime) -> tgt.time = v "SupplyDelivery-time"; src.destination -> tgt.destination "SupplyDelivery-destination"; src.receiver -> tgt.receiver "SupplyDelivery-receiver"; } group sdvItem(source src, target tgt) extends BackboneElement { src.quantity -> tgt.quantity "item-quantity"; src.item -> tgt.suppliedItem "item-quantity"; }
{
"resourceType": "StructureMap",
"id": "SupplyDelivery3to2",
"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/SupplyDelivery3to2",
"version": "0.1.0",
"name": "SupplyDelivery3to2",
"title": "SupplyD3 to R2elivery Transforms: R",
"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": "SupplyD3toR2eliveryTransformsR",
"jurisdiction": [
{
"coding": [
{
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code": "001"
}
]
}
],
"structure": [
{
"url": "http://hl7.org/fhir/3.0/SupplyDelivery",
"mode": "source",
"alias": "SupplyDelivery"
},
{
"url": "http://hl7.org/fhir/1.0/SupplyDelivery",
"mode": "target",
"alias": "SupplyDeliveryR2"
}
],
"import": [
"http://hl7.org/fhir/StructureMap/*3to2"
],
"group": [
{
"name": "SupplyDelivery",
"extends": "DomainResource",
"typeMode": "type-and-types",
"input": [
{
"name": "src",
"type": "SupplyDelivery",
"mode": "source"
},
{
"name": "tgt",
"type": "SupplyDeliveryR2",
"mode": "target"
}
],
"rule": [
{
"name": "SupplyDelivery-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": "SupplyDelivery-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": "SupplyDelivery-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": "SupplyDelivery-type",
"source": [
{
"context": "src",
"element": "type",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "type",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "SupplyDelivery-suppliedItem",
"source": [
{
"context": "src",
"element": "suppliedItem",
"variable": "v"
}
],
"dependent": [
{
"name": "sdvItem",
"parameter": [
{
"valueId": "v"
},
{
"valueId": "tgt"
}
]
}
]
},
{
"name": "SupplyDelivery-supplier",
"source": [
{
"context": "src",
"element": "supplier",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "supplier",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "SupplyDelivery-whenPrepared",
"source": [
{
"context": "src",
"element": "extension",
"variable": "e",
"condition": "e.url = 'http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared'"
}
],
"target": [
{
"context": "tgt",
"element": "whenPrepared",
"transform": "evaluate",
"parameter": [
{
"valueString": "e.value"
}
]
}
]
},
{
"name": "SupplyDelivery-time",
"source": [
{
"context": "src",
"element": "occurrence",
"variable": "v",
"condition": "v.is(dateTime)"
}
],
"target": [
{
"context": "tgt",
"element": "time",
"transform": "copy",
"parameter": [
{
"valueId": "v"
}
]
}
]
},
{
"name": "SupplyDelivery-destination",
"source": [
{
"context": "src",
"element": "destination",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "destination",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "SupplyDelivery-receiver",
"source": [
{
"context": "src",
"element": "receiver",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "receiver",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
}
]
},
{
"name": "sdvItem",
"extends": "BackboneElement",
"input": [
{
"name": "src",
"mode": "source"
},
{
"name": "tgt",
"mode": "target"
}
],
"rule": [
{
"name": "item-quantity",
"source": [
{
"context": "src",
"element": "quantity",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "quantity",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
},
{
"name": "item-quantity",
"source": [
{
"context": "src",
"element": "item",
"variable": "vvv"
}
],
"target": [
{
"context": "tgt",
"element": "suppliedItem",
"variable": "vvv",
"transform": "create"
}
],
"dependent": [
{
"name": "DefaultMappingGroupAnonymousAlias",
"parameter": [
{
"valueId": "vvv"
},
{
"valueId": "vvv"
}
]
}
]
}
]
}
]
}