FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Page standards status: Draft | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "Timing3to4",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/Timing3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Timing3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Timing Transforms: R3 to R4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/Timing<span style=\"color: navy\">" </span><b>alias </b>TimingR3 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/Timing<span style=\"color: navy\">" </span><b>alias </b>Timing <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to4<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>Timing<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>TimingR3, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Timing<span style=\"color: navy\">)</span><b> extends </b>BackboneElement<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.event<span style=\"color: navy\"><b> -> </b></span>tgt.event<span style=\"color: navy\">;</span>\r\n src.repeat<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.repeat<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>repeat<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.code<span style=\"color: navy\"><b> -> </b></span>tgt.code<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>repeat<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>Element<span style=\"color: navy\"> {\r\n</span> src.bounds<span style=\"color: navy\"> : </span>Duration<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.bounds = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Duration'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Duration<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.bounds<span style=\"color: navy\"> : </span>Range<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.bounds = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Range'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Range<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.bounds<span style=\"color: navy\"> : </span>Period<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.bounds = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Period'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Period<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.count<span style=\"color: navy\"><b> -> </b></span>tgt.count<span style=\"color: navy\">;</span>\r\n src.countMax<span style=\"color: navy\"><b> -> </b></span>tgt.countMax<span style=\"color: navy\">;</span>\r\n src.duration<span style=\"color: navy\"><b> -> </b></span>tgt.duration<span style=\"color: navy\">;</span>\r\n src.durationMax<span style=\"color: navy\"><b> -> </b></span>tgt.durationMax<span style=\"color: navy\">;</span>\r\n src.durationUnit<span style=\"color: navy\"><b> -> </b></span>tgt.durationUnit<span style=\"color: navy\">;</span>\r\n src.frequency<span style=\"color: navy\"><b> -> </b></span>tgt.frequency<span style=\"color: navy\">;</span>\r\n src.frequencyMax<span style=\"color: navy\"><b> -> </b></span>tgt.frequencyMax<span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -> </b></span>tgt.period<span style=\"color: navy\">;</span>\r\n src.periodMax<span style=\"color: navy\"><b> -> </b></span>tgt.periodMax<span style=\"color: navy\">;</span>\r\n src.periodUnit<span style=\"color: navy\"><b> -> </b></span>tgt.periodUnit<span style=\"color: navy\">;</span>\r\n src.dayOfWeek<span style=\"color: navy\"><b> -> </b></span>tgt.dayOfWeek<span style=\"color: navy\">;</span>\r\n src.timeOfDay<span style=\"color: navy\"><b> -> </b></span>tgt.timeOfDay<span style=\"color: navy\">;</span>\r\n src.when<span style=\"color: navy\"><b> -> </b></span>tgt.when<span style=\"color: navy\">;</span>\r\n src.offset<span style=\"color: navy\"><b> -> </b></span>tgt.offset<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"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/Timing3to4",
"version" : "0.1.0",
"name" : "Timing3to4",
"title" : "Timing Transforms: R3 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" : "TimingTransformsR3toR4",
"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" : "TimingR3"
},
{
"url" : "http://hl7.org/fhir/4.0/Timing",
"mode" : "target",
"alias" : "Timing"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to4"
],
"group" : [
{
"name" : "Timing",
"extends" : "BackboneElement",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "TimingR3",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "Timing",
"mode" : "target"
}
],
"rule" : [
{
"name" : "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" : "repeat",
"source" : [
{
"context" : "src",
"element" : "repeat",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "repeat",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "repeat",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "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"
}
]
}
]
}
]
},
{
"name" : "repeat",
"extends" : "Element",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "boundsDuration",
"source" : [
{
"context" : "src",
"type" : "Duration",
"element" : "bounds",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "bounds",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Duration"
}
]
}
],
"dependent" : [
{
"name" : "Duration",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "boundsRange",
"source" : [
{
"context" : "src",
"type" : "Range",
"element" : "bounds",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "bounds",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Range"
}
]
}
],
"dependent" : [
{
"name" : "Range",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "boundsPeriod",
"source" : [
{
"context" : "src",
"type" : "Period",
"element" : "bounds",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "bounds",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Period"
}
]
}
],
"dependent" : [
{
"name" : "Period",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "count",
"source" : [
{
"context" : "src",
"element" : "count",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "count",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "countMax",
"source" : [
{
"context" : "src",
"element" : "countMax",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "countMax",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "duration",
"source" : [
{
"context" : "src",
"element" : "duration",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "duration",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "durationMax",
"source" : [
{
"context" : "src",
"element" : "durationMax",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "durationMax",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "durationUnit",
"source" : [
{
"context" : "src",
"element" : "durationUnit",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "durationUnit",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "frequency",
"source" : [
{
"context" : "src",
"element" : "frequency",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "frequency",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "frequencyMax",
"source" : [
{
"context" : "src",
"element" : "frequencyMax",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "frequencyMax",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "period",
"source" : [
{
"context" : "src",
"element" : "period",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "period",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "periodMax",
"source" : [
{
"context" : "src",
"element" : "periodMax",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "periodMax",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "periodUnit",
"source" : [
{
"context" : "src",
"element" : "periodUnit",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "periodUnit",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dayOfWeek",
"source" : [
{
"context" : "src",
"element" : "dayOfWeek",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dayOfWeek",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "timeOfDay",
"source" : [
{
"context" : "src",
"element" : "timeOfDay",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "timeOfDay",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "when",
"source" : [
{
"context" : "src",
"element" : "when",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "when",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "offset",
"source" : [
{
"context" : "src",
"element" : "offset",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "offset",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}