Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weight-for-height charts for preterms #2

Open
7 tasks
stefvanbuuren opened this issue Sep 16, 2020 · 0 comments
Open
7 tasks

Weight-for-height charts for preterms #2

stefvanbuuren opened this issue Sep 16, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@stefvanbuuren
Copy link
Member

stefvanbuuren commented Sep 16, 2020

User request.

JAMES currently lacks weight-for-height charts for preterms. The references have already been calculated, and are available as preterm in the clopus packages, but the charts have yet to be designed and integrated into JAMES.

Actions needed:

  • Define 24 Dutch A4 charts per week (PJBANww, PMBANww). We need charts per week here because height depends on week. Define square charts PJBRN and PMBRN. The chart cover ages 0-4 years. We do not have data to create wfh charts for age period 1-21 years.

  • Use chartdesigner to create a chart inspired on design B (0-4 years, A4). The chart for different weeks can be identical. Also, design square charts, borrowing from NJBA and define_preterm_solo.R. Both horizontal and vertical axes need to start at lower values, but their upper values should coincide with graph created for terms. Be aware that some settings are done in deeper functions, like chartdesigner::set_axes_design() and chartdesigner::make.viewports(). In the end, the chartdesigner::growthchart() function should be able to accept chart code PJBANww and friends.

  • Extend the chart generation script and regenerate all preterms charts with the new charts included. Store the result in the chartbox package.

  • Extend the script that creates the chart lookup table in the chartcatalog package.

  • Update the chartcatalog::create_chartcode() and chartcatalog::parse_chartcode functions. A new problem is that PJBRN and PMBRN do not have week codes. If it turns out to be too complex to solve this, an alternative is to create 24 instead of 2 charts, with week codes attached. This is, however, a waste of precious memory, and should only be done as a last resort.

  • Extend the user interface with additional choice in the menu for preterms.

  • Test, test, test..

Sorry that it can't be any simpler, but this should do it.

@stefvanbuuren stefvanbuuren added enhancement New feature or request help wanted Extra attention is needed labels Sep 16, 2020
@stefvanbuuren stefvanbuuren removed this from Done in Down Syndrome Charts Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant