Class: FHIR::RiskAssessment::Prediction

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/resources/RiskAssessment.rb

Constant Summary collapse

MULTIPLE_TYPES =
{
  'probability' => ['decimal', 'Range'],
  'when' => ['Period', 'Range']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Prediction.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Prediction.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Prediction.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'outcome' => {'type'=>'CodeableConcept', 'path'=>'Prediction.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example'}},
  'probabilityDecimal' => {'type'=>'decimal', 'path'=>'Prediction.probability[x]', 'min'=>0, 'max'=>1},
  'probabilityRange' => {'type'=>'Range', 'path'=>'Prediction.probability[x]', 'min'=>0, 'max'=>1},
  'qualitativeRisk' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/risk-probability'=>['negligible', 'low', 'moderate', 'high', 'certain']}, 'type'=>'CodeableConcept', 'path'=>'Prediction.qualitativeRisk', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/risk-probability'}},
  'relativeRisk' => {'type'=>'decimal', 'path'=>'Prediction.relativeRisk', 'min'=>0, 'max'=>1},
  'whenPeriod' => {'type'=>'Period', 'path'=>'Prediction.when[x]', 'min'=>0, 'max'=>1},
  'whenRange' => {'type'=>'Range', 'path'=>'Prediction.when[x]', 'min'=>0, 'max'=>1},
  'rationale' => {'type'=>'string', 'path'=>'Prediction.rationale', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#extensionObject

0-* [ Extension ]



64
65
66
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 64

def extension
  @extension
end

#idObject

0-1 string



63
64
65
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 63

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



65
66
67
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 65

def modifierExtension
  @modifierExtension
end

#outcomeObject

0-1 CodeableConcept



66
67
68
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 66

def outcome
  @outcome
end

#probabilityDecimalObject

0-1 decimal



67
68
69
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 67

def probabilityDecimal
  @probabilityDecimal
end

#probabilityRangeObject

0-1 Range



68
69
70
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 68

def probabilityRange
  @probabilityRange
end

#qualitativeRiskObject

0-1 CodeableConcept



69
70
71
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 69

def qualitativeRisk
  @qualitativeRisk
end

#rationaleObject

0-1 string



73
74
75
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 73

def rationale
  @rationale
end

#relativeRiskObject

0-1 decimal



70
71
72
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 70

def relativeRisk
  @relativeRisk
end

#whenPeriodObject

0-1 Period



71
72
73
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 71

def whenPeriod
  @whenPeriod
end

#whenRangeObject

0-1 Range



72
73
74
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 72

def whenRange
  @whenRange
end