Class: FHIR::DSTU2::QuestionnaireResponse::Group::Question

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

Defined Under Namespace

Classes: Answer

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 },
  'text' => { 'type' => 'string', 'path' => 'Question.text', 'min' => 0, 'max' => 1 },
  'answer' => { 'type' => 'QuestionnaireResponse::Group::Question::Answer', 'path' => 'Question.answer', '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

#answerObject

0-* [ QuestionnaireResponse::Group::Question::Answer ]



112
113
114
# File 'lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb', line 112

def answer
  @answer
end

#extensionObject

0-* [ Extension ]



108
109
110
# File 'lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb', line 108

def extension
  @extension
end

#idObject

0-1 id



107
108
109
# File 'lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb', line 107

def id
  @id
end

#linkIdObject

0-1 string



110
111
112
# File 'lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb', line 110

def linkId
  @linkId
end

#modifierExtensionObject

0-* [ Extension ]



109
110
111
# File 'lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb', line 109

def modifierExtension
  @modifierExtension
end

#textObject

0-1 string



111
112
113
# File 'lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb', line 111

def text
  @text
end