R4 Ballot #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.5.0: R4 Ballot #2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Patient Administration Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Patient, Practitioner, RelatedPerson

R3 : R4 Conversion maps for Person.

Functional status for this map: 5 tests that all execute ok. 5 fail round-trip testing and 5 r3 resources are invalid (0 errors). (see documentation)

map "http://hl7.org/fhir/StructureMap/Person3to4" = "R3 to R4 Conversions for Person"


uses "http://hl7.org/fhir/3.0/StructureDefinition/Person" alias PersonR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Person" alias Person as target

imports "http://hl7.org/fhir/StructureMap/*3to4"



group Person extends DomainResource
  input src : PersonR3 as source
  input tgt : Person as target

  "Person.identifier" : for src.identifier as vs make tgt.identifier as vt
  "Person.name" : for src.name as vs make tgt.name as vt
  "Person.telecom" : for src.telecom as vs make tgt.telecom as vt
  "Person.gender" : for src.gender as vs make tgt.gender as vt
  "Person.birthDate" : for src.birthDate as vs make tgt.birthDate as vt
  "Person.address" : for src.address as vs make tgt.address as vt
  "Person.photo" : for src.photo as vs make tgt.photo as vt
  "Person.managingOrganization" : for src.managingOrganization as vs make tgt.managingOrganization as vt
  "Person.active" : for src.active as vs make tgt.active as vt
  "Person.link" : for src.link as vs0 make tgt.link as vt0 then {
    "Person.link.target" : for vs0.target as vs make vt0.target as vt
    "Person.link.assurance" : for vs0.assurance as vs make vt0.assurance as vt
  }
endgroup


map "http://hl7.org/fhir/StructureMap/Person4to3" = "R4 to R3 Conversion for Person"


uses "http://hl7.org/fhir/StructureDefinition/Person" alias Person as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Person" alias PersonR3 as target

imports "http://hl7.org/fhir/StructureMap/*4to3"



group Person extends DomainResource
  input src : Person as source
  input tgt : PersonR3 as target

  "Person.identifier" : for src.identifier as vs make tgt.identifier as vt
  "Person.name" : for src.name as vs make tgt.name as vt
  "Person.telecom" : for src.telecom as vs make tgt.telecom as vt
  "Person.gender" : for src.gender as vs make tgt.gender as vt
  "Person.birthDate" : for src.birthDate as vs make tgt.birthDate as vt
  "Person.address" : for src.address as vs make tgt.address as vt
  "Person.photo" : for src.photo as vs make tgt.photo as vt
  "Person.managingOrganization" : for src.managingOrganization as vs make tgt.managingOrganization as vt
  "Person.active" : for src.active as vs make tgt.active as vt
  "Person.link" : for src.link as vs0 make tgt.link as vt0 then {
    "Person.link.target" : for vs0.target as vs make vt0.target as vt
    "Person.link.assurance" : for vs0.assurance as vs make vt0.assurance as vt
  }
endgroup