Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

FHIR Infrastructure icon Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Anonymous Compartments: No defined compartments

R4 : R5 Conversion maps for CompartmentDefinition.

Functional status for this map: See Conversions Summary. (see documentation)

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

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

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

group CompartmentDefinition(source src : CompartmentDefinitionR3, target tgt : CompartmentDefinition) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.name -> tgt.name;
  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.purpose -> tgt.purpose;
  src.useContext -> tgt.useContext;
  src.code -> tgt.code;
  src.search -> tgt.search;
  src.resource as vs0 -> tgt.resource as vt0 then {
    vs0.code -> vt0.code;
    vs0.param -> vt0.param;
    vs0.documentation -> vt0.documentation;
  };
}


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

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

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

group CompartmentDefinition(source src : CompartmentDefinition, target tgt : CompartmentDefinitionR3) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.name -> tgt.name;
  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.purpose -> tgt.purpose;
  src.useContext -> tgt.useContext;
  src.code -> tgt.code;
  src.search -> tgt.search;
  src.resource as vs0 -> tgt.resource as vt0 then {
    vs0.code -> vt0.code;
    vs0.param -> vt0.param;
    vs0.documentation -> vt0.documentation;
  };
}


No validation errors - all conversions are clean