|
| 1 | +====================================== |
| 2 | + ABQ Data Entry Program specification |
| 3 | +====================================== |
| 4 | + |
| 5 | + |
| 6 | +Description |
| 7 | +----------- |
| 8 | +The program is being created to minimize data entry errors for laboratory measurements. |
| 9 | + |
| 10 | +Functionality Required |
| 11 | +---------------------- |
| 12 | + |
| 13 | +The program must: |
| 14 | + |
| 15 | +* allow all relevant, valid data to be entered, as per the field chart |
| 16 | +* append entered data to a CSV file |
| 17 | + - The CSV file must have a filename of abq_data_record_CURRENTDATE.csv, |
| 18 | + where CURRENTDATE is the date of the checks in ISO format (Year-month-day) |
| 19 | + - The CSV file must have all the fields as per the chart |
| 20 | +* enforce correct datatypes per field |
| 21 | +* have inputs that: |
| 22 | + - ignore meaningless keystrokes |
| 23 | + - display an error if the value is invalid on focusout |
| 24 | + - display an error if a required field is empty on focusout |
| 25 | +* prevent saving the record when errors are present |
| 26 | + |
| 27 | +The program should try, whenever possible, to: |
| 28 | + |
| 29 | +* enforce reasonable limits on data entered |
| 30 | +* Auto-fill data |
| 31 | +* Suggest likely correct values |
| 32 | +* Provide a smooth and efficient workflow |
| 33 | + |
| 34 | +Functionality Not Required |
| 35 | +-------------------------- |
| 36 | + |
| 37 | +The program does not need to: |
| 38 | + |
| 39 | +* Allow editing of data. This can be done in LibreOffice if necessary. |
| 40 | +* Allow deletion of data. |
| 41 | + |
| 42 | +Limitations |
| 43 | +----------- |
| 44 | + |
| 45 | +The program must: |
| 46 | + |
| 47 | +* Be efficiently operable by keyboard-only users. |
| 48 | +* Be accessible to color blind users. |
| 49 | +* Run on Debian Linux. |
| 50 | +* Run acceptably on a low-end PC. |
| 51 | + |
| 52 | +Data Dictionary |
| 53 | +--------------- |
| 54 | ++------------+----------+------+-------------+------------------------+ |
| 55 | +|Field | Datatype | Units| Range |Descripton | |
| 56 | ++============+==========+======+=============+========================+ |
| 57 | +|Date |Date | | |Date of record | |
| 58 | ++------------+----------+------+-------------+------------------------+ |
| 59 | +|Time |Time | |8:00, 12:00, |Time period | |
| 60 | +| | | |16:00, 20:00 | | |
| 61 | ++------------+----------+------+-------------+------------------------+ |
| 62 | +|Lab |String | | A - C |Lab ID | |
| 63 | ++------------+----------+------+-------------+------------------------+ |
| 64 | +|Technician |String | | |Technician name | |
| 65 | ++------------+----------+------+-------------+------------------------+ |
| 66 | +|Plot |Int | | 1 - 20 |Plot ID | |
| 67 | ++------------+----------+------+-------------+------------------------+ |
| 68 | +|Seed |String | | |Seed sample ID | |
| 69 | +|sample | | | | | |
| 70 | ++------------+----------+------+-------------+------------------------+ |
| 71 | +|Fault |Bool | | |Fault on environmental | |
| 72 | +| | | | |sensor | |
| 73 | ++------------+----------+------+-------------+------------------------+ |
| 74 | +|Light |Decimal |klx | 0 - 100 |Light at plot | |
| 75 | ++------------+----------+------+-------------+------------------------+ |
| 76 | +|Humidity |Decimal |g/m³ | 0.5 - 52.0 |Abs humidity at plot | |
| 77 | ++------------+----------+------+-------------+------------------------+ |
| 78 | +|Temperature |Decimal |°C | 4 - 40 |Temperature at plot | |
| 79 | ++------------+----------+------+-------------+------------------------+ |
| 80 | +|Blossoms |Int | | 0 - 1000 |Num of blossoms in plot | |
| 81 | ++------------+----------+------+-------------+------------------------+ |
| 82 | +|Fruit |Int | | 0 - 1000 |Num of fruits in plot | |
| 83 | ++------------+----------+------+-------------+------------------------+ |
| 84 | +|Plants |Int | | 0 - 20 |Num of plants in plot | |
| 85 | ++------------+----------+------+-------------+------------------------+ |
| 86 | +|Max height |Decimal |cm | 0 - 1000 |Height of tallest | |
| 87 | +| | | | |plant in plot | |
| 88 | ++------------+----------+------+-------------+------------------------+ |
| 89 | +|Min height |Decimal |cm | 0 - 1000 |Height of shortest | |
| 90 | +| | | | |plant in plot | |
| 91 | ++------------+----------+------+-------------+------------------------+ |
| 92 | +|Median |Decimal |cm | 0 - 1000 |Median height of | |
| 93 | +|height | | | |plants in plot | |
| 94 | ++------------+----------+------+-------------+------------------------+ |
| 95 | +|Notes |String | | |Miscellaneous notes | |
| 96 | ++------------+----------+------+-------------+------------------------+ |
0 commit comments