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
Official URL: http://hl7.org/fhir/StructureMap/MeasureReport4to3 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: MeasureReport4to3 |
MeasureReportTransformsR4toR3
/// url = 'http://hl7.org/fhir/StructureMap/MeasureReport4to3' /// name = 'MeasureReport4to3' /// title = 'MeasureReport Transforms: R4 to R3' /// status = 'active' uses "http://hl7.org/fhir/4.0/MeasureReport" alias MeasureReport as source uses "http://hl7.org/fhir/3.0/MeasureReport" alias MeasureReportR3 as target imports "http://hl7.org/fhir/StructureMap/*4to3" group MeasureReport(source src : MeasureReportR3, target tgt : MeasureReport) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.status -> tgt.status; src.type as v -> tgt.type = translate(v, 'http://hl7.org/fhir/ConceptMap/MeasureReport.type-R4toR3', 'code'); src.measure -> tgt.measure; src.subject -> tgt.patient; src.date -> tgt.date; src.reporter -> tgt.reportingOrganization; src.period -> tgt.period; src.group as s -> tgt.group as t then group(s, t); src.evaluatedResource -> tgt.evaluatedResources; } group group(source src, target tgt) extends BackboneElement { src.code as vs -> tgt.identifier as vt then Codeable2Identifier(vs, vt); src.population as s -> tgt.population as t then population(s, t); src.measureScore -> tgt.measureScore; src.stratifier as s -> tgt.stratifier as t then stratifier(s, t); } group population(source src, target tgt) extends BackboneElement { src.extension as e where url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MeasureReport.group.population.identifier' then { e.value -> tgt.identifier; }; src.code -> tgt.code; src.count -> tgt.count; src.subjectResults -> tgt.patients; } group stratifier(source src, target tgt) extends BackboneElement { src.code as vs -> tgt.identifier as vt then Codeable2Identifier(vs, vt); src.stratum as s -> tgt.stratum as t then stratum(s, t); } group stratum(source src, target tgt) extends BackboneElement { src.value as cc then { cc.text -> tgt.value; }; src.population as s -> tgt.population as t then population2(s, t); src.measureScore -> tgt.measureScore; } group population2(source src, target tgt) extends BackboneElement { src.extension as e where url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-MeasureReport.group.stratifier.stratum.population.identifier' then { e.value -> tgt.identifier; }; src.code -> tgt.code; src.count -> tgt.count; src.subjectResults -> tgt.patients; }