Class: FHIR::Practitioner::Role

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Role.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Role.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Role.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'organization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Role.organization', 'min'=>0, 'max'=>1},
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/practitioner-role'=>['doctor', 'nurse', 'pharmacist', 'researcher', 'teacher', 'ict', 'doctor', 'nurse', 'pharmacist', 'researcher', 'teacher', 'ict']}, 'type'=>'CodeableConcept', 'path'=>'Role.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/practitioner-role'}},
  'specialty' => {'valid_codes'=>{'http://hl7.org/fhir/practitioner-specialty'=>['cardio', 'dent', 'dietary', 'midw', 'sysarch', 'cardio', 'dent', 'dietary', 'midw', 'sysarch']}, 'type'=>'CodeableConcept', 'path'=>'Role.specialty', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/practitioner-specialty'}},
  'identifier' => {'type'=>'Identifier', 'path'=>'Role.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'telecom' => {'type'=>'ContactPoint', 'path'=>'Role.telecom', 'min'=>0, 'max'=>Float::INFINITY},
  'period' => {'type'=>'Period', 'path'=>'Role.period', 'min'=>0, 'max'=>1},
  'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Role.location', 'min'=>0, 'max'=>Float::INFINITY},
  'healthcareService' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/HealthcareService'], 'type'=>'Reference', 'path'=>'Role.healthcareService', 'min'=>0, 'max'=>Float::INFINITY},
  'endpoint' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Endpoint'], 'type'=>'Reference', 'path'=>'Role.endpoint', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Method Summary

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

#codeObject

0-1 CodeableConcept



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

def code
  @code
end

#endpointObject

0-* [ Reference(Endpoint) ]



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

def endpoint
  @endpoint
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#healthcareServiceObject

0-* [ Reference(HealthcareService) ]



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

def healthcareService
  @healthcareService
end

#idObject

0-1 string



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#locationObject

0-* [ Reference(Location) ]



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

def location
  @location
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#organizationObject

0-1 Reference(Organization)



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

def organization
  @organization
end

#periodObject

0-1 Period



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

def period
  @period
end

#specialtyObject

0-* [ CodeableConcept ]



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

def specialty
  @specialty
end

#telecomObject

0-* [ ContactPoint ]



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

def telecom
  @telecom
end