Class: FHIR::DSTU2::DiagnosticOrder

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

Defined Under Namespace

Classes: Event, Item

Constant Summary collapse

SEARCH_PARAMS =
['actor', 'bodysite', 'code', 'encounter', 'event-date', 'event-status', 'identifier', 'item-date', 'item-past-status', 'item-status', 'orderer', 'patient', 'specimen', 'status', 'subject']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'DiagnosticOrder.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'DiagnosticOrder.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'DiagnosticOrder.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'DiagnosticOrder.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'DiagnosticOrder.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'DiagnosticOrder.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'DiagnosticOrder.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'DiagnosticOrder.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'subject' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.subject', 'min' => 1, 'max' => 1 },
  'orderer' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.orderer', 'min' => 0, 'max' => 1 },
  'identifier' => { 'type' => 'Identifier', 'path' => 'DiagnosticOrder.identifier', 'min' => 0, 'max' => Float::INFINITY },
  'encounter' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.encounter', 'min' => 0, 'max' => 1 },
  'reason' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'DiagnosticOrder.reason', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-code' } },
  'supportingInformation' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.supportingInformation', 'min' => 0, 'max' => Float::INFINITY },
  'specimen' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.specimen', 'min' => 0, 'max' => Float::INFINITY },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/diagnostic-order-status' => ['proposed', 'draft', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'review', 'completed', 'cancelled', 'suspended', 'rejected', 'failed'] }, 'type' => 'code', 'path' => 'DiagnosticOrder.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-order-status' } },
  'priority' => { 'valid_codes' => { 'http://hl7.org/fhir/diagnostic-order-priority' => ['routine', 'urgent', 'stat', 'asap'] }, 'type' => 'code', 'path' => 'DiagnosticOrder.priority', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-order-priority' } },
  'event' => { 'type' => 'DiagnosticOrder::Event', 'path' => 'DiagnosticOrder.event', 'min' => 0, 'max' => Float::INFINITY },
  'item' => { 'type' => 'DiagnosticOrder::Item', 'path' => 'DiagnosticOrder.item', 'min' => 0, 'max' => Float::INFINITY },
  'note' => { 'type' => 'Annotation', 'path' => 'DiagnosticOrder.note', '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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #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

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#encounterObject

0-1 Reference()



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

def encounter
  @encounter
end

#eventObject

0-* [ DiagnosticOrder::Event ]



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

def event
  @event
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#itemObject

0-* [ DiagnosticOrder::Item ]



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

def item
  @item
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



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

def note
  @note
end

#ordererObject

0-1 Reference()



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

def orderer
  @orderer
end

#priorityObject

0-1 code



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

def priority
  @priority
end

#reasonObject

0-* [ CodeableConcept ]



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

def reason
  @reason
end

#specimenObject

0-* [ Reference() ]



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

def specimen
  @specimen
end

#statusObject

0-1 code



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

def status
  @status
end

#subjectObject

1-1 Reference()



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

def subject
  @subject
end

#supportingInformationObject

0-* [ Reference() ]



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

def supportingInformation
  @supportingInformation
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'DiagnosticOrder'
end