Class: FHIR::ExplanationOfBenefit::Procedure

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'procedure' => ['CodeableConcept', 'Reference']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Procedure.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Procedure.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Procedure.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'sequence' => {'type'=>'positiveInt', 'path'=>'Procedure.sequence', 'min'=>1, 'max'=>1},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/ex-procedure-type'=>['primary', 'secondary']}, 'type'=>'CodeableConcept', 'path'=>'Procedure.type', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ex-procedure-type'}},
  'date' => {'type'=>'dateTime', 'path'=>'Procedure.date', 'min'=>0, 'max'=>1},
  'procedureCodeableConcept' => {'valid_codes'=>{'http://hl7.org/fhir/sid/ex-icd-10-procedures'=>['123001', '123002', '123003']}, 'type'=>'CodeableConcept', 'path'=>'Procedure.procedure[x]', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/icd-10-procedures'}},
  'procedureReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Procedure'], 'type'=>'Reference', 'path'=>'Procedure.procedure[x]', 'min'=>1, 'max'=>1},
  'udi' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device'], 'type'=>'Reference', 'path'=>'Procedure.udi', 'min'=>0, 'max'=>Float::INFINITY}
}

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

0-1 dateTime



228
229
230
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 228

def date
  @date
end

#extensionObject

0-* [ Extension ]



224
225
226
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 224

def extension
  @extension
end

#idObject

0-1 string



223
224
225
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 223

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



225
226
227
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 225

def modifierExtension
  @modifierExtension
end

#procedureCodeableConceptObject

1-1 CodeableConcept



229
230
231
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 229

def procedureCodeableConcept
  @procedureCodeableConcept
end

#procedureReferenceObject

1-1 Reference(Procedure)



230
231
232
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 230

def procedureReference
  @procedureReference
end

#sequenceObject

1-1 positiveInt



226
227
228
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 226

def sequence
  @sequence
end

#typeObject

0-* [ CodeableConcept ]



227
228
229
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 227

def type
  @type
end

#udiObject

0-* [ Reference(Device) ]



231
232
233
# File 'lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb', line 231

def udi
  @udi
end