Class: FHIR::Account
- 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
-
#active ⇒ Object
0-1 Period.
-
#balance ⇒ Object
0-1 Money.
-
#contained ⇒ Object
0-* [ Resource ].
-
#coverage ⇒ Object
0-* [ Reference(Coverage) ].
-
#coveragePeriod ⇒ Object
0-1 Period.
-
#currency ⇒ Object
0-1 Coding.
-
#description ⇒ Object
0-1 string.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#name ⇒ Object
0-1 string.
-
#owner ⇒ Object
0-1 Reference(Organization).
-
#status ⇒ Object
0-1 code.
-
#subject ⇒ Object
0-1 Reference(Patient|Device|Practitioner|Location|HealthcareService|Organization).
-
#text ⇒ Object
0-1 Narrative.
-
#type ⇒ Object
0-1 CodeableConcept.
Instance Method Summary collapse
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
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
#active ⇒ Object
0-1 Period
43 44 45 |
# File 'lib/fhir/resources/Account.rb', line 43 def active @active end |
#balance ⇒ Object
0-1 Money
45 46 47 |
# File 'lib/fhir/resources/Account.rb', line 45 def balance @balance end |
#contained ⇒ Object
0-* [ Resource ]
36 37 38 |
# File 'lib/fhir/resources/Account.rb', line 36 def contained @contained end |
#coverage ⇒ Object
0-* [ Reference(Coverage) ]
46 47 48 |
# File 'lib/fhir/resources/Account.rb', line 46 def coverage @coverage end |
#coveragePeriod ⇒ Object
0-1 Period
47 48 49 |
# File 'lib/fhir/resources/Account.rb', line 47 def coveragePeriod @coveragePeriod end |
#currency ⇒ Object
0-1 Coding
44 45 46 |
# File 'lib/fhir/resources/Account.rb', line 44 def currency @currency end |
#description ⇒ Object
0-1 string
50 51 52 |
# File 'lib/fhir/resources/Account.rb', line 50 def description @description end |
#extension ⇒ Object
0-* [ Extension ]
37 38 39 |
# File 'lib/fhir/resources/Account.rb', line 37 def extension @extension end |
#id ⇒ Object
0-1 id
31 32 33 |
# File 'lib/fhir/resources/Account.rb', line 31 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
39 40 41 |
# File 'lib/fhir/resources/Account.rb', line 39 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
33 34 35 |
# File 'lib/fhir/resources/Account.rb', line 33 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
34 35 36 |
# File 'lib/fhir/resources/Account.rb', line 34 def language @language end |
#meta ⇒ Object
0-1 Meta
32 33 34 |
# File 'lib/fhir/resources/Account.rb', line 32 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
38 39 40 |
# File 'lib/fhir/resources/Account.rb', line 38 def modifierExtension @modifierExtension end |
#name ⇒ Object
0-1 string
40 41 42 |
# File 'lib/fhir/resources/Account.rb', line 40 def name @name end |
#owner ⇒ Object
0-1 Reference(Organization)
49 50 51 |
# File 'lib/fhir/resources/Account.rb', line 49 def owner @owner end |
#status ⇒ Object
0-1 code
42 43 44 |
# File 'lib/fhir/resources/Account.rb', line 42 def status @status end |
#subject ⇒ Object
0-1 Reference(Patient|Device|Practitioner|Location|HealthcareService|Organization)
48 49 50 |
# File 'lib/fhir/resources/Account.rb', line 48 def subject @subject end |
#text ⇒ Object
0-1 Narrative
35 36 37 |
# File 'lib/fhir/resources/Account.rb', line 35 def text @text end |
#type ⇒ Object
0-1 CodeableConcept
41 42 43 |
# File 'lib/fhir/resources/Account.rb', line 41 def type @type end |
Instance Method Details
#resourceType ⇒ Object
52 53 54 |
# File 'lib/fhir/resources/Account.rb', line 52 def resourceType 'Account' end |