Library / Skill
Score minimum dietary diversity for women and young children
baltor_dietary_diversity
Score minimum dietary diversity for women (10 food groups, at least 5) or for children aged 6 to 23 months (8 food groups, at least 5) from weighted unidentified food-group recall records, keeping unknown answers apart from foods not consumed.
LICENSE1.0 KBSKILL.md4.9 KBcontracts/input.schema.json6.2 KBcontracts/output.schema.json11.1 KBexamples/example.expected.json3.1 KBexamples/example.input.json2.7 KBreferences/provenance.json5.4 KBscripts/tool.py8.7 KBverification/test_tool.py11.0 KB
Full files in your harness.
What it takes and gives
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- scheme, groups, rows
- Test
python3 -B -m unittest discover -s verification -p 'test_*.py' -v- Files
- SKILL.md, contracts/input.schema.json, contracts/output.schema.json, scripts/tool.py
- Placed for
- OpenCode
Limits and scope
- Limits
- This is a supporting calculation for SDG target 2.2 on caller-supplied records, not an official estimate or an assessment of any individual's diet. The caller applies the recall protocol, the classification of foods into groups, the minimum-quantity rule for counting a food group in the women's indicator, and age and sex eligibility.
Details
- Kind
- Skill
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Placed for
- OpenCode
- Source
- docs/architecture/NORTH-STAR.md
- Size
- 9 files, 54.2 KB
- Identity
baltor_dietary_diversity- Version
3c3ad95aad7ef98d2f84a05bb70e8fadc6bf07b6e9cf1a9818209600d38fe552
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Where it is shown
- Calculators for public statisticsDeterministic skills
Related components
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.