Class: FHIR::Claim
- 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
-
#accident ⇒ Object
0-1 Claim::Accident.
-
#billablePeriod ⇒ Object
0-1 Period.
-
#contained ⇒ Object
0-* [ Resource ].
-
#coverage ⇒ Object
0-* [ Claim::Coverage ].
-
#created ⇒ Object
0-1 dateTime.
-
#diagnosis ⇒ Object
0-* [ Claim::Diagnosis ].
-
#employmentImpacted ⇒ Object
0-1 Period.
-
#entererIdentifier ⇒ Object
0-1 Identifier.
-
#entererReference ⇒ Object
0-1 Reference(Practitioner).
-
#extension ⇒ Object
0-* [ Extension ].
-
#facilityIdentifier ⇒ Object
0-1 Identifier.
-
#facilityReference ⇒ Object
0-1 Reference(Location).
-
#fundsReserve ⇒ Object
0-1 Coding.
-
#hospitalization ⇒ Object
0-1 Period.
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#information ⇒ Object
0-* [ Claim::Information ].
-
#insurerIdentifier ⇒ Object
0-1 Identifier.
-
#insurerReference ⇒ Object
0-1 Reference(Organization).
-
#item ⇒ Object
0-* [ Claim::Item ].
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#missingTeeth ⇒ Object
0-* [ Claim::MissingTeeth ].
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#organizationIdentifier ⇒ Object
0-1 Identifier.
-
#organizationReference ⇒ Object
0-1 Reference(Organization).
-
#originalPrescriptionIdentifier ⇒ Object
0-1 Identifier.
-
#originalPrescriptionReference ⇒ Object
0-1 Reference(MedicationOrder).
-
#originalRuleset ⇒ Object
0-1 Coding.
-
#patientIdentifier ⇒ Object
1-1 Identifier.
-
#patientReference ⇒ Object
1-1 Reference(Patient).
-
#payee ⇒ Object
0-1 Claim::Payee.
-
#prescriptionIdentifier ⇒ Object
0-1 Identifier.
-
#prescriptionReference ⇒ Object
0-1 Reference(MedicationOrder|VisionPrescription).
-
#priority ⇒ Object
0-1 Coding.
-
#procedure ⇒ Object
0-* [ Claim::Procedure ].
-
#providerIdentifier ⇒ Object
0-1 Identifier.
-
#providerReference ⇒ Object
0-1 Reference(Practitioner).
-
#referralIdentifier ⇒ Object
0-1 Identifier.
-
#referralReference ⇒ Object
0-1 Reference(ReferralRequest).
-
#related ⇒ Object
0-* [ Claim::Related ].
-
#ruleset ⇒ Object
0-1 Coding.
-
#status ⇒ Object
1-1 code.
-
#subType ⇒ Object
0-* [ Coding ].
-
#text ⇒ Object
0-1 Narrative.
-
#total ⇒ Object
0-1 Money.
-
#type ⇒ Object
1-1 Coding.
-
#use ⇒ Object
0-1 code.
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
#accident ⇒ Object
0-1 Claim::Accident
534 535 536 |
# File 'lib/fhir/resources/Claim.rb', line 534 def accident @accident end |
#billablePeriod ⇒ Object
0-1 Period
506 507 508 |
# File 'lib/fhir/resources/Claim.rb', line 506 def billablePeriod @billablePeriod end |
#contained ⇒ Object
0-* [ Resource ]
496 497 498 |
# File 'lib/fhir/resources/Claim.rb', line 496 def contained @contained end |
#coverage ⇒ Object
0-* [ Claim::Coverage ]
533 534 535 |
# File 'lib/fhir/resources/Claim.rb', line 533 def coverage @coverage end |
#created ⇒ Object
0-1 dateTime
505 506 507 |
# File 'lib/fhir/resources/Claim.rb', line 505 def created @created end |
#diagnosis ⇒ Object
0-* [ Claim::Diagnosis ]
529 530 531 |
# File 'lib/fhir/resources/Claim.rb', line 529 def diagnosis @diagnosis end |
#employmentImpacted ⇒ Object
0-1 Period
535 536 537 |
# File 'lib/fhir/resources/Claim.rb', line 535 def employmentImpacted @employmentImpacted end |
#entererIdentifier ⇒ Object
0-1 Identifier
516 517 518 |
# File 'lib/fhir/resources/Claim.rb', line 516 def entererIdentifier @entererIdentifier end |
#entererReference ⇒ Object
0-1 Reference(Practitioner)
517 518 519 |
# File 'lib/fhir/resources/Claim.rb', line 517 def entererReference @entererReference end |
#extension ⇒ Object
0-* [ Extension ]
497 498 499 |
# File 'lib/fhir/resources/Claim.rb', line 497 def extension @extension end |
#facilityIdentifier ⇒ Object
0-1 Identifier
518 519 520 |
# File 'lib/fhir/resources/Claim.rb', line 518 def facilityIdentifier @facilityIdentifier end |
#facilityReference ⇒ Object
0-1 Reference(Location)
519 520 521 |
# File 'lib/fhir/resources/Claim.rb', line 519 def facilityReference @facilityReference end |
#fundsReserve ⇒ Object
0-1 Coding
515 516 517 |
# File 'lib/fhir/resources/Claim.rb', line 515 def fundsReserve @fundsReserve end |
#hospitalization ⇒ Object
0-1 Period
536 537 538 |
# File 'lib/fhir/resources/Claim.rb', line 536 def hospitalization @hospitalization end |
#id ⇒ Object
0-1 id
491 492 493 |
# File 'lib/fhir/resources/Claim.rb', line 491 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
499 500 501 |
# File 'lib/fhir/resources/Claim.rb', line 499 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
493 494 495 |
# File 'lib/fhir/resources/Claim.rb', line 493 def implicitRules @implicitRules end |
#information ⇒ Object
0-* [ Claim::Information ]
528 529 530 |
# File 'lib/fhir/resources/Claim.rb', line 528 def information @information end |
#insurerIdentifier ⇒ Object
0-1 Identifier
507 508 509 |
# File 'lib/fhir/resources/Claim.rb', line 507 def insurerIdentifier @insurerIdentifier end |
#insurerReference ⇒ Object
0-1 Reference(Organization)
508 509 510 |
# File 'lib/fhir/resources/Claim.rb', line 508 def insurerReference @insurerReference end |
#item ⇒ Object
0-* [ Claim::Item ]
537 538 539 |
# File 'lib/fhir/resources/Claim.rb', line 537 def item @item end |
#language ⇒ Object
0-1 code
494 495 496 |
# File 'lib/fhir/resources/Claim.rb', line 494 def language @language end |
#meta ⇒ Object
0-1 Meta
492 493 494 |
# File 'lib/fhir/resources/Claim.rb', line 492 def end |
#missingTeeth ⇒ Object
0-* [ Claim::MissingTeeth ]
539 540 541 |
# File 'lib/fhir/resources/Claim.rb', line 539 def missingTeeth @missingTeeth end |
#modifierExtension ⇒ Object
0-* [ Extension ]
498 499 500 |
# File 'lib/fhir/resources/Claim.rb', line 498 def modifierExtension @modifierExtension end |
#organizationIdentifier ⇒ Object
0-1 Identifier
511 512 513 |
# File 'lib/fhir/resources/Claim.rb', line 511 def organizationIdentifier @organizationIdentifier end |
#organizationReference ⇒ Object
0-1 Reference(Organization)
512 513 514 |
# File 'lib/fhir/resources/Claim.rb', line 512 def organizationReference @organizationReference end |
#originalPrescriptionIdentifier ⇒ Object
0-1 Identifier
523 524 525 |
# File 'lib/fhir/resources/Claim.rb', line 523 def originalPrescriptionIdentifier @originalPrescriptionIdentifier end |
#originalPrescriptionReference ⇒ Object
0-1 Reference(MedicationOrder)
524 525 526 |
# File 'lib/fhir/resources/Claim.rb', line 524 def originalPrescriptionReference @originalPrescriptionReference end |
#originalRuleset ⇒ Object
0-1 Coding
504 505 506 |
# File 'lib/fhir/resources/Claim.rb', line 504 def originalRuleset @originalRuleset end |
#patientIdentifier ⇒ Object
1-1 Identifier
531 532 533 |
# File 'lib/fhir/resources/Claim.rb', line 531 def patientIdentifier @patientIdentifier end |
#patientReference ⇒ Object
1-1 Reference(Patient)
532 533 534 |
# File 'lib/fhir/resources/Claim.rb', line 532 def patientReference @patientReference end |
#payee ⇒ Object
0-1 Claim::Payee
525 526 527 |
# File 'lib/fhir/resources/Claim.rb', line 525 def payee @payee end |
#prescriptionIdentifier ⇒ Object
0-1 Identifier
521 522 523 |
# File 'lib/fhir/resources/Claim.rb', line 521 def prescriptionIdentifier @prescriptionIdentifier end |
#prescriptionReference ⇒ Object
0-1 Reference(MedicationOrder|VisionPrescription)
522 523 524 |
# File 'lib/fhir/resources/Claim.rb', line 522 def prescriptionReference @prescriptionReference end |
#priority ⇒ Object
0-1 Coding
514 515 516 |
# File 'lib/fhir/resources/Claim.rb', line 514 def priority @priority end |
#procedure ⇒ Object
0-* [ Claim::Procedure ]
530 531 532 |
# File 'lib/fhir/resources/Claim.rb', line 530 def procedure @procedure end |
#providerIdentifier ⇒ Object
0-1 Identifier
509 510 511 |
# File 'lib/fhir/resources/Claim.rb', line 509 def providerIdentifier @providerIdentifier end |
#providerReference ⇒ Object
0-1 Reference(Practitioner)
510 511 512 |
# File 'lib/fhir/resources/Claim.rb', line 510 def providerReference @providerReference end |
#referralIdentifier ⇒ Object
0-1 Identifier
526 527 528 |
# File 'lib/fhir/resources/Claim.rb', line 526 def referralIdentifier @referralIdentifier end |
#referralReference ⇒ Object
0-1 Reference(ReferralRequest)
527 528 529 |
# File 'lib/fhir/resources/Claim.rb', line 527 def referralReference @referralReference end |
#related ⇒ Object
0-* [ Claim::Related ]
520 521 522 |
# File 'lib/fhir/resources/Claim.rb', line 520 def end |
#ruleset ⇒ Object
0-1 Coding
503 504 505 |
# File 'lib/fhir/resources/Claim.rb', line 503 def ruleset @ruleset end |
#status ⇒ Object
1-1 code
500 501 502 |
# File 'lib/fhir/resources/Claim.rb', line 500 def status @status end |
#subType ⇒ Object
0-* [ Coding ]
502 503 504 |
# File 'lib/fhir/resources/Claim.rb', line 502 def subType @subType end |
#text ⇒ Object
0-1 Narrative
495 496 497 |
# File 'lib/fhir/resources/Claim.rb', line 495 def text @text end |
#total ⇒ Object
0-1 Money
538 539 540 |
# File 'lib/fhir/resources/Claim.rb', line 538 def total @total end |
#type ⇒ Object
1-1 Coding
501 502 503 |
# File 'lib/fhir/resources/Claim.rb', line 501 def type @type end |
#use ⇒ Object
0-1 code
513 514 515 |
# File 'lib/fhir/resources/Claim.rb', line 513 def use @use end |
Instance Method Details
#resourceType ⇒ Object
541 542 543 |
# File 'lib/fhir/resources/Claim.rb', line 541 def resourceType 'Claim' end |