Class: ODDB::PatinfoDocument

Inherits:
Object
  • Object
show all
Includes:
OddbYaml
Defined in:
src/model/patinfo.rb,
ext/export/src/oddb_yaml.rb

Direct Known Subclasses

PatinfoDocument2001

Constant Summary

CHAPTERS =
[
  :name,
  :company,
  :galenic_form,
  :effects,
  :purpose,
  :amendments,
  :contra_indications,
  :precautions,
  :pregnancy,
  :usage,
  :unwanted_effects,
  :general_advice,
  :other_advice,
  :composition,
  :packages,
  :distribution,
  :fabrication,
  :date,
]
EXPORT_PROPERTIES =
[
  '@name',
  '@company',
  '@galenic_form',
  '@effects',
  '@amendments',
  '@contra_indications',
  '@precautions',
  '@pregnancy',
  '@usage',
  '@unwanted_effects',
  '@general_advice',
  '@composition',
  '@packages',
  '@distribution',
  '@date',
]

Constants included from OddbYaml

EXPORT_PROPERTIES, YAML_URI

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from OddbYaml

#to_yaml_properties, #to_yaml_type

Instance Attribute Details

- (Object) amendments

Returns the value of attribute amendments



50
51
52
# File 'src/model/patinfo.rb', line 50

def amendments
  @amendments
end

- (Object) company

Returns the value of attribute company



49
50
51
# File 'src/model/patinfo.rb', line 49

def company
  @company
end

- (Object) composition

Returns the value of attribute composition



52
53
54
# File 'src/model/patinfo.rb', line 52

def composition
  @composition
end

- (Object) contra_indications

Returns the value of attribute contra_indications



50
51
52
# File 'src/model/patinfo.rb', line 50

def contra_indications
  @contra_indications
end

- (Object) date

Returns the value of attribute date



53
54
55
# File 'src/model/patinfo.rb', line 53

def date
  @date
end

- (Object) distribution

Returns the value of attribute distribution



53
54
55
# File 'src/model/patinfo.rb', line 53

def distribution
  @distribution
end

- (Object) effects

Returns the value of attribute effects



49
50
51
# File 'src/model/patinfo.rb', line 49

def effects
  @effects
end

- (Object) fabrication

Returns the value of attribute fabrication



53
54
55
# File 'src/model/patinfo.rb', line 53

def fabrication
  @fabrication
end

- (Object) galenic_form

Returns the value of attribute galenic_form



49
50
51
# File 'src/model/patinfo.rb', line 49

def galenic_form
  @galenic_form
end

- (Object) general_advice

Returns the value of attribute general_advice



52
53
54
# File 'src/model/patinfo.rb', line 52

def general_advice
  @general_advice
end

- (Object) iksnrs

interface only, no data



54
55
56
# File 'src/model/patinfo.rb', line 54

def iksnrs
  @iksnrs
end

- (Object) name

Returns the value of attribute name



49
50
51
# File 'src/model/patinfo.rb', line 49

def name
  @name
end

- (Object) other_advice

Returns the value of attribute other_advice



52
53
54
# File 'src/model/patinfo.rb', line 52

def other_advice
  @other_advice
end

- (Object) packages

Returns the value of attribute packages



52
53
54
# File 'src/model/patinfo.rb', line 52

def packages
  @packages
end

- (Object) precautions

Returns the value of attribute precautions



50
51
52
# File 'src/model/patinfo.rb', line 50

def precautions
  @precautions
end

- (Object) pregnancy

Returns the value of attribute pregnancy



51
52
53
# File 'src/model/patinfo.rb', line 51

def pregnancy
  @pregnancy
end

- (Object) purpose

Returns the value of attribute purpose



50
51
52
# File 'src/model/patinfo.rb', line 50

def purpose
  @purpose
end

- (Object) unwanted_effects

Returns the value of attribute unwanted_effects



51
52
53
# File 'src/model/patinfo.rb', line 51

def unwanted_effects
  @unwanted_effects
end

- (Object) usage

Returns the value of attribute usage



51
52
53
# File 'src/model/patinfo.rb', line 51

def usage
  @usage
end

Instance Method Details

- (Object) chapter_names



55
56
57
# File 'src/model/patinfo.rb', line 55

def chapter_names
  self::class::CHAPTERS
end

- (Boolean) empty?

Returns:

  • (Boolean)


58
59
# File 'src/model/patinfo.rb', line 58

def empty?
end

- (Object) to_s



60
61
62
63
64
# File 'src/model/patinfo.rb', line 60

def to_s
  self::class::CHAPTERS.collect { |name|
    self.send(name)
  }.compact.join("\n")
end