Current Build

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

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

R3 : R4 Conversion maps for Bundle.

Functional status for this map: 28 tests of which 7 fail to execute. 9 fail round-trip testing and 14 r3 resources are invalid (0 errors). (see documentation)

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

uses "http://hl7.org/fhir/3.0/StructureDefinition/Bundle" alias BundleR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

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

group Bundle(source src : BundleR3, target tgt : Bundle) extends Resource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type -> tgt.type;
  src.total -> tgt.total;
  src.link as vs0 -> tgt.link as vt0 then link(vs0, vt0);
  src.entry as vs0 -> tgt.entry as vt0 then entry(vs0, vt0);
  src.signature -> tgt.signature;
}

group link(source src, target tgt) extends BackboneElement {
  src.relation -> tgt.relation;
  src.url -> tgt.url;
}

group entry(source src, target tgt) extends BackboneElement {
  src.fullUrl -> tgt.fullUrl;
  src.resource -> tgt.resource;
}

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

uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Bundle" alias BundleR3 as target

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

group Bundle(source src : Bundle, target tgt : BundleR3) extends Resource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type -> tgt.type;
  src.total -> tgt.total;
  src.link as vs0 -> tgt.link as vt0 then link(vs0, vt0);
  src.entry as vs0 -> tgt.entry as vt0 then entry(vs0, vt0);
  src.signature -> tgt.signature;
}

group link(source src, target tgt) extends BackboneElement {
  src.relation -> tgt.relation;
  src.url -> tgt.url;
}

group entry(source src, target tgt) extends BackboneElement {
  src.fullUrl -> tgt.fullUrl;
  src.resource -> tgt.resource;
}

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