Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Timing2to3 |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-Timing2to3.html |
URL | http://hl7.org/fhir/StructureMap/Timing2to3 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | Timing2to3 |
Title | Timing Transforms: R2 to R3 |
Realm | uv |
Authority | hl7 |
Description | TimingTransformsR2toR3 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/Timing2to3' /// name = 'Timing2to3' /// title = 'Timing Transforms: R2 to R3' /// status = 'active' uses "http://hl7.org/fhir/1.0/Timing" alias TimingR2 as source uses "http://hl7.org/fhir/3.0/Timing" alias Timing as target imports "http://hl7.org/fhir/StructureMap/primitives2to3" imports "http://hl7.org/fhir/StructureMap/Element2to3" imports "http://hl7.org/fhir/StructureMap/Period2to3" imports "http://hl7.org/fhir/StructureMap/Range2to3" imports "http://hl7.org/fhir/StructureMap/CodeableConcept2to3" group Timing(source src : TimingR2, target tgt : Timing) extends Element <<type+>> { src.event -> tgt.event "Timing-event"; src.repeat as vs0 -> tgt.repeat as vt0 then { vs0.bounds : Range as vs -> vt0.bounds = create('Range') as vt then Range(vs, vt) "repeat-bounds-Range"; vs0.bounds : Period as vs -> vt0.bounds = create('Period') as vt then Period(vs, vt) "repeat-bounds-Period"; vs0.count -> vt0.count "repeat-count"; vs0.duration -> vt0.duration "repeat-duration"; vs0.durationMax -> vt0.durationMax "repeat-durationMax"; vs0.durationUnits -> vt0.durationUnit "repeat-durationUnit"; vs0.frequency -> vt0.frequency "repeat-frequency"; vs0.frequencyMax -> vt0.frequencyMax "repeat-frequencyMax"; vs0.period -> vt0.period "repeat-period"; vs0.periodMax -> vt0.periodMax "repeat-periodMax"; vs0.periodUnits -> vt0.periodUnit "repeat-periodUnit"; vs0.when as v -> vt0.when = translate(v, '#EventTiming', 'code') "repeat-when"; } "Timing-repeat"; src.code -> tgt.code "Timing-code"; }
{ "resourceType": "StructureMap", "id": "Timing2to3", "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/Timing2to3", "version": "0.1.0", "name": "Timing2to3", "title": "Timing Transforms: R2 to R3", "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": "TimingTransformsR2toR3", "jurisdiction": [ { "coding": [ { "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "code": "001" } ] } ], "structure": [ { "url": "http://hl7.org/fhir/1.0/Timing", "mode": "source", "alias": "TimingR2" }, { "url": "http://hl7.org/fhir/3.0/Timing", "mode": "target", "alias": "Timing" } ], "import": [ "http://hl7.org/fhir/StructureMap/primitives2to3", "http://hl7.org/fhir/StructureMap/Element2to3", "http://hl7.org/fhir/StructureMap/Period2to3", "http://hl7.org/fhir/StructureMap/Range2to3", "http://hl7.org/fhir/StructureMap/CodeableConcept2to3" ], "group": [ { "name": "Timing", "extends": "Element", "typeMode": "type-and-types", "input": [ { "name": "src", "type": "TimingR2", "mode": "source" }, { "name": "tgt", "type": "Timing", "mode": "target" } ], "rule": [ { "name": "Timing-event", "source": [ { "context": "src", "element": "event", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "event", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "Timing-repeat", "source": [ { "context": "src", "element": "repeat", "variable": "vs0" } ], "target": [ { "context": "tgt", "element": "repeat", "variable": "vt0" } ], "rule": [ { "name": "repeat-bounds-Range", "source": [ { "context": "vs0", "type": "Range", "element": "bounds", "variable": "vs" } ], "target": [ { "context": "vt0", "element": "bounds", "variable": "vt", "transform": "create", "parameter": [ { "valueString": "Range" } ] } ], "dependent": [ { "name": "Range", "parameter": [ { "valueId": "vs" }, { "valueId": "vt" } ] } ] }, { "name": "repeat-bounds-Period", "source": [ { "context": "vs0", "type": "Period", "element": "bounds", "variable": "vs" } ], "target": [ { "context": "vt0", "element": "bounds", "variable": "vt", "transform": "create", "parameter": [ { "valueString": "Period" } ] } ], "dependent": [ { "name": "Period", "parameter": [ { "valueId": "vs" }, { "valueId": "vt" } ] } ] }, { "name": "repeat-count", "source": [ { "context": "vs0", "element": "count", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "count", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-duration", "source": [ { "context": "vs0", "element": "duration", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "duration", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-durationMax", "source": [ { "context": "vs0", "element": "durationMax", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "durationMax", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-durationUnit", "source": [ { "context": "vs0", "element": "durationUnits", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "durationUnit", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-frequency", "source": [ { "context": "vs0", "element": "frequency", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "frequency", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-frequencyMax", "source": [ { "context": "vs0", "element": "frequencyMax", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "frequencyMax", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-period", "source": [ { "context": "vs0", "element": "period", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "period", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-periodMax", "source": [ { "context": "vs0", "element": "periodMax", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "periodMax", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-periodUnit", "source": [ { "context": "vs0", "element": "periodUnits", "variable": "vvv" } ], "target": [ { "context": "vt0", "element": "periodUnit", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "repeat-when", "source": [ { "context": "vs0", "element": "when", "variable": "v" } ], "target": [ { "context": "vt0", "element": "when", "transform": "translate", "parameter": [ { "valueId": "v" }, { "valueString": "#EventTiming" }, { "valueString": "code" } ] } ] } ] }, { "name": "Timing-code", "source": [ { "context": "src", "element": "code", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "code", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] } ] } ] }