Class: FHIR::Claim

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

Defined Under Namespace

Classes: Accident, Coverage, Diagnosis, Information, Item, MissingTeeth, Payee, Procedure, Related

Constant Summary collapse

MULTIPLE_TYPES =
{
  'insurer' => ['Identifier', 'Reference'],
  'provider' => ['Identifier', 'Reference'],
  'organization' => ['Identifier', 'Reference'],
  'enterer' => ['Identifier', 'Reference'],
  'facility' => ['Identifier', 'Reference'],
  'prescription' => ['Identifier', 'Reference'],
  'originalPrescription' => ['Identifier', 'Reference'],
  'referral' => ['Identifier', 'Reference'],
  'patient' => ['Identifier', 'Reference']
}
SEARCH_PARAMS =
["created", "facility-identifier", "facility-reference", "identifier", "insurer-identifier", "insurer-reference", "organization-identifier", "organization-reference", "patient-identifier", "patient-reference", "priority", "provider-identifier", "provider-reference", "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' => {'type'=>'code', 'path'=>'Claim.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', '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/claim-status'=>['active', 'cancelled', 'draft', 'entered-in-error', 'active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'Claim.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/claim-status'}},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/ex-claimtype'=>['institutional', 'oral', 'pharmacy', 'professional', 'vision', 'institutional', 'oral', 'pharmacy', 'professional', 'vision']}, 'type'=>'Coding', 'path'=>'Claim.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/claim-type'}},
  'subType' => {'valid_codes'=>{'http://hl7.org/fhir/ex-claimsubtype'=>['ortho', 'emergency', 'ortho', 'emergency']}, 'type'=>'Coding', 'path'=>'Claim.subType', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/claim-subtype'}},
  'ruleset' => {'valid_codes'=>{'http://hl7.org/fhir/ruleset'=>['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3', 'x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3']}, 'type'=>'Coding', 'path'=>'Claim.ruleset', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ruleset'}},
  'originalRuleset' => {'valid_codes'=>{'http://hl7.org/fhir/ruleset'=>['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3', 'x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3']}, 'type'=>'Coding', 'path'=>'Claim.originalRuleset', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ruleset'}},
  'created' => {'type'=>'dateTime', 'path'=>'Claim.created', 'min'=>0, 'max'=>1},
  'billablePeriod' => {'type'=>'Period', 'path'=>'Claim.billablePeriod', 'min'=>0, 'max'=>1},
  'insurerIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.insurer[x]', 'min'=>0, 'max'=>1},
  'insurerReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Claim.insurer[x]', 'min'=>0, 'max'=>1},
  'providerIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.provider[x]', 'min'=>0, 'max'=>1},
  'providerReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'Claim.provider[x]', 'min'=>0, 'max'=>1},
  'organizationIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.organization[x]', 'min'=>0, 'max'=>1},
  'organizationReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Claim.organization[x]', 'min'=>0, 'max'=>1},
  'use' => {'valid_codes'=>{'http://hl7.org/fhir/claim-use'=>['complete', 'proposed', 'exploratory', 'other', 'complete', 'proposed', 'exploratory', 'other']}, 'type'=>'code', 'path'=>'Claim.use', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/claim-use'}},
  'priority' => {'valid_codes'=>{'http://hl7.org/fhir/processpriority'=>['stat', 'normal', 'deferred', 'stat', 'normal', 'deferred']}, 'type'=>'Coding', 'path'=>'Claim.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/process-priority'}},
  'fundsReserve' => {'valid_codes'=>{'http://hl7.org/fhir/fundsreserve'=>['patient', 'provider', 'none', 'patient', 'provider', 'none']}, 'type'=>'Coding', 'path'=>'Claim.fundsReserve', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/fundsreserve'}},
  'entererIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.enterer[x]', 'min'=>0, 'max'=>1},
  'entererReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'Claim.enterer[x]', 'min'=>0, 'max'=>1},
  'facilityIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.facility[x]', 'min'=>0, 'max'=>1},
  'facilityReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Claim.facility[x]', 'min'=>0, 'max'=>1},
  'related' => {'type'=>'Claim::Related', 'path'=>'Claim.related', 'min'=>0, 'max'=>Float::INFINITY},
  'prescriptionIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.prescription[x]', 'min'=>0, 'max'=>1},
  'prescriptionReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MedicationOrder', 'http://hl7.org/fhir/StructureDefinition/VisionPrescription'], 'type'=>'Reference', 'path'=>'Claim.prescription[x]', 'min'=>0, 'max'=>1},
  'originalPrescriptionIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.originalPrescription[x]', 'min'=>0, 'max'=>1},
  'originalPrescriptionReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MedicationOrder'], 'type'=>'Reference', 'path'=>'Claim.originalPrescription[x]', 'min'=>0, 'max'=>1},
  'payee' => {'type'=>'Claim::Payee', 'path'=>'Claim.payee', 'min'=>0, 'max'=>1},
  'referralIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.referral[x]', 'min'=>0, 'max'=>1},
  'referralReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ReferralRequest'], 'type'=>'Reference', 'path'=>'Claim.referral[x]', 'min'=>0, 'max'=>1},
  'information' => {'type'=>'Claim::Information', 'path'=>'Claim.information', '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},
  'patientIdentifier' => {'type'=>'Identifier', 'path'=>'Claim.patient[x]', 'min'=>1, 'max'=>1},
  'patientReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'Claim.patient[x]', 'min'=>1, 'max'=>1},
  'coverage' => {'type'=>'Claim::Coverage', 'path'=>'Claim.coverage', 'min'=>0, 'max'=>Float::INFINITY},
  'accident' => {'type'=>'Claim::Accident', 'path'=>'Claim.accident', 'min'=>0, 'max'=>1},
  'employmentImpacted' => {'type'=>'Period', 'path'=>'Claim.employmentImpacted', 'min'=>0, 'max'=>1},
  'hospitalization' => {'type'=>'Period', 'path'=>'Claim.hospitalization', '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},
  'missingTeeth' => {'type'=>'Claim::MissingTeeth', 'path'=>'Claim.missingTeeth', 'min'=>0, 'max'=>Float::INFINITY}
}

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

#accidentObject

0-1 Claim::Accident



534
535
536
# File 'lib/fhir/resources/Claim.rb', line 534

def accident
  @accident
end

#billablePeriodObject

0-1 Period



506
507
508
# File 'lib/fhir/resources/Claim.rb', line 506

def billablePeriod
  @billablePeriod
end

#containedObject

0-* [ Resource ]



496
497
498
# File 'lib/fhir/resources/Claim.rb', line 496

def contained
  @contained
end

#coverageObject

0-* [ Claim::Coverage ]



533
534
535
# File 'lib/fhir/resources/Claim.rb', line 533

def coverage
  @coverage
end

#createdObject

0-1 dateTime



505
506
507
# File 'lib/fhir/resources/Claim.rb', line 505

def created
  @created
end

#diagnosisObject

0-* [ Claim::Diagnosis ]



529
530
531
# File 'lib/fhir/resources/Claim.rb', line 529

def diagnosis
  @diagnosis
end

#employmentImpactedObject

0-1 Period



535
536
537
# File 'lib/fhir/resources/Claim.rb', line 535

def employmentImpacted
  @employmentImpacted
end

#entererIdentifierObject

0-1 Identifier



516
517
518
# File 'lib/fhir/resources/Claim.rb', line 516

def entererIdentifier
  @entererIdentifier
end

#entererReferenceObject

0-1 Reference(Practitioner)



517
518
519
# File 'lib/fhir/resources/Claim.rb', line 517

def entererReference
  @entererReference
end

#extensionObject

0-* [ Extension ]



497
498
499
# File 'lib/fhir/resources/Claim.rb', line 497

def extension
  @extension
end

#facilityIdentifierObject

0-1 Identifier



518
519
520
# File 'lib/fhir/resources/Claim.rb', line 518

def facilityIdentifier
  @facilityIdentifier
end

#facilityReferenceObject

0-1 Reference(Location)



519
520
521
# File 'lib/fhir/resources/Claim.rb', line 519

def facilityReference
  @facilityReference
end

#fundsReserveObject

0-1 Coding



515
516
517
# File 'lib/fhir/resources/Claim.rb', line 515

def fundsReserve
  @fundsReserve
end

#hospitalizationObject

0-1 Period



536
537
538
# File 'lib/fhir/resources/Claim.rb', line 536

def hospitalization
  @hospitalization
end

#idObject

0-1 id



491
492
493
# File 'lib/fhir/resources/Claim.rb', line 491

def id
  @id
end

#identifierObject

0-* [ Identifier ]



499
500
501
# File 'lib/fhir/resources/Claim.rb', line 499

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



493
494
495
# File 'lib/fhir/resources/Claim.rb', line 493

def implicitRules
  @implicitRules
end

#informationObject

0-* [ Claim::Information ]



528
529
530
# File 'lib/fhir/resources/Claim.rb', line 528

def information
  @information
end

#insurerIdentifierObject

0-1 Identifier



507
508
509
# File 'lib/fhir/resources/Claim.rb', line 507

def insurerIdentifier
  @insurerIdentifier
end

#insurerReferenceObject

0-1 Reference(Organization)



508
509
510
# File 'lib/fhir/resources/Claim.rb', line 508

def insurerReference
  @insurerReference
end

#itemObject

0-* [ Claim::Item ]



537
538
539
# File 'lib/fhir/resources/Claim.rb', line 537

def item
  @item
end

#languageObject

0-1 code



494
495
496
# File 'lib/fhir/resources/Claim.rb', line 494

def language
  @language
end

#metaObject

0-1 Meta



492
493
494
# File 'lib/fhir/resources/Claim.rb', line 492

def meta
  @meta
end

#missingTeethObject

0-* [ Claim::MissingTeeth ]



539
540
541
# File 'lib/fhir/resources/Claim.rb', line 539

def missingTeeth
  @missingTeeth
end

#modifierExtensionObject

0-* [ Extension ]



498
499
500
# File 'lib/fhir/resources/Claim.rb', line 498

def modifierExtension
  @modifierExtension
end

#organizationIdentifierObject

0-1 Identifier



511
512
513
# File 'lib/fhir/resources/Claim.rb', line 511

def organizationIdentifier
  @organizationIdentifier
end

#organizationReferenceObject

0-1 Reference(Organization)



512
513
514
# File 'lib/fhir/resources/Claim.rb', line 512

def organizationReference
  @organizationReference
end

#originalPrescriptionIdentifierObject

0-1 Identifier



523
524
525
# File 'lib/fhir/resources/Claim.rb', line 523

def originalPrescriptionIdentifier
  @originalPrescriptionIdentifier
end

#originalPrescriptionReferenceObject

0-1 Reference(MedicationOrder)



524
525
526
# File 'lib/fhir/resources/Claim.rb', line 524

def originalPrescriptionReference
  @originalPrescriptionReference
end

#originalRulesetObject

0-1 Coding



504
505
506
# File 'lib/fhir/resources/Claim.rb', line 504

def originalRuleset
  @originalRuleset
end

#patientIdentifierObject

1-1 Identifier



531
532
533
# File 'lib/fhir/resources/Claim.rb', line 531

def patientIdentifier
  @patientIdentifier
end

#patientReferenceObject

1-1 Reference(Patient)



532
533
534
# File 'lib/fhir/resources/Claim.rb', line 532

def patientReference
  @patientReference
end

#payeeObject

0-1 Claim::Payee



525
526
527
# File 'lib/fhir/resources/Claim.rb', line 525

def payee
  @payee
end

#prescriptionIdentifierObject

0-1 Identifier



521
522
523
# File 'lib/fhir/resources/Claim.rb', line 521

def prescriptionIdentifier
  @prescriptionIdentifier
end

#prescriptionReferenceObject

0-1 Reference(MedicationOrder|VisionPrescription)



522
523
524
# File 'lib/fhir/resources/Claim.rb', line 522

def prescriptionReference
  @prescriptionReference
end

#priorityObject

0-1 Coding



514
515
516
# File 'lib/fhir/resources/Claim.rb', line 514

def priority
  @priority
end

#procedureObject

0-* [ Claim::Procedure ]



530
531
532
# File 'lib/fhir/resources/Claim.rb', line 530

def procedure
  @procedure
end

#providerIdentifierObject

0-1 Identifier



509
510
511
# File 'lib/fhir/resources/Claim.rb', line 509

def providerIdentifier
  @providerIdentifier
end

#providerReferenceObject

0-1 Reference(Practitioner)



510
511
512
# File 'lib/fhir/resources/Claim.rb', line 510

def providerReference
  @providerReference
end

#referralIdentifierObject

0-1 Identifier



526
527
528
# File 'lib/fhir/resources/Claim.rb', line 526

def referralIdentifier
  @referralIdentifier
end

#referralReferenceObject

0-1 Reference(ReferralRequest)



527
528
529
# File 'lib/fhir/resources/Claim.rb', line 527

def referralReference
  @referralReference
end

0-* [ Claim::Related ]



520
521
522
# File 'lib/fhir/resources/Claim.rb', line 520

def related
  @related
end

#rulesetObject

0-1 Coding



503
504
505
# File 'lib/fhir/resources/Claim.rb', line 503

def ruleset
  @ruleset
end

#statusObject

1-1 code



500
501
502
# File 'lib/fhir/resources/Claim.rb', line 500

def status
  @status
end

#subTypeObject

0-* [ Coding ]



502
503
504
# File 'lib/fhir/resources/Claim.rb', line 502

def subType
  @subType
end

#textObject

0-1 Narrative



495
496
497
# File 'lib/fhir/resources/Claim.rb', line 495

def text
  @text
end

#totalObject

0-1 Money



538
539
540
# File 'lib/fhir/resources/Claim.rb', line 538

def total
  @total
end

#typeObject

1-1 Coding



501
502
503
# File 'lib/fhir/resources/Claim.rb', line 501

def type
  @type
end

#useObject

0-1 code



513
514
515
# File 'lib/fhir/resources/Claim.rb', line 513

def use
  @use
end

Instance Method Details

#resourceTypeObject



541
542
543
# File 'lib/fhir/resources/Claim.rb', line 541

def resourceType
  'Claim'
end