Class: FHIR::QuestionnaireResponse::Item::Answer
- Defined in:
- lib/fhir_models/fhir/resources/QuestionnaireResponse.rb
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'value' => ['boolean', 'decimal', 'integer', 'date', 'dateTime', 'time', 'string', 'uri', 'Attachment', 'Coding', 'Quantity', 'Reference'] }
- METADATA =
{ 'id' => {'type'=>'string', 'path'=>'Answer.id', 'min'=>0, 'max'=>1}, 'extension' => {'type'=>'Extension', 'path'=>'Answer.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'Answer.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'valueBoolean' => {'type'=>'boolean', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueDecimal' => {'type'=>'decimal', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueInteger' => {'type'=>'integer', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueDate' => {'type'=>'date', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueDateTime' => {'type'=>'dateTime', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueTime' => {'type'=>'time', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueString' => {'type'=>'string', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueUri' => {'type'=>'uri', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueAttachment' => {'type'=>'Attachment', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueCoding' => {'type'=>'Coding', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/questionnaire-answers'}}, 'valueQuantity' => {'type'=>'Quantity', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'valueReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1}, 'item' => {'type'=>'QuestionnaireResponse::Item', 'path'=>'Answer.item', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#item ⇒ Object
0-* [ QuestionnaireResponse::Item ].
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#valueAttachment ⇒ Object
0-1 Attachment.
-
#valueBoolean ⇒ Object
0-1 boolean.
-
#valueCoding ⇒ Object
0-1 Coding.
-
#valueDate ⇒ Object
0-1 date.
-
#valueDateTime ⇒ Object
0-1 dateTime.
-
#valueDecimal ⇒ Object
0-1 decimal.
-
#valueInteger ⇒ Object
0-1 integer.
-
#valueQuantity ⇒ Object
0-1 Quantity.
-
#valueReference ⇒ Object
0-1 Reference(Resource).
-
#valueString ⇒ Object
0-1 string.
-
#valueTime ⇒ Object
0-1 time.
-
#valueUri ⇒ Object
0-1 uri.
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 ]
74 75 76 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 74 def extension @extension end |
#id ⇒ Object
0-1 string
73 74 75 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 73 def id @id end |
#item ⇒ Object
0-* [ QuestionnaireResponse::Item ]
88 89 90 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 88 def item @item end |
#modifierExtension ⇒ Object
0-* [ Extension ]
75 76 77 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 75 def modifierExtension @modifierExtension end |
#valueAttachment ⇒ Object
0-1 Attachment
84 85 86 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 84 def valueAttachment @valueAttachment end |
#valueBoolean ⇒ Object
0-1 boolean
76 77 78 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 76 def valueBoolean @valueBoolean end |
#valueCoding ⇒ Object
0-1 Coding
85 86 87 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 85 def valueCoding @valueCoding end |
#valueDate ⇒ Object
0-1 date
79 80 81 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 79 def valueDate @valueDate end |
#valueDateTime ⇒ Object
0-1 dateTime
80 81 82 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 80 def valueDateTime @valueDateTime end |
#valueDecimal ⇒ Object
0-1 decimal
77 78 79 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 77 def valueDecimal @valueDecimal end |
#valueInteger ⇒ Object
0-1 integer
78 79 80 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 78 def valueInteger @valueInteger end |
#valueQuantity ⇒ Object
0-1 Quantity
86 87 88 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 86 def valueQuantity @valueQuantity end |
#valueReference ⇒ Object
0-1 Reference(Resource)
87 88 89 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 87 def valueReference @valueReference end |
#valueString ⇒ Object
0-1 string
82 83 84 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 82 def valueString @valueString end |
#valueTime ⇒ Object
0-1 time
81 82 83 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 81 def valueTime @valueTime end |
#valueUri ⇒ Object
0-1 uri
83 84 85 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 83 def valueUri @valueUri end |