FHIR Release 3 (STU) 5 Preview #3
This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 4.0.1 . For a full list of available versions, see the Directory of published versions
Patient Care Work Group Maturity Level : N/A Ballot Standards Status : Informative Security Category : Patient Compartments : Device , Patient , Practitioner

R2 : R3 Converson : R4 Conversion maps for Flag.

Functional status for this map: 3 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/Flag2to3" = "R2 to R3 Conversions for Flag"
map "http://hl7.org/fhir/StructureMap/Flag3to4" = "R3 to R4 Conversions for Flag"
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Flag" alias FlagR2 as source

uses "http://hl7.org/fhir/3.0/StructureDefinition/Flag" alias FlagR3 as source

uses "http://hl7.org/fhir/StructureDefinition/Flag" alias Flag as target
imports "http://hl7.org/fhir/StructureMap/*2to3"
group for type+types  Flag extends DomainResource
  input src : FlagR2 as source
  input tgt : Flag as target

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

  "Flag-identifier" : for src.identifier make tgt.identifier
  "Flag-category" : for src.category make tgt.category
  "Flag-status" : for src.status make tgt.status
  "Flag-period" : for src.period make tgt.period
  "Flag-subject" : for src.subject make tgt.subject
  "Flag-encounter" : for src.encounter make tgt.encounter
  "Flag-author" : for src.author make tgt.author
  "Flag-code" : for src.code make tgt.code

group Flag(source src : FlagR3, target tgt : Flag) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.code -> tgt.code;
  src.subject -> tgt.subject;
  src.period -> tgt.period;
  src.encounter -> tgt.encounter;
  src.author -> tgt.author;
}

endgroup

map "http://hl7.org/fhir/StructureMap/Flag3to2" = "R3 to R2 Conversion for Flag"
map "http://hl7.org/fhir/StructureMap/Flag4to3" = "R4 to R3 Conversion for Flag"
uses "http://hl7.org/fhir/StructureDefinition/Flag" alias Flag as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Flag" alias FlagR2 as target
imports "http://hl7.org/fhir/StructureMap/*3to2"

uses "http://hl7.org/fhir/3.0/StructureDefinition/Flag" alias FlagR3 as target

group for type+types  Flag extends DomainResource
  input src : Flag as source
  input tgt : FlagR2 as target

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

  "Flag-identifier" : for src.identifier make tgt.identifier
  "Flag-category" : for src.category make tgt.category
  "Flag-status" : for src.status make tgt.status
  "Flag-period" : for src.period make tgt.period
  "Flag-subject" : for src.subject make tgt.subject
  "Flag-encounter" : for src.encounter make tgt.encounter
  "Flag-author" : for src.author make tgt.author
  "Flag-code" : for src.code make tgt.code

group Flag(source src : Flag, target tgt : FlagR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.code -> tgt.code;
  src.subject -> tgt.subject;
  src.period -> tgt.period;
  src.encounter -> tgt.encounter;
  src.author -> tgt.author;
}

endgroup

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