R4 Ballot #1 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.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 GroupMaturity Level: N/ABallot Status: Informative Compartments: Device, Encounter, Patient, Practitioner

R2 : R3 Conversion maps for DiagnosticReport.

Functional status for this map: 11 tests of which 3 fail to execute. 8 fail round-trip testing and 3 r3 resources are invalid (22 errors). (see documentation)

map "http://hl7.org/fhir/StructureMap/DiagnosticReport2to3" = "R2 to R3 Conversions for DiagnosticReport"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DiagnosticReport" alias DiagnosticReportR2 as source
uses "http://hl7.org/fhir/StructureDefinition/DiagnosticReport" alias DiagnosticReport as target

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

group for type+types  DiagnosticReport extends DomainResource
  input src : DiagnosticReportR2 as source
  input tgt : DiagnosticReport as target

  "DiagnosticReport-identifier" : for src.identifier make tgt.identifier
  "DiagnosticReport-status" : for src.status make tgt.status
  "DiagnosticReport-category" : for src.category make tgt.category
  "DiagnosticReport-code" : for src.code make tgt.code
  "DiagnosticReport-subject" : for src.subject make tgt.subject
  "DiagnosticReport-encounter" : for src.encounter make tgt.context
  "DiagnosticReport-effective" : for src.effective make tgt.effective 
  "DiagnosticReport-issued" : for src.issued make tgt.issued
  "DiagnosticReport-performer" : for src.performer as v make tgt.performer as p, p.actor as v
  "DiagnosticReport-request" : for src.request make tgt.basedOn
  "DiagnosticReport-specimen" : for src.specimen make tgt.specimen
  "DiagnosticReport-result" : for src.result make tgt.result
  "DiagnosticReport-imagingStudy" : for src.imagingStudy make tgt.imagingStudy
  "DiagnosticReport-image" : for src.image as vs0 make tgt.image as vt0 then drpImage(vs0, vt0)
  "DiagnosticReport-conclusion" : for src.conclusion make tgt.conclusion
  "DiagnosticReport-codedDiagnosis" : for src.codedDiagnosis make tgt.codedDiagnosis
  "DiagnosticReport-presentedForm" : for src.presentedForm make tgt.presentedForm
endgroup

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

  "DiagnosticReport.image-comment" : for src.comment make tgt.comment
  "DiagnosticReport.image-link" : for src.link make tgt.link
endgroup
map "http://hl7.org/fhir/StructureMap/DiagnosticReport3to2" = "R3 to R2 Conversion for DiagnosticReport"

uses "http://hl7.org/fhir/StructureDefinition/DiagnosticReport" alias DiagnosticReport as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DiagnosticReport" alias DiagnosticReportR2 as target

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

group for type+types  DiagnosticReport extends DomainResource
  input src : DiagnosticReport as source
  input tgt : DiagnosticReportR2 as target

  "DiagnosticReport-identifier" : for src.identifier make tgt.identifier
  "DiagnosticReport-status" : for src.status make tgt.status
  "DiagnosticReport-category" : for src.category make tgt.category
  "DiagnosticReport-code" : for src.code make tgt.code
  "DiagnosticReport-subject" : for src.subject make tgt.subject
  "DiagnosticReport-encounter" : for src.context make tgt.encounter
  "DiagnosticReport-effective" : for src.effective make tgt.effective 
  "DiagnosticReport-issued" : for src.issued make tgt.issued
  "DiagnosticReport-performer" : for src.performer as v then drpPerformer(v, tgt)
  "DiagnosticReport-request" : for src.basedOn make tgt.request
  "DiagnosticReport-specimen" : for src.specimen make tgt.specimen
  "DiagnosticReport-result" : for src.result make tgt.result
  "DiagnosticReport-imagingStudy" : for src.imagingStudy make tgt.imagingStudy
  "DiagnosticReport-image" : for src.image as vs0 make tgt.image as vt0 then drpImage(vs0, vt0)
  "DiagnosticReport-conclusion" : for src.conclusion make tgt.conclusion
  "DiagnosticReport-codedDiagnosis" : for src.codedDiagnosis make tgt.codedDiagnosis
  "DiagnosticReport-presentedForm" : for src.presentedForm make tgt.presentedForm
endgroup

group drpPerformer extends BackboneElement
  input src as source
  input tgt as target
  
  "DiagnosticReport.performer-actor" : for src.actor make tgt.performer
  
endgroup

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

  "DiagnosticReport.image-comment" : for src.comment make tgt.comment
  "DiagnosticReport.image-link" : for src.link make tgt.link
endgroup
f001
  • ERROR @ DiagnosticReport.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.contained.status': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.contained.intent': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.contained.extension: The extension http://hl7.org/fhir/diagnosticorder-r2-marker is unknown, and not allowed here (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.basedOn.contained.status': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.basedOn.contained.intent': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained.extension: The extension http://hl7.org/fhir/diagnosticorder-r2-marker is unknown, and not allowed here (src = InstanceValidator)
f202
  • ERROR @ DiagnosticReport.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.contained.status': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.contained.intent': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.contained.code': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.contained.extension: The extension http://hl7.org/fhir/diagnosticorder-r2-marker is unknown, and not allowed here (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.basedOn.contained.status': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.basedOn.contained.intent': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.basedOn.contained.code': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained.extension: The extension http://hl7.org/fhir/diagnosticorder-r2-marker is unknown, and not allowed here (src = InstanceValidator)
micro
  • ERROR @ DiagnosticReport.contained[26]: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.contained[26].status': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.contained[26]: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.contained[26].intent': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.contained[26]: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.contained[26].code': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.contained[26].extension: The extension http://hl7.org/fhir/diagnosticorder-r2-marker is unknown, and not allowed here (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.basedOn.contained.status': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.basedOn.contained.intent': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained: Profile http://hl7.org/fhir/StructureDefinition/ProcedureRequest, Element 'DiagnosticReport.basedOn.contained.code': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ DiagnosticReport.basedOn.contained.extension: The extension http://hl7.org/fhir/diagnosticorder-r2-marker is unknown, and not allowed here (src = InstanceValidator)