Class: FHIR::Account

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/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'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  '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', 'entered-in-error', 'active', 'inactive', 'entered-in-error']}, 'type'=>'code', 'path'=>'Account.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/account-status'}},
  'active' => {'type'=>'Period', 'path'=>'Account.active', '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'=>'Money', 'path'=>'Account.balance', 'min'=>0, 'max'=>1},
  'coverage' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Coverage'], 'type'=>'Reference', 'path'=>'Account.coverage', 'min'=>0, 'max'=>Float::INFINITY},
  'coveragePeriod' => {'type'=>'Period', 'path'=>'Account.coveragePeriod', 'min'=>0, 'max'=>1},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Location', 'http://hl7.org/fhir/StructureDefinition/HealthcareService', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Account.subject', 'min'=>0, 'max'=>1},
  'owner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], '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, is_valid?, #to_xml, validate

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?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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

#activeObject

0-1 Period



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

def active
  @active
end

#balanceObject

0-1 Money



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

def balance
  @balance
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#coverageObject

0-* [ Reference(Coverage) ]



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

def coverage
  @coverage
end

#coveragePeriodObject

0-1 Period



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

def coveragePeriod
  @coveragePeriod
end

#currencyObject

0-1 Coding



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

def currency
  @currency
end

#descriptionObject

0-1 string



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

def description
  @description
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



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

def name
  @name
end

#ownerObject

0-1 Reference(Organization)



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

def owner
  @owner
end

#statusObject

0-1 code



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

def status
  @status
end

#subjectObject

0-1 Reference(Patient|Device|Practitioner|Location|HealthcareService|Organization)



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

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

#typeObject

0-1 CodeableConcept



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

def type
  @type
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'Account'
end