Class: FHIR::R4::Claim

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

Defined Under Namespace

Classes: Accident, CareTeam, Diagnosis, Insurance, Item, Payee, Procedure, Related, SupportingInfo

Constant Summary collapse

SEARCH_PARAMS =
['care-team', 'created', 'detail-udi', 'encounter', 'enterer', 'facility', 'identifier', 'insurer', 'item-udi', 'patient', 'payee', 'priority', 'procedure-udi', 'provider', 'status', 'subdetail-udi', 'use']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Claim.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Claim.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Claim.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'Claim.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Claim.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Claim.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Claim.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Claim.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Claim.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/fm-status'=>['active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'Claim.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/fm-status'}},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/claim-type'=>['institutional', 'oral', 'pharmacy', 'professional', 'vision']}, 'type'=>'CodeableConcept', 'path'=>'Claim.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/claim-type'}},
  'subType' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/ex-claimsubtype'=>['ortho', 'emergency']}, 'type'=>'CodeableConcept', 'path'=>'Claim.subType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/claim-subtype'}},
  'use' => {'valid_codes'=>{'http://hl7.org/fhir/claim-use'=>['claim', 'preauthorization', 'predetermination']}, 'type'=>'code', 'path'=>'Claim.use', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/claim-use'}},
  'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'Claim.patient', 'min'=>1, 'max'=>1},
  'billablePeriod' => {'type'=>'Period', 'path'=>'Claim.billablePeriod', 'min'=>0, 'max'=>1},
  'created' => {'type'=>'dateTime', 'path'=>'Claim.created', 'min'=>1, 'max'=>1},
  'enterer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole'], 'type'=>'Reference', 'path'=>'Claim.enterer', 'min'=>0, 'max'=>1},
  'insurer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Claim.insurer', 'min'=>0, 'max'=>1},
  'provider' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Claim.provider', 'min'=>1, 'max'=>1},
  'priority' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/processpriority'=>['stat', 'normal', 'deferred']}, 'type'=>'CodeableConcept', 'path'=>'Claim.priority', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/process-priority'}},
  'fundsReserve' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/fundsreserve'=>['patient', 'provider', 'none']}, 'type'=>'CodeableConcept', 'path'=>'Claim.fundsReserve', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/fundsreserve'}},
  'related' => {'type'=>'Claim::Related', 'path'=>'Claim.related', 'min'=>0, 'max'=>Float::INFINITY},
  'prescription' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DeviceRequest', 'http://hl7.org/fhir/StructureDefinition/MedicationRequest', 'http://hl7.org/fhir/StructureDefinition/VisionPrescription'], 'type'=>'Reference', 'path'=>'Claim.prescription', 'min'=>0, 'max'=>1},
  'originalPrescription' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DeviceRequest', 'http://hl7.org/fhir/StructureDefinition/MedicationRequest', 'http://hl7.org/fhir/StructureDefinition/VisionPrescription'], 'type'=>'Reference', 'path'=>'Claim.originalPrescription', 'min'=>0, 'max'=>1},
  'payee' => {'type'=>'Claim::Payee', 'path'=>'Claim.payee', 'min'=>0, 'max'=>1},
  'referral' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ServiceRequest'], 'type'=>'Reference', 'path'=>'Claim.referral', 'min'=>0, 'max'=>1},
  'facility' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Claim.facility', 'min'=>0, 'max'=>1},
  'careTeam' => {'type'=>'Claim::CareTeam', 'path'=>'Claim.careTeam', 'min'=>0, 'max'=>Float::INFINITY},
  'supportingInfo' => {'type'=>'Claim::SupportingInfo', 'path'=>'Claim.supportingInfo', 'min'=>0, 'max'=>Float::INFINITY},
  'diagnosis' => {'type'=>'Claim::Diagnosis', 'path'=>'Claim.diagnosis', 'min'=>0, 'max'=>Float::INFINITY},
  'procedure' => {'type'=>'Claim::Procedure', 'path'=>'Claim.procedure', 'min'=>0, 'max'=>Float::INFINITY},
  'insurance' => {'type'=>'Claim::Insurance', 'path'=>'Claim.insurance', 'min'=>1, 'max'=>Float::INFINITY},
  'accident' => {'type'=>'Claim::Accident', 'path'=>'Claim.accident', 'min'=>0, 'max'=>1},
  'item' => {'type'=>'Claim::Item', 'path'=>'Claim.item', 'min'=>0, 'max'=>Float::INFINITY},
  'total' => {'type'=>'Money', 'path'=>'Claim.total', 'min'=>0, 'max'=>1}
}

Constants included from FHIR::R4

PRIMITIVES, RESOURCES, 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

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 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

#accidentObject

0-1 Claim::Accident



454
455
456
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 454

def accident
  @accident
end

#billablePeriodObject

0-1 Period



436
437
438
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 436

def billablePeriod
  @billablePeriod
end

#careTeamObject

0-* [ Claim::CareTeam ]



449
450
451
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 449

def careTeam
  @careTeam
end

#containedObject

0-* [ Resource ]



427
428
429
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 427

def contained
  @contained
end

#createdObject

1-1 dateTime



437
438
439
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 437

def created
  @created
end

#diagnosisObject

0-* [ Claim::Diagnosis ]



451
452
453
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 451

def diagnosis
  @diagnosis
end

#entererObject

0-1 Reference(Practitioner|PractitionerRole)



438
439
440
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 438

def enterer
  @enterer
end

#extensionObject

0-* [ Extension ]



428
429
430
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 428

def extension
  @extension
end

#facilityObject

0-1 Reference(Location)



448
449
450
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 448

def facility
  @facility
end

#fundsReserveObject

0-1 CodeableConcept



442
443
444
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 442

def fundsReserve
  @fundsReserve
end

#idObject

0-1 id



422
423
424
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 422

def id
  @id
end

#identifierObject

0-* [ Identifier ]



430
431
432
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 430

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



424
425
426
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 424

def implicitRules
  @implicitRules
end

#insuranceObject

1-* [ Claim::Insurance ]



453
454
455
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 453

def insurance
  @insurance
end

#insurerObject

0-1 Reference(Organization)



439
440
441
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 439

def insurer
  @insurer
end

#itemObject

0-* [ Claim::Item ]



455
456
457
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 455

def item
  @item
end

#languageObject

0-1 code



425
426
427
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 425

def language
  @language
end

#metaObject

0-1 Meta



423
424
425
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 423

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



429
430
431
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 429

def modifierExtension
  @modifierExtension
end

#originalPrescriptionObject

0-1 Reference(DeviceRequest|MedicationRequest|VisionPrescription)



445
446
447
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 445

def originalPrescription
  @originalPrescription
end

#patientObject

1-1 Reference(Patient)



435
436
437
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 435

def patient
  @patient
end

#payeeObject

0-1 Claim::Payee



446
447
448
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 446

def payee
  @payee
end

#prescriptionObject

0-1 Reference(DeviceRequest|MedicationRequest|VisionPrescription)



444
445
446
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 444

def prescription
  @prescription
end

#priorityObject

1-1 CodeableConcept



441
442
443
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 441

def priority
  @priority
end

#procedureObject

0-* [ Claim::Procedure ]



452
453
454
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 452

def procedure
  @procedure
end

#providerObject

1-1 Reference(Practitioner|PractitionerRole|Organization)



440
441
442
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 440

def provider
  @provider
end

#referralObject

0-1 Reference(ServiceRequest)



447
448
449
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 447

def referral
  @referral
end

0-* [ Claim::Related ]



443
444
445
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 443

def related
  @related
end

#statusObject

1-1 code



431
432
433
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 431

def status
  @status
end

#subTypeObject

0-1 CodeableConcept



433
434
435
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 433

def subType
  @subType
end

#supportingInfoObject

0-* [ Claim::SupportingInfo ]



450
451
452
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 450

def supportingInfo
  @supportingInfo
end

#textObject

0-1 Narrative



426
427
428
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 426

def text
  @text
end

#totalObject

0-1 Money



456
457
458
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 456

def total
  @total
end

#typeObject

1-1 CodeableConcept



432
433
434
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 432

def type
  @type
end

#useObject

1-1 code



434
435
436
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 434

def use
  @use
end

Instance Method Details

#resourceTypeObject



458
459
460
# File 'lib/fhir_models/r4/generated/resources/Claim.rb', line 458

def resourceType
  'Claim'
end