### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/RiskAssessment.json
### ----------------------------------------------------
### -- Chunk 7 of 8
 "RiskAssessment.prediction",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      },
      {
        "key" : "ras-2",
        "severity" : "error",
        "human" : "Must be <= 100",
        "expression" : "probability is decimal implies (probability as decimal) <= 100",
        "xpath" : "not(f:probabilityDecimal) or f:probabilityDecimal/@value <= 100"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=VALUE].target[classCod=OBS, moodCode=RISK]"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.id",
      "path" : "RiskAssessment.prediction.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.extension",
      "path" : "RiskAssessment.prediction.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.modifierExtension",
      "path" : "RiskAssessment.prediction.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.outcome",
      "path" : "RiskAssessment.prediction.outcome",
      "short" : "Possible outcome for the subject",
      "definition" : "One of the potential outcomes for the patient (e.g. remission, death,  a particular condition).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "RiskAssessment.prediction.outcome",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "RiskAssessmentOutcome"
        }],
        "strength" : "example",
        "description" : "The condition or other outcome; e.g. death, remission, amputation, infection, etc."
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".value"
      },
      {
        "identity" : "openehr",
        "map" : "Risk"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.probability[x]",
      "path" : "RiskAssessment.prediction.probability[x]",
      "short" : "Likelihood of specified outcome",
      "definition" : "Indicates how likely the outcome is (in the specified timeframe).",
      "comment" : "If range is used, it represents the lower and upper bounds of certainty; e.g. 40-60%  Decimal values are expressed as percentages as well (max = 100).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "RiskAssessment.prediction.probability[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "decimal"
      },
      {
        "code" : "Range"
      }],
      "constraint" : [{
        "key" : "ras-1",
        "severity" : "error",
        "human" : "low and high must be percentages, if present",
        "expression" : "(low.empty() or ((low.code = '%') and (low.system = %ucum))) and (high.empty() or ((high.code = '%') and (high.system = %ucum)))",
        "xpath" : "(not(f:low) or f:low[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org']) and (not(f:high) or f:high[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org'])"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"probability\"].value"
      },
      {
        "identity" : "openehr",
        "map" : "Category"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.qualitativeRisk",
      "path" : "RiskAssessment.prediction.qualitativeRisk",
      "short" : "Likelihood of specified outcome as a qualitative value",
      "definition" : "Indicates how likely the outcome is (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, or high).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "RiskAssessment.prediction.qualitativeRisk",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "RiskAssessmentProbability"
        }],
        "strength" : "example",
        "description" : "The likelihood of the occurrence of a specified outcome.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/risk-probability"
      }
    },
    {
      "id" : "RiskAssessment.prediction.relativeRisk",
      "path" : "RiskAssessment.prediction.relativeRisk",
      "short" : "Relative likelihood",
      "definition" : "Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general.  (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).",
      "requirements" : "Absolute risk is less meaningful than relative risk.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "RiskAssessment.prediction.relativeRisk",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "decimal"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"relative risk\"].value"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.when[x]",
      "path" : "RiskAssessment.prediction.when[x]",
      "short" : "Timeframe or age range",
      "definition" : "Indicates the period of time or age range of the subject to which the specified probability applies.",
      "comment" : "If not specified, the risk applies \"over the subject's lifespan\".",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "RiskAssessment.prediction.when[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      },
      {
        "code" : "Range"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".effectiveTime or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age\"].value"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.rationale",
      "path" : "RiskAssessment.prediction.rationale",
      "short" : "Explanation of prediction",
      "definition" : "Additional information explaining the basis for the prediction.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "RiskAssessment.prediction.rationale",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".reasonCode.text"
      },
      {
        "identity" : "openehr",
        "map" : "Rationale"
      }]
    },
    {
      "id" : "RiskAssessment.mitigation",
      "path" : "RiskAssessment.mitigation",
      "short" : "How to reduce risk",
      "definition" : "A description of the steps that might be taken to reduce the identified risk(s).",
      "requirements" : "One of the main reasons for assessing risks is to identify whether interventional steps are needed to reduce risk.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "RiskAssessment.mitigation",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=MTGT].target[classCode=ACT, moodCode=EVN].text"
      }]
    },
    {
      "id" : "RiskAssessment.note",
      "path" : "RiskAssessment.note",
      "short" : "Comments on the risk assessment",
      "definition" : "Additional comments about the risk assessment.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "RiskAssessment.note",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Annotation"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.note"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "RiskAssessment",
      "path" : "RiskAssessment",
      "short" : "Potential outcomes for a subject with likelihood",
      "definition" : "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.",
      "alias" : ["Prognosis"],
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event"
      },
      {
        "identity" : "v2",
        "map" : "N/A"
      },
      {
        "identity" : "rim",
        "map" : "Observation[classCode=OBS, moodCode=EVN, code=\"Risk Assessment\"]"
      },
      {
        "identity" : "openehr",
        "map" : "OpenEHR-EHR-EVALUATION.risk.v1"
      }]
    },
    {
      "id" : "RiskAssessment.identifier",
      "path" : "RiskAssessment.identifier",
      "short" : "Unique identifier for the assessment",
      "definition" : "Business identifier assigned to the risk assessment.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      },
      {
        "identity" : "openehr",
        "map" : "Workflow Identifier"
      }]
    },
    {
      "id" : "RiskAssessment.basedOn",
      "path" : "RiskAssessment.basedOn",
      "short" : "Request fulfilled by this assessment",
      "definition" : "A reference to the request that is fulfilled by this risk assessment.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"
      }]
    },
    {
      "id" : "RiskAssessment.parent",
      "path" : "RiskAssessment.parent",
      "short" : "Part of this occurrence",
      "definition" : "A reference to a resource that this risk assessment is part of, such as a Procedure.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.partOf"
      }]
    },
    {
      "id" : "RiskAssessment.status",
      "path" : "RiskAssessment.status",
      "short" : "registered | preliminary | final | amended +",
      "definition" : "The status of the RiskAssessment, using the same statuses as an Observation.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "RiskAssessmentStatus"
        }],
        "strength" : "required",
        "description" : "The status of the risk assessment; e.g. preliminary, final, amended, etc.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.status"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      }]
    },
    {
      "id" : "RiskAssessment.method",
      "path" : "RiskAssessment.method",
      "short" : "Evaluation mechanism",
      "definition" : "The algorithm, process or mechanism used to evaluate the risk.",
      "requirements" : "The method can influence the results of the assessment.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "RiskAssessmentMethod"
        }],
        "strength" : "example",
        "description" : "The mechanism or algorithm used to make the assessment; e.g. TIMI, PRISM, Cardiff Type 2 diabetes, etc."
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"
      },
      {
        "identity" : "rim",
        "map" : ".methodCode"
      }]
    },
    {
      "id" : "RiskAssessment.code",
      "path" : "RiskAssessment.code",
      "short" : "Type of assessment",
      "definition" : "The type of the risk assessment performed.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      }]
    },
    {
      "id" : "RiskAssessment.subject",
      "path" : "RiskAssessment.subject",
      "short" : "Who/what does assessment apply to?",
      "definition" : "The patient or group the risk assessment applies to.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Group"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=SBJ].role"
      },
      {
        "identity" : "openehr",
        "map" : "Subject of Care"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "RiskAssessment.encounter",
      "path" : "RiskAssessment.encounter",
      "short" : "Where was assessment performed?",
      "definition" : "The encounter where the assessment was performed.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.encounter"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.context"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
      }]
    },
    {
      "id" : "RiskAssessment.occurrence[x]",
      "path" : "RiskAssessment.occurrence[x]",
      "short" : "When was assessment made?",
      "definition" : "The date (and possibly time) the risk assessment was performed.",
      "requirements" : "The assessment results lose validity the more time elapses from when they are first made.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      },
      {
        "code" : "Period"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "RiskAssessment.condition",
      "path" : "RiskAssessment.condition",
      "short" : "Condition assessed",
      "definition" : "For assessments or prognosis specific to a particular condition, indicates the condition being assessed.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]"
      }]
    },
    {
      "id" : "RiskAssessment.performer",
      "path" : "RiskAssessment.performer",
      "short" : "Who did assessment?",
      "definition" : "The provider or software application that performed the assessment.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM].role[classCode=ASSIGNED]"
      },
      {
        "identity" : "openehr",
        "map" : "Information Provider"
      }]
    },
    {
      "id" : "RiskAssessment.reasonCode",
      "path" : "RiskAssessment.reasonCode",
      "short" : "Why the assessment was necessary?",
      "definition" : "The reason the risk assessment was performed.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "RiskAssessment.reasonReference",
      "path" : "RiskAssessment.reasonReference",
      "short" : "Why the assessment was necessary?",
      "definition" : "Resources supporting the reason the risk assessment was performed.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Observation",
        "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
        "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonReference"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "RiskAssessment.basis",
      "path" : "RiskAssessment.basis",
      "short" : "Information used in assessment",
      "definition" : "Indicates the source data considered as part of the assessment (for example, FamilyHistory, Observations, Procedures, Conditions, etc.).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DRIV].target"
      },
      {
        "identity" : "openehr",
        "map" : "Risk Factor; Link to Evidence"
      }]
    },
    {
      "id" : "RiskAssessment.prediction",
      "path" : "RiskAssessment.prediction",
      "short" : "Outcome predicted",
      "definition" : "Describes the expected outcome for the subject.",
      "comment" : "Multiple repetitions can be used to identify the same type of outcome in different timeframes as well as different types of outcomes.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ras-2",
        "severity" : "error",
        "human" : "Must be <= 100",
        "expression" : "probability is decimal implies (probability as decimal) <= 100",
        "xpath" : "not(f:probabilityDecimal) or f:probabilityDecimal/@value <= 100"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=VALUE].target[classCod=OBS, moodCode=RISK]"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.outcome",
      "path" : "RiskAssessment.prediction.outcome",
      "short" : "Possible outcome for the subject",
      "definition" : "One of the potential outcomes for the patient (e.g. remission, death,  a particular condition).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "RiskAssessmentOutcome"
        }],
        "strength" : "example",
        "description" : "The condition or other outcome; e.g. death, remission, amputation, infection, etc."
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".value"
      },
      {
        "identity" : "openehr",
        "map" : "Risk"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.probability[x]",
      "path" : "RiskAssessment.prediction.probability[x]",
      "short" : "Likelihood of specified outcome",
      "definition" : "Indicates how likely the outcome is (in the specified timeframe).",
      "comment" : "If range is used, it represents the lower and upper bounds of certainty; e.g. 40-60%  Decimal values are expressed as percentages as well (max = 100).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "decimal"
      },
      {
        "code" : "Range"
      }],
      "constraint" : [{
        "key" : "ras-1",
        "severity" : "error",
        "human" : "low and high must be percentages, if present",
        "expression" : "(low.empty() or ((low.code = '%') and (low.system = %ucum))) and (high.empty() or ((high.code = '%') and (high.system = %ucum)))",
        "xpath" : "(not(f:low) or f:low[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org']) and (not(f:high) or f:high[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org'])"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"probability\"].value"
      },
      {
        "identity" : "openehr",
        "map" : "Category"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.qualitativeRisk",
      "path" : "RiskAssessment.prediction.qualitativeRisk",
      "short" : "Likelihood of specified outcome as a qualitative value",
      "definition" : "Indicates how likely the outcome is (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, or high).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "RiskAssessmentProbability"
        }],
        "strength" : "example",
        "description" : "The likelihood of the occurrence of a specified outcome.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/risk-probability"
      }
    },
    {
      "id" : "RiskAssessment.prediction.relativeRisk",
      "path" : "RiskAssessment.prediction.relativeRisk",
      "short" : "Relative likelihood",
      "definition" : "Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general.  (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).",
      "requirements" : "Absolute risk is less meaningful than relative risk.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "decimal"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"relative risk\"].value"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.when[x]",
      "path" : "RiskAssessment.prediction.when[x]",
      "short" : "Timeframe or age range",
      "definition" : "Indicates the period of time or age range of the subject to which the specified probability applies.",
      "comment" : "If not specified, the risk applies \"over the subject's lifespan\".",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      },
      {
        "code" : "Range"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".effectiveTime or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age\"].value"
      }]
    },
    {
      "id" : "RiskAssessment.prediction.rationale",
      "path" : "RiskAssessment.prediction.rationale",
      "short" : "Explanation of prediction",
      "definition" : "Additional information explaining the basis for the prediction.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".reasonCode.text"
      },
      {
        "identity" : "openehr",
        "map" : "Rationale"
      }]
    },
    {
      "id" : "RiskAssessment.mitigation",
      "path" : "RiskAssessment.mitigation",
      "short" : "How to reduce risk",
      "definition" : "A description of the steps that might be taken to reduce the identified risk(s).",
      "requirements" : "One of the main reasons for assessing risks is to identify whether interventional steps are needed to reduce risk.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=MTGT].target[classCode=ACT, moodCode=EVN].text"
      }]
    },
    {
      "id" : "RiskAssessment.note",
      "path" : "RiskAssessment.note",
      "short" : "Comments on the risk assessment",
      "definition" : "Additional comments about the risk assessment.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event