Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). 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/AStandards Status: InformativeSecurity Category: Anonymous Compartments: Not linked to any defined compartments

R4 : R5 Conversion maps for StructureDefinition.

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

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

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

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

group StructureDefinition(source src : StructureDefinitionR3, target tgt : StructureDefinition) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.identifier -> tgt.identifier;
  src.version -> tgt.version;
  src.name -> tgt.name;
  src.title -> tgt.title;
  src.status -> tgt.status;
  src.experimental -> tgt.experimental;
  src.date -> tgt.date;
  src.publisher -> tgt.publisher;
  src.contact -> tgt.contact;
  src.description -> tgt.description;
  src.useContext -> tgt.useContext;
  src.jurisdiction -> tgt.jurisdiction;
  src.purpose -> tgt.purpose;
  src.copyright -> tgt.copyright;
  src.keyword -> tgt.keyword;
  src.fhirVersion where src.fhirVersion = '3.0.1' -> tgt.fhirVersion = '4.0.0';
  src.mapping as vs0 -> tgt.mapping as vt0 then {
    vs0.identity -> vt0.identity;
    vs0.uri -> vt0.uri;
    vs0.name -> vt0.name;
    vs0.comment -> vt0.comment;
  };
  src.kind -> tgt.kind;
  src.abstract -> tgt.abstract;
  src.type -> tgt.type;
  src.baseDefinition -> tgt.baseDefinition;
  src.contextInvariant -> tgt.contextInvariant;
  src.derivation -> tgt.derivation;
  src.snapshot as vs0 -> tgt.snapshot as vt0 then {
    vs0.element -> vt0.element;
  };
  src.differential as vs0 -> tgt.differential as vt0 then {
    vs0.element -> vt0.element;
  };
}


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

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

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

group StructureDefinition(source src : StructureDefinition, target tgt : StructureDefinitionR3) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.identifier -> tgt.identifier;
  src.version -> tgt.version;
  src.name -> tgt.name;
  src.title -> tgt.title;
  src.status -> tgt.status;
  src.experimental -> tgt.experimental;
  src.date -> tgt.date;
  src.publisher -> tgt.publisher;
  src.contact -> tgt.contact;
  src.description -> tgt.description;
  src.useContext -> tgt.useContext;
  src.jurisdiction -> tgt.jurisdiction;
  src.purpose -> tgt.purpose;
  src.copyright -> tgt.copyright;
  src.keyword -> tgt.keyword;
  src.fhirVersion where src.fhirVersion = '4.0.0' -> tgt.fhirVersion = '3.0.1';
  src.mapping as vs0 -> tgt.mapping as vt0 then {
    vs0.identity -> vt0.identity;
    vs0.uri -> vt0.uri;
    vs0.name -> vt0.name;
    vs0.comment -> vt0.comment;
  };
  src.kind -> tgt.kind;
  src.abstract -> tgt.abstract;
  src.type -> tgt.type;
  src.baseDefinition -> tgt.baseDefinition;
  src.contextInvariant -> tgt.contextInvariant;
  src.derivation -> tgt.derivation;
  src.snapshot as vs0 -> tgt.snapshot as vt0 then {
    vs0.element -> vt0.element;
  };
  src.differential as vs0 -> tgt.differential as vt0 then {
    vs0.element -> vt0.element;
  };
}


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