Class: FHIR::CarePlan

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

Defined Under Namespace

Classes: Activity, RelatedPlan

Constant Summary collapse

SEARCH_PARAMS =
["activitycode", "activitydate", "activityreference", "careteam", "category", "condition", "date", "goal", "patient", "performer", "relatedcode", "relatedplan", "subject"]
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'CarePlan.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'CarePlan.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'CarePlan.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'CarePlan.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'CarePlan.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'CarePlan.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'CarePlan.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'CarePlan.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'CarePlan.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'CarePlan.subject', 'min'=>0, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/care-plan-status'=>['proposed', 'draft', 'active', 'completed', 'cancelled', 'proposed', 'draft', 'active', 'completed', 'cancelled']}, 'type'=>'code', 'path'=>'CarePlan.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-status'}},
  'context' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare'], 'type'=>'Reference', 'path'=>'CarePlan.context', 'min'=>0, 'max'=>1},
  'period' => {'type'=>'Period', 'path'=>'CarePlan.period', 'min'=>0, 'max'=>1},
  'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'CarePlan.author', 'min'=>0, 'max'=>Float::INFINITY},
  'modified' => {'type'=>'dateTime', 'path'=>'CarePlan.modified', 'min'=>0, 'max'=>1},
  'category' => {'valid_codes'=>{'http://snomed.info/sct'=>['288832002', '395082007', '401276009', '412774003', '412775002', '412776001', '412777005', '412778000', '412779008', '412780006', '412781005', '414672009', '415213008', '698358001', '698359009', '698360004', '698361000', '704127004', '3911000175103']}, 'type'=>'CodeableConcept', 'path'=>'CarePlan.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-category'}},
  'description' => {'type'=>'string', 'path'=>'CarePlan.description', 'min'=>0, 'max'=>1},
  'addresses' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition'], 'type'=>'Reference', 'path'=>'CarePlan.addresses', 'min'=>0, 'max'=>Float::INFINITY},
  'support' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'CarePlan.support', 'min'=>0, 'max'=>Float::INFINITY},
  'relatedPlan' => {'type'=>'CarePlan::RelatedPlan', 'path'=>'CarePlan.relatedPlan', 'min'=>0, 'max'=>Float::INFINITY},
  'careTeam' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CareTeam'], 'type'=>'Reference', 'path'=>'CarePlan.careTeam', 'min'=>0, 'max'=>Float::INFINITY},
  'goal' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Goal'], 'type'=>'Reference', 'path'=>'CarePlan.goal', 'min'=>0, 'max'=>Float::INFINITY},
  'activity' => {'type'=>'CarePlan::Activity', 'path'=>'CarePlan.activity', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'CarePlan.note', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activityObject

0-* [ CarePlan::Activity ]



161
162
163
# File 'lib/fhir/resources/CarePlan.rb', line 161

def activity
  @activity
end

#addressesObject

0-* [ Reference(Condition) ]



156
157
158
# File 'lib/fhir/resources/CarePlan.rb', line 156

def addresses
  @addresses
end

#authorObject

0-* [ Reference(Patient|Practitioner|RelatedPerson|Organization) ]



152
153
154
# File 'lib/fhir/resources/CarePlan.rb', line 152

def author
  @author
end

#careTeamObject

0-* [ Reference(CareTeam) ]



159
160
161
# File 'lib/fhir/resources/CarePlan.rb', line 159

def careTeam
  @careTeam
end

#categoryObject

0-* [ CodeableConcept ]



154
155
156
# File 'lib/fhir/resources/CarePlan.rb', line 154

def category
  @category
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#contextObject

0-1 Reference(Encounter|EpisodeOfCare)



150
151
152
# File 'lib/fhir/resources/CarePlan.rb', line 150

def context
  @context
end

#descriptionObject

0-1 string



155
156
157
# File 'lib/fhir/resources/CarePlan.rb', line 155

def description
  @description
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#goalObject

0-* [ Reference(Goal) ]



160
161
162
# File 'lib/fhir/resources/CarePlan.rb', line 160

def goal
  @goal
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



147
148
149
# File 'lib/fhir/resources/CarePlan.rb', line 147

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifiedObject

0-1 dateTime



153
154
155
# File 'lib/fhir/resources/CarePlan.rb', line 153

def modified
  @modified
end

#modifierExtensionObject

0-* [ Extension ]



146
147
148
# File 'lib/fhir/resources/CarePlan.rb', line 146

def modifierExtension
  @modifierExtension
end

#noteObject

0-1 Annotation



162
163
164
# File 'lib/fhir/resources/CarePlan.rb', line 162

def note
  @note
end

#periodObject

0-1 Period



151
152
153
# File 'lib/fhir/resources/CarePlan.rb', line 151

def period
  @period
end

#relatedPlanObject

0-* [ CarePlan::RelatedPlan ]



158
159
160
# File 'lib/fhir/resources/CarePlan.rb', line 158

def relatedPlan
  @relatedPlan
end

#statusObject

1-1 code



149
150
151
# File 'lib/fhir/resources/CarePlan.rb', line 149

def status
  @status
end

#subjectObject

0-1 Reference(Patient|Group)



148
149
150
# File 'lib/fhir/resources/CarePlan.rb', line 148

def subject
  @subject
end

#supportObject

0-* [ Reference(Resource) ]



157
158
159
# File 'lib/fhir/resources/CarePlan.rb', line 157

def support
  @support
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



164
165
166
# File 'lib/fhir/resources/CarePlan.rb', line 164

def resourceType
  'CarePlan'
end