You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
User request.
JAMES currently lacks weight-for-height charts for preterms. The references have already been calculated, and are available as
pretermin theclopuspackages, 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 chartsPJBRNandPMBRN. The chart cover ages 0-4 years. We do not have data to create wfh charts for age period 1-21 years.Use
chartdesignerto create a chart inspired on design B (0-4 years, A4). The chart for different weeks can be identical. Also, design square charts, borrowing fromNJBAanddefine_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, likechartdesigner::set_axes_design()andchartdesigner::make.viewports(). In the end, thechartdesigner::growthchart()function should be able to accept chart codePJBANwwand friends.Extend the chart generation script and regenerate all preterms charts with the new charts included. Store the result in the
chartboxpackage.Extend the script that creates the chart lookup table in the
chartcatalogpackage.Update the
chartcatalog::create_chartcode()andchartcatalog::parse_chartcodefunctions. A new problem is thatPJBRNandPMBRNdo 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.