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 Task.

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

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

uses "http://hl7.org/fhir/3.0/StructureDefinition/Task" alias TaskR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Task" alias Task as target

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

group Task(source src : TaskR3, target tgt : Task) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.instantiates -> tgt.instantiates;
  src.basedOn -> tgt.basedOn;
  src.groupIdentifier -> tgt.groupIdentifier;
  src.partOf -> tgt.partOf;
  src.status -> tgt.status;
  src.statusReason -> tgt.statusReason;
  src.businessStatus -> tgt.businessStatus;
  src.intent -> tgt.intent;
  src.priority -> tgt.priority;
  src.code -> tgt.code;
  src.description -> tgt.description;
  src.focus -> tgt.focus;
  src.for -> tgt.for;
  src.context -> tgt.context;
  src.executionPeriod -> tgt.executionPeriod;
  src.authoredOn -> tgt.authoredOn;
  src.lastModified -> tgt.lastModified;
  src.requester -> tgt.requester;
  src.performerType -> tgt.performerType;
  src.owner -> tgt.owner;
  src.location -> tgt.location;
  src.reasonCode -> tgt.reasonCode;
  src.reasonReference -> tgt.reasonReference;
  src.note -> tgt.note;
  src.relevantHistory -> tgt.relevantHistory;
  src.restriction as s -> tgt.restriction as t then TaskRestriction(s, t);
  src.input as s -> tgt.input as t then TaskInput(s, t);
  src.output as s -> tgt.output as t then TaskOutput(s, t);
}

group TaskRestriction(source src : TaskR3, target tgt : Task) extends BackboneElement <<type+>> {
  src.repetitions -> tgt.repetitions;
  src.period -> tgt.period;
  src.recipient -> tgt.recipient;
}

group TaskInput(source src : TaskR3, target tgt : Task) extends BackboneElement <<type+>> {
  src.type -> tgt.type;
  src.value -> tgt.value;
}

group TaskOutput(source src : TaskR3, target tgt : Task) extends BackboneElement <<type+>> {
  src.type -> tgt.type;
  src.value -> tgt.value;
}


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

uses "http://hl7.org/fhir/StructureDefinition/Task" alias Task as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Task" alias TaskR3 as target

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

group Task(source src : TaskR3, target tgt : Task) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.instantiates -> tgt.instantiates;
  src.basedOn -> tgt.basedOn;
  src.groupIdentifier -> tgt.groupIdentifier;
  src.partOf -> tgt.partOf;
  src.status -> tgt.status;
  src.statusReason -> tgt.statusReason;
  src.businessStatus -> tgt.businessStatus;
  src.intent -> tgt.intent;
  src.priority -> tgt.priority;
  src.code -> tgt.code;
  src.description -> tgt.description;
  src.focus -> tgt.focus;
  src.for -> tgt.for;
  src.context -> tgt.context;
  src.executionPeriod -> tgt.executionPeriod;
  src.authoredOn -> tgt.authoredOn;
  src.lastModified -> tgt.lastModified;
  src.requester -> tgt.requester;
  src.performerType -> tgt.performerType;
  src.owner -> tgt.owner;
  src.location -> tgt.location;
  src.reasonCode -> tgt.reasonCode;
  src.reasonReference -> tgt.reasonReference;
  src.note -> tgt.note;
  src.relevantHistory -> tgt.relevantHistory;
  src.restriction as s -> tgt.restriction as t then TaskRestriction(s, t);
  src.input as s -> tgt.input as t then TaskInput(s, t);
  src.output as s -> tgt.output as t then TaskOutput(s, t);
}

group TaskRestriction(source src : TaskR3, target tgt : Task) extends BackboneElement <<type+>> {
  src.repetitions -> tgt.repetitions;
  src.period -> tgt.period;
  src.recipient -> tgt.recipient;
}

group TaskInput(source src : TaskR3, target tgt : Task) extends BackboneElement <<type+>> {
  src.type -> tgt.typeendgroup;
  src.value -> tgt.value;
}

group TaskOutput(source src : TaskR3, target tgt : Task) extends BackboneElement <<type+>> {
  src.type -> tgt.type;
  src.value -> tgt.value;
}


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