All Packages Class Hierarchy This Package Previous Next Index

Class javaman.AcidBaseFunctionBean
java.lang.Object
|
+----calcs.FunctionBean
|
+----javaman.GasFunctionBean
|
+----javaman.AcidBaseFunctionBean

- public abstract class AcidBaseFunctionBean
- extends GasFunctionBean
Bean for calculating various acid/base values.
Reference for Henderson-Hasselbalch equation:
Douglas, A.R., N.L.Jones, et al.(1988) "Calculation of whole blood CO2 content"
J Appl Physiol 65(1): 473-7.
Reference for Base Excess:
Siggaard-Andersen, O.(1966) "Titratable acid or base of body fluids"
Ann N Y Acad Sci 133(1): 41-58.
Note 1:
None of these equations deal with contents of carbon dioxide
or oxygen (saturation of haemoglobin).
Haemoglobin concentration is only used in base excess calculations.
The Base Excess equation is not inverted. An iterative process is used
when the reverse Base Excess calculations are required.
Creation date: (24/12/1999 3:46:11)
- Author:
- : Dave Sainsbury

-
AcidBaseFunctionBean()
- AcidBaseFunctionBean constructor.
-
CO2t_from_pH_BE_Hb_T()
- Calculate pCO2 in mmHg from pH, Base Excess mm/litre, Hb g/100ml & temperature degC.
-
CO2t_from_pH_HCO3_T()
- Calculate pCO2 in mmHg from pH & [HCO3] in mmol/litre & Temperature degC.
-
HCO3_BE_from_pH_CO2t_Hb_T()
- Calculate Base Excess (in vitro, whole blood) in mmol/l.
-
HCO3_from_pH_CO2t_T()
- Calculate [HCO3] in mm/l from pH and pCO2 in mmHg & Temperature.
-
pH_from_CO2t_HCO3_T()
- Calculate pH from pCO2 in mmHg & HCO3 in mmol/l & Temperature
Equation:
pH = Math.log(HCO3 / CO2Solubility_from_T / CO2Tension) / Math.log(10) + PK_from_pH_T();
Note 1:
Since pH is used to correct pK this equation iterates until pH is stable
-
pH_HCO3_from_CO2t_BE_Hb_T()
- Calculate pH and HCO3 from pCO2 in mmHg & Base excess in mmol/l, Haemoglobin in mg/100ml & Temperature
Equation:
HCO3_BE_from_pH_CO2t_Hb_T();
Note 1:
The above equation is used by successively altering pH until starting values for BE and CO2 tension are achieved
As a part of this process a value for HCO3 is also determined.
AcidBaseFunctionBean
public AcidBaseFunctionBean()
- AcidBaseFunctionBean constructor.
CO2t_from_pH_BE_Hb_T
protected void CO2t_from_pH_BE_Hb_T()
- Calculate pCO2 in mmHg from pH, Base Excess mm/litre, Hb g/100ml & temperature degC.
Equation:
CO2Tension = (BaseExcess / (1.0 - 0.0143 * Hb) + (9.5 + 1.63 * Hb) * (7.4 - pH) + 24.0) / Math.pow(10, pH - PK_from_pH_T()) / CO2Solubility_from_T();
CO2t_from_pH_HCO3_T
protected void CO2t_from_pH_HCO3_T()
- Calculate pCO2 in mmHg from pH & [HCO3] in mmol/litre & Temperature degC.
Equation:
fieldCO2Tension = fieldHCO3 / 0.0307 / Math.pow(10, fieldPH - PK_from_pH_T());
HCO3_BE_from_pH_CO2t_Hb_T
protected void HCO3_BE_from_pH_CO2t_Hb_T()
- Calculate Base Excess (in vitro, whole blood) in mmol/l. & [HCO3] mm/litre
from pH, CO2 tension in mmHg & Haemoglobin in grams/100ml
Equation:
HCO3_from_pH_CO2t(); //calculate bicarb
BaseExcess = (1.0 - 0.0143 * Haemoglobin) * (HCO3 - (9.5 + 1.63 * Haemoglobin) * (7.4-pH) - 24.0);
HCO3_from_pH_CO2t_T
protected void HCO3_from_pH_CO2t_T()
- Calculate [HCO3] in mm/l from pH and pCO2 in mmHg & Temperature.
Equation:
HCO3 = CO2Solubility_from_T() * CO2Tension * Math.pow(10, pH - PK_from_pH_T());
pH_from_CO2t_HCO3_T
protected void pH_from_CO2t_HCO3_T()
- Calculate pH from pCO2 in mmHg & HCO3 in mmol/l & Temperature
Equation:
pH = Math.log(HCO3 / CO2Solubility_from_T / CO2Tension) / Math.log(10) + PK_from_pH_T();
Note 1:
Since pH is used to correct pK this equation iterates until pH is stable
pH_HCO3_from_CO2t_BE_Hb_T
protected void pH_HCO3_from_CO2t_BE_Hb_T()
- Calculate pH and HCO3 from pCO2 in mmHg & Base excess in mmol/l, Haemoglobin in mg/100ml & Temperature
Equation:
HCO3_BE_from_pH_CO2t_Hb_T();
Note 1:
The above equation is used by successively altering pH until starting values for BE and CO2 tension are achieved
As a part of this process a value for HCO3 is also determined.

All Packages Class Hierarchy This Package Previous Next Index