Class: FHIR::Claim

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/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|4.0.0'}},
  '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|4.0.0'}},
  '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}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

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?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #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



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

def accident
  @accident
end

#billablePeriodObject

0-1 Period



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

def billablePeriod
  @billablePeriod
end

#careTeamObject

0-* [ Claim::CareTeam ]



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

def careTeam
  @careTeam
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#createdObject

1-1 dateTime



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

def created
  @created
end

#diagnosisObject

0-* [ Claim::Diagnosis ]



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

def diagnosis
  @diagnosis
end

#entererObject

0-1 Reference(Practitioner|PractitionerRole)



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

def enterer
  @enterer
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#facilityObject

0-1 Reference(Location)



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

def facility
  @facility
end

#fundsReserveObject

0-1 CodeableConcept



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

def fundsReserve
  @fundsReserve
end

#idObject

0-1 id



421
422
423
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 421

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#insuranceObject

1-* [ Claim::Insurance ]



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

def insurance
  @insurance
end

#insurerObject

0-1 Reference(Organization)



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

def insurer
  @insurer
end

#itemObject

0-* [ Claim::Item ]



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

def item
  @item
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#originalPrescriptionObject

0-1 Reference(DeviceRequest|MedicationRequest|VisionPrescription)



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

def originalPrescription
  @originalPrescription
end

#patientObject

1-1 Reference(Patient)



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

def patient
  @patient
end

#payeeObject

0-1 Claim::Payee



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

def payee
  @payee
end

#prescriptionObject

0-1 Reference(DeviceRequest|MedicationRequest|VisionPrescription)



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

def prescription
  @prescription
end

#priorityObject

1-1 CodeableConcept



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

def priority
  @priority
end

#procedureObject

0-* [ Claim::Procedure ]



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

def procedure
  @procedure
end

#providerObject

1-1 Reference(Practitioner|PractitionerRole|Organization)



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

def provider
  @provider
end

#referralObject

0-1 Reference(ServiceRequest)



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

def referral
  @referral
end

0-* [ Claim::Related ]



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

def related
  @related
end

#statusObject

1-1 code



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

def status
  @status
end

#subTypeObject

0-1 CodeableConcept



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

def subType
  @subType
end

#supportingInfoObject

0-* [ Claim::SupportingInfo ]



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

def supportingInfo
  @supportingInfo
end

#textObject

0-1 Narrative



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

def text
  @text
end

#totalObject

0-1 Money



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

def total
  @total
end

#typeObject

1-1 CodeableConcept



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

def type
  @type
end

#useObject

1-1 code



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

def use
  @use
end

Instance Method Details

#resourceTypeObject



457
458
459
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 457

def resourceType
  'Claim'
end