FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). 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: InformativeCompartments: Not linked to any defined compartments

R2 : R3 Converson 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"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/OperationOutcome" alias OperationOutcomeR2 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
  }


endgroup

map "http://hl7.org/fhir/StructureMap/OperationOutcome3to2" = "R3 to R2 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

  "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
  }


endgroup