Pummpcomm v2.1.5 Pummpcomm.PumpModel View Source

Link to this section Summary

Functions

Return true if history records use larger format

Return the model number of the pump from its model string

Return true if pump writes a square wave bolus to history as it starts, then updates the same entry upon completion

Returns how much the pump’s reservoir can hold

Return how many turns the pump motor takes to deliver 1U of insulin

Return true if pump supports low suspend

Return true if pump supports MySentry

Link to this section Functions

Link to this function large_format?(model_number) View Source

Return true if history records use larger format

Examples

iex> Pummpcomm.PumpModel.large_format?(723)
true
iex> Pummpcomm.PumpModel.large_format?(522)
false
Link to this function model_number(model_string) View Source

Return the model number of the pump from its model string

Examples

iex> Pummpcomm.PumpModel.model_number("723")
{:ok, 723}
iex> Pummpcomm.PumpModel.model_number("522")
{:ok, 522}
iex> Pummpcomm.PumpModel.model_number("677")
{:error, "Bad Pump Model"}
iex> Pummpcomm.PumpModel.model_number("invalid")
{:error, "Bad Pump Model"}
Link to this function pump_options(pump_model) View Source
Link to this function records_square_wave_bolus_before_delivery?(model_number) View Source

Return true if pump writes a square wave bolus to history as it starts, then updates the same entry upon completion

Examples

iex> Pummpcomm.PumpModel.records_square_wave_bolus_before_delivery?(723)
true
iex> Pummpcomm.PumpModel.records_square_wave_bolus_before_delivery?(522)
false
Link to this function reservoir_capacity(model_number) View Source

Returns how much the pump’s reservoir can hold

Examples

iex> Pummpcomm.PumpModel.reservoir_capacity(522)
176
iex> Pummpcomm.PumpModel.reservoir_capacity(751)
300
Link to this function strokes_per_unit(model_number) View Source

Return how many turns the pump motor takes to deliver 1U of insulin

Examples

iex> Pummpcomm.PumpModel.strokes_per_unit(722)
10
iex> Pummpcomm.PumpModel.strokes_per_unit(751)
40
Link to this function supports_low_suspend?(model_number) View Source

Return true if pump supports low suspend

Examples

iex> Pummpcomm.PumpModel.supports_low_suspend?(723)
false
iex> Pummpcomm.PumpModel.supports_low_suspend?(751)
true
Link to this function supports_my_sentry?(model_number) View Source

Return true if pump supports MySentry

Examples

iex> Pummpcomm.PumpModel.supports_my_sentry?(723)
true
iex> Pummpcomm.PumpModel.supports_my_sentry?(522)
false