MedicalGasPurityISO6145Checker
Medical Gas Purity ISO 6145 Checker
Utility description: Medical Gas Purity ISO 6145 Checker
Medical Gas Purity ISO 6145 Checker — Medical Xenon Purity Analyzer
ℹ️ Utility controls gas quality per ISO/USP standards:
• Oxygen (critical for hyperpolarization)
• Moisture (critical for equipment)
• CO2 and hydrocarbons (patient safety)
⚠️ CRITICAL: Oxygen kills Xe-129 polarization!
Moisture disables cryogenic recovery systems.
Usage:
MedicalGasPurityISO6145Checker.exe → demo mode (console output)
MedicalGasPurityISO6145Checker.exe input.csv output.json → evaluate your data
Input format:
BatchNumber,ProductName,O2_ppm,N2_ppm,H2O_ppm,CO2_ppm,HC_ppm,Max_O2,Max_H2O,Max_CO2,Max_HC
Example:
GAS-ISO-2026-001,Xe-129,2.0,50.0,1.0,10.0,0.1,5.0,3.0,500.0,1.0
— WHY IS THIS NEEDED?
Gas purity control is critical for HP-MRI and patient safety:
• Xenon is inhaled by patient, so strict medical standards must be met (ISO 6145, USP <1>)
• For hyperpolarization, absence of paramagnetic impurities (oxygen) is critically important as they destroy spin state
• Water freezes in cryogenic traps of recovery system, leading to equipment failure
• Hydrocarbons and CO2 can be toxic at high concentrations or prolonged exposure
⚠️ CRITICAL:
• Oxygen ≤5 ppm (for maintaining long T1)
• Moisture ≤3 ppm (for cryogenic equipment protection)
• CO2 ≤500 ppm (medical safety standard)
• Hydrocarbons ≤1 ppm (toxicological limit)
Key features:
• Medical gas quality standards compliance check
• Specific control of impurities dangerous for SEOP process
• Total contamination level calculation
• Support for various purity specifications (Medical vs Ultra-High Purity)
Critical parameters:
• Oxygen: ≤5 ppm
• Water: ≤3 ppm
• CO2: ≤500 ppm
• Hydrocarbons: ≤1 ppm
💡 Usage tips:
1. Use gas chromatography with TCD and FID detectors for precise analysis
2. Analyze each new gas batch before loading into polarizer
3. Monitor gas dew point in real-time during system supply
4. Store xenon cylinders vertically to prevent oil impurity ingestion
5. Maintain certificate of analysis log for each gas batch
⚠️ Note: Unlike standard medical oxygen therapy where only main components matter, for hyperpolarized xenon even trace amounts of oxygen (ppm) are decisive for research success. The utility ensures this ultra-precise control.input.csv
BatchNumber,ProductName,O2_ppm,N2_ppm,H2O_ppm,CO2_ppm,HC_ppm,Max_O2,Max_H2O,Max_CO2,Max_HC GAS-ISO-2026-001,Xe-129 (Enriched 90%),2.0,50.0,1.0,10.0,0.1,5.0,3.0,500.0,1.0 GAS-ISO-2026-002,Xe-129 (Industrial Grade),100.0,500.0,20.0,50.0,5.0,5.0,3.0,500.0,1.0 GAS-ISO-2026-003,Xe-129 (Ultra High Purity),0.5,10.0,0.1,1.0,0.01,5.0,3.0,500.0,1.0
URS & FS — user requirements and functional specification
URS & FS — User Requirements and Functional Specification
This document defines the controlled interface and behaviour of MedicalGasPurityISO6145Checker for “Medical Gas Purity ISO 6145 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
- Oxygen: ≤5 ppm
- Water: ≤3 ppm
- CO2: ≤500 ppm
- Hydrocarbons: ≤1 ppm
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 “Medical Gas Purity ISO 6145 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: api. | 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 | GAS-ISO-2026-001 | Batch/lot identifier for traceability. |
| 2 | ProductName | string | as specified | Xe-129 (Enriched 90%) | Name of the controlled product, gas, procedure or equipment. |
| 3 | O2_ppm | decimal | ppm | 2.0 | Oxygen concentration or flow; a breathing-mixture safety and/or polarization-retention parameter. |
| 4 | N2_ppm | decimal | ppm | 50.0 | Controlled input.csv field: N2 ppm. |
| 5 | H2O_ppm | decimal | ppm | 1.0 | Moisture content affecting gas purity, T1 and equipment condition. |
| 6 | CO2_ppm | decimal | ppm | 10.0 | Oxygen concentration or flow; a breathing-mixture safety and/or polarization-retention parameter. |
| 7 | HC_ppm | decimal | ppm | 0.1 | Controlled input.csv field: HC ppm. |
| 8 | Max_O2 | decimal | as specified | 5.0 | Oxygen concentration or flow; a breathing-mixture safety and/or polarization-retention parameter. |
| 9 | Max_H2O | decimal | h | 3.0 | Moisture content affecting gas purity, T1 and equipment condition. |
| 10 | Max_CO2 | decimal | °C | 500.0 | Oxygen concentration or flow; a breathing-mixture safety and/or polarization-retention parameter. |
| 11 | Max_HC | decimal | h | 1.0 | Controlled input.csv field: Max HC. |
BatchNumber,ProductName,O2_ppm,N2_ppm,H2O_ppm,CO2_ppm,HC_ppm,Max_O2,Max_H2O,Max_CO2,Max_HC GAS-ISO-2026-001,Xe-129 (Enriched 90%),2.0,50.0,1.0,10.0,0.1,5.0,3.0,500.0,1.0 GAS-ISO-2026-002,Xe-129 (Industrial Grade),100.0,500.0,20.0,50.0,5.0,5.0,3.0,500.0,1.0 GAS-ISO-2026-003,Xe-129 (Ultra High Purity),0.5,10.0,0.1,1.0,0.01,5.0,3.0,500.0,1.0
FS — Functional Specification
| ID | Function | Implementation |
|---|---|---|
| FS-001 | CLI execution | MedicalGasPurityISO6145Checker.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 “Medical Gas Purity ISO 6145 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": "medical-gas-purity-iso6145-checker",
"primaryTag": "api",
"overallStatus": "PASS|WARNING|FAIL",
"sourceFile": "input.csv",
"checks": [
{
"parameter": "BatchNumber",
"value": "GAS-ISO-2026-001",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "ProductName",
"value": "Xe-129 (Enriched 90%)",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "O2_ppm",
"value": "2.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "N2_ppm",
"value": "50.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "H2O_ppm",
"value": "1.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "CO2_ppm",
"value": "10.0",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "HC_ppm",
"value": "0.1",
"status": "PASS|WARNING|FAIL",
"message": "Rule-based check result"
},
{
"parameter": "Max_O2",
"value": "5.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.
OpenRPH workflow: instruments, devices and radiation safety
PET/gamma-camera state, calibration, detector QC, energy window, TOF, shielding and radiation safety.
OpenRPH workflow: product release QC
Assay, purity, sterility, endotoxins, pH, impurities, appearance and batch-release checks.
Open