This page is part of the FHIR Specification (v3.5.0: R4 Ballot #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
Security Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Device, Patient, Practitioner, RelatedPerson |
R3 : R4 Conversion maps for Provenance.
Functional status for this map: 5 tests of which 5 fail to execute. (see documentation)
map "http://hl7.org/fhir/StructureMap/Provenance3to4" = "R3 to R4 Conversions for Provenance"
uses "http://hl7.org/fhir/3.0/StructureDefinition/Provenance" alias ProvenanceR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Provenance" alias Provenance as target
imports "http://hl7.org/fhir/StructureMap/*3to4"
group Provenance extends DomainResource
input src : ProvenanceR3 as source
input tgt : Provenance as target
"Provenance.target" : for src.target as vs make tgt.target as vt
"Provenance.occurred" : for src.period as vs make tgt.occurred as vt
"Provenance.recorded" : for src.recorded as vs make tgt.recorded as vt
"Provenance.policy" : for src.policy as vs make tgt.policy as vt
"Provenance.location" : for src.location as vs make tgt.location as vt
"Provenance.agent" : for src.agent as vs0 make tgt.agent as vt0 then {
"Provenance.agent.role" : for vs0.role as vs make vt0.role as vt
}
"Provenance.entity" : for src.entity as vs0 make tgt.entity as vt0 then {
"Provenance.entity.role" : for vs0.role as vs make vt0.role as vt
}
"Provenance.signature" : for src.signature as vs make tgt.signature as vt
endgroup
map "http://hl7.org/fhir/StructureMap/Provenance4to3" = "R4 to R3 Conversion for Provenance"
uses "http://hl7.org/fhir/StructureDefinition/Provenance" alias Provenance as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Provenance" alias ProvenanceR3 as target
imports "http://hl7.org/fhir/StructureMap/*4to3"
group Provenance extends DomainResource
input src : Provenance as source
input tgt : ProvenanceR3 as target
"Provenance.target" : for src.target as vs make tgt.target as vt
"Provenance.period" : for src.occurredPeriod as vs make tgt.period as vt
"Provenance.recorded" : for src.recorded as vs make tgt.recorded as vt
"Provenance.policy" : for src.policy as vs make tgt.policy as vt
"Provenance.location" : for src.location as vs make tgt.location as vt
"Provenance.activity" : for src.activity as vs make tgt.activity as vt
"Provenance.agent" : for src.agent as vs0 make tgt.agent as vt0 then {
"Provenance.agent.role" : for vs0.role as vs make vt0.role as vt
"Provenance.agent.who-Reference" : for vs0.who : Reference as vs make vt0.who = create("Reference") as vt then Reference(vs,vt)
"Provenance.agent.onBehalfOf-Reference" : for vs0.onBehalfOf : Reference as vs make vt0.onBehalfOf = create("Reference") as vt then Reference(vs,vt)
}
"Provenance.entity" : for src.entity as vs0 make tgt.entity as vt0 then {
"Provenance.entity.role" : for vs0.role as vs make vt0.role as vt
"Provenance.entity.what-Reference" : for vs0.what : Reference as vs make vt0.what = create("Reference") as vt then Reference(vs,vt)
}
"Provenance.signature" : for src.signature as vs make tgt.signature as vt
endgroup