If PaO2 is not found in the database, the script will attempt to estimate it from SpO2 using a simplified oxyhemoglobin dissociation curve Patient age is queried from patient_information first, then ...