Release 4 5 Preview #3
This page is part of the FHIR Specification (v4.0.1: R4 - Mixed Normative and STU ). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Patient Administration Work Group Maturity Level : N/A Standards Status : Informative Security 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+>> {

group RelatedPerson(source src : RelatedPerson, target tgt : RelatedPersonR3) 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>