Class: Renalware::HD::ProfileDocument::Dialysis

Inherits:
Document::Embedded show all
Defined in:
app/documents/renalware/hd/profile_document.rb

Constant Summary

Constants inherited from Document::Embedded

Document::Embedded::STRIPPABLE_TYPES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Document::Embedded

attribute, attributes_list, #method_missing, old_attribute, old_attributes, #strip_leading_trailing_whitespace_from_numbers

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Document::Embedded

Class Method Details

.bicarbonate_levelsObject



40
# File 'app/documents/renalware/hd/profile_document.rb', line 40

def self.bicarbonate_levels; (22..43).step(1); end

.calcium_levelsObject



38
# File 'app/documents/renalware/hd/profile_document.rb', line 38

def self.calcium_levels; [1.0, 1.35, 1.5]; end

.cannulation_typesObject



33
# File 'app/documents/renalware/hd/profile_document.rb', line 33

def self.cannulation_types; CannulationType.ordered; end

.dialysersObject



36
# File 'app/documents/renalware/hd/profile_document.rb', line 36

def self.dialysers; Dialyser.ordered; end

.flow_ratesObject



35
# File 'app/documents/renalware/hd/profile_document.rb', line 35

def self.flow_rates; (100..800).step(100); end

.needle_sizesObject



34
# File 'app/documents/renalware/hd/profile_document.rb', line 34

def self.needle_sizes; [14, 15, 16, 17]; end

.potassium_levelsObject



37
# File 'app/documents/renalware/hd/profile_document.rb', line 37

def self.potassium_levels; [1, 2, 3, 4]; end

.sodium_levelsObject



41
# File 'app/documents/renalware/hd/profile_document.rb', line 41

def self.sodium_levels; [136, 137, 138, 140, 145]; end

.temperature_levelsObject



39
# File 'app/documents/renalware/hd/profile_document.rb', line 39

def self.temperature_levels; [35.0, 35.5, 36.0, 36.5, 37.0]; end

Instance Method Details

#has_sodium_profiling?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'app/documents/renalware/hd/profile_document.rb', line 43

def has_sodium_profiling?
  has_sodium_profiling&.yes?
end