Class: FHIR::DSTU2::Procedure

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_dstu2_models/fhir/resources/Procedure.rb

Defined Under Namespace

Classes: FocalDevice, Performer

Constant Summary collapse

MULTIPLE_TYPES =
{
  'reason' => ['CodeableConcept', 'Reference'],
  'performed' => ['dateTime', 'Period']
}
SEARCH_PARAMS =
['encounter', 'identifier', 'orderer', 'patient', 'performer', 'subject', 'code', 'date', 'encounter', 'identifier', 'location', 'patient', 'performer', 'subject']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Procedure.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Procedure.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Procedure.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Procedure.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
  'text' => {'type'=>'Narrative', 'path'=>'Procedure.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Procedure.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Procedure.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Procedure.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Procedure.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'subject' => {'type'=>'Reference', 'path'=>'Procedure.subject', 'min'=>1, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/procedure-status'=>['in-progress', 'aborted', 'completed', 'entered-in-error']}, 'type'=>'code', 'path'=>'Procedure.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/procedure-status'}},
  'category' => {'valid_codes'=>{'http://snomed.info/sct'=>['24642003', '409063005', '409073007', '387713003', '103693007', '46947000']}, 'type'=>'CodeableConcept', 'path'=>'Procedure.category', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/procedure-category'}},
  'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Procedure.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/procedure-code'}},
  'notPerformed' => {'type'=>'boolean', 'path'=>'Procedure.notPerformed', 'min'=>0, 'max'=>1},
  'reasonNotPerformed' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Procedure.reasonNotPerformed', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/procedure-not-performed-reason'}},
  'bodySite' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Procedure.bodySite', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/body-site'}},
  'reasonCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Procedure.reason[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/procedure-reason'}},
  'reasonReference' => {'type'=>'Reference', 'path'=>'Procedure.reason[x]', 'min'=>0, 'max'=>1},
  'performer' => {'type'=>'Procedure::Performer', 'path'=>'Procedure.performer', 'min'=>0, 'max'=>Float::INFINITY},
  'performedDateTime' => {'type'=>'dateTime', 'path'=>'Procedure.performed[x]', 'min'=>0, 'max'=>1},
  'performedPeriod' => {'type'=>'Period', 'path'=>'Procedure.performed[x]', 'min'=>0, 'max'=>1},
  'encounter' => {'type'=>'Reference', 'path'=>'Procedure.encounter', 'min'=>0, 'max'=>1},
  'location' => {'type'=>'Reference', 'path'=>'Procedure.location', 'min'=>0, 'max'=>1},
  'outcome' => {'valid_codes'=>{'http://snomed.info/sct'=>['385669000', '385671000', '385670004']}, 'type'=>'CodeableConcept', 'path'=>'Procedure.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/procedure-outcome'}},
  'report' => {'type'=>'Reference', 'path'=>'Procedure.report', 'min'=>0, 'max'=>Float::INFINITY},
  'complication' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Procedure.complication', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/condition-code'}},
  'followUp' => {'valid_codes'=>{'http://snomed.info/sct'=>['18949003', '30549001', '241031001', '35963001', '225164002', '447346005', '229506003', '274441001', '394725008', '359825008']}, 'type'=>'CodeableConcept', 'path'=>'Procedure.followUp', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/procedure-followup'}},
  'request' => {'type'=>'Reference', 'path'=>'Procedure.request', 'min'=>0, 'max'=>1},
  'notes' => {'type'=>'Annotation', 'path'=>'Procedure.notes', 'min'=>0, 'max'=>Float::INFINITY},
  'focalDevice' => {'type'=>'Procedure::FocalDevice', 'path'=>'Procedure.focalDevice', 'min'=>0, 'max'=>Float::INFINITY},
  'used' => {'type'=>'Reference', 'path'=>'Procedure.used', '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

#bodySiteObject

0-* [ CodeableConcept ]



102
103
104
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 102

def bodySite
  @bodySite
end

#categoryObject

0-1 CodeableConcept



98
99
100
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 98

def category
  @category
end

#codeObject

1-1 CodeableConcept



99
100
101
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 99

def code
  @code
end

#complicationObject

0-* [ CodeableConcept ]



112
113
114
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 112

def complication
  @complication
end

#containedObject

0-* [ Resource ]



92
93
94
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 92

def contained
  @contained
end

#encounterObject

0-1 Reference()



108
109
110
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 108

def encounter
  @encounter
end

#extensionObject

0-* [ Extension ]



93
94
95
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 93

def extension
  @extension
end

#focalDeviceObject

0-* [ Procedure::FocalDevice ]



116
117
118
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 116

def focalDevice
  @focalDevice
end

#followUpObject

0-* [ CodeableConcept ]



113
114
115
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 113

def followUp
  @followUp
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



95
96
97
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 95

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



89
90
91
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 89

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



90
91
92
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 90

def language
  @language
end

#locationObject

0-1 Reference()



109
110
111
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 109

def location
  @location
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



94
95
96
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 94

def modifierExtension
  @modifierExtension
end

#notesObject

0-* [ Annotation ]



115
116
117
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 115

def notes
  @notes
end

#notPerformedObject

0-1 boolean



100
101
102
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 100

def notPerformed
  @notPerformed
end

#outcomeObject

0-1 CodeableConcept



110
111
112
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 110

def outcome
  @outcome
end

#performedDateTimeObject

0-1 dateTime



106
107
108
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 106

def performedDateTime
  @performedDateTime
end

#performedPeriodObject

0-1 Period



107
108
109
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 107

def performedPeriod
  @performedPeriod
end

#performerObject

0-* [ Procedure::Performer ]



105
106
107
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 105

def performer
  @performer
end

#reasonCodeableConceptObject

0-1 CodeableConcept



103
104
105
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 103

def reasonCodeableConcept
  @reasonCodeableConcept
end

#reasonNotPerformedObject

0-* [ CodeableConcept ]



101
102
103
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 101

def reasonNotPerformed
  @reasonNotPerformed
end

#reasonReferenceObject

0-1 Reference()



104
105
106
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 104

def reasonReference
  @reasonReference
end

#reportObject

0-* [ Reference() ]



111
112
113
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 111

def report
  @report
end

#requestObject

0-1 Reference()



114
115
116
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 114

def request
  @request
end

#statusObject

1-1 code



97
98
99
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 97

def status
  @status
end

#subjectObject

1-1 Reference()



96
97
98
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 96

def subject
  @subject
end

#textObject

0-1 Narrative



91
92
93
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 91

def text
  @text
end

#usedObject

0-* [ Reference() ]



117
118
119
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 117

def used
  @used
end

Instance Method Details

#resourceTypeObject



119
120
121
# File 'lib/fhir_dstu2_models/fhir/resources/Procedure.rb', line 119

def resourceType
  'Procedure'
end