Skip to content

Weight-for-height charts for preterms #2

@stefvanbuuren

Description

@stefvanbuuren

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions