Current Build

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

Financial Management Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Encounter, Patient, Practitioner

R3 : R4 Conversion maps for VisionPrescription.

Functional status for this map: 2 tests of which 1 fail to execute. 1 fail round-trip testing and all r3 resources are valid. (see documentation)

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

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

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

group VisionPrescription(source src : VisionPrescriptionR3, target tgt : VisionPrescription) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.patient -> tgt.patient;
  src.encounter -> tgt.encounter;
  src.dateWritten -> tgt.dateWritten;
  src.prescriber -> tgt.prescriber;
  src.reason -> tgt.reason;
  src.dispense as s -> tgt.dispense as t then VisionPrescriptionDispense(s, t);
}

group VisionPrescriptionDispense(source src : VisionPrescriptionR3, target tgt : VisionPrescription) extends BackboneElement <<type+>> {
  src.product -> tgt.product;
  src.eye -> tgt.eye;
  src.sphere -> tgt.sphere;
  src.cylinder -> tgt.cylinder;
  src.axis -> tgt.axis;
  src.prism as s -> tgt.prism as t then VisionPrescriptionDispensePrism(s, t);
  src.add -> tgt.add;
  src.power -> tgt.power;
  src.backCurve -> tgt.backCurve;
  src.diameter -> tgt.diameter;
  src.duration -> tgt.duration;
  src.color -> tgt.color;
  src.brand -> tgt.brand;
  src.note -> tgt.note;
}

group VisionPrescriptionDispensePrism(source src : VisionPrescriptionR3, target tgt : VisionPrescription) extends BackboneElement <<type+>> {
  src.amount -> tgt.amount;
  src.base -> tgt.base;
}


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

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

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

group VisionPrescription(source src : VisionPrescriptionR3, target tgt : VisionPrescription) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.patient -> tgt.patient;
  src.encounter -> tgt.encounter;
  src.dateWritten -> tgt.dateWritten;
  src.prescriber -> tgt.prescriber;
  src.reason -> tgt.reason;
  src.dispense as s -> tgt.dispense as t then VisionPrescriptionDispense(s, t);
}

group VisionPrescriptionDispense(source src : VisionPrescriptionR3, target tgt : VisionPrescription) extends BackboneElement <<type+>> {
  src.product -> tgt.product;
  src.eye -> tgt.eye;
  src.sphere -> tgt.sphere;
  src.cylinder -> tgt.cylinder;
  src.axis -> tgt.axis;
  src.prism as s -> tgt.prism as t then VisionPrescriptionDispensePrism(s, t);
  src.add -> tgt.add;
  src.power -> tgt.power;
  src.backCurve -> tgt.backCurve;
  src.diameter -> tgt.diameter;
  src.duration -> tgt.duration;
  src.color -> tgt.color;
  src.brand -> tgt.brand;
  src.note -> tgt.note;
}

group VisionPrescriptionDispensePrism(source src : VisionPrescriptionR3, target tgt : VisionPrescription) extends BackboneElement <<type+>> {
  src.amount -> tgt.amount;
  src.base -> tgt.base;
}


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