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/Patient3to2 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: Patient3to2 |
PatientTransformsR3toR2
/// url = 'http://hl7.org/fhir/StructureMap/Patient3to2' /// name = 'Patient3to2' /// title = 'Patient Transforms: R3 to R2' /// status = 'active' uses "http://hl7.org/fhir/3.0/Patient" alias Patient as source uses "http://hl7.org/fhir/1.0/Patient" alias PatientR2 as target imports "http://hl7.org/fhir/StructureMap/*3to2" group Patient(source src : Patient, target tgt : PatientR2) extends DomainResource <<type+>> { src.identifier -> tgt.identifier "Patient-identifier"; src.active -> tgt.active "Patient-active"; src.name -> tgt.name "Patient-name"; src.telecom -> tgt.telecom "Patient-telecom"; src.gender -> tgt.gender "Patient-gender"; src.birthDate -> tgt.birthDate "Patient-birthDate"; src.deceased : boolean as vs -> tgt.deceased = create('boolean') as vt then boolean(vs, vt) "Patient-deceased-boolean"; src.deceased : dateTime as vs -> tgt.deceased = create('dateTime') as vt then dateTime(vs, vt) "Patient-deceased-dateTime"; src.address -> tgt.address "Patient-address"; src.maritalStatus -> tgt.maritalStatus "Patient-maritalStatus"; src.multipleBirth : boolean as vs -> tgt.multipleBirth = create('boolean') as vt then boolean(vs, vt) "Patient-multipleBirth-boolean"; src.multipleBirth : integer as vs -> tgt.multipleBirth = create('integer') as vt then integer(vs, vt) "Patient-multipleBirth-integer"; src.photo -> tgt.photo "Patient-photo"; src.contact as vs0 -> tgt.contact as vt0 then patContact(vs0, vt0) "Patient-contact"; src.animal as vs0 -> tgt.animal as vt0 then patAnimal(vs0, vt0) "Patient-animal"; src.communication as vs0 -> tgt.communication as vt0 then patCommunication(vs0, vt0) "Patient-communication"; src.generalPractitioner -> tgt.careProvider "Patient-careProvider"; src.managingOrganization -> tgt.managingOrganization "Patient-managingOrganization"; src.link as vs0 -> tgt.link as vt0 then patLink(vs0, vt0) "Patient-link"; } group patContact(source src, target tgt) extends BackboneElement { src.relationship -> tgt.relationship "contact-relationship"; src.name -> tgt.name "contact-name"; src.telecom -> tgt.telecom "contact-telecom"; src.address -> tgt.address "contact-address"; src.gender -> tgt.gender "contact-gender"; src.organization -> tgt.organization "contact-organization"; src.period -> tgt.period "contact-period"; } group patCommunication(source src, target tgt) extends BackboneElement { src.language -> tgt.language "communication-language"; src.preferred -> tgt.preferred "communication-preferred"; } group patAnimal(source src, target tgt) extends BackboneElement { src.species -> tgt.species "communication-species"; src.breed -> tgt.breed "communication-breed"; src.genderStatus -> tgt.genderStatus "communication-genderStatus"; } group patLink(source src, target tgt) extends BackboneElement { src.other -> tgt.other "link-other"; src.type -> tgt.type "link-type"; }