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
Orders and Observations Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Device, Encounter, Patient, Practitioner |
R3 : R4 Conversion maps for DiagnosticReport.
Functional status for this map: 14 tests of which 8 fail to execute. 6 fail round-trip testing and 6 r3 resources are invalid (0 errors). (see documentation)
map "http://hl7.org/fhir/StructureMap/DiagnosticReport3to4" = "R3 to R4 Conversions for DiagnosticReport" uses "http://hl7.org/fhir/3.0/StructureDefinition/DiagnosticReport" alias DiagnosticReportR3 as source uses "http://hl7.org/fhir/StructureDefinition/DiagnosticReport" alias DiagnosticReport as target imports "http://hl7.org/fhir/StructureMap/*3to4" group DiagnosticReport extends DomainResource input src : DiagnosticReportR3 as source input tgt : DiagnosticReport as target "DiagnosticReport.identifier" : for src.identifier as vs make tgt.identifier as vt "DiagnosticReport.basedOn" : for src.basedOn as vs make tgt.basedOn as vt "DiagnosticReport.status" : for src.status as vs make tgt.status as vt "DiagnosticReport.category" : for src.category as vs make tgt.category as vt "DiagnosticReport.code" : for src.code as vs make tgt.code as vt "DiagnosticReport.subject" : for src.subject as vs make tgt.subject as vt "DiagnosticReport.context" : for src.context as vs make tgt.context as vt "DiagnosticReport.effective-dateTime" : for src.effective : dateTime as vs make tgt.effective = create("dateTime") as vt then dateTime(vs,vt) "DiagnosticReport.effective-Period" : for src.effective : Period as vs make tgt.effective = create("Period") as vt then Period(vs,vt) "DiagnosticReport.issued" : for src.issued as vs make tgt.issued as vt "DiagnosticReport.specimen" : for src.specimen as vs make tgt.specimen as vt "DiagnosticReport.result" : for src.result as vs make tgt.result as vt "DiagnosticReport.imagingStudy" : for src.imagingStudy as vs make tgt.imagingStudy as vt "DiagnosticReport.media" : for src.image as vs0 make tgt.media as vt0 then { "DiagnosticReport.media.comment" : for vs0.comment as vs make vt0.comment as vt "DiagnosticReport.media.link" : for vs0.link as vs make vt0.link as vt } "DiagnosticReport.conclusion" : for src.conclusion as vs make tgt.conclusion as vt "DiagnosticReport.codedDiagnosis" : for src.codedDiagnosis as vs make tgt.conclusionCode as vt "DiagnosticReport.presentedForm" : for src.presentedForm as vs make tgt.presentedForm as vt endgroup
map "http://hl7.org/fhir/StructureMap/DiagnosticReport4to3" = "R4 to R3 Conversion for DiagnosticReport" uses "http://hl7.org/fhir/StructureDefinition/DiagnosticReport" alias DiagnosticReport as source uses "http://hl7.org/fhir/3.0/StructureDefinition/DiagnosticReport" alias DiagnosticReportR3 as target imports "http://hl7.org/fhir/StructureMap/*4to3" group DiagnosticReport extends DomainResource input src : DiagnosticReport as source input tgt : DiagnosticReportR3 as target "DiagnosticReport.identifier" : for src.identifier as vs make tgt.identifier as vt "DiagnosticReport.basedOn" : for src.basedOn as vs make tgt.basedOn as vt "DiagnosticReport.status" : for src.status as vs make tgt.status as vt "DiagnosticReport.category" : for src.category as vs make tgt.category as vt "DiagnosticReport.code" : for src.code as vs make tgt.code as vt "DiagnosticReport.subject" : for src.subject as vs make tgt.subject as vt "DiagnosticReport.context" : for src.context as vs make tgt.context as vt "DiagnosticReport.effective-dateTime" : for src.effective : dateTime as vs make tgt.effective = create("dateTime") as vt then dateTime(vs,vt) "DiagnosticReport.effective-Period" : for src.effective : Period as vs make tgt.effective = create("Period") as vt then Period(vs,vt) "DiagnosticReport.issued" : for src.issued as vs make tgt.issued as vt "DiagnosticReport.specimen" : for src.specimen as vs make tgt.specimen as vt "DiagnosticReport.result" : for src.result as vs make tgt.result as vt "DiagnosticReport.imagingStudy" : for src.imagingStudy as vs make tgt.imagingStudy as vt "DiagnosticReport.image" : for src.media as vs0 make tgt.image as vt0 then { "DiagnosticReport.image.comment" : for vs0.comment as vs make vt0.comment as vt "DiagnosticReport.image.link" : for vs0.link as vs make vt0.link as vt } "DiagnosticReport.conclusion" : for src.conclusion as vs make tgt.conclusion as vt "DiagnosticReport.conclusionCode" : for src.conclusionCode as vs make tgt.codedDiagnosis as vt "DiagnosticReport.presentedForm" : for src.presentedForm as vs make tgt.presentedForm as vt endgroup