Release 5 Preview #2

This page is part of the FHIR Specification (v4.4.0: R5 Preview #2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Clinical Decision Support Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Patient Compartments: Device, Patient, Practitioner

R3 : R4 Conversion maps for DetectedIssue.

Functional status for this map: 4 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/DetectedIssue3to4" = "R3 to R4 Conversions for DetectedIssue"

uses "http://hl7.org/fhir/3.0/StructureDefinition/DetectedIssue" alias DetectedIssueR3 as source
uses "http://hl7.org/fhir/StructureDefinition/DetectedIssue" alias DetectedIssue as target

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

group DetectedIssue(source src : DetectedIssueR3, target tgt : DetectedIssue) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.code;
  src.severity -> tgt.severity;
  src.patient -> tgt.patient;
  src.date as vs -> tgt.identified = create('dateTime') as vt then dateTime(vs, vt);
  src.author -> tgt.author;
  src.implicated -> tgt.implicated;
  src.detail -> tgt.detail;
  src.reference -> tgt.reference;
  src.mitigation as vs0 -> tgt.mitigation as vt0 then mitigation(vs0, vt0);
}

group mitigation(source src, target tgt) extends BackboneElement {
  src.action -> tgt.action;
  src.date -> tgt.date;
  src.author -> tgt.author;
}


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

uses "http://hl7.org/fhir/StructureDefinition/DetectedIssue" alias DetectedIssue as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/DetectedIssue" alias DetectedIssueR3 as target

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

group DetectedIssue(source src : DetectedIssue, target tgt : DetectedIssueR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.code -> tgt.category;
  src.severity -> tgt.severity;
  src.patient -> tgt.patient;
  src.identified : dateTime as vs -> tgt.date as vt then dateTime(vs, vt);
  src.author -> tgt.author;
  src.implicated -> tgt.implicated;
  src.detail -> tgt.detail;
  src.reference -> tgt.reference;
  src.mitigation as vs0 -> tgt.mitigation as vt0 then mitigation(vs0, vt0);
}

group mitigation(source src, target tgt) extends BackboneElement {
  src.action -> tgt.action;
  src.date -> tgt.date;
  src.author -> tgt.author;
}


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