Class: FHIR::Coverage

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

Defined Under Namespace

Classes: Grouping

Constant Summary collapse

SEARCH_PARAMS =
['beneficiary', 'class', 'dependent', 'group', 'identifier', 'payor', 'plan', 'policy-holder', 'sequence', 'subclass', 'subgroup', 'subplan', 'subscriber', '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' => {'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', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-SP', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, '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},
  'identifier' => {'type'=>'Identifier', 'path'=>'Coverage.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/fm-status'=>['active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'Coverage.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/fm-status'}},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/coverage-selfpay'=>['pay'], 'http://hl7.org/fhir/v3/ActCode'=>['EHCPOL', 'HSAPOL', 'AUTOPOL', 'COL', 'UNINSMOT', 'PUBLICPOL', 'DENTPRG', 'DISEASEPRG', 'CANPRG', 'ENDRENAL', 'HIVAIDS', 'MANDPOL', 'MENTPRG', 'SAFNET', 'SUBPRG', 'SUBSIDIZ', 'SUBSIDMC', 'SUBSUPP', 'WCBPOL', 'DENTAL', 'DISEASE', 'DRUGPOL', 'HIP', 'LTC', 'MCPOL', 'POS', 'HMO', 'PPO', 'MENTPOL', 'SUBPOL', 'VISPOL', 'DIS', 'EWB', 'FLEXP', 'LIFE', 'ANNU', 'TLIFE', 'ULIFE', 'PNC', 'REI', 'SURPL', 'UMBRL', 'CHAR', 'CRIME', 'EAP', 'GOVEMP', 'HIRISK', 'IND', 'MILITARY', 'RETIRE', 'SOCIAL', 'VET'], nil=>[]}, 'type'=>'CodeableConcept', 'path'=>'Coverage.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/coverage-type'}},
  'policyHolder' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Coverage.policyHolder', 'min'=>0, 'max'=>1},
  'subscriber' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Coverage.subscriber', 'min'=>0, 'max'=>1},
  'subscriberId' => {'type'=>'string', 'path'=>'Coverage.subscriberId', 'min'=>0, 'max'=>1},
  'beneficiary' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'Coverage.beneficiary', 'min'=>0, 'max'=>1},
  'relationship' => {'valid_codes'=>{'http://hl7.org/fhir/policyholder-relationship'=>['child', 'parent', 'spouse', 'common', 'other', 'self']}, 'type'=>'CodeableConcept', 'path'=>'Coverage.relationship', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/policyholder-relationship'}},
  'period' => {'type'=>'Period', 'path'=>'Coverage.period', 'min'=>0, 'max'=>1},
  'payor' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Coverage.payor', 'min'=>0, 'max'=>Float::INFINITY},
  'grouping' => {'type'=>'Coverage::Grouping', 'path'=>'Coverage.grouping', 'min'=>0, 'max'=>1},
  'dependent' => {'type'=>'string', 'path'=>'Coverage.dependent', 'min'=>0, 'max'=>1},
  'sequence' => {'type'=>'string', 'path'=>'Coverage.sequence', 'min'=>0, 'max'=>1},
  'order' => {'type'=>'positiveInt', 'path'=>'Coverage.order', '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, #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

#beneficiaryObject

0-1 Reference(Patient)



89
90
91
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 89

def beneficiary
  @beneficiary
end

#containedObject

0-* [ Resource ]



80
81
82
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 80

def contained
  @contained
end

#contractObject

0-* [ Reference(Contract) ]



98
99
100
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 98

def contract
  @contract
end

#dependentObject

0-1 string



94
95
96
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 94

def dependent
  @dependent
end

#extensionObject

0-* [ Extension ]



81
82
83
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 81

def extension
  @extension
end

#groupingObject

0-1 Coverage::Grouping



93
94
95
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 93

def grouping
  @grouping
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



83
84
85
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 83

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



82
83
84
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 82

def modifierExtension
  @modifierExtension
end

#networkObject

0-1 string



97
98
99
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 97

def network
  @network
end

#orderObject

0-1 positiveInt



96
97
98
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 96

def order
  @order
end

#payorObject

0-* [ Reference(Organization|Patient|RelatedPerson) ]



92
93
94
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 92

def payor
  @payor
end

#periodObject

0-1 Period



91
92
93
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 91

def period
  @period
end

#policyHolderObject

0-1 Reference(Patient|RelatedPerson|Organization)



86
87
88
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 86

def policyHolder
  @policyHolder
end

#relationshipObject

0-1 CodeableConcept



90
91
92
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 90

def relationship
  @relationship
end

#sequenceObject

0-1 string



95
96
97
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 95

def sequence
  @sequence
end

#statusObject

0-1 code



84
85
86
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 84

def status
  @status
end

#subscriberObject

0-1 Reference(Patient|RelatedPerson)



87
88
89
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 87

def subscriber
  @subscriber
end

#subscriberIdObject

0-1 string



88
89
90
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 88

def subscriberId
  @subscriberId
end

#textObject

0-1 Narrative



79
80
81
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 79

def text
  @text
end

#typeObject

0-1 CodeableConcept



85
86
87
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 85

def type
  @type
end

Instance Method Details

#resourceTypeObject



100
101
102
# File 'lib/fhir_models/fhir/resources/Coverage.rb', line 100

def resourceType
  'Coverage'
end