Class: FHIR::Contract::Term::Offer::Answer
- Defined in:
- lib/fhir_models/fhir/resources/Contract.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'=>1, 'max'=>1}, 'valueDecimal' => {'type'=>'decimal', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueInteger' => {'type'=>'integer', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueDate' => {'type'=>'date', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueDateTime' => {'type'=>'dateTime', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueTime' => {'type'=>'time', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueString' => {'type'=>'string', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueUri' => {'type'=>'uri', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueAttachment' => {'type'=>'Attachment', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueCoding' => {'type'=>'Coding', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueQuantity' => {'type'=>'Quantity', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1}, 'valueReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Answer.value[x]', 'min'=>1, 'max'=>1} }
Instance Attribute Summary collapse
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#valueAttachment ⇒ Object
1-1 Attachment.
-
#valueBoolean ⇒ Object
1-1 boolean.
-
#valueCoding ⇒ Object
1-1 Coding.
-
#valueDate ⇒ Object
1-1 date.
-
#valueDateTime ⇒ Object
1-1 dateTime.
-
#valueDecimal ⇒ Object
1-1 decimal.
-
#valueInteger ⇒ Object
1-1 integer.
-
#valueQuantity ⇒ Object
1-1 Quantity.
-
#valueReference ⇒ Object
1-1 Reference(Resource).
-
#valueString ⇒ Object
1-1 string.
-
#valueTime ⇒ Object
1-1 time.
-
#valueUri ⇒ Object
1-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 ]
205 206 207 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 205 def extension @extension end |
#id ⇒ Object
0-1 string
204 205 206 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 204 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
206 207 208 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 206 def modifierExtension @modifierExtension end |
#valueAttachment ⇒ Object
1-1 Attachment
215 216 217 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 215 def valueAttachment @valueAttachment end |
#valueBoolean ⇒ Object
1-1 boolean
207 208 209 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 207 def valueBoolean @valueBoolean end |
#valueCoding ⇒ Object
1-1 Coding
216 217 218 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 216 def valueCoding @valueCoding end |
#valueDate ⇒ Object
1-1 date
210 211 212 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 210 def valueDate @valueDate end |
#valueDateTime ⇒ Object
1-1 dateTime
211 212 213 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 211 def valueDateTime @valueDateTime end |
#valueDecimal ⇒ Object
1-1 decimal
208 209 210 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 208 def valueDecimal @valueDecimal end |
#valueInteger ⇒ Object
1-1 integer
209 210 211 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 209 def valueInteger @valueInteger end |
#valueQuantity ⇒ Object
1-1 Quantity
217 218 219 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 217 def valueQuantity @valueQuantity end |
#valueReference ⇒ Object
1-1 Reference(Resource)
218 219 220 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 218 def valueReference @valueReference end |
#valueString ⇒ Object
1-1 string
213 214 215 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 213 def valueString @valueString end |
#valueTime ⇒ Object
1-1 time
212 213 214 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 212 def valueTime @valueTime end |
#valueUri ⇒ Object
1-1 uri
214 215 216 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 214 def valueUri @valueUri end |