Current Build

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

Pharmacy Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Patient, Practitioner

R3 : R4 Conversion maps for MedicationDispense.

Functional status for this map: 31 tests of which 31 fail to execute. (see documentation)

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

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

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

group MedicationDispense(source src : MedicationDispenseR3, target tgt : MedicationDispense) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.partOf -> tgt.partOf;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.medication : CodeableConcept as vs -> tgt.medication = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
  src.medication : Reference as vs -> tgt.medication = create("Reference") as vt then Reference(vs, vt);
  src.subject -> tgt.subject;
  src.context -> tgt.context;
  src.supportingInformation -> tgt.supportingInformation;
  src.performer as vs0 -> tgt.performer as vt0 then {
    vs0.actor -> vt0.actor;
  };
  src.authorizingPrescription -> tgt.authorizingPrescription;
  src.type -> tgt.type;
  src.quantity -> tgt.quantity;
  src.daysSupply -> tgt.daysSupply;
  src.whenPrepared -> tgt.whenPrepared;
  src.whenHandedOver -> tgt.whenHandedOver;
  src.destination -> tgt.destination;
  src.receiver -> tgt.receiver;
  src.note -> tgt.note;
  src.dosageInstruction -> tgt.dosageInstruction;
  src.substitution as vs0 -> tgt.substitution as vt0 then {
    vs0.wasSubstituted -> vt0.wasSubstituted;
    vs0.type -> vt0.type;
    vs0.reason -> vt0.reason;
    vs0.responsibleParty -> vt0.responsibleParty;
  };
  src.detectedIssue -> tgt.detectedIssue;
  src.eventHistory -> tgt.eventHistory;
}


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

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

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

group MedicationDispense(source src : MedicationDispense, target tgt : MedicationDispenseR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.partOf -> tgt.partOf;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.medication : CodeableConcept as vs -> tgt.medication = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
  src.medication : Reference as vs -> tgt.medication = create("Reference") as vt then Reference(vs, vt);
  src.subject -> tgt.subject;
  src.context -> tgt.context;
  src.supportingInformation -> tgt.supportingInformation;
  src.performer as vs0 -> tgt.performer as vt0 then {
    vs0.actor -> vt0.actor;
  };
  src.authorizingPrescription -> tgt.authorizingPrescription;
  src.type -> tgt.type;
  src.quantity -> tgt.quantity;
  src.daysSupply -> tgt.daysSupply;
  src.whenPrepared -> tgt.whenPrepared;
  src.whenHandedOver -> tgt.whenHandedOver;
  src.destination -> tgt.destination;
  src.receiver -> tgt.receiver;
  src.note -> tgt.note;
  src.dosageInstruction -> tgt.dosageInstruction;
  src.substitution as vs0 -> tgt.substitution as vt0 then {
    vs0.wasSubstituted -> vt0.wasSubstituted;
    vs0.type -> vt0.type;
    vs0.reason -> vt0.reason;
    vs0.responsibleParty -> vt0.responsibleParty;
  };
  src.detectedIssue -> tgt.detectedIssue;
  src.eventHistory -> tgt.eventHistory;
}


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