FHIR Release 3 (STU) Current Build
This page is part of FHIR STU 3 (v3.0.1) in it's permanent home (it will always be available at this URL). It has been superceded by R4 . For a full list of available versions, see the Directory of published versions .
FHIR Infrastructure Work Group Maturity Level : N/A Ballot Standards Status : Informative Compartments : Not linked to any defined compartments

R2 : R3 Converson : R4 Conversion maps for OperationOutcome.

Functional status for this map: 6 tests that all execute ok. All tests pass round-trip testing and all r3 resources are valid. ( see documentation)

map "http://hl7.org/fhir/StructureMap/OperationOutcome2to3" = "R2 to R3 Conversions for OperationOutcome"
map "http://hl7.org/fhir/StructureMap/OperationOutcome3to4" = "R3 to R4 Conversions for OperationOutcome"
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/OperationOutcome" alias OperationOutcomeR2 as source

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/primitives2to3"
imports "http://hl7.org/fhir/StructureMap/DomainResource2to3"
imports "http://hl7.org/fhir/StructureMap/CodeableConcept2to3"
group for type+types  OperationOutcome extends DomainResource
  input src : OperationOutcomeR2 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 make vt0.severity
    "OperationOutcome.issue-code" : for vs0.code make vt0.code
    "OperationOutcome.issue-details" : for vs0.details make vt0.details
    "OperationOutcome.issue-diagnostics" : for vs0.diagnostics make vt0.diagnostics
    "OperationOutcome.issue-location" : for vs0.location make vt0.location
  }

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

group OperationOutcome(source src : OperationOutcomeR3, target tgt : OperationOutcome) extends DomainResource <<type+>> {
  src.issue as vs0 -> tgt.issue as vt0 then {
    vs0.severity -> vt0.severity;
    vs0.code -> vt0.code;
    vs0.details -> vt0.details;
    vs0.diagnostics -> vt0.diagnostics;
    vs0.location -> vt0.location;
    vs0.expression -> vt0.expression;
  };
}

endgroup

map "http://hl7.org/fhir/StructureMap/OperationOutcome3to2" = "R3 to R2 Conversion for OperationOutcome"
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/DSTU2/StructureDefinition/OperationOutcome" alias OperationOutcomeR2 as target
imports "http://hl7.org/fhir/StructureMap/primitives3to2"
imports "http://hl7.org/fhir/StructureMap/DomainResource3to2"
imports "http://hl7.org/fhir/StructureMap/CodeableConcept3to2"
group for type+types  OperationOutcome extends DomainResource
  input src : OperationOutcome as source
  input tgt : OperationOutcomeR2 as target

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

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

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

group OperationOutcome(source src : OperationOutcome, target tgt : OperationOutcomeR3) extends DomainResource <<type+>> {
  src.issue as vs0 -> tgt.issue as vt0 then {
    vs0.severity -> vt0.severity;
    vs0.code -> vt0.code;
    vs0.details -> vt0.details;
    vs0.diagnostics -> vt0.diagnostics;
    vs0.location -> vt0.location;
    vs0.expression -> vt0.expression;
  };
}

endgroup

<p>No validation errors - all conversions are clean</p>