Class: FHIR::Contract::Term::Offer::Answer

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

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 ]



205
206
207
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 205

def extension
  @extension
end

#idObject

0-1 string



204
205
206
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 204

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



206
207
208
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 206

def modifierExtension
  @modifierExtension
end

#valueAttachmentObject

1-1 Attachment



215
216
217
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 215

def valueAttachment
  @valueAttachment
end

#valueBooleanObject

1-1 boolean



207
208
209
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 207

def valueBoolean
  @valueBoolean
end

#valueCodingObject

1-1 Coding



216
217
218
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 216

def valueCoding
  @valueCoding
end

#valueDateObject

1-1 date



210
211
212
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 210

def valueDate
  @valueDate
end

#valueDateTimeObject

1-1 dateTime



211
212
213
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 211

def valueDateTime
  @valueDateTime
end

#valueDecimalObject

1-1 decimal



208
209
210
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 208

def valueDecimal
  @valueDecimal
end

#valueIntegerObject

1-1 integer



209
210
211
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 209

def valueInteger
  @valueInteger
end

#valueQuantityObject

1-1 Quantity



217
218
219
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 217

def valueQuantity
  @valueQuantity
end

#valueReferenceObject

1-1 Reference(Resource)



218
219
220
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 218

def valueReference
  @valueReference
end

#valueStringObject

1-1 string



213
214
215
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 213

def valueString
  @valueString
end

#valueTimeObject

1-1 time



212
213
214
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 212

def valueTime
  @valueTime
end

#valueUriObject

1-1 uri



214
215
216
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 214

def valueUri
  @valueUri
end