Class: FHIR::Goal
- Defined in:
- lib/fhir/resources/Goal.rb
Defined Under Namespace
Classes: Outcome
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'start' => ['date', 'CodeableConcept'], 'target' => ['date', 'Duration'] }
- 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'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}}, '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Organization'], '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}, 'targetDuration' => {'type'=>'Duration', 'path'=>'Goal.target[x]', 'min'=>0, 'max'=>1}, 'category' => {'valid_codes'=>{'http://hl7.org/fhir/goal-category'=>['dietary', 'safety', 'behavioral', 'nursing', 'physiotherapy', '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'=>'CodeableConcept', 'path'=>'Goal.description', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/goal-status'=>['proposed', 'planned', 'accepted', 'rejected', 'in-progress', 'achieved', 'sustaining', 'on-hold', 'cancelled', 'on-target', 'ahead-of-target', 'behind-target', 'proposed', 'planned', 'accepted', 'rejected', 'in-progress', 'achieved', 'sustaining', 'on-hold', 'cancelled', 'on-target', 'ahead-of-target', 'behind-target']}, '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', 'temp-not-attainable', 'permanent-not-attainable', 'financial-barrier', 'lack-of-transportation', 'lack-of-social-support', 'surgery', 'life-event', 'replaced', 'patient-request', 'temp-not-attainable', 'permanent-not-attainable', 'financial-barrier', 'lack-of-transportation', 'lack-of-social-support']}, 'type'=>'CodeableConcept', 'path'=>'Goal.statusReason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-status-reason'}}, 'expressedBy' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Goal.expressedBy', 'min'=>0, 'max'=>1}, 'priority' => {'valid_codes'=>{'http://hl7.org/fhir/goal-priority'=>['high', 'medium', 'low', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/StructureDefinition/MedicationStatement', 'http://hl7.org/fhir/StructureDefinition/NutritionRequest', 'http://hl7.org/fhir/StructureDefinition/ProcedureRequest', 'http://hl7.org/fhir/StructureDefinition/RiskAssessment'], '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(Condition|Observation|MedicationStatement|NutritionRequest|ProcedureRequest|RiskAssessment) ].
-
#category ⇒ Object
0-* [ CodeableConcept ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#description ⇒ Object
1-1 CodeableConcept.
-
#expressedBy ⇒ Object
0-1 Reference(Patient|Practitioner|RelatedPerson).
-
#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-* [ CodeableConcept ].
-
#subject ⇒ Object
0-1 Reference(Patient|Group|Organization).
-
#targetDate ⇒ Object
0-1 date.
-
#targetDuration ⇒ Object
0-1 Duration.
-
#text ⇒ Object
0-1 Narrative.
Instance Method Summary collapse
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
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
#addresses ⇒ Object
0-* [ Reference(Condition|Observation|MedicationStatement|NutritionRequest|ProcedureRequest|RiskAssessment) ]
83 84 85 |
# File 'lib/fhir/resources/Goal.rb', line 83 def addresses @addresses end |
#category ⇒ Object
0-* [ CodeableConcept ]
76 77 78 |
# File 'lib/fhir/resources/Goal.rb', line 76 def category @category end |
#contained ⇒ Object
0-* [ Resource ]
67 68 69 |
# File 'lib/fhir/resources/Goal.rb', line 67 def contained @contained end |
#description ⇒ Object
1-1 CodeableConcept
77 78 79 |
# File 'lib/fhir/resources/Goal.rb', line 77 def description @description end |
#expressedBy ⇒ Object
0-1 Reference(Patient|Practitioner|RelatedPerson)
81 82 83 |
# File 'lib/fhir/resources/Goal.rb', line 81 def expressedBy @expressedBy end |
#extension ⇒ Object
0-* [ Extension ]
68 69 70 |
# File 'lib/fhir/resources/Goal.rb', line 68 def extension @extension end |
#id ⇒ Object
0-1 id
62 63 64 |
# File 'lib/fhir/resources/Goal.rb', line 62 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
70 71 72 |
# File 'lib/fhir/resources/Goal.rb', line 70 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
64 65 66 |
# File 'lib/fhir/resources/Goal.rb', line 64 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
65 66 67 |
# File 'lib/fhir/resources/Goal.rb', line 65 def language @language end |
#meta ⇒ Object
0-1 Meta
63 64 65 |
# File 'lib/fhir/resources/Goal.rb', line 63 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
69 70 71 |
# File 'lib/fhir/resources/Goal.rb', line 69 def modifierExtension @modifierExtension end |
#note ⇒ Object
0-* [ Annotation ]
84 85 86 |
# File 'lib/fhir/resources/Goal.rb', line 84 def note @note end |
#outcome ⇒ Object
0-* [ Goal::Outcome ]
85 86 87 |
# File 'lib/fhir/resources/Goal.rb', line 85 def outcome @outcome end |
#priority ⇒ Object
0-1 CodeableConcept
82 83 84 |
# File 'lib/fhir/resources/Goal.rb', line 82 def priority @priority end |
#startCodeableConcept ⇒ Object
0-1 CodeableConcept
73 74 75 |
# File 'lib/fhir/resources/Goal.rb', line 73 def startCodeableConcept @startCodeableConcept end |
#startDate ⇒ Object
0-1 date
72 73 74 |
# File 'lib/fhir/resources/Goal.rb', line 72 def startDate @startDate end |
#status ⇒ Object
1-1 code
78 79 80 |
# File 'lib/fhir/resources/Goal.rb', line 78 def status @status end |
#statusDate ⇒ Object
0-1 date
79 80 81 |
# File 'lib/fhir/resources/Goal.rb', line 79 def statusDate @statusDate end |
#statusReason ⇒ Object
0-* [ CodeableConcept ]
80 81 82 |
# File 'lib/fhir/resources/Goal.rb', line 80 def statusReason @statusReason end |
#subject ⇒ Object
0-1 Reference(Patient|Group|Organization)
71 72 73 |
# File 'lib/fhir/resources/Goal.rb', line 71 def subject @subject end |
#targetDate ⇒ Object
0-1 date
74 75 76 |
# File 'lib/fhir/resources/Goal.rb', line 74 def targetDate @targetDate end |
#targetDuration ⇒ Object
0-1 Duration
75 76 77 |
# File 'lib/fhir/resources/Goal.rb', line 75 def targetDuration @targetDuration end |
#text ⇒ Object
0-1 Narrative
66 67 68 |
# File 'lib/fhir/resources/Goal.rb', line 66 def text @text end |
Instance Method Details
#resourceType ⇒ Object
87 88 89 |
# File 'lib/fhir/resources/Goal.rb', line 87 def resourceType 'Goal' end |