R4 Ballot #1 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.0: R4 Ballot 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

Patient Care Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Encounter, Patient, Practitioner

R2 : R3 Conversion maps for ClinicalImpression.

Functional status for this map: 1 test that all execute ok. 1 fail round-trip testing and all r3 resources are valid. (see documentation)

map "http://hl7.org/fhir/StructureMap/ClinicalImpression2to3" = "R2 to R3 Conversions for ClinicalImpression"

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

  s:"in-progress" = t:draft 
  s:completed  = t:completed
  s:"entered-in-error" = t:"entered-in-error"
}

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/ClinicalImpression" alias ClinicalImpressionR2 as source
uses "http://hl7.org/fhir/StructureDefinition/ClinicalImpression" alias ClinicalImpression as target

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

group for type+types  ClinicalImpression extends DomainResource
  input src : ClinicalImpressionR2 as source
  input tgt : ClinicalImpression as target

  "ClinicalImpression-subject" : for src.patient make tgt.subject
  "ClinicalImpression-assessor" : for src.assessor make tgt.assessor
  "ClinicalImpression-status" : for src.status as v make tgt.status = translate(v, "#ClinicalImpressionStatus", "code")
  "ClinicalImpression-date" : for src.date make tgt.date
  "ClinicalImpression-description" : for src.description make tgt.description
  "ClinicalImpression-previous" : for src.previous make tgt.previous
  "ClinicalImpression-problem" : for src.problem make tgt.problem
  "ClinicalImpression-investigations" : for src.investigations as vs0 make tgt.investigation as vt0 then cimInvestigation(vs0, vt0) 
  "ClinicalImpression-protocol" : for src.protocol make tgt.protocol
  "ClinicalImpression-summary" : for src.summary make tgt.summary
  "ClinicalImpression-finding" : for src.finding as vs0 make tgt.finding as vt0 then cimFinding(vs0, vt0) 
  "ClinicalImpression-action" : for src.action make tgt.action
endgroup

group cimFinding extends BackboneElement
  input src as source
  input tgt as target

  "ClinicalImpression.finding-item" : for src.item make tgt.item
  "ClinicalImpression.finding-reason" : for src.reason make tgt.basis
endgroup

group cimInvestigation extends BackboneElement
  input src as source
  input tgt as target

  "ClinicalImpression.finding-code" : for src.code make tgt.code
  "ClinicalImpression.finding-item" : for src.item make tgt.item
endgroup

map "http://hl7.org/fhir/StructureMap/ClinicalImpression3to2" = "R3 to R2 Conversion for ClinicalImpression"

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

  s:draft = t:"in-progress"
  s:completed  = t:completed
  s:"entered-in-error" = t:"entered-in-error"
}


uses "http://hl7.org/fhir/StructureDefinition/ClinicalImpression" alias ClinicalImpression as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/ClinicalImpression" alias ClinicalImpressionR2 as target

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

group for type+types  ClinicalImpression extends DomainResource
  input src : ClinicalImpression as source
  input tgt : ClinicalImpressionR2 as target

  "ClinicalImpression-subject" : for src.subject make tgt.patient
  "ClinicalImpression-assessor" : for src.assessor make tgt.assessor
  "ClinicalImpression-status" : for src.status as v make tgt.status = translate(v, "#ClinicalImpressionStatus", "code")
  "ClinicalImpression-date" : for src.date make tgt.date
  "ClinicalImpression-description" : for src.description make tgt.description
  "ClinicalImpression-previous" : for src.previous make tgt.previous
  "ClinicalImpression-problem" : for src.problem make tgt.problem
  "ClinicalImpression-investigations" : for src.investigation as vs0 make tgt.investigations as vt0 then cimInvestigation(vs0, vt0) 
  "ClinicalImpression-protocol" : for src.protocol make tgt.protocol
  "ClinicalImpression-summary" : for src.summary make tgt.summary
  "ClinicalImpression-finding" : for src.finding as vs0 make tgt.finding as vt0 then cimFinding(vs0, vt0) 
  "ClinicalImpression-action" : for src.action make tgt.action
endgroup

group cimFinding extends BackboneElement
  input src as source
  input tgt as target

  "ClinicalImpression.finding-item" : for src.item make tgt.item
  "ClinicalImpression.finding-reason" : for src.basis make tgt.reason
endgroup

group cimInvestigation extends BackboneElement
  input src as source
  input tgt as target

  "ClinicalImpression.finding-code" : for src.code make tgt.code
  "ClinicalImpression.finding-item" : for src.item make tgt.item
endgroup