Class: FHIR::R5::Account

Inherits:
Model show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r5/generated/resources/Account.rb

Defined Under Namespace

Classes: Balance, Coverage, Diagnosis, Guarantor, Procedure, RelatedAccount

Constant Summary collapse

SEARCH_PARAMS =
['guarantor', 'identifier', 'name', 'owner', 'patient', 'period', 'relatedaccount', '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', 'additional'=>[{'purpose'=>'starter', 'valueSet'=>'http://hl7.org/fhir/ValueSet/languages'}], 'uri'=>'http://hl7.org/fhir/ValueSet/all-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},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/account-status'=>['active', 'inactive', 'entered-in-error', 'on-hold', 'unknown']}, 'type'=>'code', 'path'=>'Account.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/account-status'}},
  'billingStatus' => {'valid_codes'=>{'http://hl7.org/fhir/account-billing-status'=>['open', 'carecomplete-notbilled', 'billing', 'closed-baddebt', 'closed-voided', 'closed-completed', 'closed-combined']}, 'type'=>'CodeableConcept', 'path'=>'Account.billingStatus', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/account-billing-status'}},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActCode'=>['_ActAccountCode', 'ACCTRECEIVABLE', 'CASH', 'CC', 'AE', 'DN', 'DV', 'MC', 'V', 'PBILLACCT', '_CreditCard']}, 'type'=>'CodeableConcept', 'path'=>'Account.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/account-type'}},
  'name' => {'type'=>'string', 'path'=>'Account.name', '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/PractitionerRole', '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'=>Float::INFINITY},
  'servicePeriod' => {'type'=>'Period', 'path'=>'Account.servicePeriod', 'min'=>0, 'max'=>1},
  'coverage' => {'type'=>'Account::Coverage', 'path'=>'Account.coverage', 'min'=>0, 'max'=>Float::INFINITY},
  'owner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Account.owner', 'min'=>0, 'max'=>1},
  'description' => {'type'=>'markdown', 'path'=>'Account.description', 'min'=>0, 'max'=>1},
  'guarantor' => {'type'=>'Account::Guarantor', 'path'=>'Account.guarantor', 'min'=>0, 'max'=>Float::INFINITY},
  'diagnosis' => {'type'=>'Account::Diagnosis', 'path'=>'Account.diagnosis', 'min'=>0, 'max'=>Float::INFINITY},
  'procedure' => {'type'=>'Account::Procedure', 'path'=>'Account.procedure', 'min'=>0, 'max'=>Float::INFINITY},
  'relatedAccount' => {'type'=>'Account::RelatedAccount', 'path'=>'Account.relatedAccount', 'min'=>0, 'max'=>Float::INFINITY},
  'currency' => {'valid_codes'=>{'urn:iso:std:iso:4217'=>['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYN', 'BZD', 'CAD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'CNY', 'COP', 'COU', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRU', 'MUR', 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STN', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'USN', 'UYI', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XAG', 'XAU', 'XBA', 'XBB', 'XBC', 'XBD', 'XCD', 'XDR', 'XOF', 'XPD', 'XPF', 'XPT', 'XSU', 'XTS', 'XUA', 'XXX', 'YER', 'ZAR', 'ZMW', 'ZWL']}, 'type'=>'CodeableConcept', 'path'=>'Account.currency', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/currencies'}},
  'balance' => {'type'=>'Account::Balance', 'path'=>'Account.balance', 'min'=>0, 'max'=>Float::INFINITY},
  'calculatedAt' => {'type'=>'instant', 'path'=>'Account.calculatedAt', 'min'=>0, 'max'=>1}
}

Constants included from FHIR::R4

FHIR::R4::PRIMITIVES, FHIR::R4::RESOURCES, FHIR::R4::TYPES

Constants included from FHIR

Account, ActivityDefinition, Address, AdverseEvent, Age, AllergyIntolerance, Annotation, Appointment, AppointmentResponse, Attachment, AuditEvent, BackboneElement, Basic, Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, CodeableConcept, Coding, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, ContactDetail, ContactPoint, Contract, Contributor, Count, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, DataRequirement, Definitions, DetectedIssue, Device, DeviceDefinition, DeviceMetric, DeviceRequest, DeviceUseStatement, DiagnosticReport, Distance, DocumentManifest, DocumentReference, DomainResource, Dosage, Duration, EffectEvidenceSynthesis, Element, ElementDefinition, Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, EvidenceVariable, ExampleScenario, ExplanationOfBenefit, Expression, Extension, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, GuidanceResponse, HealthcareService, HumanName, Identifier, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, MarketingStatus, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, Meta, MolecularSequence, Money, NamingSystem, Narrative, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, OperationOutcome, Organization, OrganizationAffiliation, PRIMITIVES, ParameterDefinition, Parameters, Patient, PaymentNotice, PaymentReconciliation, Period, Person, PlanDefinition, Population, Practitioner, PractitionerRole, Procedure, ProdCharacteristic, ProductShelfLife, Provenance, Quantity, Questionnaire, QuestionnaireResponse, FHIR::RESOURCES, FHIR::Range, FHIR::Ratio, FHIR::Reference, FHIR::RelatedArtifact, FHIR::RelatedPerson, FHIR::RequestGroup, FHIR::ResearchDefinition, FHIR::ResearchElementDefinition, FHIR::ResearchStudy, FHIR::ResearchSubject, FHIR::Resource, FHIR::RiskAssessment, FHIR::RiskEvidenceSynthesis, SampledData, Schedule, SearchParameter, ServiceRequest, Signature, Slot, Specimen, SpecimenDefinition, StructureDefinition, StructureDefinitionCompare, StructureMap, Subscription, Substance, SubstanceAmount, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, TYPES, Task, TerminologyCapabilities, TestReport, TestScript, Timing, TriggerDefinition, UsageContext, ValueSet, VerificationResult, VisionPrescription

Constants included from FHIR::R5

PRIMITIVES, RESOURCES, TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FHIR::R4

#fhir_version_string, #versioned_fhir_module

Methods included from FHIR

default_logger, fhir_version_string, logger, logger=, primitive?, versioned_fhir_module

Methods included from ClassMethods

#from_contents

Methods included from ClassXml

#from_xml, #valid?, #validate, #xml_node_to_hash

Methods included from InstanceXml

#hash_to_xml_node, #to_xml

Methods included from ClassJson

#from_json

Methods included from InstanceJson

#to_json

Methods included from Hashable

#from_hash, #to_hash

Methods included from FHIR::R5

#fhir_version_string, #versioned_fhir_module

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

Methods included from Deprecate

#deprecate

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

#balanceObject

0-* [ Account::Balance ]



202
203
204
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 202

def balance
  @balance
end

#billingStatusObject

0-1 CodeableConcept



189
190
191
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 189

def billingStatus
  @billingStatus
end

#calculatedAtObject

0-1 instant



203
204
205
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 203

def calculatedAt
  @calculatedAt
end

#containedObject

0-* [ Resource ]



184
185
186
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 184

def contained
  @contained
end

#coverageObject

0-* [ Account::Coverage ]



194
195
196
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 194

def coverage
  @coverage
end

#currencyObject

0-1 CodeableConcept



201
202
203
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 201

def currency
  @currency
end

#descriptionObject

0-1 markdown



196
197
198
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 196

def description
  @description
end

#diagnosisObject

0-* [ Account::Diagnosis ]



198
199
200
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 198

def diagnosis
  @diagnosis
end

#extensionObject

0-* [ Extension ]



185
186
187
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 185

def extension
  @extension
end

#guarantorObject

0-* [ Account::Guarantor ]



197
198
199
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 197

def guarantor
  @guarantor
end

#idObject

0-1 id



179
180
181
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 179

def id
  @id
end

#identifierObject

0-* [ Identifier ]



187
188
189
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 187

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



181
182
183
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 181

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



182
183
184
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 182

def language
  @language
end

#metaObject

0-1 Meta



180
181
182
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 180

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



186
187
188
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 186

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



191
192
193
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 191

def name
  @name
end

#ownerObject

0-1 Reference(Organization)



195
196
197
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 195

def owner
  @owner
end

#procedureObject

0-* [ Account::Procedure ]



199
200
201
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 199

def procedure
  @procedure
end

#relatedAccountObject

0-* [ Account::RelatedAccount ]



200
201
202
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 200

def relatedAccount
  @relatedAccount
end

#servicePeriodObject

0-1 Period



193
194
195
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 193

def servicePeriod
  @servicePeriod
end

#statusObject

1-1 code



188
189
190
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 188

def status
  @status
end

#subjectObject

0-* [ Reference(Patient|Device|Practitioner|PractitionerRole|Location|HealthcareService|Organization) ]



192
193
194
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 192

def subject
  @subject
end

#textObject

0-1 Narrative



183
184
185
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 183

def text
  @text
end

#typeObject

0-1 CodeableConcept



190
191
192
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 190

def type
  @type
end

Instance Method Details

#resourceTypeObject



205
206
207
# File 'lib/fhir_models/r5/generated/resources/Account.rb', line 205

def resourceType
  'Account'
end