Archive

Posts Tagged ‘psi’

Java Equations For Website.

May 13th, 2011 Comments off

6 Medical Equations Needed for medfixation.com

http://medfixation.com/alveolar-gas-equation has an example up.

I need the equations to blend into current theme better.

Equation 1:
Arterial oxygen content:
CaO2 = (Hgb x 1.36 x SaO2) + (0.0031 x PaO2)

PaO2: Partial Pressure of Oxygen in Arterial Blood.
SaO2: Arterial Oxygen Saturation (hemoglobin).
Hgb: Hemoglobin.
CaO2:Arterial oxygen content

PaO2, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to PaO2 before final calculation is made. Conversion factors for PaO2 are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

SaO2 = SaO2 / 100; SaO2 is to be converted from % to decimal.

Hgb, User is able to enter a value and select type of unit. unit values are g/dL, mmol/L, and g/L . All values will need to be converted to g/dL before final calculation is made. Conversion factors for Hgb are :
If g/dL no change.
If g/L * 0.1
if mmol/L * 0.6206

final answer is in “Vol%”

Equation 2
Venous oxygen content:
CvO2 = (Hgb x 1.36 x SvO2) + (0.0031 x PvO2)

PvO2: Partial Pressure of Oxygen in Venous Blood.
SvO2: Venous Oxygen Saturation (hemoglobin).
Hgb: Hemoglobin.
CVO2:Venous oxygen content

PvO2, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to PvO2 before final calculation is made. Conversion factors for PvO2 are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

SvO2 = SvO2 / 100; SvO2 is to be converted from % to decimal.

Hgb, User is able to enter a value and select type of unit. unit values are g/dL, mmol/L, and g/L . All values will need to be converted to g/dL before final calculation is made. Conversion factors for Hgb are :
If g/dL no change.
If g/L * 0.1
if mmol/L * 0.6206

final answer is in “Vol%”

Equation 3
Capillary oxygen content:
CcO2 = (Hgb x 1.36) + (0.0031 x PAO2)

PAO2: Partial Pressure of Alveolar Oxygen
Hgb: Hemoglobin.
CcO2:Capillary oxygen content

PAO2, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to PAO2 before final calculation is made. Conversion factors for PAO2 are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

Hgb, User is able to enter a value and select type of unit. unit values are g/dL, mmol/L, and g/L . All values will need to be converted to g/dL before final calculation is made. Conversion factors for Hgb are :
If g/dL no change.
If g/L * 0.1
if mmol/L * 0.6206

final answer is in “Vol%”

Equation 4
Classic Shunt Equation
Qs/Qt = (CcO2 – CaO2)/(CcO2 -CvO2)

CcO2: Oxygen Content of end pulmonary capillary blood
CaO2: Oxygen Content of arterial blood
CvO2: Mixed venous Oxygen Content

CcO2, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to CcO2 before final calculation is made. Conversion factors for CcO2 are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

CaO2, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to CaO2 before final calculation is made. Conversion factors for CaO2 are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

CvO2, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to CvO2 before final calculation is made. Conversion factors for CvO2 are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

Final Answer unit is in “%”

Equation 5
Systemic Vascular Resistance
SVR = ((MPAP -CVP )/CO) *80

SVR: Systemic Vascular Resistance
MPAP: Mean Pulmonary Artery Pressure
CVP: Central venous pressure
CO: Cardiac Output

MPAP, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to MPAP before final calculation is made. Conversion factors for MPAP are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

CVP, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to CVP before final calculation is made. Conversion factors for MPAP are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

CO is in L/Min

Final unit answer is in: (dyne*sec)/cm^-5

Equation 6
Pulmonary Vascular Resistance
PVR = ((MPAP -PCWP )/CO) *80

PVR: Pulmonary Vascular Resistance
MPAP: Mean Pulmonary Artery Pressure
PCWP: pulmonary capillary wedge pressure
CO: Cardiac Output

MPAP, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to MPAP before final calculation is made. Conversion factors for MPAP are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

PCWP, User is able to enter a value and select type of unit. unit values are mmHg, cmH2O, kap, bar, atm, psi. All values will need to be converted to PCWP before final calculation is made. Conversion factors for MPAP are :
If cmH2O * 0.73553 for mmhg
If kpa * 7.50061 for mmhg
If bar * 750.06168 for mmhg
If atm * 760.0 for mmhg
If psi * 51.71493 for mmhg
If mmHg no change.

CO is in L/Min

Final unit answer is in: (dyne*sec)/cm^-5

Categories: Conversion, Java, Wordpress Tags: , , , , , ,

Psi Modification

August 19th, 2009 Comments off

Requirements specification

I) Initial sources:
1. Source codes http://downloads.sourceforge.net/psi/psi-0.12.1.tar.bz2 / http://psi-im.org/development/

II) Results:
1. EXE-file of PSI distributive. It should instal PSI version that satisfies all the items of the requirements specification.
2. Sources codes that can be built easily to get: a) New Psi; b) Distributive exe for new Psi.
3. Patch for http://downloads.sourceforge.net/psi/psi-0.12.1.tar.bz2 that makes version from subparagraph II.1.
4. Source codes must also compile and work under Linux, so the distributive does.

III) Changes that must be done to the standard version of PSI:
1. In CHAT mode:
1.1 If the own messages OR/AND the messages of interlocutor AREN’T beeing crypted, the list of messages must be shown with RED frame.
1.2 If the own messages AND the messages of interlocutor ARE beeing crypted, the list of messages must be shown with GREEN frame.
1.3 If an interlocutor doesn’t have a PGP-key, its tab must be shown with red background.
1.4 Functionality of subparagraphes III.1.1-3 must turn on/off in “Settings” dialog of PSI.
1.5 The state of “Lock” button (pressed/released) must be stored forever, i.e. if it’s pressed, it should stay pressed and the crypting must work next time PSI is run whatever happens: PSI is closed, system reboots, system halts unexpectedly etc.
1.6 Crypting can be turned off only by pressing out (releasing) “Lock” button by user. Just so and by no other means.
1.7 The mode of message delivery confirmation must be realized. The messages which are sent and for which the confirmation hanen’t gotten must be shown in gray color. When the confirmation is gotten the color must be changed to standard one (look at the settings of color scheme of PSI).
1.8 If the password for PGP-keys has been inputed incorrectly two more attempts should be allowed (now a single attempt is allowed, then user must press “ok” -> go to offline mode -> go to online mode -> retype password).

2. General:
2.1 PSI must reread key list each time the menu “Choose PGP-key” is opened so that reloading of PSI won’t be required in order to refresh PGP-key list.

IV) Acceptance of work and testing:
1. Testing of work when different sides of PSI messaging doesn’t have PGP-keys.
2. After process of jabber on one side has been killed, the other one jabber sends messages.
3. Testing of 4096bit PGP-keys support.
4. Incorrect password is typed N times.
5. After new key has been added to keyring, it should be shown in the key list of PSI without restarting of it.

Psi Patch

August 15th, 2009 Comments off

Requirements specification

I) Initial sources:
1. Source codes http://downloads.sourceforge.net/psi/psi-0.12.1.tar.bz2 / http://psi-im.org/development/

II) Results:
1. EXE-file of PSI distributive. It should instal PSI version that satisfies all the items of the requirements specification.
2. Sources codes that can be built easily to get: a) New Psi; b) Distributive exe for new Psi.
3. Patch for http://downloads.sourceforge.net/psi/psi-0.12.1.tar.bz2 that makes version from subparagraph II.1.
4. Source codes must also compile and work under Linux, so the distributive does.

III) Changes that must be done to the standard version of PSI:
1. In CHAT mode:
1.1 If the own messages OR/AND the messages of interlocutor AREN’T beeing crypted, the list of messages must be shown with RED frame.
1.2 If the own messages AND the messages of interlocutor ARE beeing crypted, the list of messages must be shown with GREEN frame.
1.3 If an interlocutor doesn’t have a PGP-key, its tab must be shown with red background.
1.4 Functionality of subparagraphes III.1.1-3 must turn on/off in “Settings” dialog of PSI.
1.5 The state of “Lock” button (pressed/released) must be stored forever, i.e. if it’s pressed, it should stay pressed and the crypting must work next time PSI is run whatever happens: PSI is closed, system reboots, system halts unexpectedly etc.
1.6 Crypting can be turned off only by pressing out (releasing) “Lock” button by user. Just so and by no other means.
1.7 The mode of message delivery confirmation must be realized. The messages which are sent and for which the confirmation hanen’t gotten must be shown in gray color. When the confirmation is gotten the color must be changed to standard one (look at the settings of color scheme of PSI).
1.8 If the password for PGP-keys has been inputed incorrectly two more attempts should be allowed (now a single attempt is allowed, then user must press “ok” -> go to offline mode -> go to online mode -> retype password).

2. General:
2.1 PSI must reread key list each time the menu “Choose PGP-key” is opened so that reloading of PSI won’t be required in order to refresh PGP-key list.

IV) Acceptance of work and testing:
1. Testing of work when different sides of PSI messaging doesn’t have PGP-keys.
2. After process of jabber on one side has been killed, the other one jabber sends messages.
3. Testing of 4096bit PGP-keys support.
4. Incorrect password is typed N times.
5. After new key has been added to keyring, it should be shown in the key list of PSI without restarting of it.

Bear