Class: FHIR::CarePlan
- Defined in:
- lib/fhir_models/fhir/resources/CarePlan.rb
Defined Under Namespace
Classes: Activity
Constant Summary collapse
- SEARCH_PARAMS =
['date', 'identifier', 'patient', 'activity-code', 'activity-date', 'activity-reference', 'based-on', 'care-team', 'category', 'condition', 'encounter', 'goal', 'instantiates-canonical', 'instantiates-uri', 'intent', 'part-of', 'performer', 'replaces', 'status', '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' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'CarePlan.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', '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}, 'instantiatesCanonical' => {'type'=>'canonical', 'path'=>'CarePlan.instantiatesCanonical', 'min'=>0, 'max'=>Float::INFINITY}, 'instantiatesUri' => {'type'=>'uri', 'path'=>'CarePlan.instantiatesUri', 'min'=>0, 'max'=>Float::INFINITY}, 'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan'], 'type'=>'Reference', 'path'=>'CarePlan.basedOn', 'min'=>0, 'max'=>Float::INFINITY}, 'replaces' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan'], 'type'=>'Reference', 'path'=>'CarePlan.replaces', 'min'=>0, 'max'=>Float::INFINITY}, 'partOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan'], 'type'=>'Reference', 'path'=>'CarePlan.partOf', 'min'=>0, 'max'=>Float::INFINITY}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/request-status'=>['draft', 'active', 'on-hold', 'revoked', 'completed', 'entered-in-error', 'unknown']}, 'type'=>'code', 'path'=>'CarePlan.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/request-status|4.0.0'}}, 'intent' => {'valid_codes'=>{'http://hl7.org/fhir/request-intent'=>['proposal', 'plan', 'order', 'option', 'directive']}, 'type'=>'code', 'path'=>'CarePlan.intent', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-intent|4.0.0'}}, 'category' => {'type'=>'CodeableConcept', 'path'=>'CarePlan.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-category'}}, 'title' => {'type'=>'string', 'path'=>'CarePlan.title', 'min'=>0, 'max'=>1}, 'description' => {'type'=>'string', 'path'=>'CarePlan.description', 'min'=>0, 'max'=>1}, 'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'CarePlan.subject', 'min'=>1, 'max'=>1}, 'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'CarePlan.encounter', 'min'=>0, 'max'=>1}, 'period' => {'type'=>'Period', 'path'=>'CarePlan.period', 'min'=>0, 'max'=>1}, 'created' => {'type'=>'dateTime', 'path'=>'CarePlan.created', 'min'=>0, 'max'=>1}, 'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/CareTeam'], 'type'=>'Reference', 'path'=>'CarePlan.author', 'min'=>0, 'max'=>1}, 'contributor' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/CareTeam'], 'type'=>'Reference', 'path'=>'CarePlan.contributor', 'min'=>0, 'max'=>Float::INFINITY}, 'careTeam' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CareTeam'], 'type'=>'Reference', 'path'=>'CarePlan.careTeam', 'min'=>0, 'max'=>Float::INFINITY}, 'addresses' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition'], 'type'=>'Reference', 'path'=>'CarePlan.addresses', 'min'=>0, 'max'=>Float::INFINITY}, 'supportingInfo' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'CarePlan.supportingInfo', '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'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#activity ⇒ Object
0-* [ CarePlan::Activity ].
-
#addresses ⇒ Object
0-* [ Reference(Condition) ].
-
#author ⇒ Object
0-1 Reference(Patient|Practitioner|PractitionerRole|Device|RelatedPerson|Organization|CareTeam).
-
#basedOn ⇒ Object
0-* [ Reference(CarePlan) ].
-
#careTeam ⇒ Object
0-* [ Reference(CareTeam) ].
-
#category ⇒ Object
0-* [ CodeableConcept ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#contributor ⇒ Object
0-* [ Reference(Patient|Practitioner|PractitionerRole|Device|RelatedPerson|Organization|CareTeam) ].
-
#created ⇒ Object
0-1 dateTime.
-
#description ⇒ Object
0-1 string.
-
#encounter ⇒ Object
0-1 Reference(Encounter).
-
#extension ⇒ Object
0-* [ Extension ].
-
#goal ⇒ Object
0-* [ Reference(Goal) ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#instantiatesCanonical ⇒ Object
0-* [ canonical ].
-
#instantiatesUri ⇒ Object
0-* [ uri ].
-
#intent ⇒ Object
1-1 code.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#note ⇒ Object
0-* [ Annotation ].
-
#partOf ⇒ Object
0-* [ Reference(CarePlan) ].
-
#period ⇒ Object
0-1 Period.
-
#replaces ⇒ Object
0-* [ Reference(CarePlan) ].
-
#status ⇒ Object
1-1 code.
-
#subject ⇒ Object
1-1 Reference(Patient|Group).
-
#supportingInfo ⇒ Object
0-* [ Reference(Resource) ].
-
#text ⇒ Object
0-1 Narrative.
-
#title ⇒ Object
0-1 string.
Instance Method Summary collapse
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#activity ⇒ Object
0-* [ CarePlan::Activity ]
157 158 159 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 157 def activity @activity end |
#addresses ⇒ Object
0-* [ Reference(Condition) ]
154 155 156 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 154 def addresses @addresses end |
#author ⇒ Object
0-1 Reference(Patient|Practitioner|PractitionerRole|Device|RelatedPerson|Organization|CareTeam)
151 152 153 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 151 def @author end |
#basedOn ⇒ Object
0-* [ Reference(CarePlan) ]
139 140 141 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 139 def basedOn @basedOn end |
#careTeam ⇒ Object
0-* [ Reference(CareTeam) ]
153 154 155 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 153 def careTeam @careTeam end |
#category ⇒ Object
0-* [ CodeableConcept ]
144 145 146 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 144 def category @category end |
#contained ⇒ Object
0-* [ Resource ]
133 134 135 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 133 def contained @contained end |
#contributor ⇒ Object
0-* [ Reference(Patient|Practitioner|PractitionerRole|Device|RelatedPerson|Organization|CareTeam) ]
152 153 154 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 152 def contributor @contributor end |
#created ⇒ Object
0-1 dateTime
150 151 152 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 150 def created @created end |
#description ⇒ Object
0-1 string
146 147 148 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 146 def description @description end |
#encounter ⇒ Object
0-1 Reference(Encounter)
148 149 150 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 148 def encounter @encounter end |
#extension ⇒ Object
0-* [ Extension ]
134 135 136 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 134 def extension @extension end |
#goal ⇒ Object
0-* [ Reference(Goal) ]
156 157 158 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 156 def goal @goal end |
#id ⇒ Object
0-1 id
128 129 130 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 128 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
136 137 138 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 136 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
130 131 132 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 130 def implicitRules @implicitRules end |
#instantiatesCanonical ⇒ Object
0-* [ canonical ]
137 138 139 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 137 def instantiatesCanonical @instantiatesCanonical end |
#instantiatesUri ⇒ Object
0-* [ uri ]
138 139 140 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 138 def instantiatesUri @instantiatesUri end |
#intent ⇒ Object
1-1 code
143 144 145 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 143 def intent @intent end |
#language ⇒ Object
0-1 code
131 132 133 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 131 def language @language end |
#meta ⇒ Object
0-1 Meta
129 130 131 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 129 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
135 136 137 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 135 def modifierExtension @modifierExtension end |
#note ⇒ Object
0-* [ Annotation ]
158 159 160 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 158 def note @note end |
#partOf ⇒ Object
0-* [ Reference(CarePlan) ]
141 142 143 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 141 def partOf @partOf end |
#period ⇒ Object
0-1 Period
149 150 151 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 149 def period @period end |
#replaces ⇒ Object
0-* [ Reference(CarePlan) ]
140 141 142 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 140 def replaces @replaces end |
#status ⇒ Object
1-1 code
142 143 144 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 142 def status @status end |
#subject ⇒ Object
1-1 Reference(Patient|Group)
147 148 149 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 147 def subject @subject end |
#supportingInfo ⇒ Object
0-* [ Reference(Resource) ]
155 156 157 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 155 def supportingInfo @supportingInfo end |
#text ⇒ Object
0-1 Narrative
132 133 134 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 132 def text @text end |
#title ⇒ Object
0-1 string
145 146 147 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 145 def title @title end |
Instance Method Details
#resourceType ⇒ Object
160 161 162 |
# File 'lib/fhir_models/fhir/resources/CarePlan.rb', line 160 def resourceType 'CarePlan' end |