FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions

StructureMap: EvidenceReport Transforms: R5 to R4B

Official URL: http://hl7.org/fhir/StructureMap/EvidenceReport5to4B Version: 0.1.0
Standards status: Draft Maturity Level: 1 Computable Name: EvidenceReport5to4B

EvidenceReportTransformsR5toR4B

/// url = 'http://hl7.org/fhir/StructureMap/EvidenceReport5to4B'
/// name = 'EvidenceReport5to4B'
/// title = 'EvidenceReport Transforms: R5 to R4B'
/// status = 'draft'

uses "http://hl7.org/fhir/5.0/EvidenceReport" alias EvidenceReportR5 as source
uses "http://hl7.org/fhir/4.0/EvidenceReport" alias EvidenceReportR4B as target

imports "http://hl7.org/fhir/StructureMap/*5to4B"

group EvidenceReport(source src : EvidenceReportR5, target tgt : EvidenceReportR4B) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/EvidenceReport.status-R5toR4', 'code');
  src.useContext -> tgt.useContext;
  src.identifier -> tgt.identifier;
  src.relatedIdentifier -> tgt.relatedIdentifier;
  src.citeAs : Reference -> tgt.citeAs;
  src.citeAs : markdown -> tgt.citeAs;
  src.type -> tgt.type;
  src.note -> tgt.note;
  src.relatedArtifact -> tgt.relatedArtifact;
  src.subject as s -> tgt.subject as t then EvidenceReportSubject(s, t);
  src.publisher -> tgt.publisher;
  src.contact -> tgt.contact;
  src.author -> tgt.author;
  src.editor -> tgt.editor;
  src.reviewer -> tgt.reviewer;
  src.endorser -> tgt.endorser;
  src.relatesTo as s -> tgt.relatesTo as t then EvidenceReportRelatesTo(s, t);
  src.section as s -> tgt.section as t then EvidenceReportSection(s, t);
}

group EvidenceReportSubject(source src, target tgt) extends BackboneElement {
  src.characteristic as s -> tgt.characteristic as t then EvidenceReportSubjectCharacteristic(s, t);
  src.note -> tgt.note;
}

group EvidenceReportSubjectCharacteristic(source src, target tgt) extends BackboneElement {
  src.code -> tgt.code;
  src.value : Reference -> tgt.value;
  src.value : CodeableConcept -> tgt.value;
  src.value : boolean -> tgt.value;
  src.value : Quantity -> tgt.value;
  src.value : Range -> tgt.value;
  src.exclude -> tgt.exclude;
  src.period -> tgt.period;
}

group EvidenceReportRelatesTo(source src, target tgt) extends BackboneElement {
  src.code as v -> tgt.code = translate(v, 'http://hl7.org/fhir/ConceptMap/EvidenceReport.relatesTo.code-R5toR4', 'code');
  src.target as s -> tgt.target = s.identifier "identifier";
  src.target as s -> tgt.target = s.resource "resource";
}

// group EvidenceReportRelatesToTarget(source src, target tgt) extends BackboneElement {
// src.url -> tgt.url;
// src.identifier -> tgt.identifier;
// src.display -> tgt.display;
// src.resource -> tgt.resource;
// }
group EvidenceReportSection(source src, target tgt) extends BackboneElement {
  src.title -> tgt.title;
  src.focus -> tgt.focus;
  src.focusReference -> tgt.focusReference;
  src.author -> tgt.author;
  src.text -> tgt.text;
  src.mode as v -> tgt.mode = translate(v, 'http://hl7.org/fhir/ConceptMap/EvidenceReport.section.mode-R5toR4', 'code');
  src.orderedBy -> tgt.orderedBy;
  src.entryClassifier -> tgt.entryClassifier;
  src.entryReference -> tgt.entryReference;
  src.entryQuantity -> tgt.entryQuantity;
  src.emptyReason -> tgt.emptyReason;
}