0d7a4cc9c3
chore(growth): move nil logic to scorer behaviour
...
Handle `nil` measurement in `Growth.Score.Scorer`.
2024-06-11 14:53:19 +00:00
c81e4fda67
chore(growth): add log in loader
2024-06-11 12:02:14 +00:00
bc9c2124f1
chore(growth): add example for Growth.new/4
2024-06-11 12:01:50 +00:00
c14a26a184
fix(growth): measure for subscapular skinfold
2024-06-11 12:01:25 +00:00
79aec9f7e5
feat(growth): calculate z-score/centile for all indicators
2024-06-11 11:42:57 +00:00
2545a796c3
chore(growth): return nil when measure isn't set
2024-06-11 11:42:17 +00:00
88b8e811a8
chore(growth): apply scorer behaviour in indicators
2024-06-11 11:41:31 +00:00
fa022b9592
feat(growth): calculate z-score/centile for all indicators
...
The `Growth.Score.Scorer` behaviour implements the methods needed to
calculate z-score and centile for any indicator.
2024-06-11 11:38:18 +00:00
0ac434c61d
fix(growth): ignore enum result explicitly
2024-06-10 19:24:41 +00:00
06b35cbceb
wip(growth): implement results for bmi
...
This implementation should be made generic for all other scores.
2024-06-10 19:09:35 +00:00
28f0546bcb
chore(growth): add default value for results
2024-06-10 18:35:12 +00:00
c175c3edfd
fix(growth): typespec and doc for centile calc
2024-06-10 18:34:24 +00:00
4234b2e917
chore(growth): load is independent from task
...
Ensure that `Growth.Indicators.Load.all/0` can be run independently from
the task.
So, the `ets` table is create based on the filename processed.
2024-06-10 13:01:44 +00:00
04fff60541
wip(growth): add score module
...
This module is responsible for calculate the z score/centile for each
measurement.
2024-06-10 12:15:16 +00:00
b415b38184
feat(growth): load data on application start
...
To make this possible, the following changes were made:
* Use `Task` to start the load process
* Create `ets` table before start the async task
* This is needed to keep the tables alive after the task process exits
* Adjust the application to start the `Growth.Indicators.Load` task
2024-06-10 12:11:18 +00:00
412250d7ef
feat(growth): add struct to represent measurement
2024-06-09 20:00:49 +00:00
d3c1aa9b6b
chore(growth): improve age documentation and typing
2024-06-09 19:59:33 +00:00
025ab1537d
chore(growth): name ets tables with score modules
2024-06-09 19:58:34 +00:00
52c1d0c028
feat(growth): load csv indicators into ets tables
2024-06-07 13:28:13 +00:00
902a22c947
chore(growth): fetch extended data for indicators
...
Also, improve module doc.
2024-06-06 22:49:52 +00:00
a8466f0c1d
chore(growth): add documentation and examples
2024-06-06 20:39:10 +00:00
Joao P Dubas
bb79aa2f3a
fix(growth): alias z-score and use if
2024-06-06 11:34:02 +00:00
500d0e89bb
wip(growth): calculate key metrics for growth
...
1. calculate age in days, weeks, and months
2. calculate body mass index for metric and english unities
3. calculate z-score for a given measurement and box-cox parameters (l,
m, s)
4. calculate centile score for a given measurement and box-cox
parameters
2024-06-06 01:36:11 +00:00
8be9fa38bb
wip(growth): add fix note on convert/3 method
2024-06-04 23:56:27 +00:00
9c8e1d20ee
wip(growth): improve data parsing
...
1. Fetch common data for all indicators
2. Remove headers during merge
Also, re-generate files.
2024-06-04 23:55:03 +00:00
2fedb4ecf0
wip(growth): change from with
to case
2024-06-04 14:36:20 +00:00
58f14c0346
wip(growth): fetch|extract|save indicators from WHO
...
Initial implementation to fetch growth indicators from WHO.
For now, the system merges the measurements for each gender and age
group in a single `csv` file.
The final solution should do this, saving a `dets` file.
2024-06-04 13:57:32 +00:00