Class: FHIR::Claim::Accident

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'location' => ['Address', 'Reference']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Accident.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Accident.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Accident.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'date' => {'type'=>'date', 'path'=>'Accident.date', 'min'=>1, 'max'=>1},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActCode'=>['MVA', 'SCHOOL', 'SPT', 'WPA']}, 'type'=>'CodeableConcept', 'path'=>'Accident.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-ActIncidentCode'}},
  'locationAddress' => {'type'=>'Address', 'path'=>'Accident.location[x]', 'min'=>0, 'max'=>1},
  'locationReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Accident.location[x]', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

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

#dateObject

1-1 date



269
270
271
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 269

def date
  @date
end

#extensionObject

0-* [ Extension ]



267
268
269
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 267

def extension
  @extension
end

#idObject

0-1 string



266
267
268
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 266

def id
  @id
end

#locationAddressObject

0-1 Address



271
272
273
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 271

def locationAddress
  @locationAddress
end

#locationReferenceObject

0-1 Reference(Location)



272
273
274
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 272

def locationReference
  @locationReference
end

#modifierExtensionObject

0-* [ Extension ]



268
269
270
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 268

def modifierExtension
  @modifierExtension
end

#typeObject

0-1 CodeableConcept



270
271
272
# File 'lib/fhir_models/fhir/resources/Claim.rb', line 270

def type
  @type
end