Palm::DiabetesPilot - Handler for Diabetes Pilot databases
use Palm::DiabetesPilot;
Helper for reading Diabetes Pilot (www.diabetespilot.com) databases.
The AppInfo block begins with standard category support. See Palm::StdAppInfo for details. Diabetes Pilot doesn't have any application-specific extensions here.
$record = $pdb->{records}{$i} $record->{year} $record->{month} $record->{day} $record->{hour} $record->{minute}
The time of the record entry.
$record->{type}
The type of record. This will be one of gluc, meal, med, exer, or note.
gluc
meal
med
exer
note
$record->{quantity}
The quantity associated with the record. For a glucose reading, this is the level (in the appropriate units). For a meal, it's a carb value. For the medication, it's whatever units are appropriate. For the exercise, it's associated with the specific exercise selection.
$record->{note}
Any record type can have a note associated with it.
$record->{med}
In a med record, this indicates the type of medication taken. Meds are just text strings.
$record->{exer}
In an exercise record, this is a comment describing the type of exercise and the quantity associated with it.
exercise
$record->{items}
In a meal record, this is a reference to an array of individual meal items. Each item is a hash reference containing the following fields: servings, carbs, fat, protein, fiber, calories, name. name is the textual description of the item and also generally includes the serving size and units.
servings
carbs
fat
protein
fiber
calories
name
Not strictly a bug, but writing databases is unsupported. This is an incomplete reverse-engineering of medical journalling software. As such, it's unlikely that we'll ever handle writing.
Christophe Beauregard <cpb@cpan.org>
Palm::PDB(3)
Palm::StdAppInfo(3)
To install Palm::DiabetesPilot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Palm::DiabetesPilot
CPAN shell
perl -MCPAN -e shell install Palm::DiabetesPilot
For more information on module installation, please visit the detailed CPAN module installation guide.