Class: FHIR::Goal

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
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

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

#addressesObject

0-* [ Reference(Condition|Observation|MedicationStatement|NutritionRequest|ProcedureRequest|RiskAssessment) ]



83
84
85
# File 'lib/fhir/resources/Goal.rb', line 83

def addresses
  @addresses
end

#categoryObject

0-* [ CodeableConcept ]



76
77
78
# File 'lib/fhir/resources/Goal.rb', line 76

def category
  @category
end

#containedObject

0-* [ Resource ]



67
68
69
# File 'lib/fhir/resources/Goal.rb', line 67

def contained
  @contained
end

#descriptionObject

1-1 CodeableConcept



77
78
79
# File 'lib/fhir/resources/Goal.rb', line 77

def description
  @description
end

#expressedByObject

0-1 Reference(Patient|Practitioner|RelatedPerson)



81
82
83
# File 'lib/fhir/resources/Goal.rb', line 81

def expressedBy
  @expressedBy
end

#extensionObject

0-* [ Extension ]



68
69
70
# File 'lib/fhir/resources/Goal.rb', line 68

def extension
  @extension
end

#idObject

0-1 id



62
63
64
# File 'lib/fhir/resources/Goal.rb', line 62

def id
  @id
end

#identifierObject

0-* [ Identifier ]



70
71
72
# File 'lib/fhir/resources/Goal.rb', line 70

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



64
65
66
# File 'lib/fhir/resources/Goal.rb', line 64

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



65
66
67
# File 'lib/fhir/resources/Goal.rb', line 65

def language
  @language
end

#metaObject

0-1 Meta



63
64
65
# File 'lib/fhir/resources/Goal.rb', line 63

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



69
70
71
# File 'lib/fhir/resources/Goal.rb', line 69

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



84
85
86
# File 'lib/fhir/resources/Goal.rb', line 84

def note
  @note
end

#outcomeObject

0-* [ Goal::Outcome ]



85
86
87
# File 'lib/fhir/resources/Goal.rb', line 85

def outcome
  @outcome
end

#priorityObject

0-1 CodeableConcept



82
83
84
# File 'lib/fhir/resources/Goal.rb', line 82

def priority
  @priority
end

#startCodeableConceptObject

0-1 CodeableConcept



73
74
75
# File 'lib/fhir/resources/Goal.rb', line 73

def startCodeableConcept
  @startCodeableConcept
end

#startDateObject

0-1 date



72
73
74
# File 'lib/fhir/resources/Goal.rb', line 72

def startDate
  @startDate
end

#statusObject

1-1 code



78
79
80
# File 'lib/fhir/resources/Goal.rb', line 78

def status
  @status
end

#statusDateObject

0-1 date



79
80
81
# File 'lib/fhir/resources/Goal.rb', line 79

def statusDate
  @statusDate
end

#statusReasonObject

0-* [ CodeableConcept ]



80
81
82
# File 'lib/fhir/resources/Goal.rb', line 80

def statusReason
  @statusReason
end

#subjectObject

0-1 Reference(Patient|Group|Organization)



71
72
73
# File 'lib/fhir/resources/Goal.rb', line 71

def subject
  @subject
end

#targetDateObject

0-1 date



74
75
76
# File 'lib/fhir/resources/Goal.rb', line 74

def targetDate
  @targetDate
end

#targetDurationObject

0-1 Duration



75
76
77
# File 'lib/fhir/resources/Goal.rb', line 75

def targetDuration
  @targetDuration
end

#textObject

0-1 Narrative



66
67
68
# File 'lib/fhir/resources/Goal.rb', line 66

def text
  @text
end

Instance Method Details

#resourceTypeObject



87
88
89
# File 'lib/fhir/resources/Goal.rb', line 87

def resourceType
  'Goal'
end