R4 Draft for Comment

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

Clinical Decision Support Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Device, Patient, Practitioner

R2 : R3 Conversion maps for RiskAssessment.

Functional status for this map: 4 tests that all execute ok. All tests pass round-trip testing and 4 r3 resources are invalid (4 errors). (see documentation)

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

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/RiskAssessment" alias RiskAssessmentR2 as source
uses "http://hl7.org/fhir/StructureDefinition/RiskAssessment" alias RiskAssessment as target

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

group for type+types  RiskAssessment extends DomainResource
  input src : RiskAssessmentR2 as source
  input tgt : RiskAssessment as target

  "RiskAssessment-subject" : for src.subject make tgt.subject
  "RiskAssessment-date" : for src.date make tgt.occurrence
  "RiskAssessment-condition" : for src.condition make tgt.condition
  "RiskAssessment-context" : for src.encounter make tgt.context
  "RiskAssessment-performer" : for src.performer make tgt.performer
  "RiskAssessment-identifier" : for src.identifier make tgt.identifier
  "RiskAssessment-method" : for src.method make tgt.method
  "RiskAssessment-basis" : for src.basis make tgt.basis
  "RiskAssessment-prediction" : for src.prediction as vs0 make tgt.prediction as vt0 then rskPrediction(vs0, vt0)
  "RiskAssessment-mitigation" : for src.mitigation make tgt.mitigation
endgroup

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

  "RiskAssessment.prediction-outcome" : for src.outcome make tgt.outcome
  "RiskAssessment.prediction-probability" : for src.probability make tgt.probability
  "RiskAssessment.prediction-relativeRisk" : for src.relativeRisk make tgt.relativeRisk
  "RiskAssessment.prediction-when" : for src.when make tgt.when 
  "RiskAssessment.prediction-rationale" : for src.rationale make tgt.rationale
endgroup

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

uses "http://hl7.org/fhir/StructureDefinition/RiskAssessment" alias RiskAssessment as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/RiskAssessment" alias RiskAssessmentR2 as target

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

group for type+types  RiskAssessment extends DomainResource
  input src : RiskAssessment as source
  input tgt : RiskAssessmentR2 as target

  "RiskAssessment-subject" : for src.subject make tgt.subject
  "RiskAssessment-date" : for src.occurrence where $this is dateTime make tgt.date
  "RiskAssessment-condition" : for src.condition make tgt.condition
  "RiskAssessment-encounter" : for src.context make tgt.encounter
  "RiskAssessment-performer" : for src.performer make tgt.performer
  "RiskAssessment-identifier" : for src.identifier make tgt.identifier
  "RiskAssessment-method" : for src.method make tgt.method
  "RiskAssessment-basis" : for src.basis make tgt.basis
  "RiskAssessment-prediction" : for src.prediction as vs0 make tgt.prediction as vt0 then rskPrediction(vs0, vt0)
  "RiskAssessment-mitigation" : for src.mitigation make tgt.mitigation
endgroup

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

  "RiskAssessment.prediction-outcome" : for src.outcome make tgt.outcome
  "RiskAssessment.prediction-probability" : for src.probability make tgt.probability
  "RiskAssessment.prediction-relativeRisk" : for src.relativeRisk make tgt.relativeRisk
  "RiskAssessment.prediction-when" : for src.when make tgt.when 
  "RiskAssessment.prediction-rationale" : for src.rationale make tgt.rationale
endgroup

genetic
  • ERROR @ RiskAssessment: Profile http://hl7.org/fhir/StructureDefinition/RiskAssessment, Element 'RiskAssessment.status': minimum required = 1, but only found 0 (src = InstanceValidator)
cardiac
  • ERROR @ RiskAssessment: Profile http://hl7.org/fhir/StructureDefinition/RiskAssessment, Element 'RiskAssessment.status': minimum required = 1, but only found 0 (src = InstanceValidator)
population
  • ERROR @ RiskAssessment: Profile http://hl7.org/fhir/StructureDefinition/RiskAssessment, Element 'RiskAssessment.status': minimum required = 1, but only found 0 (src = InstanceValidator)
prognosis
  • ERROR @ RiskAssessment: Profile http://hl7.org/fhir/StructureDefinition/RiskAssessment, Element 'RiskAssessment.status': minimum required = 1, but only found 0 (src = InstanceValidator)