Class: FHIR::DSTU2::Composition

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

Defined Under Namespace

Classes: Attester, Event, Section

Constant Summary collapse

SEARCH_PARAMS =
['attester', 'author', 'class', 'confidentiality', 'context', 'date', 'encounter', 'entry', 'identifier', 'patient', 'period', 'section', 'status', 'subject', 'title', 'type']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Composition.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'Composition.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'Composition.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'Composition.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'Composition.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'Composition.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'Composition.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Composition.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'identifier' => { 'type' => 'Identifier', 'path' => 'Composition.identifier', 'min' => 0, 'max' => 1 },
  'date' => { 'type' => 'dateTime', 'path' => 'Composition.date', 'min' => 1, 'max' => 1 },
  'type' => { 'valid_codes' => { 'http://loinc.org' => [] }, 'type' => 'CodeableConcept', 'path' => 'Composition.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/doc-typecodes' } },
  'class' => { 'local_name' => 'local_class', 'valid_codes' => { 'http://loinc.org' => ['LP173387-4', 'LP173388-2', 'LP173389-0', 'LP173390-8', 'LP173394-0', 'LP173403-9', 'LP193873-9', 'LP173404-7', 'LP173405-4', 'LP173406-2', 'LP173407-0', 'LP181089-6', 'LP173409-6', 'LP173410-4', 'LP173412-0', 'LP173413-8', 'LP173414-6', 'LP173415-3', 'LP181112-6', 'LP181116-7', 'LP181119-1', 'LP173118-3', 'LP173416-1', 'LP173417-9', 'LP173418-7', 'LP173419-5', 'LP173420-3', 'LP181207-4', 'LP181204-1', 'LP156982-3', 'LP173421-1', 'LP183503-4', 'LP183502-6'] }, 'type' => 'CodeableConcept', 'path' => 'Composition.class', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/doc-classcodes' } },
  'title' => { 'type' => 'string', 'path' => 'Composition.title', 'min' => 1, 'max' => 1 },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/composition-status' => ['preliminary', 'final', 'amended', 'entered-in-error'] }, 'type' => 'code', 'path' => 'Composition.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/composition-status' } },
  'confidentiality' => { 'valid_codes' => { 'http://hl7.org/fhir/v3/Confidentiality' => ['_Confidentiality', 'L', 'M', 'N', 'R', 'U', 'V', '_ConfidentialityByAccessKind', 'B', 'D', 'I', '_ConfidentialityByInfoType', 'ETH', 'HIV', 'PSY', 'SDV', '_ConfidentialityModifiers', 'C', 'S', 'T'] }, 'type' => 'code', 'path' => 'Composition.confidentiality', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/v3-Confidentiality' } },
  'subject' => { 'type' => 'Reference', 'path' => 'Composition.subject', 'min' => 1, 'max' => 1 },
  'author' => { 'type' => 'Reference', 'path' => 'Composition.author', 'min' => 1, 'max' => Float::INFINITY },
  'attester' => { 'type' => 'Composition::Attester', 'path' => 'Composition.attester', 'min' => 0, 'max' => Float::INFINITY },
  'custodian' => { 'type' => 'Reference', 'path' => 'Composition.custodian', 'min' => 0, 'max' => 1 },
  'event' => { 'type' => 'Composition::Event', 'path' => 'Composition.event', 'min' => 0, 'max' => Float::INFINITY },
  'encounter' => { 'type' => 'Reference', 'path' => 'Composition.encounter', 'min' => 0, 'max' => 1 },
  'section' => { 'type' => 'Composition::Section', 'path' => 'Composition.section', '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

#attesterObject

0-* [ Composition::Attester ]



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

def attester
  @attester
end

#authorObject

1-* [ Reference() ]



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

def author
  @author
end

#confidentialityObject

0-1 code



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

def confidentiality
  @confidentiality
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#custodianObject

0-1 Reference()



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

def custodian
  @custodian
end

#dateObject

1-1 dateTime



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

def date
  @date
end

#encounterObject

0-1 Reference()



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

def encounter
  @encounter
end

#eventObject

0-* [ Composition::Event ]



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

def event
  @event
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-1 Identifier



118
119
120
# File 'lib/fhir_dstu2_models/fhir/resources/Composition.rb', line 118

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#local_classObject

0-1 CodeableConcept



121
122
123
# File 'lib/fhir_dstu2_models/fhir/resources/Composition.rb', line 121

def local_class
  @local_class
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#sectionObject

0-* [ Composition::Section ]



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

def section
  @section
end

#statusObject

1-1 code



123
124
125
# File 'lib/fhir_dstu2_models/fhir/resources/Composition.rb', line 123

def status
  @status
end

#subjectObject

1-1 Reference()



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

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

#titleObject

1-1 string



122
123
124
# File 'lib/fhir_dstu2_models/fhir/resources/Composition.rb', line 122

def title
  @title
end

#typeObject

1-1 CodeableConcept



120
121
122
# File 'lib/fhir_dstu2_models/fhir/resources/Composition.rb', line 120

def type
  @type
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'Composition'
end