Class: FHIR::DSTU2::Goal
- Defined in:
- lib/fhir_dstu2_models/fhir/resources/Goal.rb
Defined Under Namespace
Classes: Outcome
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'start' => ['date', 'CodeableConcept'], 'target' => ['date', 'Quantity'] }
- SEARCH_PARAMS =
['category', 'identifier', 'patient', 'status', 'subject', 'targetdate']
- METADATA =
{ 'id' => {'type'=>'id', 'path'=>'Goal.id', 'min'=>0, 'max'=>1}, 'meta' => {'type'=>'Meta', 'path'=>'Goal.meta', 'min'=>0, 'max'=>1}, 'implicitRules' => {'type'=>'uri', 'path'=>'Goal.implicitRules', 'min'=>0, 'max'=>1}, 'language' => {'type'=>'code', 'path'=>'Goal.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}}, 'text' => {'type'=>'Narrative', 'path'=>'Goal.text', 'min'=>0, 'max'=>1}, 'contained' => {'type'=>'Resource', 'path'=>'Goal.contained', 'min'=>0, 'max'=>Float::INFINITY}, 'extension' => {'type'=>'Extension', 'path'=>'Goal.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'Goal.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'identifier' => {'type'=>'Identifier', 'path'=>'Goal.identifier', 'min'=>0, 'max'=>Float::INFINITY}, 'subject' => {'type'=>'Reference', 'path'=>'Goal.subject', 'min'=>0, 'max'=>1}, 'startDate' => {'type'=>'date', 'path'=>'Goal.start[x]', 'min'=>0, 'max'=>1}, 'startCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>['32485007', '308283009', '442137000', '386216000']}, 'type'=>'CodeableConcept', 'path'=>'Goal.start[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-start-event'}}, 'targetDate' => {'type'=>'date', 'path'=>'Goal.target[x]', 'min'=>0, 'max'=>1}, 'targetQuantity' => {'type'=>'Quantity', 'path'=>'Goal.target[x]', 'min'=>0, 'max'=>1}, 'category' => {'valid_codes'=>{'http://hl7.org/fhir/goal-category'=>['dietary', 'safety', 'behavioral', 'nursing', 'physiotherapy']}, 'type'=>'CodeableConcept', 'path'=>'Goal.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-category'}}, 'description' => {'type'=>'string', 'path'=>'Goal.description', 'min'=>1, 'max'=>1}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/goal-status'=>['proposed', 'planned', 'accepted', 'rejected', 'in-progress', 'achieved', 'sustaining', 'on-hold', 'cancelled']}, 'type'=>'code', 'path'=>'Goal.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-status'}}, 'statusDate' => {'type'=>'date', 'path'=>'Goal.statusDate', 'min'=>0, 'max'=>1}, 'statusReason' => {'valid_codes'=>{'http://hl7.org/fhir/goal-status-reason'=>['surgery', 'life-event', 'replaced', 'patient-request']}, 'type'=>'CodeableConcept', 'path'=>'Goal.statusReason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-status-reason'}}, 'author' => {'type'=>'Reference', 'path'=>'Goal.author', 'min'=>0, 'max'=>1}, 'priority' => {'valid_codes'=>{'http://hl7.org/fhir/goal-priority'=>['high', 'medium', 'low']}, 'type'=>'CodeableConcept', 'path'=>'Goal.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-priority'}}, 'addresses' => {'type'=>'Reference', 'path'=>'Goal.addresses', 'min'=>0, 'max'=>Float::INFINITY}, 'note' => {'type'=>'Annotation', 'path'=>'Goal.note', 'min'=>0, 'max'=>Float::INFINITY}, 'outcome' => {'type'=>'Goal::Outcome', 'path'=>'Goal.outcome', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#addresses ⇒ Object
0-* [ Reference() ].
-
#author ⇒ Object
0-1 Reference().
-
#category ⇒ Object
0-* [ CodeableConcept ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#description ⇒ Object
1-1 string.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#note ⇒ Object
0-* [ Annotation ].
-
#outcome ⇒ Object
0-* [ Goal::Outcome ].
-
#priority ⇒ Object
0-1 CodeableConcept.
-
#startCodeableConcept ⇒ Object
0-1 CodeableConcept.
-
#startDate ⇒ Object
0-1 date.
-
#status ⇒ Object
1-1 code.
-
#statusDate ⇒ Object
0-1 date.
-
#statusReason ⇒ Object
0-1 CodeableConcept.
-
#subject ⇒ Object
0-1 Reference().
-
#targetDate ⇒ Object
0-1 date.
-
#targetQuantity ⇒ Object
0-1 Quantity.
-
#text ⇒ Object
0-1 Narrative.
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::DSTU2::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model
Instance Attribute Details
#addresses ⇒ Object
0-* [ Reference() ]
84 85 86 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 84 def addresses @addresses end |
#author ⇒ Object
0-1 Reference()
82 83 84 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 82 def @author end |
#category ⇒ Object
0-* [ CodeableConcept ]
77 78 79 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 77 def category @category end |
#contained ⇒ Object
0-* [ Resource ]
68 69 70 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 68 def contained @contained end |
#description ⇒ Object
1-1 string
78 79 80 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 78 def description @description end |
#extension ⇒ Object
0-* [ Extension ]
69 70 71 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 69 def extension @extension end |
#id ⇒ Object
0-1 id
63 64 65 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 63 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
71 72 73 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 71 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
65 66 67 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 65 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
66 67 68 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 66 def language @language end |
#meta ⇒ Object
0-1 Meta
64 65 66 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 64 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
70 71 72 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 70 def modifierExtension @modifierExtension end |
#note ⇒ Object
0-* [ Annotation ]
85 86 87 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 85 def note @note end |
#outcome ⇒ Object
0-* [ Goal::Outcome ]
86 87 88 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 86 def outcome @outcome end |
#priority ⇒ Object
0-1 CodeableConcept
83 84 85 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 83 def priority @priority end |
#startCodeableConcept ⇒ Object
0-1 CodeableConcept
74 75 76 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 74 def startCodeableConcept @startCodeableConcept end |
#startDate ⇒ Object
0-1 date
73 74 75 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 73 def startDate @startDate end |
#status ⇒ Object
1-1 code
79 80 81 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 79 def status @status end |
#statusDate ⇒ Object
0-1 date
80 81 82 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 80 def statusDate @statusDate end |
#statusReason ⇒ Object
0-1 CodeableConcept
81 82 83 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 81 def statusReason @statusReason end |
#subject ⇒ Object
0-1 Reference()
72 73 74 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 72 def subject @subject end |
#targetDate ⇒ Object
0-1 date
75 76 77 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 75 def targetDate @targetDate end |
#targetQuantity ⇒ Object
0-1 Quantity
76 77 78 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 76 def targetQuantity @targetQuantity end |
#text ⇒ Object
0-1 Narrative
67 68 69 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 67 def text @text end |
Instance Method Details
#resourceType ⇒ Object
88 89 90 |
# File 'lib/fhir_dstu2_models/fhir/resources/Goal.rb', line 88 def resourceType 'Goal' end |