Class: FHIR::QuestionnaireResponse
- Defined in:
- lib/fhir_models/fhir/resources/QuestionnaireResponse.rb
Defined Under Namespace
Classes: Item
Constant Summary collapse
- SEARCH_PARAMS =
['author', 'authored', 'based-on', 'encounter', 'identifier', 'part-of', 'patient', 'questionnaire', 'source', 'status', 'subject']
- METADATA =
{ 'id' => {'type'=>'id', 'path'=>'QuestionnaireResponse.id', 'min'=>0, 'max'=>1}, 'meta' => {'type'=>'Meta', 'path'=>'QuestionnaireResponse.meta', 'min'=>0, 'max'=>1}, 'implicitRules' => {'type'=>'uri', 'path'=>'QuestionnaireResponse.implicitRules', 'min'=>0, 'max'=>1}, 'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'QuestionnaireResponse.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}}, 'text' => {'type'=>'Narrative', 'path'=>'QuestionnaireResponse.text', 'min'=>0, 'max'=>1}, 'contained' => {'type'=>'Resource', 'path'=>'QuestionnaireResponse.contained', 'min'=>0, 'max'=>Float::INFINITY}, 'extension' => {'type'=>'Extension', 'path'=>'QuestionnaireResponse.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'QuestionnaireResponse.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'identifier' => {'type'=>'Identifier', 'path'=>'QuestionnaireResponse.identifier', 'min'=>0, 'max'=>1}, 'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.basedOn', 'min'=>0, 'max'=>Float::INFINITY}, 'partOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/StructureDefinition/Procedure'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.partOf', 'min'=>0, 'max'=>Float::INFINITY}, 'questionnaire' => {'type'=>'canonical', 'path'=>'QuestionnaireResponse.questionnaire', 'min'=>0, 'max'=>1}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/questionnaire-answers-status'=>['in-progress', 'completed', 'amended', 'entered-in-error', 'stopped']}, 'type'=>'code', 'path'=>'QuestionnaireResponse.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.0'}}, 'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.subject', 'min'=>0, 'max'=>1}, 'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.encounter', 'min'=>0, 'max'=>1}, 'authored' => {'type'=>'dateTime', 'path'=>'QuestionnaireResponse.authored', 'min'=>0, 'max'=>1}, 'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.author', 'min'=>0, 'max'=>1}, 'source' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.source', 'min'=>0, 'max'=>1}, 'item' => {'type'=>'QuestionnaireResponse::Item', 'path'=>'QuestionnaireResponse.item', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#author ⇒ Object
0-1 Reference(Device|Practitioner|PractitionerRole|Patient|RelatedPerson|Organization).
-
#authored ⇒ Object
0-1 dateTime.
-
#basedOn ⇒ Object
0-* [ Reference(CarePlan|ServiceRequest) ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#encounter ⇒ Object
0-1 Reference(Encounter).
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-1 Identifier.
-
#implicitRules ⇒ Object
0-1 uri.
-
#item ⇒ Object
0-* [ QuestionnaireResponse::Item ].
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#partOf ⇒ Object
0-* [ Reference(Observation|Procedure) ].
-
#questionnaire ⇒ Object
0-1 canonical.
-
#source ⇒ Object
0-1 Reference(Patient|Practitioner|PractitionerRole|RelatedPerson).
-
#status ⇒ Object
1-1 code.
-
#subject ⇒ Object
0-1 Reference(Resource).
-
#text ⇒ Object
0-1 Narrative.
Instance Method Summary collapse
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
#author ⇒ Object
0-1 Reference(Device|Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)
117 118 119 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 117 def @author end |
#authored ⇒ Object
0-1 dateTime
116 117 118 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 116 def @authored end |
#basedOn ⇒ Object
0-* [ Reference(CarePlan|ServiceRequest) ]
110 111 112 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 110 def basedOn @basedOn end |
#contained ⇒ Object
0-* [ Resource ]
106 107 108 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 106 def contained @contained end |
#encounter ⇒ Object
0-1 Reference(Encounter)
115 116 117 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 115 def encounter @encounter end |
#extension ⇒ Object
0-* [ Extension ]
107 108 109 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 107 def extension @extension end |
#id ⇒ Object
0-1 id
101 102 103 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 101 def id @id end |
#identifier ⇒ Object
0-1 Identifier
109 110 111 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 109 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
103 104 105 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 103 def implicitRules @implicitRules end |
#item ⇒ Object
0-* [ QuestionnaireResponse::Item ]
119 120 121 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 119 def item @item end |
#language ⇒ Object
0-1 code
104 105 106 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 104 def language @language end |
#meta ⇒ Object
0-1 Meta
102 103 104 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 102 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
108 109 110 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 108 def modifierExtension @modifierExtension end |
#partOf ⇒ Object
0-* [ Reference(Observation|Procedure) ]
111 112 113 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 111 def partOf @partOf end |
#questionnaire ⇒ Object
0-1 canonical
112 113 114 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 112 def questionnaire @questionnaire end |
#source ⇒ Object
0-1 Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)
118 119 120 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 118 def source @source end |
#status ⇒ Object
1-1 code
113 114 115 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 113 def status @status end |
#subject ⇒ Object
0-1 Reference(Resource)
114 115 116 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 114 def subject @subject end |
#text ⇒ Object
0-1 Narrative
105 106 107 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 105 def text @text end |
Instance Method Details
#resourceType ⇒ Object
121 122 123 |
# File 'lib/fhir_models/fhir/resources/QuestionnaireResponse.rb', line 121 def resourceType 'QuestionnaireResponse' end |