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
Official URL: http://hl7.org/fhir/StructureMap/Patient3to4 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: Patient3to4 |
PatientTransformsR3toR4
/// url = 'http://hl7.org/fhir/StructureMap/Patient3to4' /// name = 'Patient3to4' /// title = 'Patient Transforms: R3 to R4' /// status = 'active' uses "http://hl7.org/fhir/3.0/Patient" alias PatientR3 as source uses "http://hl7.org/fhir/4.0/Patient" alias Patient as target imports "http://hl7.org/fhir/StructureMap/*3to4" group Patient(source src : PatientR3, target tgt : Patient) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.active -> tgt.active; src.name -> tgt.name; src.telecom -> tgt.telecom; src.gender -> tgt.gender; src.birthDate -> tgt.birthDate; src.deceased : boolean as vs -> tgt.deceased = create('boolean') as vt then boolean(vs, vt); src.deceased : dateTime as vs -> tgt.deceased = create('dateTime') as vt then dateTime(vs, vt); src.address -> tgt.address; src.maritalStatus -> tgt.maritalStatus; src.multipleBirth : boolean as vs -> tgt.multipleBirth = create('boolean') as vt then boolean(vs, vt); src.multipleBirth : integer as vs -> tgt.multipleBirth = create('integer') as vt then integer(vs, vt); src.photo -> tgt.photo; src.contact as vs0 -> tgt.contact as vt0 then contact(vs0, vt0); src.animal as vs0 -> tgt.extension as vt0 then animal(vs0, vt0); src.communication as vs0 -> tgt.communication as vt0 then communication(vs0, vt0); src.generalPractitioner -> tgt.generalPractitioner; src.managingOrganization -> tgt.managingOrganization; src.link as vs0 -> tgt.link as vt0 then link(vs0, vt0); } group contact(source src, target tgt) extends BackboneElement { src.relationship -> tgt.relationship; src.name -> tgt.name; src.telecom -> tgt.telecom; src.address -> tgt.address; src.gender -> tgt.gender; src.organization -> tgt.organization; src.period -> tgt.period; } group animal(source src, target tgt) extends Element { src -> tgt.url = 'http://hl7.org/fhir/StructureDefinition/patient-animal' "animal"; src.species as vs -> tgt.extension as ext, ext.url = 'species', ext.value = vs; src.breed as vs -> tgt.extension as ext, ext.url = 'breed', ext.value = vs; src.genderStatus as vs -> tgt.extension as ext, ext.url = 'genderStatus', ext.value = vs; } group communication(source src, target tgt) extends BackboneElement { src.language -> tgt.language; src.preferred -> tgt.preferred; } group link(source src, target tgt) extends BackboneElement { src.other -> tgt.other; src.type -> tgt.type; }