84cf6758bb
fix(growth): results is now a keyword list
2024-10-05 15:10:40 +00:00
7e041ae6c9
chore(growth): adjust indicator lookup to use atoms for unit
2024-10-05 15:09:44 +00:00
82d7009b34
chore(growth): adjust key in ets tables to contain atoms
...
The `ets` tables containing growth indicator has a key in the form of
`{gender :: atom(), unit :: atom(), value :: number()}`.
2024-10-05 15:07:10 +00:00
fa65a36852
test(growth): fix doctest for centile and percentile
continuous-integration/drone/pr Build is passing
2024-10-05 12:58:36 +00:00
f3846cad24
chore(growth): update doc to reflect percentile values
...
continuous-integration/drone/pr Build is passing
This fixes an issue were the returned value represented the measurment
at a given z-score (the centile value).
2024-10-03 22:16:15 +00:00
27a7a05584
fix(growth): improve doc for centile calculation
...
This module converts a given z-score and Box-Cox values into the related
measurement.
2024-10-03 22:14:56 +00:00
5c044e69d9
fix(growth): use centile and percentile correctly
...
1. The calculation made in `Grownth.Calc.Centile.compute/4` converts a
given z-score into the expected measurement value.
This can be used to get specific values for key z-scores, such as,
-3, -2, 2 and 3.
2. To calculate the percentile of a given z-score the system uses the
cumulative distribution function.
2024-08-28 13:03:45 +00:00
0d7a4cc9c3
chore(growth): move nil logic to scorer behaviour
...
continuous-integration/drone/pr Build is passing
Handle `nil` measurement in `Growth.Score.Scorer`.
2024-06-11 14:53:19 +00:00
c81e4fda67
chore(growth): add log in loader
continuous-integration/drone/pr Build is passing
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
continuous-integration/drone/pr Build is passing
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
continuous-integration/drone/pr Build is passing
2024-06-10 19:24:41 +00:00
06b35cbceb
wip(growth): implement results for bmi
...
continuous-integration/drone/pr Build is failing
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
...
continuous-integration/drone/pr Build is failing
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
...
continuous-integration/drone/pr Build is failing
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
continuous-integration/drone/pr Build is passing
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
continuous-integration/drone/pr Build is passing
2024-06-07 13:28:13 +00:00
902a22c947
chore(growth): fetch extended data for indicators
...
continuous-integration/drone/pr Build is passing
Also, improve module doc.
2024-06-06 22:49:52 +00:00
a8466f0c1d
chore(growth): add documentation and examples
continuous-integration/drone/pr Build is passing
2024-06-06 20:39:10 +00:00
Joao P Dubas
bb79aa2f3a
fix(growth): alias z-score and use if
continuous-integration/drone/pr Build is failing
2024-06-06 11:34:02 +00:00
500d0e89bb
wip(growth): calculate key metrics for growth
...
continuous-integration/drone/pr Build is failing
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
continuous-integration/drone/pr Build is passing
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
continuous-integration/drone/pr Build is passing
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