Add ABG structured lab template with auto-calculated oxygenation indices in Labs tab#14
Closed
Copilot wants to merge 3 commits into
Closed
Add ABG structured lab template with auto-calculated oxygenation indices in Labs tab#14Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Co-authored-by: CSfromCS <42040696+CSfromCS@users.noreply.github.com>
Co-authored-by: CSfromCS <42040696+CSfromCS@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add ABG template to LABS tab
Add ABG structured lab template with auto-calculated oxygenation indices in Labs tab
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an ABG template to the Labs tab with required parameters and built-in oxygenation calculations. The change also surfaces the requested normal-value guidance (including age-adjusted references) directly in the ABG workflow.
ABG template added to structured labs
UST - ABGpH,pCO2 (mmHg),pO2 (mmHg),HCO3 (mmol/L),a/A,A-aDO2 (mmHg),Actual FiO2 (%),pO2/FiO2,Desired FiO2 (%)Auto-calculations implemented
pO2/FiO2is computed from:pO2 / (Actual FiO2 / 100)Desired FiO2is computed from:(Actual FiO2 * Desired PaO2) / Actual PaO2Desired PaO2input; defaults to60when blank.Normal-value guidance in ABG UI
a/AO2 NV: ≥0.75A-aDO2 NV: 15+ [(# of decades above 30) *3]P/F ratio NV: <60 yo: 400; >60 yo: 400 – [(# of yrs above 60) *5]A-aDO2 ≈ 15 + floor((age - 30)/10) * 3P/F ratio ≈ 400ifage <= 60, else400 - (age - 60) * 5Docs / user guidance updates
1.1.20.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.