FHIR Extensions Pack
5.1.0 - 5.1.0 (April 2024) International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

StructureMap: FML Conversion for ClinicalImpression: R5 to R4

Official URL: http://hl7.org/fhir/StructureMap/ClinicalImpression5to4 Version: 5.1.0
Standards status: Trial-use Maturity Level: 1 Computable Name: ClinicalImpression5to4

FMLConversionforClinicalImpressionR5toR4

/// url = 'http://hl7.org/fhir/StructureMap/ClinicalImpression5to4'
/// name = 'ClinicalImpression5to4'
/// title = 'FML Conversion for ClinicalImpression: R5 to R4'
/// status = 'active'

conceptmap "ClinicalImpressionStatus" {
  prefix s = "http://hl7.org/fhir/event-status"
  prefix t = "http://hl7.org/fhir/4.0/event-status"

  s:preparation - t:preparation
  s:"in-progress" - t:"in-progress"
  s:"not-done" - t:"not-done"
  s:"on-hold" - t:"on-hold"
  s:stopped - t:stopped
  s:completed - t:completed
  s:"entered-in-error" - t:"entered-in-error"
  s:unknown - t:unknown
}

uses "http://hl7.org/fhir/StructureDefinition/ClinicalImpression" alias ClinicalImpressionR5 as source
uses "http://hl7.org/fhir/4.0/StructureDefinition/ClinicalImpression" alias ClinicalImpressionR4 as target

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

group ClinicalImpression(source src : ClinicalImpressionR5, target tgt : ClinicalImpressionR4) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status as v -> tgt.status = translate(v, '#ClinicalImpressionStatus', 'code');
  src.statusReason -> tgt.statusReason;
  src.description -> tgt.description;
  src.subject -> tgt.subject;
  src.encounter -> tgt.encounter;
  src.effective : dateTime -> tgt.effective;
  src.effective : Period -> tgt.effective;
  src.date -> tgt.date;
  src.performer -> tgt.assessor;
  src.previous -> tgt.previous;
  src.problem -> tgt.problem;
  src.protocol -> tgt.protocol; // src.changePattern -> tgt.changePattern;
  src.summary -> tgt.summary;
  src.finding as s -> tgt.finding as t then ClinicalImpressionFinding(s, t);
  src.prognosisCodeableConcept -> tgt.prognosisCodeableConcept;
  src.prognosisReference -> tgt.prognosisReference;
  src.supportingInfo -> tgt.supportingInfo;
  src.note -> tgt.note;
}

group ClinicalImpressionFinding(source src, target tgt) extends BackboneElement {
  src.item -> tgt.itemCodeableConcept;
  src.item -> tgt.itemReference;
  src.basis -> tgt.basis;
}