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 Security Category : Not Classified Compartments : Not linked to any defined compartments

R2 : R3 Converson : R4 Conversion maps for Binary.

Functional status for this map: 2 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/Binary2to3" = "R2 to R3 Conversions for Binary"
map "http://hl7.org/fhir/StructureMap/Binary3to4" = "R3 to R4 Conversions for Binary"
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Binary" alias BinaryR2 as source

uses "http://hl7.org/fhir/3.0/StructureDefinition/Binary" alias BinaryR3 as source

uses "http://hl7.org/fhir/StructureDefinition/Binary" alias Binary as target
imports "http://hl7.org/fhir/StructureMap/primitives2to3"
imports "http://hl7.org/fhir/StructureMap/Resource2to3"
group for type+types  Binary extends Resource
  input src : BinaryR2 as source
  input tgt : Binary as target

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

  "Binary-contentType" : for src.contentType make tgt.contentType
  "Binary-content" : for src.content make tgt.content

group Binary(source src : BinaryR3, target tgt : Binary) extends Resource <<type+>> {
  src.contentType -> tgt.contentType;
  src.securityContext -> tgt.securityContext;
  src.content -> tgt.data;
}

endgroup

map "http://hl7.org/fhir/StructureMap/Binary3to2" = "R3 to R2 Conversion for Binary"
map "http://hl7.org/fhir/StructureMap/Binary4to3" = "R4 to R3 Conversion for Binary"
uses "http://hl7.org/fhir/StructureDefinition/Binary" alias Binary as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Binary" alias BinaryR2 as target
imports "http://hl7.org/fhir/StructureMap/primitives3to2"
imports "http://hl7.org/fhir/StructureMap/Resource3to2"

uses "http://hl7.org/fhir/3.0/StructureDefinition/Binary" alias BinaryR3 as target

group for type+types  Binary extends Resource
  input src : Binary as source
  input tgt : BinaryR2 as target

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

  "Binary-contentType" : for src.contentType make tgt.contentType
  "Binary-content" : for src.content make tgt.content

group Binary(source src : Binary, target tgt : BinaryR3) extends Resource <<type+>> {
  src.contentType -> tgt.contentType;
  src.securityContext -> tgt.securityContext;
  src.data -> tgt.content "content";
}

endgroup

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