Class: FHIR::DSTU2::Composition::Section

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

Constant Summary collapse

METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Section.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Section.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Section.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'title' => { 'type' => 'string', 'path' => 'Section.title', 'min' => 0, 'max' => 1 },
  'code' => { 'valid_codes' => { 'http://loinc.org' => ['10154-3', '10157-6', '10160-0', '10164-2', '10183-2', '10184-0', '10187-3', '10210-3', '10216-0', '10218-6', '10223-6', '10830-8', '11329-0', '11348-0', '11369-6', '11450-4', '11493-4', '11535-2', '11537-8', '18776-5', '18841-7', '29299-5', '29545-1', '29549-3', '29554-3', '29762-2', '30954-2', '42344-2', '42346-7', '42348-3', '42349-1', '46240-8', '46241-6', '46264-8', '47420-5', '47519-4', '48765-2', '48768-6', '51848-0', '55109-3', '55122-6', '59768-2', '59769-0', '59770-8', '59771-6', '59772-4', '59773-2', '59775-7', '59776-5', '61149-1', '61150-9', '69730-0', '8648-8', '8653-8', '8716-3'] }, 'type' => 'CodeableConcept', 'path' => 'Section.code', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/doc-section-codes' } },
  'text' => { 'type' => 'Narrative', 'path' => 'Section.text', 'min' => 0, 'max' => 1 },
  'mode' => { 'valid_codes' => { 'http://hl7.org/fhir/list-mode' => ['working', 'snapshot', 'changes'] }, 'type' => 'code', 'path' => 'Section.mode', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/list-mode' } },
  'orderedBy' => { 'valid_codes' => { 'http://hl7.org/fhir/list-order' => ['user', 'system', 'event-date', 'entry-date', 'priority', 'alphabetic', 'category', 'patient'] }, 'type' => 'CodeableConcept', 'path' => 'Section.orderedBy', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/list-order' } },
  'entry' => { 'type' => 'Reference', 'path' => 'Section.entry', 'min' => 0, 'max' => Float::INFINITY },
  'emptyReason' => { 'valid_codes' => { 'http://hl7.org/fhir/list-empty-reason' => ['nilknown', 'notasked', 'withheld', 'unavailable', 'notstarted', 'closed'] }, 'type' => 'CodeableConcept', 'path' => 'Section.emptyReason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/list-empty-reason' } },
  'section' => { 'type' => 'Composition::Section', 'path' => 'Section.section', 'min' => 0, 'max' => Float::INFINITY }
}

Instance Attribute Summary collapse

Method Summary

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

#codeObject

0-1 CodeableConcept



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

def code
  @code
end

#emptyReasonObject

0-1 CodeableConcept



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

def emptyReason
  @emptyReason
end

#entryObject

0-* [ Reference() ]



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

def entry
  @entry
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#modeObject

0-1 code



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

def mode
  @mode
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#orderedByObject

0-1 CodeableConcept



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

def orderedBy
  @orderedBy
end

#sectionObject

0-* [ Composition::Section ]



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

def section
  @section
end

#textObject

0-1 Narrative



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

def text
  @text
end

#titleObject

0-1 string



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

def title
  @title
end