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" : "Appointment4to5",
"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/Appointment4to5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Appointment4to5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Appointment Transforms: R4 to R5'</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/4.0/Appointment<span style=\"color: navy\">" </span><b>alias </b>AppointmentR4 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/5.0/Appointment<span style=\"color: navy\">" </span><b>alias </b>AppointmentR5 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*4to5<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>Appointment<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>AppointmentR4, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>AppointmentR5<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n src.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.status = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/ConceptMap/Appointment.status-R4toR5'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.cancelationReason<span style=\"color: navy\"><b> -> </b></span>tgt.cancellationReason<span style=\"color: navy\">;</span>\r\n src.serviceCategory<span style=\"color: navy\"><b> -> </b></span>tgt.serviceCategory<span style=\"color: navy\">;</span>\r\n src.serviceType<span style=\"color: navy\"><b> -> </b></span>tgt.serviceType<span style=\"color: navy\">;</span>\r\n src.specialty<span style=\"color: navy\"><b> -> </b></span>tgt.specialty<span style=\"color: navy\">;</span>\r\n src.appointmentType<span style=\"color: navy\"><b> -> </b></span>tgt.appointmentType<span style=\"color: navy\">;</span>\r\n src.reasonCode<span style=\"color: navy\"><b> -> </b></span>tgt.reason<span style=\"color: navy\">;</span>\r\n src.description<span style=\"color: navy\"><b> -> </b></span>tgt.description<span style=\"color: navy\">;</span>\r\n src.supportingInformation<span style=\"color: navy\"><b> -> </b></span>tgt.supportingInformation<span style=\"color: navy\">;</span>\r\n src.start<span style=\"color: navy\"><b> -> </b></span>tgt.start<span style=\"color: navy\">;</span>\r\n src.end<span style=\"color: navy\"><b> -> </b></span>tgt.end<span style=\"color: navy\">;</span>\r\n src.minutesDuration<span style=\"color: navy\"><b> -> </b></span>tgt.minutesDuration<span style=\"color: navy\">;</span>\r\n src.requestedPeriod<span style=\"color: navy\"><b> -> </b></span>tgt.requestedPeriod<span style=\"color: navy\">;</span>\r\n src.slot<span style=\"color: navy\"><b> -> </b></span>tgt.slot<span style=\"color: navy\">;</span>\r\n src.created<span style=\"color: navy\"><b> -> </b></span>tgt.created<span style=\"color: navy\">;</span>\r\n src.comment<span style=\"color: navy\"><b> -> </b></span>tgt.note<span style=\"color: navy\">;</span>\r\n src.patientInstruction<span style=\"color: navy\"><b> -> </b></span>tgt.patientInstruction<span style=\"color: navy\">;</span>\r\n src.basedOn<span style=\"color: navy\"><b> -> </b></span>tgt.basedOn<span style=\"color: navy\">;</span>\r\n src.participant<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.participant<b> as </b><span style=\"color: maroon\">t</span><b> then </b>AppointmentParticipant<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>AppointmentParticipant<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>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type<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.actor<span style=\"color: navy\"><b> -> </b></span>tgt.actor<span style=\"color: navy\">;</span>\r\n src.required<b> as </b><span style=\"color: maroon\">s</span><b> where </b>required = 'required'<span style=\"color: navy\"><b> -> </b></span> tgt.required<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'boolean'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span> c.value = <span style=\"color: blue\">'true'</span><span style=\"color: navy\">;</span>\r\n src.required<b> as </b><span style=\"color: maroon\">s</span><b> where </b>required = 'optional'<span style=\"color: navy\"><b> -> </b></span> tgt.required<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'boolean'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span> c.value = <span style=\"color: blue\">'false'</span><span style=\"color: navy\">;</span>\r\n src.required<b> as </b><span style=\"color: maroon\">s</span><b> where </b>required = 'information-only'<span style=\"color: navy\"><b> -> </b></span> tgt.required<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'boolean'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span> c.value = <span style=\"color: blue\">'false'</span><span style=\"color: navy\">;</span>\r\n src.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.status = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/ConceptMap/Appointment.participant.status-R4toR5'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><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/Appointment4to5",
"version" : "0.1.0",
"name" : "Appointment4to5",
"title" : "Appointment Transforms: R4 to R5",
"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" : "AppointmentTransformsR4toR5",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/4.0/Appointment",
"mode" : "source",
"alias" : "AppointmentR4"
},
{
"url" : "http://hl7.org/fhir/5.0/Appointment",
"mode" : "target",
"alias" : "AppointmentR5"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*4to5"
],
"group" : [
{
"name" : "Appointment",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "AppointmentR4",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "AppointmentR5",
"mode" : "target"
}
],
"rule" : [
{
"name" : "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" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "http://hl7.org/fhir/ConceptMap/Appointment.status-R4toR5"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "cancelationReason",
"source" : [
{
"context" : "src",
"element" : "cancelationReason",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "cancellationReason",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "serviceCategory",
"source" : [
{
"context" : "src",
"element" : "serviceCategory",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "serviceCategory",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "serviceType",
"source" : [
{
"context" : "src",
"element" : "serviceType",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "serviceType",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "specialty",
"source" : [
{
"context" : "src",
"element" : "specialty",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "specialty",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "appointmentType",
"source" : [
{
"context" : "src",
"element" : "appointmentType",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "appointmentType",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "reasonCode",
"source" : [
{
"context" : "src",
"element" : "reasonCode",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reason",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "description",
"source" : [
{
"context" : "src",
"element" : "description",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "description",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "supportingInformation",
"source" : [
{
"context" : "src",
"element" : "supportingInformation",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "supportingInformation",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "start",
"source" : [
{
"context" : "src",
"element" : "start",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "start",
"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" : "minutesDuration",
"source" : [
{
"context" : "src",
"element" : "minutesDuration",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "minutesDuration",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "requestedPeriod",
"source" : [
{
"context" : "src",
"element" : "requestedPeriod",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "requestedPeriod",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "slot",
"source" : [
{
"context" : "src",
"element" : "slot",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "slot",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "created",
"source" : [
{
"context" : "src",
"element" : "created",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "created",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "comment",
"source" : [
{
"context" : "src",
"element" : "comment",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "note",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "patientInstruction",
"source" : [
{
"context" : "src",
"element" : "patientInstruction",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patientInstruction",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "basedOn",
"source" : [
{
"context" : "src",
"element" : "basedOn",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "basedOn",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "participant",
"source" : [
{
"context" : "src",
"element" : "participant",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "participant",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "AppointmentParticipant",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
}
]
},
{
"name" : "AppointmentParticipant",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "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" : "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" : "actor",
"source" : [
{
"context" : "src",
"element" : "actor",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "actor",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "required",
"source" : [
{
"context" : "src",
"element" : "required",
"variable" : "s",
"condition" : "required = 'required'"
}
],
"target" : [
{
"context" : "tgt",
"element" : "required",
"variable" : "t"
},
{
"context" : "t",
"element" : "value",
"variable" : "c",
"transform" : "create",
"parameter" : [
{
"valueString" : "boolean"
}
]
},
{
"context" : "c",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "true"
}
]
}
]
},
{
"name" : "required",
"source" : [
{
"context" : "src",
"element" : "required",
"variable" : "s",
"condition" : "required = 'optional'"
}
],
"target" : [
{
"context" : "tgt",
"element" : "required",
"variable" : "t"
},
{
"context" : "t",
"element" : "value",
"variable" : "c",
"transform" : "create",
"parameter" : [
{
"valueString" : "boolean"
}
]
},
{
"context" : "c",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "false"
}
]
}
]
},
{
"name" : "required",
"source" : [
{
"context" : "src",
"element" : "required",
"variable" : "s",
"condition" : "required = 'information-only'"
}
],
"target" : [
{
"context" : "tgt",
"element" : "required",
"variable" : "t"
},
{
"context" : "t",
"element" : "value",
"variable" : "c",
"transform" : "create",
"parameter" : [
{
"valueString" : "boolean"
}
]
},
{
"context" : "c",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "false"
}
]
}
]
},
{
"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/Appointment.participant.status-R4toR5"
},
{
"valueString" : "code"
}
]
}
]
}
]
}
]
}