Endpoint: https://peditools.org/bilirubin/
Send the patient's values in the query string (GET) and the tool opens with the results, or returns them as JSON. It picks the guideline automatically from gestational age at birth and age:
gap=0 turns it off.| Parameter | Value | Notes |
|---|---|---|
ga | whole weeks, e.g. 38 | Gestational age at birth. Required |
gadays | whole days, 0–6 | Days beyond ga. Below 35 weeks a missing value is assumed to be 0, with a warning; send it whenever you have it |
age | hours, e.g. 20,30 | Ages at the TSB measurements; can be comma-separated list |
bili | e.g. 8,13.5 | TSB values; can be comma-separated list in the same order as age |
tcbage | hours | Ages at the TcB measurements (optional); can be comma-separated list |
tcb | e.g. 12 | TcB values; can be comma-separated list in the same order as tcbage |
risk | none, any or both | Neurotoxicity risk factors (AAP only): no risk factors, any risk factors, or both (show results with and without risk factors, the default) |
notime | true | Time of birth unknown: adds a caution and assumes the most conservative time (23:59) |
si | 1 | Bilirubin values are mg/dL by default. With si=1, values in the link are µmol/L and results are shown in µmol/L |
gap | 0 | Turn gap analysis off (see below). Leave it out to allow gap analysis for babies born before 35 weeks and now past 35 0/7 weeks PMA |
format | json | Return JSON instead of the web page |
13.5).36.5).gap)Babies born before 35 weeks who are now past 35 0/7 weeks PMA fall between the two guidelines: too old for Stanford PBR, born too early for AAP 2022. No published guideline covers them.
gap parameter): the tool shows a caution, "OUTSIDE BOTH INTENDED POPULATIONS", and the closest recommendations from both guidelines side by side for comparison: PBR at 35 0/7 weeks PMA, and AAP 2022 as if born at 35 completed weeks.gap=0): the tool shows only "OUTSIDE THE RANGE OF BOTH GUIDELINES", with no thresholds, recommendations or graph (JSON: guideline is out_of_range).gap=0 changes only these babies; every other result is the same. Add it to every link if your users should never see gap analysis. The result depends only on the link: the gap analysis setting on the tool's form doesn't change what a link shows.
&format=json to any of the links above.| Field | Content |
|---|---|
guideline | aap2022, pbr2012, gap (both shown), out_of_range, or null (missing or invalid input) |
units | mg/dL or umol/L |
input | The values as read, and invalid: the names of any parameters that couldn't be used |
warnings | Every caution shown on the page: code, title, detail |
aap2022, pbr2012 | Thresholds and results for each guideline shown (otherwise null), in the display units |
copy_text | The summary text, as on the page's copy button (ready to paste into a note) |
Show the warnings wherever the results are shown: some results come with an important caution, such as gap analysis or missing gestational age days.
PediTools
© 2012 – 2026 Joseph Chou