FHIR Extensions Pack
1.0.0 - Working Copy International flag

This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR 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: R4B to R5

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

FMLConversionforClinicalImpressionR4BtoR5

/// url = 'http://hl7.org/fhir/StructureMap/ClinicalImpression4Bto5'
/// name = 'ClinicalImpression4Bto5'
/// title = 'FML Conversion for ClinicalImpression: R4B to R5'
/// status = 'draft'

conceptmap "ClinicalImpressionStatus" {
  prefix s = "http://hl7.org/fhir/4.3/event-status"
  prefix t = "http://hl7.org/fhir/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/4.3/StructureDefinition/ClinicalImpression" alias ClinicalImpressionR4B as source
uses "http://hl7.org/fhir/StructureDefinition/ClinicalImpression" alias ClinicalImpressionR5 as target

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

group ClinicalImpression(source src : ClinicalImpressionR4B, target tgt : ClinicalImpressionR5) 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.assessor -> tgt.performer;
  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.itemCodeableConcept -> tgt.item;
  src.itemReference -> tgt.item;
  src.basis -> tgt.basis;
}