Class: FHIR::DSTU2::Contract::Term::ValuedItem

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'entity' => ['CodeableConcept', 'Reference']
}
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'ValuedItem.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'ValuedItem.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'ValuedItem.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'entityCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'ValuedItem.entity[x]', 'min' => 0, 'max' => 1 },
  'entityReference' => { 'type' => 'Reference', 'path' => 'ValuedItem.entity[x]', 'min' => 0, 'max' => 1 },
  'identifier' => { 'type' => 'Identifier', 'path' => 'ValuedItem.identifier', 'min' => 0, 'max' => 1 },
  'effectiveTime' => { 'type' => 'dateTime', 'path' => 'ValuedItem.effectiveTime', 'min' => 0, 'max' => 1 },
  'quantity' => { 'type' => 'Quantity', 'path' => 'ValuedItem.quantity', 'min' => 0, 'max' => 1 },
  'unitPrice' => { 'type' => 'Quantity', 'path' => 'ValuedItem.unitPrice', 'min' => 0, 'max' => 1 },
  'factor' => { 'type' => 'decimal', 'path' => 'ValuedItem.factor', 'min' => 0, 'max' => 1 },
  'points' => { 'type' => 'decimal', 'path' => 'ValuedItem.points', 'min' => 0, 'max' => 1 },
  'net' => { 'type' => 'Quantity', 'path' => 'ValuedItem.net', 'min' => 0, '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, #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

#effectiveTimeObject

0-1 dateTime



193
194
195
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 193

def effectiveTime
  @effectiveTime
end

#entityCodeableConceptObject

0-1 CodeableConcept



190
191
192
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 190

def entityCodeableConcept
  @entityCodeableConcept
end

#entityReferenceObject

0-1 Reference()



191
192
193
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 191

def entityReference
  @entityReference
end

#extensionObject

0-* [ Extension ]



188
189
190
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 188

def extension
  @extension
end

#factorObject

0-1 decimal



196
197
198
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 196

def factor
  @factor
end

#idObject

0-1 id



187
188
189
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 187

def id
  @id
end

#identifierObject

0-1 Identifier



192
193
194
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 192

def identifier
  @identifier
end

#modifierExtensionObject

0-* [ Extension ]



189
190
191
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 189

def modifierExtension
  @modifierExtension
end

#netObject

0-1 Quantity



198
199
200
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 198

def net
  @net
end

#pointsObject

0-1 decimal



197
198
199
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 197

def points
  @points
end

#quantityObject

0-1 Quantity



194
195
196
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 194

def quantity
  @quantity
end

#unitPriceObject

0-1 Quantity



195
196
197
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 195

def unitPrice
  @unitPrice
end