Current Build

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

Patient Care Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Patient

R3 : R4 Conversion maps for Goal.

Functional status for this map: 2 tests that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)

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

uses "http://hl7.org/fhir/3.0/StructureDefinition/Goal" alias GoalR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Goal" alias Goal as target

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

group Goal(source src : GoalR3, target tgt : Goal) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.priority -> tgt.priority;
  src.description -> tgt.description;
  src.subject -> tgt.subject;
  src.start : date as vs -> tgt.start = create("date") as vt then date(vs, vt);
  src.start : CodeableConcept as vs -> tgt.start = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
  src.target as vs0 -> tgt.target as vt0 then {
    vs0.measure -> vt0.measure;
    vs0.detail : Quantity as vs -> vt0.detail = create("Quantity") as vt then Quantity(vs, vt);
    vs0.detail : Range as vs -> vt0.detail = create("Range") as vt then Range(vs, vt);
    vs0.detail : CodeableConcept as vs -> vt0.detail = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
    vs0.due : date as vs -> vt0.due = create("date") as vt then date(vs, vt);
    vs0.due : Duration as vs -> vt0.due = create("Duration") as vt then Duration(vs, vt);
  };
  src.statusDate -> tgt.statusDate;
  src.statusReason -> tgt.statusReason;
  src.expressedBy -> tgt.expressedBy;
  src.addresses -> tgt.addresses;
  src.note -> tgt.note;
  src.outcomeCode -> tgt.outcomeCode;
  src.outcomeReference -> tgt.outcomeReference;
}


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

uses "http://hl7.org/fhir/StructureDefinition/Goal" alias Goal as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Goal" alias GoalR3 as target

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

group Goal(source src : Goal, target tgt : GoalR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.priority -> tgt.priority;
  src.description -> tgt.description;
  src.subject -> tgt.subject;
  src.start : date as vs -> tgt.start = create("date") as vt then date(vs, vt);
  src.start : CodeableConcept as vs -> tgt.start = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
  src.target as vs0 -> tgt.target as vt0 then {
    vs0.measure -> vt0.measure;
    vs0.detail : Quantity as vs -> vt0.detail = create("Quantity") as vt then Quantity(vs, vt);
    vs0.detail : Range as vs -> vt0.detail = create("Range") as vt then Range(vs, vt);
    vs0.detail : CodeableConcept as vs -> vt0.detail = create("CodeableConcept") as vt then CodeableConcept(vs, vt);
    vs0.due : date as vs -> vt0.due = create("date") as vt then date(vs, vt);
    vs0.due : Duration as vs -> vt0.due = create("Duration") as vt then Duration(vs, vt);
  };
  src.statusDate -> tgt.statusDate;
  src.statusReason -> tgt.statusReason;
  src.expressedBy -> tgt.expressedBy;
  src.addresses -> tgt.addresses;
  src.note -> tgt.note;
  src.outcomeCode -> tgt.outcomeCode;
  src.outcomeReference -> tgt.outcomeReference;
}


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