All Packages  Class Hierarchy  This Package  Previous  Next  Index

horizontal rule

Class javaman.AcidBaseFunctionBean

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

horizontal rule

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

horizontal rule

Constructor Index

 o AcidBaseFunctionBean()
AcidBaseFunctionBean constructor.

Method Index

 o CO2t_from_pH_BE_Hb_T()
Calculate pCO2 in mmHg from pH, Base Excess mm/litre, Hb g/100ml & temperature degC.
 o CO2t_from_pH_HCO3_T()
Calculate pCO2 in mmHg from pH & [HCO3] in mmol/litre & Temperature degC.
 o HCO3_BE_from_pH_CO2t_Hb_T()
Calculate Base Excess (in vitro, whole blood) in mmol/l.
 o HCO3_from_pH_CO2t_T()
Calculate [HCO3] in mm/l from pH and pCO2 in mmHg & Temperature.
 o 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
 o 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.

Constructors

 o AcidBaseFunctionBean
 public AcidBaseFunctionBean()
AcidBaseFunctionBean constructor.

Methods

 o 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();

 o 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());

 o 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);

 o 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());

 o 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

 o 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.

horizontal rule

All Packages  Class Hierarchy  This Package  Previous  Next  Index
EMAIL: david.sainsbury"AT"adelaide.edu.au  Last Update:02/05/2005