Class: FHIR::DSTU2::Account

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

Constant Summary collapse

SEARCH_PARAMS =
['balance', 'identifier', 'name', 'owner', 'patient', 'period', 'status', 'subject', 'type']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Account.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'Account.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'Account.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'Account.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'Account.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'Account.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'Account.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Account.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'identifier' => { 'type' => 'Identifier', 'path' => 'Account.identifier', 'min' => 0, 'max' => Float::INFINITY },
  'name' => { 'type' => 'string', 'path' => 'Account.name', 'min' => 0, 'max' => 1 },
  'type' => { 'type' => 'CodeableConcept', 'path' => 'Account.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/account-status' => ['active', 'inactive'] }, 'type' => 'code', 'path' => 'Account.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/account-status' } },
  'activePeriod' => { 'type' => 'Period', 'path' => 'Account.activePeriod', 'min' => 0, 'max' => 1 },
  'currency' => { 'type' => 'Coding', 'path' => 'Account.currency', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://www.iso.org/iso/home/standards/currency_codes' } },
  'balance' => { 'type' => 'Quantity', 'path' => 'Account.balance', 'min' => 0, 'max' => 1 },
  'coveragePeriod' => { 'type' => 'Period', 'path' => 'Account.coveragePeriod', 'min' => 0, 'max' => 1 },
  'subject' => { 'type' => 'Reference', 'path' => 'Account.subject', 'min' => 0, 'max' => 1 },
  'owner' => { 'type' => 'Reference', 'path' => 'Account.owner', 'min' => 0, 'max' => 1 },
  'description' => { 'type' => 'string', 'path' => 'Account.description', 'min' => 0, 'max' => 1 }
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activePeriodObject

0-1 Period



43
44
45
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 43

def activePeriod
  @activePeriod
end

#balanceObject

0-1 Quantity



45
46
47
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 45

def balance
  @balance
end

#containedObject

0-* [ Resource ]



36
37
38
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 36

def contained
  @contained
end

#coveragePeriodObject

0-1 Period



46
47
48
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 46

def coveragePeriod
  @coveragePeriod
end

#currencyObject

0-1 Coding



44
45
46
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 44

def currency
  @currency
end

#descriptionObject

0-1 string



49
50
51
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 49

def description
  @description
end

#extensionObject

0-* [ Extension ]



37
38
39
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 37

def extension
  @extension
end

#idObject

0-1 id



31
32
33
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 31

def id
  @id
end

#identifierObject

0-* [ Identifier ]



39
40
41
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 39

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



33
34
35
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 33

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



34
35
36
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 34

def language
  @language
end

#metaObject

0-1 Meta



32
33
34
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 32

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



38
39
40
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 38

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



40
41
42
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 40

def name
  @name
end

#ownerObject

0-1 Reference()



48
49
50
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 48

def owner
  @owner
end

#statusObject

0-1 code



42
43
44
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 42

def status
  @status
end

#subjectObject

0-1 Reference()



47
48
49
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 47

def subject
  @subject
end

#textObject

0-1 Narrative



35
36
37
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 35

def text
  @text
end

#typeObject

0-1 CodeableConcept



41
42
43
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 41

def type
  @type
end

Instance Method Details

#resourceTypeObject



51
52
53
# File 'lib/fhir_dstu2_models/fhir/resources/Account.rb', line 51

def resourceType
  'Account'
end