R4 Ballot #2 (Mixed Normative/Trial use)

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

FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R3 : R4 Conversion maps for OperationOutcome.

Functional status for this map: 6 tests that all execute ok. 6 fail round-trip testing and 6 r3 resources are invalid (0 errors). (see documentation)

map "http://hl7.org/fhir/StructureMap/OperationOutcome3to4" = "R3 to R4 Conversions for OperationOutcome"


uses "http://hl7.org/fhir/3.0/StructureDefinition/OperationOutcome" alias OperationOutcomeR3 as source
uses "http://hl7.org/fhir/StructureDefinition/OperationOutcome" alias OperationOutcome as target

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



group OperationOutcome extends DomainResource
  input src : OperationOutcomeR3 as source
  input tgt : OperationOutcome as target

  "OperationOutcome.issue" : for src.issue as vs0 make tgt.issue as vt0 then {
    "OperationOutcome.issue.severity" : for vs0.severity as vs make vt0.severity as vt
    "OperationOutcome.issue.code" : for vs0.code as vs make vt0.code as vt
    "OperationOutcome.issue.details" : for vs0.details as vs make vt0.details as vt
    "OperationOutcome.issue.diagnostics" : for vs0.diagnostics as vs make vt0.diagnostics as vt
    "OperationOutcome.issue.location" : for vs0.location as vs make vt0.location as vt
    "OperationOutcome.issue.expression" : for vs0.expression as vs make vt0.expression as vt
  }
endgroup


map "http://hl7.org/fhir/StructureMap/OperationOutcome4to3" = "R4 to R3 Conversion for OperationOutcome"


uses "http://hl7.org/fhir/StructureDefinition/OperationOutcome" alias OperationOutcome as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/OperationOutcome" alias OperationOutcomeR3 as target

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



group OperationOutcome extends DomainResource
  input src : OperationOutcome as source
  input tgt : OperationOutcomeR3 as target

  "OperationOutcome.issue" : for src.issue as vs0 make tgt.issue as vt0 then {
    "OperationOutcome.issue.severity" : for vs0.severity as vs make vt0.severity as vt
    "OperationOutcome.issue.code" : for vs0.code as vs make vt0.code as vt
    "OperationOutcome.issue.details" : for vs0.details as vs make vt0.details as vt
    "OperationOutcome.issue.diagnostics" : for vs0.diagnostics as vs make vt0.diagnostics as vt
    "OperationOutcome.issue.location" : for vs0.location as vs make vt0.location as vt
    "OperationOutcome.issue.expression" : for vs0.expression as vs make vt0.expression as vt
  }
endgroup