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

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

R3 : R4 Conversion maps for CodeSystem.

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

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/CodeSystem" alias CodeSystemR3 as source
uses "http://hl7.org/fhir/StructureDefinition/CodeSystem" alias CodeSystem as target

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



group CodeSystem extends DomainResource
  input src : CodeSystemR3 as source
  input tgt : CodeSystem as target

  "CodeSystem.url" : for src.url as vs make tgt.url as vt
  "CodeSystem.identifier" : for src.identifier as vs make tgt.identifier as vt
  "CodeSystem.version" : for src.version as vs make tgt.version as vt
  "CodeSystem.name" : for src.name as vs make tgt.name as vt
  "CodeSystem.title" : for src.title as vs make tgt.title as vt
  "CodeSystem.status" : for src.status as vs make tgt.status as vt
  "CodeSystem.experimental" : for src.experimental as vs make tgt.experimental as vt
  "CodeSystem.date" : for src.date as vs make tgt.date as vt
  "CodeSystem.publisher" : for src.publisher as vs make tgt.publisher as vt
  "CodeSystem.contact" : for src.contact as vs make tgt.contact as vt
  "CodeSystem.description" : for src.description as vs make tgt.description as vt
  "CodeSystem.useContext" : for src.useContext as vs make tgt.useContext as vt
  "CodeSystem.jurisdiction" : for src.jurisdiction as vs make tgt.jurisdiction as vt
  "CodeSystem.purpose" : for src.purpose as vs make tgt.purpose as vt
  "CodeSystem.copyright" : for src.copyright as vs make tgt.copyright as vt
  "CodeSystem.caseSensitive" : for src.caseSensitive as vs make tgt.caseSensitive as vt
  "CodeSystem.hierarchyMeaning" : for src.hierarchyMeaning as vs make tgt.hierarchyMeaning as vt
  "CodeSystem.compositional" : for src.compositional as vs make tgt.compositional as vt
  "CodeSystem.versionNeeded" : for src.versionNeeded as vs make tgt.versionNeeded as vt
  "CodeSystem.content" : for src.content as vs make tgt.content as vt
  "CodeSystem.count" : for src.count as vs make tgt.count as vt
  "CodeSystem.filter" : for src.filter as vs0 make tgt.filter as vt0 then {
    "CodeSystem.filter.code" : for vs0.code as vs make vt0.code as vt
    "CodeSystem.filter.description" : for vs0.description as vs make vt0.description as vt
    "CodeSystem.filter.value" : for vs0.value as vs make vt0.value as vt
  }
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/CodeSystem" alias CodeSystem as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/CodeSystem" alias CodeSystemR3 as target

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



group CodeSystem extends DomainResource
  input src : CodeSystem as source
  input tgt : CodeSystemR3 as target

  "CodeSystem.url" : for src.url as vs make tgt.url as vt
  "CodeSystem.identifier" : for src.identifier as vs make tgt.identifier as vt
  "CodeSystem.version" : for src.version as vs make tgt.version as vt
  "CodeSystem.name" : for src.name as vs make tgt.name as vt
  "CodeSystem.title" : for src.title as vs make tgt.title as vt
  "CodeSystem.status" : for src.status as vs make tgt.status as vt
  "CodeSystem.experimental" : for src.experimental as vs make tgt.experimental as vt
  "CodeSystem.date" : for src.date as vs make tgt.date as vt
  "CodeSystem.publisher" : for src.publisher as vs make tgt.publisher as vt
  "CodeSystem.contact" : for src.contact as vs make tgt.contact as vt
  "CodeSystem.description" : for src.description as vs make tgt.description as vt
  "CodeSystem.useContext" : for src.useContext as vs make tgt.useContext as vt
  "CodeSystem.jurisdiction" : for src.jurisdiction as vs make tgt.jurisdiction as vt
  "CodeSystem.purpose" : for src.purpose as vs make tgt.purpose as vt
  "CodeSystem.copyright" : for src.copyright as vs make tgt.copyright as vt
  "CodeSystem.caseSensitive" : for src.caseSensitive as vs make tgt.caseSensitive as vt
  "CodeSystem.hierarchyMeaning" : for src.hierarchyMeaning as vs make tgt.hierarchyMeaning as vt
  "CodeSystem.compositional" : for src.compositional as vs make tgt.compositional as vt
  "CodeSystem.versionNeeded" : for src.versionNeeded as vs make tgt.versionNeeded as vt
  "CodeSystem.content" : for src.content as vs make tgt.content as vt
  "CodeSystem.count" : for src.count as vs make tgt.count as vt
  "CodeSystem.filter" : for src.filter as vs0 make tgt.filter as vt0 then {
    "CodeSystem.filter.code" : for vs0.code as vs make vt0.code as vt
    "CodeSystem.filter.description" : for vs0.description as vs make vt0.description as vt
    "CodeSystem.filter.value" : for vs0.value as vs make vt0.value as vt
  }
endgroup