Current Build

Переводит команда Health Samurai . Приглашаем поучаствовать в русификации стандарта FHIR: GitHub , Email.

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

R3 : R4 Conversion maps for Substance.

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

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

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

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

group Substance(source src : SubstanceR3, target tgt : Substance) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.code -> tgt.code;
  src.description -> tgt.description;
  src.instance as vs0 -> tgt.instance as vt0 then {
    vs0.identifier -> vt0.identifier;
    vs0.expiry -> vt0.expiry;
    vs0.quantity -> vt0.quantity;
  };
  src.ingredient as vs0 -> tgt.ingredient as vt0 then {
    vs0.quantity -> vt0.quantity;
    vs0.substance : CodeableConcept as vs -> vt0.substance = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
    vs0.substance : Reference as vs -> vt0.substance = create("Reference") as vt then Reference(vs, vt);
  };
}


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

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

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

group Substance(source src : Substance, target tgt : SubstanceR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.code -> tgt.code;
  src.description -> tgt.description;
  src.instance as vs0 -> tgt.instance as vt0 then {
    vs0.identifier -> vt0.identifier;
    vs0.expiry -> vt0.expiry;
    vs0.quantity -> vt0.quantity;
  };
  src.ingredient as vs0 -> tgt.ingredient as vt0 then {
    vs0.quantity -> vt0.quantity;
    vs0.substance : CodeableConcept as vs -> vt0.substance = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
    vs0.substance : Reference as vs -> vt0.substance = create("Reference") as vt then Reference(vs, vt);
  };
}


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