PatientHypoxiaRiskDuringXeBreathingChecker
Patient Hypoxia Risk During Xe Breathing Checker
Utility description: Patient Hypoxia Risk During Xe Breathing Checker
Patient Hypoxia Risk During Xe Breathing Checker — Patient Hypoxia Risk Analyzer during Xenon Inhalation
ℹ️ Utility evaluates patient safety during xenon inhalation:
• Minimum SpO2 level
• Inspired oxygen concentration (FiO2)
• Desaturation depth
• Recovery time
⚠️ CRITICAL: Xenon displaces oxygen from alveoli!
Even short-term hypoxia can be dangerous for COPD patients.
Usage:
PatientHypoxiaRiskDuringXeBreathingChecker.exe → demo mode (console output)
PatientHypoxiaRiskDuringXeBreathingChecker.exe input.csv output.json → evaluate your data
Input format:
BatchNumber,ProductName,Inspired_O2_Percent,Xe_Conc_Percent,Baseline_SpO2,Hemoglobin,Min_Monitored_SpO2,Avg_Monitored_SpO2,Duration_Sec,Critical_Threshold,Warning_Threshold
Example:
XE-HYPOXIA-2026-001,HP-Xe-129,21.0,79.0,98.0,14.5,92.0,95.0,15,90.0,94.0
— WHY IS THIS NEEDED?
Hypoxia control is critical for HP-MRI procedure safety:
• Inhaling pure xenon gas mixture (without added O2) causes sharp drop in oxygen partial pressure
• This leads to rapid decrease in saturation (SpO2)
• For patients with lung pathologies (COPD, fibrosis), even short hypoxia can be fatal
• Utility helps assess risk before procedure and monitor it during inhalation
⚠️ CRITICAL:
• SpO2 must not drop below 90% (critical threshold)
• Using oxygen-enriched mixture (e.g., 30% O2 / 70% Xe) is significantly safer
• Desaturation depth should not exceed 5% from baseline
• Saturation recovery time must be minimal (<60 sec)
Key features:
• Risk assessment based on patient physiological parameters
• Inspired mixture composition control
• Hypoxic episode depth and duration calculation
• Recovery time prediction
Critical parameters:
• Min SpO2: ≥90%
• FiO2: ≥21%
• Desaturation Depth: ≤5%
• Recovery Time: <60 sec
💡 Usage tips:
1. Always measure baseline SpO2 before procedure
2. Use pulse oximeter with fast response time
3. For patients with low baseline saturation, necessarily use oxygen-enriched mixture
4. Limit breath-hold time to 15-20 seconds
5. Have 100% oxygen mask ready for emergency desaturation
⚠️ Note: Unlike standard MRI where patient breathes air, here they inhale inert gas which physically prevents body from receiving oxygen at that moment. The utility turns this physiological fact into a manageable safety parameter.input.csv
BatchNumber,ProductName,Inspired_O2_Percent,Xe_Conc_Percent,Baseline_SpO2,Hemoglobin,Min_Monitored_SpO2,Avg_Monitored_SpO2,Duration_Sec,Critical_Threshold,Warning_Threshold XE-HYPOXIA-2026-001,HP-Xe-129 Inhalation (21% O2),21.0,79.0,98.0,14.5,92.0,95.0,15,90.0,94.0 XE-HYPOXIA-2026-002,HP-Xe-129 Inhalation (30% O2),30.0,70.0,97.0,14.0,96.0,97.0,15,90.0,94.0 XE-HYPOXIA-2026-003,HP-Xe-129 (High Risk),21.0,79.0,94.0,12.0,88.0,91.0,20,90.0,94.0
URS & FS — user requirements and functional specification
URS & FS — User Requirements and Functional Specification
This document defines the controlled interface and behaviour of PatientHypoxiaRiskDuringXeBreathingChecker for “Patient Hypoxia Risk During Xe Breathing Checker”. Limits from the source description are an initial configuration and shall be reconciled with the approved specification, study protocol, equipment instructions and local SOPs before production use.
Domain constraints and critical parameters
- Min SpO2: ≥90%
- FiO2: ≥21%
- Desaturation Depth: ≤5%
- Recovery Time: <60 sec
URS — User Requirements Specification
| ID | Requirement | Criticality | Acceptance criterion |
|---|---|---|---|
| URS-001 | The utility shall accept input.csv with the exact headers defined by the data contract. | High | The file is processed without manual header renaming. |
| URS-002 | The utility shall perform a deterministic assessment for “Patient Hypoxia Risk During Xe Breathing Checker”. | High | PASS / WARNING / FAIL is produced for each row. |
| URS-003 | Required fields, types, ranges, units and data consistency shall be validated before domain rules. | High | Schema errors are separated from nonconformities. |
| URS-004 | Critical limits from the description and approved local configuration shall create a critical finding. | High | A critical rule violation results in FAIL. |
| URS-005 | The result shall be written to machine-readable output.json. | High | JSON contains source values, checks, warnings and failures. |
| URS-006 | The conformity decision shall not use machine learning. | Medium | The result is reproducible from explicit rules and inputs. |
| URS-007 | Traceability of batch, source file, rule version and final status shall be retained. | High | QA/QC can reproduce the decision. |
| URS-008 | The utility shall have exactly one primary portal tag: medical_devices. | Medium | The other api / instrumental / medical_devices tags are absent. |
| URS-009 | Documentation shall support IQ/OQ/PQ or equivalent CSA/CSV verification. | Medium | The contract, test scenarios and change-control rules are supplied with the utility. |
input.csv data contract
| # | Field | Type | Unit | Sample | Purpose |
|---|---|---|---|---|---|
| 1 | BatchNumber | string | as specified | XE-HYPOXIA-2026-001 | Batch/lot identifier for traceability. |
| 2 | ProductName | string | as specified | HP-Xe-129 Inhalation (21% O2) | Name of the controlled product, gas, procedure or equipment. |
| 3 | Inspired_O2_Percent | decimal | % | 21.0 | Oxygen concentration or flow; a breathing-mixture safety and/or polarization-retention parameter. |
| 4 | Xe_Conc_Percent | decimal | % | 79.0 | Xenon parameter: concentration, isotope fraction, activity, volume or purity depending on the field. |
| 5 | Baseline_SpO2 | decimal | as specified | 98.0 | Oxygen concentration or flow; a breathing-mixture safety and/or polarization-retention parameter. |
| 6 | Hemoglobin | decimal | as specified | 14.5 | Controlled input.csv field: Hemoglobin. |
| 7 | Min_Monitored_SpO2 | decimal | as specified | 92.0 | Oxygen concentration or flow; a breathing-mixture safety and/or polarization-retention parameter. |
| 8 | Avg_Monitored_SpO2 | decimal | as specified | 95.0 | Oxygen concentration or flow; a breathing-mixture safety and/or polarization-retention parameter. |
| 9 | Duration_Sec | decimal | s | 15 | Controlled input.csv field: Duration Sec. |
| 10 | Critical_Threshold | decimal | as specified | 90.0 | Controlled input.csv field: Critical Threshold. |
| 11 | Warning_Threshold | decimal | as specified | 94.0 | Controlled input.csv field: Warning Threshold. |
BatchNumber,ProductName,Inspired_O2_Percent,Xe_Conc_Percent,Baseline_SpO2,Hemoglobin,Min_Monitored_SpO2,Avg_Monitored_SpO2,Duration_Sec,Critical_Threshold,Warning_Threshold XE-HYPOXIA-2026-001,HP-Xe-129 Inhalation (21% O2),21.0,79.0,98.0,14.5,92.0,95.0,15,90.0,94.0 XE-HYPOXIA-2026-002,HP-Xe-129 Inhalation (30% O2),30.0,70.0,97.0,14.0,96.0,97.0,15,90.0,94.0 XE-HYPOXIA-2026-003,HP-Xe-129 (High Risk),21.0,79.0,94.0,12.0,88.0,91.0,20,90.0,94.0
FS — Functional Specification
| ID | Function | Implementation |
|---|---|---|
| FS-001 | CLI execution | PatientHypoxiaRiskDuringXeBreathingChecker.exe supports demo mode and input.csv output.json mode. |
| FS-002 | CSV import | Read UTF-8 CSV and validate header, column count and order. |
| FS-003 | Schema validation | Validate required values, empties, types and basic plausibility. |
| FS-004 | Domain rule engine | Apply explicit rules for “Patient Hypoxia Risk During Xe Breathing Checker” and locally approved limits. |
| FS-005 | Status aggregation | FAIL for a critical finding; WARNING for a non-critical deviation; PASS for conformity. |
| FS-006 | JSON export | Write source values, applied rules, statuses, warnings, failures and configuration version. |
| FS-007 | Audit support | Retain a result structure suitable for review, investigation, IQ/OQ and change control. |
| FS-008 | Integration contract | LIMS/ELN/MES or an instrument wrapper creates CSV; the utility returns JSON. |
output.json example
{
"utilityId": "patient-hypoxia-risk-during-xe-breathing-checker",
"primaryTag": "medical_devices",
"overallStatus": "PASS|WARNING|FAIL",
"sourceFile": "input.csv",
"checks": [
{
"parameter": "BatchNumber",
"value": "XE-HYPOXIA-2026-001",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "ProductName",
"value": "HP-Xe-129 Inhalation (21% O2)",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "Inspired_O2_Percent",
"value": "21.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "Xe_Conc_Percent",
"value": "79.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "Baseline_SpO2",
"value": "98.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "Hemoglobin",
"value": "14.5",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "Min_Monitored_SpO2",
"value": "92.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "Avg_Monitored_SpO2",
"value": "95.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
}
],
"warnings": [],
"criticalFindings": []
}
OQ/PQ test scenarios
| ID | Scenario | Expected result |
|---|---|---|
| OQ-001 | Valid example row | PASS or an allowed WARNING under local rules. |
| OQ-002 | Required column missing | Schema error; domain checks do not mask it. |
| OQ-003 | Non-numeric value in numeric field | Type-conversion error. |
| OQ-004 | Critical parameter outside its limit | FAIL and a critical finding. |
| OQ-005 | Boundary value | The result follows the configured ≤ / ≥ / < / > operator. |
| PQ-001 | Real site data | Agreed QA/QC review retaining CSV, JSON, version and checksum. |
QA/QC and change control
- Do not change column names without updating the validator, documentation and test set.
- Retain input.csv, output.json, executable version, rule version and checksums.
- Before production use, verify local limits and execute IQ/OQ/PQ or equivalent CSA.
- Changes affecting patient safety, dosimetry, gas composition, polarization or equipment require documented impact assessment.
Included in packages
Rph Hyperpolarized Xenon Lifecycle QC Suite
29 utilities for the hyperpolarized xenon lifecycle: isotope composition and gas purity, SEOP and polarization, T1/storage/transport, safe blending and delivery, MRI/SPECT QC, dosimetry, scavenging, recovery and recycling.
OpenRPH isotope family: xenon and gas tracers
Xe-127, Xe-129 and Xe-133 for ventilation, hyperpolarized imaging, gas QC and safety.
OpenRPH organ/system: pulmonary and ventilation
Lung perfusion, MAA, V/Q, aerosol, xenon ventilation, shunt and pulmonary dosimetry.
OpenRPH use case: xenon, ventilation and medical gases
Xe-129, Xe-133, Xe-127, hyperpolarization, SEOP, T1, mixing, scavenging, transport, recovery and ventilation imaging.
Open