Class: FHIR::DSTU2::CarePlan::Activity::Detail

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'scheduled' => ['Timing', 'Period', 'string'],
  'product' => ['CodeableConcept', 'Reference']
}
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Detail.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Detail.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Detail.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'category' => { 'valid_codes' => { 'http://hl7.org/fhir/care-plan-activity-category' => ['diet', 'drug', 'encounter', 'observation', 'procedure', 'supply', 'other'] }, 'type' => 'CodeableConcept', 'path' => 'Detail.category', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-activity-category' } },
  'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Detail.code', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-activity' } },
  'reasonCode' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Detail.reasonCode', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/activity-reason' } },
  'reasonReference' => { 'type' => 'Reference', 'path' => 'Detail.reasonReference', 'min' => 0, 'max' => Float::INFINITY },
  'goal' => { 'type' => 'Reference', 'path' => 'Detail.goal', 'min' => 0, 'max' => Float::INFINITY },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/care-plan-activity-status' => ['not-started', 'scheduled', 'in-progress', 'on-hold', 'completed', 'cancelled'] }, 'type' => 'code', 'path' => 'Detail.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-activity-status' } },
  'statusReason' => { 'valid_codes' => { 'http://hl7.org/fhir/goal-status-reason' => ['surgery', 'life-event', 'replaced', 'patient-request'] }, 'type' => 'CodeableConcept', 'path' => 'Detail.statusReason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/goal-status-reason' } },
  'prohibited' => { 'type' => 'boolean', 'path' => 'Detail.prohibited', 'min' => 1, 'max' => 1 },
  'scheduledTiming' => { 'type' => 'Timing', 'path' => 'Detail.scheduled[x]', 'min' => 0, 'max' => 1 },
  'scheduledPeriod' => { 'type' => 'Period', 'path' => 'Detail.scheduled[x]', 'min' => 0, 'max' => 1 },
  'scheduledString' => { 'type' => 'string', 'path' => 'Detail.scheduled[x]', 'min' => 0, 'max' => 1 },
  'location' => { 'type' => 'Reference', 'path' => 'Detail.location', 'min' => 0, 'max' => 1 },
  'performer' => { 'type' => 'Reference', 'path' => 'Detail.performer', 'min' => 0, 'max' => Float::INFINITY },
  'productCodeableConcept' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Detail.product[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/medication-codes' } },
  'productReference' => { 'type' => 'Reference', 'path' => 'Detail.product[x]', 'min' => 0, 'max' => 1 },
  'dailyAmount' => { 'type' => 'Quantity', 'path' => 'Detail.dailyAmount', 'min' => 0, 'max' => 1 },
  'quantity' => { 'type' => 'Quantity', 'path' => 'Detail.quantity', 'min' => 0, 'max' => 1 },
  'description' => { 'type' => 'string', 'path' => 'Detail.description', '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, #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

#categoryObject

0-1 CodeableConcept



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

def category
  @category
end

#codeObject

0-1 CodeableConcept



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

def code
  @code
end

#dailyAmountObject

0-1 Quantity



142
143
144
# File 'lib/fhir_dstu2_models/fhir/resources/CarePlan.rb', line 142

def dailyAmount
  @dailyAmount
end

#descriptionObject

0-1 string



144
145
146
# File 'lib/fhir_dstu2_models/fhir/resources/CarePlan.rb', line 144

def description
  @description
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#goalObject

0-* [ Reference() ]



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

def goal
  @goal
end

#idObject

0-1 id



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

def id
  @id
end

#locationObject

0-1 Reference()



138
139
140
# File 'lib/fhir_dstu2_models/fhir/resources/CarePlan.rb', line 138

def location
  @location
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#performerObject

0-* [ Reference() ]



139
140
141
# File 'lib/fhir_dstu2_models/fhir/resources/CarePlan.rb', line 139

def performer
  @performer
end

#productCodeableConceptObject

0-1 CodeableConcept



140
141
142
# File 'lib/fhir_dstu2_models/fhir/resources/CarePlan.rb', line 140

def productCodeableConcept
  @productCodeableConcept
end

#productReferenceObject

0-1 Reference()



141
142
143
# File 'lib/fhir_dstu2_models/fhir/resources/CarePlan.rb', line 141

def productReference
  @productReference
end

#prohibitedObject

1-1 boolean



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

def prohibited
  @prohibited
end

#quantityObject

0-1 Quantity



143
144
145
# File 'lib/fhir_dstu2_models/fhir/resources/CarePlan.rb', line 143

def quantity
  @quantity
end

#reasonCodeObject

0-* [ CodeableConcept ]



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

def reasonCode
  @reasonCode
end

#reasonReferenceObject

0-* [ Reference() ]



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

def reasonReference
  @reasonReference
end

#scheduledPeriodObject

0-1 Period



136
137
138
# File 'lib/fhir_dstu2_models/fhir/resources/CarePlan.rb', line 136

def scheduledPeriod
  @scheduledPeriod
end

#scheduledStringObject

0-1 string



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

def scheduledString
  @scheduledString
end

#scheduledTimingObject

0-1 Timing



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

def scheduledTiming
  @scheduledTiming
end

#statusObject

0-1 code



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

def status
  @status
end

#statusReasonObject

0-1 CodeableConcept



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

def statusReason
  @statusReason
end