Class: FHIR::Coverage

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'issuer' => ['Identifier', 'Reference'],
  'planholder' => ['Identifier', 'Reference'],
  'beneficiary' => ['Identifier', 'Reference']
}
SEARCH_PARAMS =
["beneficiary-identifier", "beneficiary-reference", "dependent", "group", "identifier", "issuer-identifier", "issuer-reference", "plan", "planholder-identifier", "planholder-reference", "sequence", "subgroup", "subplan", "type"]
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Coverage.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Coverage.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Coverage.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Coverage.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Coverage.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Coverage.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Coverage.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Coverage.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/coverage-status'=>['active', 'cancelled', 'draft', 'entered-in-error', 'active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'Coverage.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/coverage-status'}},
  'issuerIdentifier' => {'type'=>'Identifier', 'path'=>'Coverage.issuer[x]', 'min'=>1, 'max'=>1},
  'issuerReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Coverage.issuer[x]', 'min'=>1, 'max'=>1},
  'isAgreement' => {'type'=>'boolean', 'path'=>'Coverage.isAgreement', 'min'=>0, 'max'=>1},
  'bin' => {'type'=>'string', 'path'=>'Coverage.bin', 'min'=>0, 'max'=>1},
  'period' => {'type'=>'Period', 'path'=>'Coverage.period', 'min'=>0, 'max'=>1},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActCode'=>['_ActCoverageTypeCode', '_ActInsurancePolicyCode', 'EHCPOL', 'HSAPOL', 'AUTOPOL', 'COL', 'UNINSMOT', 'PUBLICPOL', 'DENTPRG', 'DISEASEPRG', 'CANPRG', 'ENDRENAL', 'HIVAIDS', 'MANDPOL', 'MENTPRG', 'SAFNET', 'SUBPRG', 'SUBSIDIZ', 'SUBSIDMC', 'SUBSUPP', 'WCBPOL', '_ActInsuranceTypeCode', '_ActHealthInsuranceTypeCode', 'DENTAL', 'DISEASE', 'DRUGPOL', 'HIP', 'LTC', 'MCPOL', 'POS', 'HMO', 'PPO', 'MENTPOL', 'SUBPOL', 'VISPOL', 'DIS', 'EWB', 'FLEXP', 'LIFE', 'ANNU', 'TLIFE', 'ULIFE', 'PNC', 'REI', 'SURPL', 'UMBRL', '_ActProgramTypeCode', 'CHAR', 'CRIME', 'EAP', 'GOVEMP', 'HIRISK', 'IND', 'MILITARY', 'RETIRE', 'SOCIAL', 'VET']}, 'type'=>'Coding', 'path'=>'Coverage.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ActCoverageTypeCode'}},
  'planholderIdentifier' => {'type'=>'Identifier', 'path'=>'Coverage.planholder[x]', 'min'=>1, 'max'=>1},
  'planholderReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Coverage.planholder[x]', 'min'=>1, 'max'=>1},
  'beneficiaryIdentifier' => {'type'=>'Identifier', 'path'=>'Coverage.beneficiary[x]', 'min'=>1, 'max'=>1},
  'beneficiaryReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'Coverage.beneficiary[x]', 'min'=>1, 'max'=>1},
  'relationship' => {'valid_codes'=>{'http://hl7.org/fhir/policyholder-relationship'=>['child', 'parent', 'spouse', 'common', 'other', 'self', 'child', 'parent', 'spouse', 'common', 'other', 'self']}, 'type'=>'Coding', 'path'=>'Coverage.relationship', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/policyholder-relationship'}},
  'identifier' => {'type'=>'Identifier', 'path'=>'Coverage.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'group' => {'type'=>'string', 'path'=>'Coverage.group', 'min'=>0, 'max'=>1},
  'subGroup' => {'type'=>'string', 'path'=>'Coverage.subGroup', 'min'=>0, 'max'=>1},
  'plan' => {'type'=>'string', 'path'=>'Coverage.plan', 'min'=>0, 'max'=>1},
  'subPlan' => {'type'=>'string', 'path'=>'Coverage.subPlan', 'min'=>0, 'max'=>1},
  'class' => {'local_name'=>'local_class', 'type'=>'string', 'path'=>'Coverage.class', 'min'=>0, 'max'=>1},
  'dependent' => {'type'=>'positiveInt', 'path'=>'Coverage.dependent', 'min'=>0, 'max'=>1},
  'sequence' => {'type'=>'positiveInt', 'path'=>'Coverage.sequence', 'min'=>0, 'max'=>1},
  'network' => {'type'=>'string', 'path'=>'Coverage.network', 'min'=>0, 'max'=>1},
  'contract' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Contract'], 'type'=>'Reference', 'path'=>'Coverage.contract', '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

#beneficiaryIdentifierObject

1-1 Identifier



63
64
65
# File 'lib/fhir/resources/Coverage.rb', line 63

def beneficiaryIdentifier
  @beneficiaryIdentifier
end

#beneficiaryReferenceObject

1-1 Reference(Patient)



64
65
66
# File 'lib/fhir/resources/Coverage.rb', line 64

def beneficiaryReference
  @beneficiaryReference
end

#binObject

0-1 string



58
59
60
# File 'lib/fhir/resources/Coverage.rb', line 58

def bin
  @bin
end

#containedObject

0-* [ Resource ]



51
52
53
# File 'lib/fhir/resources/Coverage.rb', line 51

def contained
  @contained
end

#contractObject

0-* [ Reference(Contract) ]



75
76
77
# File 'lib/fhir/resources/Coverage.rb', line 75

def contract
  @contract
end

#dependentObject

0-1 positiveInt



72
73
74
# File 'lib/fhir/resources/Coverage.rb', line 72

def dependent
  @dependent
end

#extensionObject

0-* [ Extension ]



52
53
54
# File 'lib/fhir/resources/Coverage.rb', line 52

def extension
  @extension
end

#groupObject

0-1 string



67
68
69
# File 'lib/fhir/resources/Coverage.rb', line 67

def group
  @group
end

#idObject

0-1 id



46
47
48
# File 'lib/fhir/resources/Coverage.rb', line 46

def id
  @id
end

#identifierObject

0-* [ Identifier ]



66
67
68
# File 'lib/fhir/resources/Coverage.rb', line 66

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



48
49
50
# File 'lib/fhir/resources/Coverage.rb', line 48

def implicitRules
  @implicitRules
end

#isAgreementObject

0-1 boolean



57
58
59
# File 'lib/fhir/resources/Coverage.rb', line 57

def isAgreement
  @isAgreement
end

#issuerIdentifierObject

1-1 Identifier



55
56
57
# File 'lib/fhir/resources/Coverage.rb', line 55

def issuerIdentifier
  @issuerIdentifier
end

#issuerReferenceObject

1-1 Reference(Organization|Patient|RelatedPerson)



56
57
58
# File 'lib/fhir/resources/Coverage.rb', line 56

def issuerReference
  @issuerReference
end

#languageObject

0-1 code



49
50
51
# File 'lib/fhir/resources/Coverage.rb', line 49

def language
  @language
end

#local_classObject

0-1 string



71
72
73
# File 'lib/fhir/resources/Coverage.rb', line 71

def local_class
  @local_class
end

#metaObject

0-1 Meta



47
48
49
# File 'lib/fhir/resources/Coverage.rb', line 47

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



53
54
55
# File 'lib/fhir/resources/Coverage.rb', line 53

def modifierExtension
  @modifierExtension
end

#networkObject

0-1 string



74
75
76
# File 'lib/fhir/resources/Coverage.rb', line 74

def network
  @network
end

#periodObject

0-1 Period



59
60
61
# File 'lib/fhir/resources/Coverage.rb', line 59

def period
  @period
end

#planObject

0-1 string



69
70
71
# File 'lib/fhir/resources/Coverage.rb', line 69

def plan
  @plan
end

#planholderIdentifierObject

1-1 Identifier



61
62
63
# File 'lib/fhir/resources/Coverage.rb', line 61

def planholderIdentifier
  @planholderIdentifier
end

#planholderReferenceObject

1-1 Reference(Patient|Organization)



62
63
64
# File 'lib/fhir/resources/Coverage.rb', line 62

def planholderReference
  @planholderReference
end

#relationshipObject

1-1 Coding



65
66
67
# File 'lib/fhir/resources/Coverage.rb', line 65

def relationship
  @relationship
end

#sequenceObject

0-1 positiveInt



73
74
75
# File 'lib/fhir/resources/Coverage.rb', line 73

def sequence
  @sequence
end

#statusObject

1-1 code



54
55
56
# File 'lib/fhir/resources/Coverage.rb', line 54

def status
  @status
end

#subGroupObject

0-1 string



68
69
70
# File 'lib/fhir/resources/Coverage.rb', line 68

def subGroup
  @subGroup
end

#subPlanObject

0-1 string



70
71
72
# File 'lib/fhir/resources/Coverage.rb', line 70

def subPlan
  @subPlan
end

#textObject

0-1 Narrative



50
51
52
# File 'lib/fhir/resources/Coverage.rb', line 50

def text
  @text
end

#typeObject

0-1 Coding



60
61
62
# File 'lib/fhir/resources/Coverage.rb', line 60

def type
  @type
end

Instance Method Details

#resourceTypeObject



77
78
79
# File 'lib/fhir/resources/Coverage.rb', line 77

def resourceType
  'Coverage'
end