Class: FHIR::RiskAssessment::Prediction
- 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
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#outcome ⇒ Object
0-1 CodeableConcept.
-
#probabilityDecimal ⇒ Object
0-1 decimal.
-
#probabilityRange ⇒ Object
0-1 Range.
-
#qualitativeRisk ⇒ Object
0-1 CodeableConcept.
-
#rationale ⇒ Object
0-1 string.
-
#relativeRisk ⇒ Object
0-1 decimal.
-
#whenPeriod ⇒ Object
0-1 Period.
-
#whenRange ⇒ Object
0-1 Range.
Method Summary
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#extension ⇒ Object
0-* [ Extension ]
64 65 66 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 64 def extension @extension end |
#id ⇒ Object
0-1 string
63 64 65 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 63 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
65 66 67 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 65 def modifierExtension @modifierExtension end |
#outcome ⇒ Object
0-1 CodeableConcept
66 67 68 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 66 def outcome @outcome end |
#probabilityDecimal ⇒ Object
0-1 decimal
67 68 69 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 67 def probabilityDecimal @probabilityDecimal end |
#probabilityRange ⇒ Object
0-1 Range
68 69 70 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 68 def probabilityRange @probabilityRange end |
#qualitativeRisk ⇒ Object
0-1 CodeableConcept
69 70 71 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 69 def qualitativeRisk @qualitativeRisk end |
#rationale ⇒ Object
0-1 string
73 74 75 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 73 def rationale @rationale end |
#relativeRisk ⇒ Object
0-1 decimal
70 71 72 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 70 def relativeRisk @relativeRisk end |
#whenPeriod ⇒ Object
0-1 Period
71 72 73 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 71 def whenPeriod @whenPeriod end |
#whenRange ⇒ Object
0-1 Range
72 73 74 |
# File 'lib/fhir_models/fhir/resources/RiskAssessment.rb', line 72 def whenRange @whenRange end |