This
page
is
part
of
the
FHIR
Specification
(v3.3.0:
(v3.5.0:
R4
Ballot
2).
#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
Group
|
Maturity Level : N/A | Ballot Status : Informative | Compartments : Patient , Practitioner , RelatedPerson |
R2
:
R3
:
R4
Conversion
maps
for
Patient.
Functional
status
for
this
map:
18
16
tests
that
all
of
which
2
fail
to
execute
ok.
All
tests
pass
.
14
fail
round-trip
testing
and
6
14
r3
resources
are
invalid
(12
(0
errors).
(
see
documentation)
map "http://hl7.org/fhir/StructureMap/Patient2to3" = "R2 to R3 Conversions for Patient" uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Patient" alias PatientR2 as source uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as targetmap "http://hl7.org/fhir/StructureMap/Patient3to4" = "R3 to R4 Conversions for Patient"imports "http://hl7.org/fhir/StructureMap/*2to3"group for type+types Patient extends DomainResource input src : PatientR2 as source input tgt : Patient as targetuses "http://hl7.org/fhir/3.0/StructureDefinition/Patient" alias PatientR3 as source uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as target"Patient-identifier" : for src.identifier make tgt.identifier "Patient-active" : for src.active make tgt.active "Patient-name" : for src.name make tgt.name "Patient-telecom" : for src.telecom make tgt.telecom "Patient-gender" : for src.gender make tgt.gender "Patient-birthDate" : for src.birthDate make tgt.birthDate "Patient-deceased" : for src.deceased make tgt.deceased "Patient-address" : for src.address make tgt.address "Patient-maritalStatus" : for src.maritalStatus make tgt.maritalStatus "Patient-multipleBirth" : for src.multipleBirth make tgt.multipleBirth "Patient-photo" : for src.photo make tgt.photo "Patient-contact" : for src.contact as vs0 make tgt.contact as vt0 then patContact(vs0, vt0) "Patient-animal" : for src.animal as vs0 make tgt.animal as vt0 then patAnimal(vs0, vt0) "Patient-communication" : for src.communication as vs0 make tgt.communication as vt0 then patCommunication(vs0, vt0) "Patient-generalPractitioner" : for src.careProvider make tgt.generalPractitioner "Patient-managingOrganization" : for src.managingOrganization make tgt.managingOrganization "Patient-link" : for src.link as vs0 make tgt.link as vt0 then patLink(vs0, vt0) endgroupimports "http://hl7.org/fhir/StructureMap/*3to4"group patContact extends BackboneElement input src as source input tgt as target"Patient.contact-relationship" : for src.relationship make tgt.relationship "Patient.contact-name" : for src.name make tgt.name "Patient.contact-telecom" : for src.telecom make tgt.telecom "Patient.contact-address" : for src.address make tgt.address "Patient.contact-gender" : for src.gender make tgt.gender "Patient.contact-organization" : for src.organization make tgt.organization "Patient.contact-period" : for src.period make tgt.period endgroup group patCommunication extends BackboneElement input src as source input tgt as target"Patient.communication-language" : for src.language make tgt.language "Patient.communication-preferred" : for src.preferred make tgt.preferred endgroup group patAnimal extends BackboneElement input src as source input tgt as targetgroup Patient extends DomainResource input src : PatientR3 as source input tgt : Patient as target"Patient.communication-species" : for src.species make tgt.species "Patient.communication-breed" : for src.breed make tgt.breed "Patient.communication-genderStatus" : for src.genderStatus make tgt.genderStatus"Patient.identifier" : for src.identifier as vs make tgt.identifier as vt "Patient.active" : for src.active as vs make tgt.active as vt "Patient.name" : for src.name as vs make tgt.name as vt "Patient.telecom" : for src.telecom as vs make tgt.telecom as vt "Patient.gender" : for src.gender as vs make tgt.gender as vt "Patient.birthDate" : for src.birthDate as vs make tgt.birthDate as vt "Patient.deceased-boolean" : for src.deceased : boolean as vs make tgt.deceased = create("boolean") as vt then boolean(vs,vt) "Patient.deceased-dateTime" : for src.deceased : dateTime as vs make tgt.deceased = create("dateTime") as vt then dateTime(vs,vt) "Patient.address" : for src.address as vs make tgt.address as vt "Patient.maritalStatus" : for src.maritalStatus as vs make tgt.maritalStatus as vt "Patient.multipleBirth-boolean" : for src.multipleBirth : boolean as vs make tgt.multipleBirth = create("boolean") as vt then boolean(vs,vt) "Patient.multipleBirth-integer" : for src.multipleBirth : integer as vs make tgt.multipleBirth = create("integer") as vt then integer(vs,vt) "Patient.photo" : for src.photo as vs make tgt.photo as vt "Patient.communication" : for src.communication as vs0 make tgt.communication as vt0 then { "Patient.communication.language" : for vs0.language as vs make vt0.language as vt "Patient.communication.preferred" : for vs0.preferred as vs make vt0.preferred as vt } "Patient.generalPractitioner" : for src.generalPractitioner as vs make tgt.generalPractitioner as vt "Patient.managingOrganization" : for src.managingOrganization as vs make tgt.managingOrganization as vt "Patient.link" : for src.link as vs0 make tgt.link as vt0 then { "Patient.link.other" : for vs0.other as vs make vt0.other as vt "Patient.link.type" : for vs0.type as vs make vt0.type as vt } endgroupgroup patLink extends BackboneElement input src as source input tgt as target"Patient.link-other" : for src.other make tgt.other "Patient.link-type" : for src.type make tgt.type endgroup
map "http://hl7.org/fhir/StructureMap/Patient3to2" = "R3 to R2 Conversion for Patient" uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as source uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Patient" alias PatientR2 as target imports "http://hl7.org/fhir/StructureMap/*3to2"map "http://hl7.org/fhir/StructureMap/Patient4to3" = "R4 to R3 Conversion for Patient"group for type+types Patient extends DomainResource input src : Patient as source input tgt : PatientR2 as target"Patient-identifier" : for src.identifier make tgt.identifier "Patient-active" : for src.active make tgt.active "Patient-name" : for src.name make tgt.name "Patient-telecom" : for src.telecom make tgt.telecom "Patient-gender" : for src.gender make tgt.gender "Patient-birthDate" : for src.birthDate make tgt.birthDate "Patient-deceased-boolean" : for src.deceased : boolean as vs make tgt.deceased = create("boolean") as vt then boolean(vs, vt) "Patient-deceased-dateTime" : for src.deceased : dateTime as vs make tgt.deceased = create("dateTime") as vt then dateTime(vs, vt) "Patient-address" : for src.address make tgt.address "Patient-maritalStatus" : for src.maritalStatus make tgt.maritalStatus "Patient-multipleBirth-boolean" : for src.multipleBirth : boolean as vs make tgt.multipleBirth = create("boolean") as vt then boolean(vs, vt) "Patient-multipleBirth-integer" : for src.multipleBirth : integer as vs make tgt.multipleBirth = create("integer") as vt then integer(vs, vt) "Patient-photo" : for src.photo make tgt.photo "Patient-contact" : for src.contact as vs0 make tgt.contact as vt0 then patContact(vs0, vt0) "Patient-animal" : for src.animal as vs0 make tgt.animal as vt0 then patAnimal(vs0, vt0) "Patient-communication" : for src.communication as vs0 make tgt.communication as vt0 then patCommunication(vs0, vt0) "Patient-careProvider" : for src.generalPractitioner make tgt.careProvider "Patient-managingOrganization" : for src.managingOrganization make tgt.managingOrganization "Patient-link" : for src.link as vs0 make tgt.link as vt0 then patLink(vs0, vt0) endgroupuses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as source uses "http://hl7.org/fhir/3.0/StructureDefinition/Patient" alias PatientR3 as targetgroup patContact extends BackboneElement input src as source input tgt as targetimports "http://hl7.org/fhir/StructureMap/*4to3""Patient.contact-relationship" : for src.relationship make tgt.relationship "Patient.contact-name" : for src.name make tgt.name "Patient.contact-telecom" : for src.telecom make tgt.telecom "Patient.contact-address" : for src.address make tgt.address "Patient.contact-gender" : for src.gender make tgt.gender "Patient.contact-organization" : for src.organization make tgt.organization "Patient.contact-period" : for src.period make tgt.period endgroupgroup patCommunication extends BackboneElement input src as source input tgt as target"Patient.communication-language" : for src.language make tgt.language "Patient.communication-preferred" : for src.preferred make tgt.preferred endgroup group patAnimal extends BackboneElement input src as source input tgt as targetgroup Patient extends DomainResource input src : Patient as source input tgt : PatientR3 as target"Patient.communication-species" : for src.species make tgt.species "Patient.communication-breed" : for src.breed make tgt.breed "Patient.communication-genderStatus" : for src.genderStatus make tgt.genderStatus"Patient.identifier" : for src.identifier as vs make tgt.identifier as vt "Patient.active" : for src.active as vs make tgt.active as vt "Patient.name" : for src.name as vs make tgt.name as vt "Patient.telecom" : for src.telecom as vs make tgt.telecom as vt "Patient.gender" : for src.gender as vs make tgt.gender as vt "Patient.birthDate" : for src.birthDate as vs make tgt.birthDate as vt "Patient.deceased-boolean" : for src.deceased : boolean as vs make tgt.deceased = create("boolean") as vt then boolean(vs,vt) "Patient.deceased-dateTime" : for src.deceased : dateTime as vs make tgt.deceased = create("dateTime") as vt then dateTime(vs,vt) "Patient.address" : for src.address as vs make tgt.address as vt "Patient.maritalStatus" : for src.maritalStatus as vs make tgt.maritalStatus as vt "Patient.multipleBirth-boolean" : for src.multipleBirth : boolean as vs make tgt.multipleBirth = create("boolean") as vt then boolean(vs,vt) "Patient.multipleBirth-integer" : for src.multipleBirth : integer as vs make tgt.multipleBirth = create("integer") as vt then integer(vs,vt) "Patient.photo" : for src.photo as vs make tgt.photo as vt "Patient.communication" : for src.communication as vs0 make tgt.communication as vt0 then { "Patient.communication.language" : for vs0.language as vs make vt0.language as vt "Patient.communication.preferred" : for vs0.preferred as vs make vt0.preferred as vt } "Patient.generalPractitioner" : for src.generalPractitioner as vs make tgt.generalPractitioner as vt "Patient.managingOrganization" : for src.managingOrganization as vs make tgt.managingOrganization as vt "Patient.link" : for src.link as vs0 make tgt.link as vt0 then { "Patient.link.other" : for vs0.other as vs make vt0.other as vt "Patient.link.type" : for vs0.type as vs make vt0.type as vt } endgroupgroup patLink extends BackboneElement input src as source input tgt as target"Patient.link-other" : for src.other make tgt.other "Patient.link-type" : for src.type make tgt.type endgroup