Class: FHIR::Composition::Section

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', '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', '10222-8', '11329-0', '11348-0', '11369-6', '57852-6', '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'}},
  'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Section.author', 'min'=>0, 'max'=>Float::INFINITY},
  'focus' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Section.focus', 'min'=>0, 'max'=>1},
  '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|4.0.0'}},
  'orderedBy' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Section.entry', 'min'=>0, 'max'=>Float::INFINITY},
  'emptyReason' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/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, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #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

#authorObject

0-* [ Reference(Practitioner|PractitionerRole|Device|Patient|RelatedPerson|Organization) ]



129
130
131
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 129

def author
  @author
end

#codeObject

0-1 CodeableConcept



128
129
130
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 128

def code
  @code
end

#emptyReasonObject

0-1 CodeableConcept



135
136
137
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 135

def emptyReason
  @emptyReason
end

#entryObject

0-* [ Reference(Resource) ]



134
135
136
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 134

def entry
  @entry
end

#extensionObject

0-* [ Extension ]



125
126
127
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 125

def extension
  @extension
end

#focusObject

0-1 Reference(Resource)



130
131
132
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 130

def focus
  @focus
end

#idObject

0-1 string



124
125
126
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 124

def id
  @id
end

#modeObject

0-1 code



132
133
134
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 132

def mode
  @mode
end

#modifierExtensionObject

0-* [ Extension ]



126
127
128
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 126

def modifierExtension
  @modifierExtension
end

#orderedByObject

0-1 CodeableConcept



133
134
135
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 133

def orderedBy
  @orderedBy
end

#sectionObject

0-* [ Composition::Section ]



136
137
138
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 136

def section
  @section
end

#textObject

0-1 Narrative



131
132
133
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 131

def text
  @text
end

#titleObject

0-1 string



127
128
129
# File 'lib/fhir_models/fhir/resources/Composition.rb', line 127

def title
  @title
end