Class: FHIR::DSTU2::RiskAssessment::Prediction
- Defined in:
- lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'probability' => ['decimal', 'Range', 'CodeableConcept'], 'when' => ['Period', 'Range'] }
- METADATA =
{ 'id' => {'type'=>'id', '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'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}}, 'probabilityDecimal' => {'type'=>'decimal', 'path'=>'Prediction.probability[x]', 'min'=>0, 'max'=>1}, 'probabilityRange' => {'type'=>'Range', 'path'=>'Prediction.probability[x]', 'min'=>0, 'max'=>1}, 'probabilityCodeableConcept' => {'valid_codes'=>{'http://hl7.org/fhir/risk-probability'=>['negligible', 'low', 'moderate', 'high', 'certain']}, 'type'=>'CodeableConcept', 'path'=>'Prediction.probability[x]', '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 id.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#outcome ⇒ Object
1-1 CodeableConcept.
-
#probabilityCodeableConcept ⇒ Object
0-1 CodeableConcept.
-
#probabilityDecimal ⇒ Object
0-1 decimal.
-
#probabilityRange ⇒ Object
0-1 Range.
-
#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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile
Constructor Details
This class inherits a constructor from FHIR::DSTU2::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model
Instance Attribute Details
#extension ⇒ Object
0-* [ Extension ]
54 55 56 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 54 def extension @extension end |
#id ⇒ Object
0-1 id
53 54 55 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 53 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
55 56 57 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 55 def modifierExtension @modifierExtension end |
#outcome ⇒ Object
1-1 CodeableConcept
56 57 58 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 56 def outcome @outcome end |
#probabilityCodeableConcept ⇒ Object
0-1 CodeableConcept
59 60 61 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 59 def probabilityCodeableConcept @probabilityCodeableConcept end |
#probabilityDecimal ⇒ Object
0-1 decimal
57 58 59 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 57 def probabilityDecimal @probabilityDecimal end |
#probabilityRange ⇒ Object
0-1 Range
58 59 60 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 58 def probabilityRange @probabilityRange end |
#rationale ⇒ Object
0-1 string
63 64 65 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 63 def rationale @rationale end |
#relativeRisk ⇒ Object
0-1 decimal
60 61 62 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 60 def relativeRisk @relativeRisk end |
#whenPeriod ⇒ Object
0-1 Period
61 62 63 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 61 def whenPeriod @whenPeriod end |
#whenRange ⇒ Object
0-1 Range
62 63 64 |
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 62 def whenRange @whenRange end |