| Package | hl7.fhir.uv.xver |
| Resource Type | StructureMap |
| Id | Timing3to2 |
| FHIR Version | R5 |
| Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-Timing3to2.html |
| URL | http://hl7.org/fhir/StructureMap/Timing3to2 |
| Version | 0.1.0 |
| Status | active |
| Date | 2024-02-22T03:16:50+00:00 |
| Name | Timing3to2 |
| Title | Timing Transforms: R3 to R2 |
| Realm | uv |
| Authority | hl7 |
| Description | TimingTransformsR3toR2 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/Timing3to2' /// name = 'Timing3to2' /// title = 'Timing Transforms: R3 to R2' /// status = 'active' uses "http://hl7.org/fhir/3.0/Timing" alias Timing as source uses "http://hl7.org/fhir/1.0/Timing" alias TimingR2 as target imports "http://hl7.org/fhir/StructureMap/primitives3to2" imports "http://hl7.org/fhir/StructureMap/Element3to2" imports "http://hl7.org/fhir/StructureMap/Period3to2" imports "http://hl7.org/fhir/StructureMap/Range3to2" imports "http://hl7.org/fhir/StructureMap/CodeableConcept3to2" group Timing(source src : Timing, target tgt : TimingR2) 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.durationUnit -> vt0.durationUnits "repeat-durationUnits"; 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.periodUnit -> vt0.periodUnits "repeat-periodUnits"; vs0.when as v -> vt0.when = translate(v, '#EventTiming', 'code') "repeat-when"; } "Timing-repeat"; src.code -> tgt.code "Timing-code"; }
{
"resourceType": "StructureMap",
"id": "Timing3to2",
"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/Timing3to2",
"version": "0.1.0",
"name": "Timing3to2",
"title": "Timing Transforms: R3 to R2",
"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": "TimingTransformsR3toR2",
"jurisdiction": [
{
"coding": [
{
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code": "001"
}
]
}
],
"structure": [
{
"url": "http://hl7.org/fhir/3.0/Timing",
"mode": "source",
"alias": "Timing"
},
{
"url": "http://hl7.org/fhir/1.0/Timing",
"mode": "target",
"alias": "TimingR2"
}
],
"import": [
"http://hl7.org/fhir/StructureMap/primitives3to2",
"http://hl7.org/fhir/StructureMap/Element3to2",
"http://hl7.org/fhir/StructureMap/Period3to2",
"http://hl7.org/fhir/StructureMap/Range3to2",
"http://hl7.org/fhir/StructureMap/CodeableConcept3to2"
],
"group": [
{
"name": "Timing",
"extends": "Element",
"typeMode": "type-and-types",
"input": [
{
"name": "src",
"type": "Timing",
"mode": "source"
},
{
"name": "tgt",
"type": "TimingR2",
"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-durationUnits",
"source": [
{
"context": "vs0",
"element": "durationUnit",
"variable": "vvv"
}
],
"target": [
{
"context": "vt0",
"element": "durationUnits",
"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-periodUnits",
"source": [
{
"context": "vs0",
"element": "periodUnit",
"variable": "vvv"
}
],
"target": [
{
"context": "vt0",
"element": "periodUnits",
"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"
}
]
}
]
}
]
}
]
}