FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). 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: InformativeCompartments: Patient, Practitioner, RelatedPerson

R2 : R3 Converson 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

  "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

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

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


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

  "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

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

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