Release 4

Patient Administration Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Patient Compartments: Patient, RelatedPerson

R3 : R4 Conversion maps for RelatedPerson.

Functional status for this map: 4 tests that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)

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

uses "http://hl7.org/fhir/3.0/StructureDefinition/RelatedPerson" alias RelatedPersonR3 as source
uses "http://hl7.org/fhir/StructureDefinition/RelatedPerson" alias RelatedPerson as target

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

group RelatedPerson(source src : RelatedPersonR3, target tgt : RelatedPerson) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.active -> tgt.active;
  src.patient -> tgt.patient;
  src.relationship -> tgt.relationship;
  src.name -> tgt.name;
  src.telecom -> tgt.telecom;
  src.gender -> tgt.gender;
  src.birthDate -> tgt.birthDate;
  src.address -> tgt.address;
  src.photo -> tgt.photo;
  src.period -> tgt.period;
}


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

uses "http://hl7.org/fhir/StructureDefinition/RelatedPerson" alias RelatedPerson as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/RelatedPerson" alias RelatedPersonR3 as target

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

group RelatedPerson(source src : RelatedPersonR3, target tgt : RelatedPerson) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.active -> tgt.active;
  src.patient -> tgt.patient;
  src.relationship -> tgt.relationship;
  src.name -> tgt.name;
  src.telecom -> tgt.telecom;
  src.gender -> tgt.gender;
  src.birthDate -> tgt.birthDate;
  src.address -> tgt.address;
  src.photo -> tgt.photo;
  src.period -> tgt.period;
}


<p>No validation errors - all conversions are clean</p>