Class: FHIR::DSTU2::Goal

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

Instance Method Summary collapse

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

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?, #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

#addressesObject

0-* [ Reference() ]



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

def addresses
  @addresses
end

#authorObject

0-1 Reference()



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

def author
  @author
end

#categoryObject

0-* [ CodeableConcept ]



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

def category
  @category
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#descriptionObject

1-1 string



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

def description
  @description
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



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

def note
  @note
end

#outcomeObject

0-* [ Goal::Outcome ]



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

def outcome
  @outcome
end

#priorityObject

0-1 CodeableConcept



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

def priority
  @priority
end

#startCodeableConceptObject

0-1 CodeableConcept



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

def startCodeableConcept
  @startCodeableConcept
end

#startDateObject

0-1 date



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

def startDate
  @startDate
end

#statusObject

1-1 code



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

def status
  @status
end

#statusDateObject

0-1 date



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

def statusDate
  @statusDate
end

#statusReasonObject

0-1 CodeableConcept



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

def statusReason
  @statusReason
end

#subjectObject

0-1 Reference()



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

def subject
  @subject
end

#targetDateObject

0-1 date



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

def targetDate
  @targetDate
end

#targetQuantityObject

0-1 Quantity



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

def targetQuantity
  @targetQuantity
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'Goal'
end