FHIR Release 3 (STU) 4

This page is part of the FHIR Specification (v3.0.2: (v4.0.1: R4 - Mixed Normative and STU 3). ) in it's permanent home (it will always be available at this URL). 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 R4 R3

Patient Administration Work Group Maturity Level : N/A Ballot Standards Status : Informative Security Category : Patient Compartments : Patient , Practitioner , RelatedPerson

R2 : R3 Converson : R4 Conversion maps for Person.

Functional status for this map: 5 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/Person2to3" = "R2 to R3 Conversions for Person"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Person" alias PersonR2 as source
uses "http://hl7.org/fhir/StructureDefinition/Person" alias Person as target

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

group for type+types  Person extends DomainResource
  input src : PersonR2 as source
  input tgt : Person as target

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


  "Person-identifier" : for src.identifier make tgt.identifier
  "Person-name" : for src.name make tgt.name
  "Person-telecom" : for src.telecom make tgt.telecom
  "Person-gender" : for src.gender make tgt.gender
  "Person-birthDate" : for src.birthDate make tgt.birthDate
  "Person-address" : for src.address make tgt.address
  "Person-photo" : for src.photo make tgt.photo
  "Person-managingOrganization" : for src.managingOrganization make tgt.managingOrganization
  "Person-active" : for src.active make tgt.active
  "Person-link" : for src.link as vs0 make tgt.link as vt0 then psnLink(vs0, vt0)
endgroup

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


group psnLink extends BackboneElement
  input src as source
  input tgt as target

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


  "Person.link-target" : for src.target make tgt.target
  "Person.link-assurance" : for src.assurance make tgt.assurance
endgroup

group Person(source src : PersonR3, target tgt : Person) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  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.managingOrganization -> tgt.managingOrganization;
  src.active -> tgt.active;
  src.link as vs0 -> tgt.link as vt0 then {
    vs0.target -> vt0.target;
    vs0.assurance -> vt0.assurance;
  };
}



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

uses "http://hl7.org/fhir/StructureDefinition/Person" alias Person as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Person" alias PersonR2 as target

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

group for type+types  Person extends DomainResource
  input src : Person as source
  input tgt : PersonR2 as target

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


  "Person-identifier" : for src.identifier make tgt.identifier
  "Person-name" : for src.name make tgt.name
  "Person-telecom" : for src.telecom make tgt.telecom
  "Person-gender" : for src.gender make tgt.gender
  "Person-birthDate" : for src.birthDate make tgt.birthDate
  "Person-address" : for src.address make tgt.address
  "Person-photo" : for src.photo make tgt.photo
  "Person-managingOrganization" : for src.managingOrganization make tgt.managingOrganization
  "Person-active" : for src.active make tgt.active
  "Person-link" : for src.link as vs0 make tgt.link as vt0 then psnLink(vs0, vt0)
endgroup

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


group psnLink extends BackboneElement
  input src as source
  input tgt as target

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


  "Person.link-target" : for src.target make tgt.target
  "Person.link-assurance" : for src.assurance make tgt.assurance
endgroup

group Person(source src : Person, target tgt : PersonR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  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.managingOrganization -> tgt.managingOrganization;
  src.active -> tgt.active;
  src.link as vs0 -> tgt.link as vt0 then {
    vs0.target -> vt0.target;
    vs0.assurance -> vt0.assurance;
  };
}



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