Package | hl7.fhir.uv.xver |
Resource Type | StructureMap |
Id | Appointment4to5 |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-Appointment4to5.html |
URL | http://hl7.org/fhir/StructureMap/Appointment4to5 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | Appointment4to5 |
Title | Appointment Transforms: R4 to R5 |
Realm | uv |
Authority | hl7 |
Description | AppointmentTransformsR4toR5 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/Appointment4to5' /// name = 'Appointment4to5' /// title = 'Appointment Transforms: R4 to R5' /// status = 'active' uses "http://hl7.org/fhir/4.0/Appointment" alias AppointmentR4 as source uses "http://hl7.org/fhir/5.0/Appointment" alias AppointmentR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group Appointment(source src : AppointmentR4, target tgt : AppointmentR5) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Appointment.status-R4toR5', 'code'); src.cancelationReason -> tgt.cancellationReason; src.serviceCategory -> tgt.serviceCategory; src.serviceType -> tgt.serviceType; src.specialty -> tgt.specialty; src.appointmentType -> tgt.appointmentType; src.reasonCode -> tgt.reason; 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.comment -> tgt.note; 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 = 'required' -> tgt.required as t, t.value = create('boolean') as c, c.value = 'true'; src.required as s where required = 'optional' -> tgt.required as t, t.value = create('boolean') as c, c.value = 'false'; src.required as s where required = 'information-only' -> tgt.required as t, t.value = create('boolean') as c, c.value = 'false'; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Appointment.participant.status-R4toR5', 'code'); }
{ "resourceType": "StructureMap", "id": "Appointment4to5", "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/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" } ] } ] } ] } ] }