Current Build

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

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

R3 : R4 Conversion maps for Medication.

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

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

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

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

group Medication(source src : MedicationR3, target tgt : Medication) extends DomainResource <<type+>> {
  src.code -> tgt.code;
  src.status -> tgt.status;
  src.manufacturer -> tgt.manufacturer;
  src.form -> tgt.form;
  src.ingredient as vs0 -> tgt.ingredient as vt0 then {
    vs0.item : CodeableConcept as vs -> vt0.item = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
    vs0.item : Reference as vs -> vt0.item = create("Reference") as vt then Reference(vs, vt);
    vs0.isActive -> vt0.isActive;
    vs0.amount -> vt0.amount;
  };
}


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

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

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

group Medication(source src : Medication, target tgt : MedicationR3) extends DomainResource <<type+>> {
  src.code -> tgt.code;
  src.status -> tgt.status;
  src.manufacturer -> tgt.manufacturer;
  src.form -> tgt.form;
  src.ingredient as vs0 -> tgt.ingredient as vt0 then {
    vs0.item : CodeableConcept as vs -> vt0.item = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
    vs0.item : Reference as vs -> vt0.item = create("Reference") as vt then Reference(vs, vt);
    vs0.isActive -> vt0.isActive;
    vs0.amount -> vt0.amount;
  };
}


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