Package | hl7.fhir.uv.xver |
Resource Type | StructureMap |
Id | Appointment5to4B |
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 |
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": "<!-- 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/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" } ] } ] } ] } ] }