Class: FHIR::DSTU2::HealthcareService

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

Defined Under Namespace

Classes: AvailableTime, NotAvailable, ServiceType

Constant Summary collapse

SEARCH_PARAMS =
['characteristic', 'identifier', 'location', 'name', 'organization', 'programname', 'servicecategory', 'servicetype']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'HealthcareService.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'HealthcareService.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'HealthcareService.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'HealthcareService.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'HealthcareService.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'HealthcareService.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'HealthcareService.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'HealthcareService.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'identifier' => { 'type' => 'Identifier', 'path' => 'HealthcareService.identifier', 'min' => 0, 'max' => Float::INFINITY },
  'providedBy' => { 'type' => 'Reference', 'path' => 'HealthcareService.providedBy', 'min' => 0, 'max' => 1 },
  'serviceCategory' => { 'type' => 'CodeableConcept', 'path' => 'HealthcareService.serviceCategory', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
  'serviceType' => { 'type' => 'HealthcareService::ServiceType', 'path' => 'HealthcareService.serviceType', 'min' => 0, 'max' => Float::INFINITY },
  'location' => { 'type' => 'Reference', 'path' => 'HealthcareService.location', 'min' => 1, 'max' => 1 },
  'serviceName' => { 'type' => 'string', 'path' => 'HealthcareService.serviceName', 'min' => 0, 'max' => 1 },
  'comment' => { 'type' => 'string', 'path' => 'HealthcareService.comment', 'min' => 0, 'max' => 1 },
  'extraDetails' => { 'type' => 'string', 'path' => 'HealthcareService.extraDetails', 'min' => 0, 'max' => 1 },
  'photo' => { 'type' => 'Attachment', 'path' => 'HealthcareService.photo', 'min' => 0, 'max' => 1 },
  'telecom' => { 'type' => 'ContactPoint', 'path' => 'HealthcareService.telecom', 'min' => 0, 'max' => Float::INFINITY },
  'coverageArea' => { 'type' => 'Reference', 'path' => 'HealthcareService.coverageArea', 'min' => 0, 'max' => Float::INFINITY },
  'serviceProvisionCode' => { 'valid_codes' => { 'http://hl7.org/fhir/service-provision-conditions' => ['free', 'disc', 'cost'] }, 'type' => 'CodeableConcept', 'path' => 'HealthcareService.serviceProvisionCode', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/service-provision-conditions' } },
  'eligibility' => { 'type' => 'CodeableConcept', 'path' => 'HealthcareService.eligibility', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
  'eligibilityNote' => { 'type' => 'string', 'path' => 'HealthcareService.eligibilityNote', 'min' => 0, 'max' => 1 },
  'programName' => { 'type' => 'string', 'path' => 'HealthcareService.programName', 'min' => 0, 'max' => Float::INFINITY },
  'characteristic' => { 'type' => 'CodeableConcept', 'path' => 'HealthcareService.characteristic', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => nil } },
  'referralMethod' => { 'valid_codes' => { 'http://hl7.org/fhir/service-referral-method' => ['fax', 'phone', 'elec', 'semail', 'mail'] }, 'type' => 'CodeableConcept', 'path' => 'HealthcareService.referralMethod', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/service-referral-method' } },
  'publicKey' => { 'type' => 'string', 'path' => 'HealthcareService.publicKey', 'min' => 0, 'max' => 1 },
  'appointmentRequired' => { 'type' => 'boolean', 'path' => 'HealthcareService.appointmentRequired', 'min' => 0, 'max' => 1 },
  'availableTime' => { 'type' => 'HealthcareService::AvailableTime', 'path' => 'HealthcareService.availableTime', 'min' => 0, 'max' => Float::INFINITY },
  'notAvailable' => { 'type' => 'HealthcareService::NotAvailable', 'path' => 'HealthcareService.notAvailable', 'min' => 0, 'max' => Float::INFINITY },
  'availabilityExceptions' => { 'type' => 'string', 'path' => 'HealthcareService.availabilityExceptions', 'min' => 0, 'max' => 1 }
}

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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#appointmentRequiredObject

0-1 boolean



132
133
134
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 132

def appointmentRequired
  @appointmentRequired
end

#availabilityExceptionsObject

0-1 string



135
136
137
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 135

def availabilityExceptions
  @availabilityExceptions
end

#availableTimeObject

0-* [ HealthcareService::AvailableTime ]



133
134
135
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 133

def availableTime
  @availableTime
end

#characteristicObject

0-* [ CodeableConcept ]



129
130
131
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 129

def characteristic
  @characteristic
end

#commentObject

0-1 string



120
121
122
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 120

def comment
  @comment
end

#containedObject

0-* [ Resource ]



111
112
113
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 111

def contained
  @contained
end

#coverageAreaObject

0-* [ Reference() ]



124
125
126
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 124

def coverageArea
  @coverageArea
end

#eligibilityObject

0-1 CodeableConcept



126
127
128
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 126

def eligibility
  @eligibility
end

#eligibilityNoteObject

0-1 string



127
128
129
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 127

def eligibilityNote
  @eligibilityNote
end

#extensionObject

0-* [ Extension ]



112
113
114
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 112

def extension
  @extension
end

#extraDetailsObject

0-1 string



121
122
123
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 121

def extraDetails
  @extraDetails
end

#idObject

0-1 id



106
107
108
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 106

def id
  @id
end

#identifierObject

0-* [ Identifier ]



114
115
116
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 114

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



108
109
110
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 108

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



109
110
111
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 109

def language
  @language
end

#locationObject

1-1 Reference()



118
119
120
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 118

def location
  @location
end

#metaObject

0-1 Meta



107
108
109
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 107

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



113
114
115
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 113

def modifierExtension
  @modifierExtension
end

#notAvailableObject

0-* [ HealthcareService::NotAvailable ]



134
135
136
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 134

def notAvailable
  @notAvailable
end

#photoObject

0-1 Attachment



122
123
124
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 122

def photo
  @photo
end

#programNameObject

0-* [ string ]



128
129
130
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 128

def programName
  @programName
end

#providedByObject

0-1 Reference()



115
116
117
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 115

def providedBy
  @providedBy
end

#publicKeyObject

0-1 string



131
132
133
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 131

def publicKey
  @publicKey
end

#referralMethodObject

0-* [ CodeableConcept ]



130
131
132
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 130

def referralMethod
  @referralMethod
end

#serviceCategoryObject

0-1 CodeableConcept



116
117
118
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 116

def serviceCategory
  @serviceCategory
end

#serviceNameObject

0-1 string



119
120
121
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 119

def serviceName
  @serviceName
end

#serviceProvisionCodeObject

0-* [ CodeableConcept ]



125
126
127
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 125

def serviceProvisionCode
  @serviceProvisionCode
end

#serviceTypeObject

0-* [ HealthcareService::ServiceType ]



117
118
119
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 117

def serviceType
  @serviceType
end

#telecomObject

0-* [ ContactPoint ]



123
124
125
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 123

def telecom
  @telecom
end

#textObject

0-1 Narrative



110
111
112
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 110

def text
  @text
end

Instance Method Details

#resourceTypeObject



137
138
139
# File 'lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb', line 137

def resourceType
  'HealthcareService'
end