Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Id |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-Appointment5to4B.html |
Url | http://hl7.org/fhir/StructureMap/Appointment5to4B |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | Appointment5to4B |
Title | Appointment Transforms: R5 to R4B |
Experimental | False |
Realm | uv |
Authority | hl7 |
Description | AppointmentTransformsR5toR4B |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/Appointment5to4B' /// name = 'Appointment5to4B' /// title = 'Appointment Transforms: R5 to R4B' /// status = 'active' uses "http://hl7.org/fhir/5.0/Appointment" alias AppointmentR5 as source uses "http://hl7.org/fhir/4.0/Appointment" alias AppointmentR4B as target imports "http://hl7.org/fhir/StructureMap/*5to4B" group Appointment(source src : AppointmentR5, target tgt : AppointmentR4B) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Appointment.status-R5toR4', 'code'); src.cancellationReason -> tgt.cancelationReason; src.serviceCategory -> tgt.serviceCategory; src.serviceType -> tgt.serviceType; src.specialty -> tgt.specialty; src.appointmentType -> tgt.appointmentType; src.reason -> tgt.reasonCode; src.description -> tgt.description; src.supportingInformation -> tgt.supportingInformation; src.start -> tgt.start; src.end -> tgt.end; src.minutesDuration -> tgt.minutesDuration; src.requestedPeriod -> tgt.requestedPeriod; src.slot -> tgt.slot; src.created -> tgt.created; src.note -> tgt.comment; src.patientInstruction -> tgt.patientInstruction; src.basedOn -> tgt.basedOn; src.participant as s -> tgt.participant as t then AppointmentParticipant(s, t); } group AppointmentParticipant(source src, target tgt) extends BackboneElement { src.type -> tgt.type; src.period -> tgt.period; src.actor -> tgt.actor; src.required as s where required = 'true' -> tgt.required as t, t.value = 'required'; src.required as s where required = 'false' -> tgt.required as t, t.value = 'optional'; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Appointment.participant.status-R5toR4', 'code'); }
{
"resourceType" : "StructureMap",
"id" : "Appointment5to4B",
"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/Appointment5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Appointment5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Appointment Transforms: R5 to R4B'</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/5.0/Appointment<span style=\"color: navy\">" </span><b>alias </b>AppointmentR5 <b>as </b><b>source</b>\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>AppointmentR4B <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*5to4B<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>AppointmentR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>AppointmentR4B<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-R5toR4'</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.cancellationReason<span style=\"color: navy\"><b> -> </b></span>tgt.cancelationReason<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.reason<span style=\"color: navy\"><b> -> </b></span>tgt.reasonCode<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.note<span style=\"color: navy\"><b> -> </b></span>tgt.comment<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 = 'true'<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 = <span style=\"color: blue\">'required'</span><span style=\"color: navy\">;</span>\r\n src.required<b> as </b><span style=\"color: maroon\">s</span><b> where </b>required = 'false'<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 = <span style=\"color: blue\">'optional'</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-R5toR4'</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/Appointment5to4B",
"version" : "0.1.0",
"name" : "Appointment5to4B",
"title" : "Appointment Transforms: R5 to R4B",
"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" : "AppointmentTransformsR5toR4B",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/5.0/Appointment",
"mode" : "source",
"alias" : "AppointmentR5"
},
{
"url" : "http://hl7.org/fhir/4.0/Appointment",
"mode" : "target",
"alias" : "AppointmentR4B"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*5to4B"
],
"group" : [
{
"name" : "Appointment",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "AppointmentR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "AppointmentR4B",
"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-R5toR4"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "cancellationReason",
"source" : [
{
"context" : "src",
"element" : "cancellationReason",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "cancelationReason",
"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" : "reason",
"source" : [
{
"context" : "src",
"element" : "reason",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reasonCode",
"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" : "note",
"source" : [
{
"context" : "src",
"element" : "note",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "comment",
"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 = 'true'"
}
],
"target" : [
{
"context" : "tgt",
"element" : "required",
"variable" : "t"
},
{
"context" : "t",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "required"
}
]
}
]
},
{
"name" : "required",
"source" : [
{
"context" : "src",
"element" : "required",
"variable" : "s",
"condition" : "required = 'false'"
}
],
"target" : [
{
"context" : "tgt",
"element" : "required",
"variable" : "t"
},
{
"context" : "t",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "optional"
}
]
}
]
},
{
"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-R5toR4"
},
{
"valueString" : "code"
}
]
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.