Class: FHIR::Composition

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/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'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  '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', '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'=>['U', 'L', 'M', 'N', 'R', 'V']}, 'type'=>'code', 'path'=>'Composition.confidentiality', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ConfidentialityClassification'}},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Composition.subject', 'min'=>1, 'max'=>1},
  'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Composition.author', 'min'=>1, 'max'=>Float::INFINITY},
  'attester' => {'type'=>'Composition::Attester', 'path'=>'Composition.attester', 'min'=>0, 'max'=>Float::INFINITY},
  'custodian' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Composition.custodian', 'min'=>0, 'max'=>1},
  'event' => {'type'=>'Composition::Event', 'path'=>'Composition.event', 'min'=>0, 'max'=>Float::INFINITY},
  'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/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, is_valid?, #to_xml, validate

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?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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

#attesterObject

0-* [ Composition::Attester ]



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

def attester
  @attester
end

#authorObject

1-* [ Reference(Practitioner|Device|Patient|RelatedPerson) ]



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

def author
  @author
end

#confidentialityObject

0-1 code



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

def confidentiality
  @confidentiality
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#custodianObject

0-1 Reference(Organization)



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

def custodian
  @custodian
end

#dateObject

1-1 dateTime



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

def date
  @date
end

#encounterObject

0-1 Reference(Encounter)



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

def encounter
  @encounter
end

#eventObject

0-* [ Composition::Event ]



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

def event
  @event
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-1 Identifier



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#local_classObject

0-1 CodeableConcept



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

def local_class
  @local_class
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#sectionObject

0-* [ Composition::Section ]



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

def section
  @section
end

#statusObject

1-1 code



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

def status
  @status
end

#subjectObject

1-1 Reference(Resource)



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

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

#titleObject

1-1 string



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

def title
  @title
end

#typeObject

1-1 CodeableConcept



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

def type
  @type
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'Composition'
end