Hemoglobin-Oxygen dissociation relation based on OSA (Oxygen Status Algorithm) by Siggaard Andersen.
Hydrogen Ion, Carbon Dioxide, and Oxygen in the Blood (siggaard-andersen.dk)
function hemoglobinDissociationCurve_der input Real pH "acidity"; input Real pO2 "oxygen partial pressure"; input Real pCO2 "carbon dioxide partial pressure"; input Real pCO "carbon monoxide partial pressure"; input Real T "temperature"; input Real tHb "total hemoglobin"; input Real cDPG "diphosphoglicerate"; input Real FMetHb "methemoglobin fraction"; input Real FHbF "foethel hemoglobin fraction"; input Real der_pH "derivative of acidity"; input Real der_pO2 "derivative of oxygen partial pressure"; input Real der_pCO2 "derivative of carbon dioxide partial pressure"; input Real der_pCO "derivative of carbon monoxide partial pressure"; input Real der_T "derivative of temperature"; input Real der_tHb "derivative of total hemoglobin"; input Real der_cDPG "derivative of diphosphoglicerate"; input Real der_FMetHb "derivative of methemoglobin fraction"; input Real der_FHbF "derivative of foethel hemoglobin fraction"; output Real der_sO2CO "derivative of oxygen and carbon monoxide saturation"; end hemoglobinDissociationCurve_der;