Class: FHIR::DSTU2::RiskAssessment

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

Defined Under Namespace

Classes: Prediction

Constant Summary collapse

SEARCH_PARAMS =
['condition', 'date', 'encounter', 'identifier', 'method', 'patient', 'performer', 'subject']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'RiskAssessment.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'RiskAssessment.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'RiskAssessment.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'RiskAssessment.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'RiskAssessment.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'RiskAssessment.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'RiskAssessment.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'RiskAssessment.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'subject' => { 'type' => 'Reference', 'path' => 'RiskAssessment.subject', 'min' => 0, 'max' => 1 },
  'date' => { 'type' => 'dateTime', 'path' => 'RiskAssessment.date', 'min' => 0, 'max' => 1 },
  'condition' => { 'type' => 'Reference', 'path' => 'RiskAssessment.condition', 'min' => 0, 'max' => 1 },
  'encounter' => { 'type' => 'Reference', 'path' => 'RiskAssessment.encounter', 'min' => 0, 'max' => 1 },
  'performer' => { 'type' => 'Reference', 'path' => 'RiskAssessment.performer', 'min' => 0, 'max' => 1 },
  'identifier' => { 'type' => 'Identifier', 'path' => 'RiskAssessment.identifier', 'min' => 0, 'max' => 1 },
  'method' => { 'local_name' => 'local_method', 'type' => 'CodeableConcept', 'path' => 'RiskAssessment.method', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
  'basis' => { 'type' => 'Reference', 'path' => 'RiskAssessment.basis', 'min' => 0, 'max' => Float::INFINITY },
  'prediction' => { 'type' => 'RiskAssessment::Prediction', 'path' => 'RiskAssessment.prediction', 'min' => 0, 'max' => Float::INFINITY },
  'mitigation' => { 'type' => 'string', 'path' => 'RiskAssessment.mitigation', 'min' => 0, 'max' => 1 }
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #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

#basisObject

0-* [ Reference() ]



81
82
83
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 81

def basis
  @basis
end

#conditionObject

0-1 Reference()



76
77
78
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 76

def condition
  @condition
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#dateObject

0-1 dateTime



75
76
77
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 75

def date
  @date
end

#encounterObject

0-1 Reference()



77
78
79
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 77

def encounter
  @encounter
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-1 Identifier



79
80
81
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 79

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#local_methodObject

0-1 CodeableConcept



80
81
82
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 80

def local_method
  @local_method
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#mitigationObject

0-1 string



83
84
85
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 83

def mitigation
  @mitigation
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#performerObject

0-1 Reference()



78
79
80
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 78

def performer
  @performer
end

#predictionObject

0-* [ RiskAssessment::Prediction ]



82
83
84
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 82

def prediction
  @prediction
end

#subjectObject

0-1 Reference()



74
75
76
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 74

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



85
86
87
# File 'lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb', line 85

def resourceType
  'RiskAssessment'
end