Class: FHIR::QuestionnaireResponse::Item::Answer

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
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

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 ]



74
75
76
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 74

def extension
  @extension
end

#idObject

0-1 string



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

def id
  @id
end

#itemObject

0-* [ QuestionnaireResponse::Item ]



88
89
90
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 88

def item
  @item
end

#modifierExtensionObject

0-* [ Extension ]



75
76
77
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 75

def modifierExtension
  @modifierExtension
end

#valueAttachmentObject

0-1 Attachment



84
85
86
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 84

def valueAttachment
  @valueAttachment
end

#valueBooleanObject

0-1 boolean



76
77
78
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 76

def valueBoolean
  @valueBoolean
end

#valueCodingObject

0-1 Coding



85
86
87
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 85

def valueCoding
  @valueCoding
end

#valueDateObject

0-1 date



79
80
81
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 79

def valueDate
  @valueDate
end

#valueDateTimeObject

0-1 dateTime



80
81
82
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 80

def valueDateTime
  @valueDateTime
end

#valueDecimalObject

0-1 decimal



77
78
79
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 77

def valueDecimal
  @valueDecimal
end

#valueIntegerObject

0-1 integer



78
79
80
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 78

def valueInteger
  @valueInteger
end

#valueQuantityObject

0-1 Quantity



86
87
88
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 86

def valueQuantity
  @valueQuantity
end

#valueReferenceObject

0-1 Reference(Resource)



87
88
89
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 87

def valueReference
  @valueReference
end

#valueStringObject

0-1 string



82
83
84
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 82

def valueString
  @valueString
end

#valueTimeObject

0-1 time



81
82
83
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 81

def valueTime
  @valueTime
end

#valueUriObject

0-1 uri



83
84
85
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 83

def valueUri
  @valueUri
end