Class: FHIR::DSTU2::Questionnaire::Group::Question

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

Constant Summary collapse

METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Question.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Question.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Question.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'linkId' => { 'type' => 'string', 'path' => 'Question.linkId', 'min' => 0, 'max' => 1 },
  'concept' => { 'valid_codes' => { 'http://loinc.org' => [] }, 'type' => 'Coding', 'path' => 'Question.concept', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/questionnaire-questions' } },
  'text' => { 'type' => 'string', 'path' => 'Question.text', 'min' => 0, 'max' => 1 },
  'type' => { 'valid_codes' => { 'http://hl7.org/fhir/answer-format' => ['boolean', 'decimal', 'integer', 'date', 'dateTime', 'instant', 'time', 'string', 'text', 'url', 'choice', 'open-choice', 'attachment', 'reference', 'quantity'] }, 'type' => 'code', 'path' => 'Question.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/answer-format' } },
  'required' => { 'type' => 'boolean', 'path' => 'Question.required', 'min' => 0, 'max' => 1 },
  'repeats' => { 'type' => 'boolean', 'path' => 'Question.repeats', 'min' => 0, 'max' => 1 },
  'options' => { 'type' => 'Reference', 'path' => 'Question.options', 'min' => 0, 'max' => 1 },
  'option' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'Coding', 'path' => 'Question.option', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/questionnaire-answers' } },
  'group' => { 'type' => 'Questionnaire::Group', 'path' => 'Question.group', '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, #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

#conceptObject

0-* [ Coding ]



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

def concept
  @concept
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#groupObject

0-* [ Questionnaire::Group ]



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

def group
  @group
end

#idObject

0-1 id



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

def id
  @id
end

#linkIdObject

0-1 string



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

def linkId
  @linkId
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#optionObject

0-* [ Coding ]



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

def option
  @option
end

#optionsObject

0-1 Reference()



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

def options
  @options
end

#repeatsObject

0-1 boolean



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

def repeats
  @repeats
end

#requiredObject

0-1 boolean



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

def required
  @required
end

#textObject

0-1 string



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

def text
  @text
end

#typeObject

0-1 code



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

def type
  @type
end