home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Intensive_2121177202008.psc / Form / Apache.frm < prev   
Text File  |  2008-07-03  |  35KB  |  1,014 lines

  1. VERSION 5.00
  2. Begin VB.Form Apachefrm 
  3.    BackColor       =   &H00FF0000&
  4.    BorderStyle     =   0  'None
  5.    Caption         =   "Form1"
  6.    ClientHeight    =   5085
  7.    ClientLeft      =   0
  8.    ClientTop       =   0
  9.    ClientWidth     =   6465
  10.    LinkTopic       =   "Form1"
  11.    LockControls    =   -1  'True
  12.    ScaleHeight     =   5085
  13.    ScaleWidth      =   6465
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.CommandButton Command1 
  17.       Caption         =   "Calculate"
  18.       BeginProperty Font 
  19.          Name            =   "MS Sans Serif"
  20.          Size            =   12
  21.          Charset         =   0
  22.          Weight          =   700
  23.          Underline       =   0   'False
  24.          Italic          =   0   'False
  25.          Strikethrough   =   0   'False
  26.       EndProperty
  27.       Height          =   300
  28.       Left            =   3015
  29.       TabIndex        =   26
  30.       Top             =   4650
  31.       Width           =   1575
  32.    End
  33.    Begin VB.TextBox ApacheMortalitytxt 
  34.       Alignment       =   2  'Center
  35.       BeginProperty Font 
  36.          Name            =   "MS Sans Serif"
  37.          Size            =   9.75
  38.          Charset         =   0
  39.          Weight          =   700
  40.          Underline       =   0   'False
  41.          Italic          =   0   'False
  42.          Strikethrough   =   0   'False
  43.       EndProperty
  44.       ForeColor       =   &H00FF0000&
  45.       Height          =   285
  46.       Left            =   4080
  47.       TabIndex        =   24
  48.       Top             =   4200
  49.       Width           =   975
  50.    End
  51.    Begin VB.TextBox Apachetxt 
  52.       Alignment       =   2  'Center
  53.       BeginProperty Font 
  54.          Name            =   "MS Sans Serif"
  55.          Size            =   9.75
  56.          Charset         =   0
  57.          Weight          =   700
  58.          Underline       =   0   'False
  59.          Italic          =   0   'False
  60.          Strikethrough   =   0   'False
  61.       EndProperty
  62.       ForeColor       =   &H00FF0000&
  63.       Height          =   285
  64.       Left            =   4080
  65.       TabIndex        =   22
  66.       Top             =   3840
  67.       Width           =   975
  68.    End
  69.    Begin VB.Frame Frame2 
  70.       BackColor       =   &H00FF0000&
  71.       BeginProperty Font 
  72.          Name            =   "MS Sans Serif"
  73.          Size            =   9.75
  74.          Charset         =   0
  75.          Weight          =   700
  76.          Underline       =   0   'False
  77.          Italic          =   0   'False
  78.          Strikethrough   =   0   'False
  79.       EndProperty
  80.       ForeColor       =   &H0000FFFF&
  81.       Height          =   495
  82.       Left            =   3840
  83.       TabIndex        =   18
  84.       Top             =   480
  85.       Width           =   1455
  86.       Begin VB.OptionButton Option8 
  87.          BackColor       =   &H00FF0000&
  88.          Caption         =   "NO"
  89.          BeginProperty Font 
  90.             Name            =   "MS Sans Serif"
  91.             Size            =   9.75
  92.             Charset         =   0
  93.             Weight          =   700
  94.             Underline       =   0   'False
  95.             Italic          =   0   'False
  96.             Strikethrough   =   0   'False
  97.          EndProperty
  98.          ForeColor       =   &H0000FFFF&
  99.          Height          =   375
  100.          Index           =   1
  101.          Left            =   720
  102.          Style           =   1  'Graphical
  103.          TabIndex        =   20
  104.          Top             =   120
  105.          Width           =   735
  106.       End
  107.       Begin VB.OptionButton Option8 
  108.          BackColor       =   &H00FF0000&
  109.          Caption         =   "YES"
  110.          BeginProperty Font 
  111.             Name            =   "MS Sans Serif"
  112.             Size            =   9.75
  113.             Charset         =   0
  114.             Weight          =   700
  115.             Underline       =   0   'False
  116.             Italic          =   0   'False
  117.             Strikethrough   =   0   'False
  118.          EndProperty
  119.          ForeColor       =   &H0000FFFF&
  120.          Height          =   375
  121.          Index           =   0
  122.          Left            =   0
  123.          Style           =   1  'Graphical
  124.          TabIndex        =   19
  125.          Top             =   120
  126.          Width           =   735
  127.       End
  128.    End
  129.    Begin VB.Frame Frame5 
  130.       BackColor       =   &H00FF0000&
  131.       BeginProperty Font 
  132.          Name            =   "MS Sans Serif"
  133.          Size            =   9.75
  134.          Charset         =   0
  135.          Weight          =   700
  136.          Underline       =   0   'False
  137.          Italic          =   0   'False
  138.          Strikethrough   =   0   'False
  139.       EndProperty
  140.       ForeColor       =   &H0000FFFF&
  141.       Height          =   495
  142.       Left            =   3840
  143.       TabIndex        =   14
  144.       Top             =   840
  145.       Width           =   1455
  146.       Begin VB.OptionButton Option7 
  147.          BackColor       =   &H00FF0000&
  148.          Caption         =   "YES"
  149.          BeginProperty Font 
  150.             Name            =   "MS Sans Serif"
  151.             Size            =   9.75
  152.             Charset         =   0
  153.             Weight          =   700
  154.             Underline       =   0   'False
  155.             Italic          =   0   'False
  156.             Strikethrough   =   0   'False
  157.          EndProperty
  158.          ForeColor       =   &H0000FFFF&
  159.          Height          =   375
  160.          Index           =   0
  161.          Left            =   0
  162.          Style           =   1  'Graphical
  163.          TabIndex        =   16
  164.          Top             =   120
  165.          Width           =   735
  166.       End
  167.       Begin VB.OptionButton Option7 
  168.          BackColor       =   &H00FF0000&
  169.          Caption         =   "NO"
  170.          BeginProperty Font 
  171.             Name            =   "MS Sans Serif"
  172.             Size            =   9.75
  173.             Charset         =   0
  174.             Weight          =   700
  175.             Underline       =   0   'False
  176.             Italic          =   0   'False
  177.             Strikethrough   =   0   'False
  178.          EndProperty
  179.          ForeColor       =   &H0000FFFF&
  180.          Height          =   375
  181.          Index           =   1
  182.          Left            =   720
  183.          Style           =   1  'Graphical
  184.          TabIndex        =   15
  185.          Top             =   120
  186.          Width           =   735
  187.       End
  188.    End
  189.    Begin VB.ComboBox PDCpop 
  190.       BackColor       =   &H00FF0000&
  191.       BeginProperty Font 
  192.          Name            =   "MS Sans Serif"
  193.          Size            =   8.25
  194.          Charset         =   0
  195.          Weight          =   700
  196.          Underline       =   0   'False
  197.          Italic          =   0   'False
  198.          Strikethrough   =   0   'False
  199.       EndProperty
  200.       ForeColor       =   &H80000009&
  201.       Height          =   315
  202.       Left            =   480
  203.       TabIndex        =   13
  204.       Text            =   "Select PDC"
  205.       Top             =   3360
  206.       Width           =   3615
  207.    End
  208.    Begin VB.CommandButton FlatButton5 
  209.       Caption         =   "Back"
  210.       Height          =   300
  211.       Left            =   1695
  212.       TabIndex        =   11
  213.       Top             =   4650
  214.       Width           =   1095
  215.    End
  216.    Begin VB.TextBox PDCtxt 
  217.       Alignment       =   2  'Center
  218.       BeginProperty Font 
  219.          Name            =   "MS Sans Serif"
  220.          Size            =   9.75
  221.          Charset         =   0
  222.          Weight          =   700
  223.          Underline       =   0   'False
  224.          Italic          =   0   'False
  225.          Strikethrough   =   0   'False
  226.       EndProperty
  227.       ForeColor       =   &H00FF0000&
  228.       Height          =   285
  229.       Left            =   5040
  230.       TabIndex        =   9
  231.       Top             =   3360
  232.       Width           =   975
  233.    End
  234.    Begin VB.Frame Frame1 
  235.       BackColor       =   &H00FF0000&
  236.       Height          =   1575
  237.       Left            =   1200
  238.       TabIndex        =   4
  239.       Top             =   1320
  240.       Width           =   3885
  241.       Begin VB.OptionButton Option1 
  242.          BackColor       =   &H00FF0000&
  243.          Caption         =   "Emergency PostOp Patient"
  244.          BeginProperty Font 
  245.             Name            =   "MS Sans Serif"
  246.             Size            =   9.75
  247.             Charset         =   0
  248.             Weight          =   700
  249.             Underline       =   0   'False
  250.             Italic          =   0   'False
  251.             Strikethrough   =   0   'False
  252.          EndProperty
  253.          ForeColor       =   &H0000FFFF&
  254.          Height          =   435
  255.          Index           =   2
  256.          Left            =   0
  257.          Style           =   1  'Graphical
  258.          TabIndex        =   7
  259.          Top             =   1080
  260.          Width           =   3840
  261.       End
  262.       Begin VB.OptionButton Option1 
  263.          BackColor       =   &H00FF0000&
  264.          Caption         =   "Elective PostOp Patient"
  265.          BeginProperty Font 
  266.             Name            =   "MS Sans Serif"
  267.             Size            =   9.75
  268.             Charset         =   0
  269.             Weight          =   700
  270.             Underline       =   0   'False
  271.             Italic          =   0   'False
  272.             Strikethrough   =   0   'False
  273.          EndProperty
  274.          ForeColor       =   &H0000FFFF&
  275.          Height          =   435
  276.          Index           =   1
  277.          Left            =   0
  278.          Style           =   1  'Graphical
  279.          TabIndex        =   6
  280.          Top             =   600
  281.          Width           =   3840
  282.       End
  283.       Begin VB.OptionButton Option1 
  284.          BackColor       =   &H00FF0000&
  285.          Caption         =   "NonOperative Patient"
  286.          BeginProperty Font 
  287.             Name            =   "MS Sans Serif"
  288.             Size            =   9.75
  289.             Charset         =   0
  290.             Weight          =   700
  291.             Underline       =   0   'False
  292.             Italic          =   0   'False
  293.             Strikethrough   =   0   'False
  294.          EndProperty
  295.          ForeColor       =   &H0000FFFF&
  296.          Height          =   435
  297.          Index           =   0
  298.          Left            =   0
  299.          Style           =   1  'Graphical
  300.          TabIndex        =   5
  301.          Top             =   120
  302.          Width           =   3840
  303.       End
  304.    End
  305.    Begin GoffsICU.ocxFormShape ocxFormShape1 
  306.       Left            =   360
  307.       Top             =   4560
  308.       _ExtentX        =   794
  309.       _ExtentY        =   873
  310.       Shape           =   4
  311.    End
  312.    Begin VB.Shape Shape1 
  313.       BorderColor     =   &H80000000&
  314.       Height          =   15
  315.       Left            =   0
  316.       Top             =   3720
  317.       Width           =   6735
  318.    End
  319.    Begin VB.Label Label1 
  320.       AutoSize        =   -1  'True
  321.       BackColor       =   &H00FF0000&
  322.       Caption         =   "Mortality Estimate ="
  323.       BeginProperty Font 
  324.          Name            =   "MS Sans Serif"
  325.          Size            =   9.75
  326.          Charset         =   0
  327.          Weight          =   700
  328.          Underline       =   0   'False
  329.          Italic          =   0   'False
  330.          Strikethrough   =   0   'False
  331.       EndProperty
  332.       ForeColor       =   &H0000FFFF&
  333.       Height          =   240
  334.       Index           =   6
  335.       Left            =   1920
  336.       TabIndex        =   25
  337.       Top             =   4200
  338.       Width           =   2040
  339.    End
  340.    Begin VB.Label Label1 
  341.       AutoSize        =   -1  'True
  342.       BackColor       =   &H00FF0000&
  343.       Caption         =   "Apache II Score ="
  344.       BeginProperty Font 
  345.          Name            =   "MS Sans Serif"
  346.          Size            =   9.75
  347.          Charset         =   0
  348.          Weight          =   700
  349.          Underline       =   0   'False
  350.          Italic          =   0   'False
  351.          Strikethrough   =   0   'False
  352.       EndProperty
  353.       ForeColor       =   &H0000FFFF&
  354.       Height          =   240
  355.       Index           =   5
  356.       Left            =   1920
  357.       TabIndex        =   23
  358.       Top             =   3840
  359.       Width           =   1845
  360.    End
  361.    Begin VB.Label Label1 
  362.       AutoSize        =   -1  'True
  363.       BackColor       =   &H00FF0000&
  364.       Caption         =   "PDC="
  365.       BeginProperty Font 
  366.          Name            =   "MS Sans Serif"
  367.          Size            =   9.75
  368.          Charset         =   0
  369.          Weight          =   700
  370.          Underline       =   0   'False
  371.          Italic          =   0   'False
  372.          Strikethrough   =   0   'False
  373.       EndProperty
  374.       ForeColor       =   &H0000FFFF&
  375.       Height          =   240
  376.       Index           =   4
  377.       Left            =   4320
  378.       TabIndex        =   21
  379.       Top             =   3360
  380.       Width           =   600
  381.    End
  382.    Begin VB.Label Label1 
  383.       Alignment       =   1  'Right Justify
  384.       AutoSize        =   -1  'True
  385.       BackColor       =   &H00FF0000&
  386.       Caption         =   "Acute Renal Failure ?"
  387.       BeginProperty Font 
  388.          Name            =   "MS Sans Serif"
  389.          Size            =   9.75
  390.          Charset         =   0
  391.          Weight          =   700
  392.          Underline       =   0   'False
  393.          Italic          =   0   'False
  394.          Strikethrough   =   0   'False
  395.       EndProperty
  396.       ForeColor       =   &H0000FFFF&
  397.       Height          =   240
  398.       Index           =   3
  399.       Left            =   1560
  400.       TabIndex        =   17
  401.       Top             =   600
  402.       Width           =   2235
  403.    End
  404.    Begin VB.Label Label1 
  405.       BackStyle       =   0  'Transparent
  406.       Caption         =   "o"
  407.       BeginProperty Font 
  408.          Name            =   "Marlett"
  409.          Size            =   21.75
  410.          Charset         =   2
  411.          Weight          =   700
  412.          Underline       =   0   'False
  413.          Italic          =   0   'False
  414.          Strikethrough   =   0   'False
  415.       EndProperty
  416.       ForeColor       =   &H8000000E&
  417.       Height          =   495
  418.       Index           =   2
  419.       Left            =   5880
  420.       TabIndex        =   12
  421.       Top             =   4440
  422.       Width           =   495
  423.    End
  424.    Begin VB.Label Label1 
  425.       Alignment       =   1  'Right Justify
  426.       AutoSize        =   -1  'True
  427.       BackColor       =   &H00FF0000&
  428.       Caption         =   "Severe Organ System Insuff ?"
  429.       BeginProperty Font 
  430.          Name            =   "MS Sans Serif"
  431.          Size            =   9.75
  432.          Charset         =   0
  433.          Weight          =   700
  434.          Underline       =   0   'False
  435.          Italic          =   0   'False
  436.          Strikethrough   =   0   'False
  437.       EndProperty
  438.       ForeColor       =   &H0000FFFF&
  439.       Height          =   240
  440.       Index           =   1
  441.       Left            =   720
  442.       TabIndex        =   10
  443.       Top             =   960
  444.       Width           =   3060
  445.    End
  446.    Begin VB.Label Label1 
  447.       AutoSize        =   -1  'True
  448.       BackColor       =   &H00FF0000&
  449.       Caption         =   "PDC Leading to ICU Admit:"
  450.       BeginProperty Font 
  451.          Name            =   "MS Sans Serif"
  452.          Size            =   9.75
  453.          Charset         =   0
  454.          Weight          =   700
  455.          Underline       =   0   'False
  456.          Italic          =   0   'False
  457.          Strikethrough   =   0   'False
  458.       EndProperty
  459.       ForeColor       =   &H0000FFFF&
  460.       Height          =   240
  461.       Index           =   0
  462.       Left            =   360
  463.       TabIndex        =   8
  464.       Top             =   3000
  465.       Width           =   2775
  466.    End
  467.    Begin VB.Label Label11 
  468.       Alignment       =   2  'Center
  469.       AutoSize        =   -1  'True
  470.       BackStyle       =   0  'Transparent
  471.       Caption         =   "Apache II Mortality Score"
  472.       BeginProperty Font 
  473.          Name            =   "Verdana"
  474.          Size            =   14.25
  475.          Charset         =   0
  476.          Weight          =   700
  477.          Underline       =   0   'False
  478.          Italic          =   0   'False
  479.          Strikethrough   =   0   'False
  480.       EndProperty
  481.       ForeColor       =   &H000000FF&
  482.       Height          =   345
  483.       Index           =   0
  484.       Left            =   1095
  485.       TabIndex        =   3
  486.       Top             =   120
  487.       Width           =   4185
  488.    End
  489.    Begin VB.Label Label11 
  490.       Alignment       =   2  'Center
  491.       AutoSize        =   -1  'True
  492.       BackStyle       =   0  'Transparent
  493.       Caption         =   "Apache II Mortality Score"
  494.       BeginProperty Font 
  495.          Name            =   "Verdana"
  496.          Size            =   14.25
  497.          Charset         =   0
  498.          Weight          =   700
  499.          Underline       =   0   'False
  500.          Italic          =   0   'False
  501.          Strikethrough   =   0   'False
  502.       EndProperty
  503.       ForeColor       =   &H00000000&
  504.       Height          =   345
  505.       Index           =   1
  506.       Left            =   1065
  507.       TabIndex        =   2
  508.       Top             =   90
  509.       Width           =   4185
  510.    End
  511.    Begin VB.Label Label107 
  512.       BackStyle       =   0  'Transparent
  513.       Caption         =   "Q"
  514.       BeginProperty Font 
  515.          Name            =   "Wingdings 2"
  516.          Size            =   15.75
  517.          Charset         =   2
  518.          Weight          =   700
  519.          Underline       =   0   'False
  520.          Italic          =   0   'False
  521.          Strikethrough   =   0   'False
  522.       EndProperty
  523.       ForeColor       =   &H0000C000&
  524.       Height          =   375
  525.       Index           =   0
  526.       Left            =   6000
  527.       TabIndex        =   0
  528.       Top             =   180
  529.       Width           =   345
  530.    End
  531.    Begin VB.Label Label107 
  532.       BackStyle       =   0  'Transparent
  533.       Caption         =   "Q"
  534.       BeginProperty Font 
  535.          Name            =   "Wingdings 2"
  536.          Size            =   15.75
  537.          Charset         =   2
  538.          Weight          =   700
  539.          Underline       =   0   'False
  540.          Italic          =   0   'False
  541.          Strikethrough   =   0   'False
  542.       EndProperty
  543.       ForeColor       =   &H0000FFFF&
  544.       Height          =   360
  545.       Index           =   1
  546.       Left            =   5970
  547.       TabIndex        =   1
  548.       Top             =   180
  549.       Visible         =   0   'False
  550.       Width           =   345
  551.    End
  552. End
  553. Attribute VB_Name = "Apachefrm"
  554. Attribute VB_GlobalNameSpace = False
  555. Attribute VB_Creatable = False
  556. Attribute VB_PredeclaredId = True
  557. Attribute VB_Exposed = False
  558.  
  559.  
  560. Private Sub CandyButton1_Click()
  561.  
  562. End Sub
  563.  
  564. Private Sub Command1_Click()
  565. Dim T1 As Single
  566. Dim Z7 As Single
  567. Z7 = 0
  568. T1 = 0
  569. If Sex = 0 Or BSA = 0 Or Wtkg = 0 Or ABW = 0 Or Htcm = 0 Or Age = 0 Or Sex = 0 Or MAP = 0 Or AR = 0 Or RR = 0 Or Temp = 0 Then
  570.     SetTopMostWindow Me.hwnd, False
  571.     MsgBox "Please Enter all Demographic Information."
  572.     SetTopMostWindow Me.hwnd, True
  573.     Load DataInput
  574.     DataInput.Show
  575.     Exit Sub
  576. End If
  577. If pH = 0 Or PaCO2 = 0 Or PaO2 = 0 Or Patm = 0 Or SaO2 = 0 Or FiO2 = 0 Then
  578.     SetTopMostWindow Me.hwnd, False
  579.     MsgBox "Input pH, PaCO2, PaO2, Patm, SaO2 and FiO2"
  580.     SetTopMostWindow Me.hwnd, True
  581.     Load DataInput
  582.     DataInput.Show
  583.     Exit Sub
  584. End If
  585. If WBC = 0 Or Hematocrit = 0 Then     'or Hb = 0 or Hct = 0
  586.     SetTopMostWindow Me.hwnd, False
  587.     MsgBox "Input WBC and Hematocrit Please."
  588.     SetTopMostWindow Me.hwnd, True
  589.     Load DataInput
  590.     DataInput.Show
  591.     Exit Sub
  592. End If
  593. If Creatinine = 0 Or Sodium = 0 Or Potassium = 0 Then
  594.     SetTopMostWindow Me.hwnd, False
  595.     MsgBox "Input Serum Creatinine, Sodium and Potassium Please."
  596.     SetTopMostWindow Me.hwnd, True
  597.     Load DataInput
  598.     DataInput.Show
  599.     Exit Sub
  600. End If
  601. If Glasgow = 0 Then
  602.     SetTopMostWindow Me.hwnd, False
  603.     MsgBox "Input all Data for Glasgow Coma Score Please."
  604.     SetTopMostWindow Me.hwnd, True
  605.     Load GlasgowFrm
  606.     GlasgowFrm.Show
  607.     Exit Sub
  608. End If
  609.  
  610. If ARF = 0 Then
  611.     SetTopMostWindow Me.hwnd, False
  612.     MsgBox "Please Select Renal Failure Status."
  613.     SetTopMostWindow Me.hwnd, True
  614.     Exit Sub
  615. End If
  616.  
  617. If Option1(0).Value = False And Option1(1).Value = False And Option1(2).Value = False Then
  618.     SetTopMostWindow Me.hwnd, False
  619.     MsgBox "Please Select Surgical Status."
  620.     SetTopMostWindow Me.hwnd, True
  621.     Exit Sub
  622. End If
  623.  
  624. If PDC = 0 Then
  625.     SetTopMostWindow Me.hwnd, False
  626.     MsgBox "Please Select PDC."
  627.     SetTopMostWindow Me.hwnd, True
  628.     Exit Sub
  629. End If
  630.  
  631. Apache2 = 0
  632.  
  633. T1 = ((Temp - 32) * 5 / 9)
  634.      If T1 >= 41 Or T1 <= 29.9 Then
  635.         Apache2 = Apache2 + 4
  636.         GoTo ONE48
  637.      End If
  638.      If T1 >= 39 Or T1 <= 31.9 Then
  639.        Apache2 = Apache2 + 3
  640.        GoTo ONE48
  641.      End If
  642.      If T1 <= 33.9 Then
  643.         Apache2 = Apache2 + 2
  644.         GoTo ONE48
  645.      End If
  646.      If T1 >= 38.5 Or T1 <= 35.9 Then
  647.         Apache2 = Apache2 + 1
  648.      End If
  649.  
  650. ONE48:
  651.      If MAP f T= = Apache2 + 3
  652.        GoT   &H00FF0000&
  653.          C ostWindo30 PaHpache2 = Apache2 + 1
  654.      En  C oseYh =  f
  655.  
  656. Apache2 = 0
  657.  
  658. T1 = (
  659. Hb
  660. End If
  661.  
  662. If PDC = 0 Then
  663.     SetTopMostWindow Me.hwnd   = 1= 0 Or Wtkg = 0 Or ABW = 0 Or Htcm = 0 Or Age = 0 Or Sex = 0 Or MAP = 0 Or AR = 0 Or RR = 0 Or Temp =3 SetTopMostWMe.hwnd5+      =   180
  664.     B_GlobalNameSpace = False
  665. AW MAP = 0 Or AR = 0 Or RR = 0 Or Temp =3 SetTopMostWMe.hwndvo51= 0   E Or Htc Wtkg = 0 Or ABW = 0 en
  666.         Apache2 = Apache2 + 4
  667.         GoTo ONE48
  668.      End If
  669.      If T1 >= 39 Or T1 <= 31.9 Then
  670.        Apache2 = Apache2 + 3
  671.        GoussOa-n  4320
  672.       =Apache2 + 3
  673.  Apache2 = Apache2 + 1
  674.  mouxrumt = 0 Then         GoussOa-n  4320
  675.      10 1
  676.  mouxrumt = 0 Then         GoussOa-n  4320
  677.      10 1
  678.  moussOa-n  431   Ge2 + 1
  679.  mouxrumt = 0 Then         GoussOa-n  4gOr AR = 0 Or RR = == 31.9 T6ize        dInput0 Then         GoussOa
  680.  mo-n  43tgOr AR = 0      Left 1   indow Me.hwnd, True
  681.    1l= 0      Left 1   indow Me.hwnd, True
  682.  2SO If T1 >= 38.5 Or T1 <= 35.9 Then
  683.         Apache2 = Apand If
  684.  
  685. Apache2 = 0
  686.   '6 L      Apache2 = Apache2 + 4
  687.       ApiForeColor   l= 29.9 Then
  688.   e    GoussOa-n  4 9.9 Then
  689. _ 9 Then
  690.  = Then         GoussOaapache2 + 4
  691. HaVhend0alse Andolor       =   Truf9 Then
  692.         Apache2 = Apand If
  693.  
  694. Apache2 = 0
  695.   '6 L    o-hen
  696.        Apache2 = 0
  697.   '6 L  ne= 0      Left 1   indow Me.hwnd, True
  698.    1l= 0   ec)    t1 che2 = 0
  699.   '6 L  ne= 05 arent
  700.       Caption      88  e    GoussOa-n  4 9.9 Then
  701. _ 9 Then
  702.  = Then         GoussOaapache2 + 4
  703. HaVhend0alsI4ion      88 GoussOa-n  4320
  704.     haVhen4 9.9 Then
  705. _ 9 THf00
  706.     haVhen4 9k13la             =   1
  707.   i1 
  708.       AltyT    AOa-n       =  = I14oO e    Gou SetTopMostWindow Me.hwnd, True
  709.     Load DataInput
  710.     DataInput.Show
  711.     Exit Sub
  712. End If
  713. If Glasg
  714. If Glasg
  715. If Glasg
  716. If GlW= 0 Or Temp =3 SetTopMostWMe.hwnche2 Ca e2 + 4
  717. HaVhendputCd0alsI4ion      88 Gous2aVhendp)2igOr AR = 0 Or RR = == 31.9 V     Apache2 = Apand If
  718.  
  719. Apache2 = 0
  720.   '6 L    o-hen
  721.        Apache2 = 0
  722.   '6 L  ne= 0      Left 1   indow Me.hwnd, True
  723.    1l= 0   ec)    t1 che2 = 0
  724.   '6 L  ne= 05 arent
  725.       Caption      88  e    GoussOa-n  4 9.9 Then
  726. _ 9 Then
  727.  = Then         Goton1_512 1(1 <= 31.9 Then
  728.  e7i5 Caption      88  e    Gousu.  '6 9 Then
  729.  e7i5 Caption      883snt
  730.   '6 9 Then
  731.  xTo ONE48
  732.      End0BPe2 = Apache2 + 3
  733.     .nt
  734.       Caption      88   ne= Npc)    t C ostlro2t_r   G  8uegowFrm
  735. d, False
  736.     MsgBox "Please Select PDC."
  737.     SetTopMostWindow Me.hwnd, True
  738.     Exit Sub
  739. End If
  740.  
  741. Apache2 = 0
  742.  
  743. T1 = ((Temp - 32) * 5 / 9)
  744.      If T1 >= 41 Or T1 <= 29.9 Then
  745.         Apache2 = Apache2 + 4
  746.         GoTo ONE48
  747.      End If
  748.  ro2t_r   28ect PDC."
  749.   etTopMostWindow Me.hwnd, True
  750.     Exit Sub
  751. End If
  752.  
  753. Atption      88   ne= Npnd,FeniP<Wp1 = ((Temp - 32) * 5 /     Strikethrough   =   0   'False
  754.       EndPropert9o Font 
  755.      ne2 +)2W#0aption      883_ 9 Then
  756.  = Then         GoussOaaow Me.hwnd, True
  757.     Exit Sub
  758. End If040Ge"4.ub
  759. End If
  760. nd g30 32) * 5 / 9)
  761. 2 = Apache2 + 4
  762.  
  763.  = Then  ssOaaowC    End I i <= 291As3m6    Charset         =   0"4.ub
  764. End If
  765. nd g30 32) * 5Vhebempne       =   0   'False
  766.          Italic          =   0   'False
  767.          Strikethrough   =   0   'Fal  =   700
  768.         Strikethrough   =   0   'False
  769.       EndPre.hwnd, True ApacaI1 r0
  770.    e2 = 0
  771.   '6 L    o-henPr_hu.  '6ache2 +pne       =   0   'Fa Strir9  'False
  772.       EndPre.hwnd, True ApacaI1 r0
  773.    e2 = 0
  774.  nc        Ae2 +pn Index           rough   =   0   'False
  775. 2P   2ecaI1 r0
  776.    e2 =M40
  777.  nc           GoussOaapache2 + 4
  778. HaVhend0alsI = 0d, T   2ecaI    =   0   'False
  779.         88   nP   2e
  780. W     nP   2e
  781. W     nP   2e
  782. W     nP   2e
  783. W     nP   2e
  784. W     nP   2e
  785. W     nP   2e
  786. W     nP   2e
  787. W     ne
  788. W97c0 3ie
  789.      ol
  790.          Charset"0se 2e
  791. W     nP   2e
  792. W     nP   2e
  793. W     nP   2e
  794. W     nP   2e
  795. W     ne
  796. W97c0 3ie
  797.      ol
  798.          Charset"0se 2e
  799. W     nP   2e
  800. W     nP   2e
  801. W     nP   2e
  802. W     nP   2e
  803. W     ne
  804. W97c0 3ie
  805.      ol
  806.          Charset"0se 2e
  807. W     nP   2e
  808. W     nP   2e
  809. W     he2 =   28ect PDApache2 = Ap = Apacheeight          =   Index        =c0 3ie
  810.       I1
  811. Atption      88   ne= Npnd,FeniP<Wp1 = ((Temp - 32) * 5 /     Strikethrough   =   0   'False
  812.       EndPropert9o Font 
  813.      ne2 +)2W#0aption      883_ 9 Then
  814.  = Then         GoussOaaow Me.hwnd, True
  815.     Exit Sub
  816. End If040Ge"4.ub
  817. End If
  818. nd g30 32) * 2W#0aption      8    Charset"0se 2e
  819. W  ox1
  820.  = Ti     =   15.75
  821.          Charset     IM        Strikethrough   =   ) * 5 /     Stri     Strikethrough   =   ) * 5 /     Stri     Strikethro1       GoTo ONE48
  822.      End Ife
  823.     Exit Sub
  824. E End Ife
  825.     Ed   ) * 5 a Ifb
  826. E EnrHi  nd Ife
  827.     Exit Sudd   ) * 5 a Ifb
  828. E Enrxeof     GoussOaaow    ) * 5 axh    MsgBox "Please Select Renal Failure Status."
  829.   - 1P6     ec)    t1 che2 = 0
  830.   '6 L  nD         GoussOaaow Me.hwl     nePropert9o Font 
  831.      ne2 +)2W#0aption      883_ 9 Then
  832.  = Then         GoussOaaow Me.hwnd, True
  833.     Exit Sub
  834. End If040Ge"4.ub
  835. End If
  836. nd g30 32) * 2W#0aption      8    Charset"0se 2e
  837. W  ox1
  838.  = Ti     =   15.75
  839.          Charset     IM        StrikethS.75
  840.          Charset   c)2W#0aption      gh   =   0  )despicD15.75
  841.    F ough   = 1  0   e= Npc)    t C ostlro2t_r   G et_r  nd, Tr3.75
  842.    F oupti ) * 5 /     
  843. End Sub
  844.  
  845. Privat
  846.     Exit s GoussOd, Tr
  847.       olor  1etf"
  848.        
  849.          "Ihhche2 = 0
  850.   '6 L  nD         GoussOaaow Me.hwl     nePropert9o Font 
  851.      ne2 +)2W#0aption      883_ 9 Then
  852.  = Then         GoussOaaow Me.hwnd, True
  853.     Exit Sub
  854. End If040Ge"4.ub
  855. End If
  856. nd g30 32) * 2W#0aption      8    Charset"0se 2e
  857. W  ox1
  858.  = Ti  tPlease SI, True
  859.     Exit Sub
  860. End If040GesOaaow Me.hwnd, True
  861.     Exit S+nd If040Ge" w MA "am   nP   2eub
  862. End If040Ge"4.ub
  863. End sCnion      8 Fx2.hwnd, True
  864.     E     8 Fx2.hwnd, Truuealse
  865.     MsgBox "Please Selec
  866. End sCnion      8   0   'False4 9.9 Then
  867. _ 9 Then
  868.  = Then         GoussOaapache2 + 2sCnion    883_ 9 Then
  869.  = Then         GoussOaaow Me.hwnd, True
  870.     Exit Sub
  871. End If040Ge"4.ub
  872. End If
  873. nd g30 32) * 2W#0aption      8    Charset"0se 2e
  874. W  ox1
  875.  = Ti     =   15.75
  876.          Charset     IM        Striu05 arent
  877.       Caption     i  tPlease Salse
  878.     Msghen
  879. _ 9 Then
  880.  =9 Tue A 8    Charset"0se 2e
  881. W nd, True
  882.     Exit S+nd If040Ge" w MA "am 4xeof     GoussOaaow    ) *      IM        Striu03"e eEnd If040Ge0
  883. .hwnd, True
  884.     r040Ge"4     Oaaeof   eEnd If0nI  nP   2eub
  885. End If040Ge"4.ub
  886. End sCnion      8 F    sM  'dIf040TnfcAs   r040Gese
  887.     Msghen
  888. _ 9 Then
  889.  =else
  890.     Msghen ne040TnfcAs611ndex  hCd If04013Cibf       Striu03"e eEnd If040Ge0
  891. .hwnd, True
  892.     r040Ge"4     Oaaeof   eEnd If0nI  nP   2eub
  893. End If040Ge"4.ub
  894. End sCnion      8 F    sM  'dIf040TnfcAs  rent
  895.       Caption     i  tD15.4apt9 Then 3 True
  896.     r03i set"0se 2e
  897. W  ox1 e
  898. WI
  899. End If040Ge"4.ub
  900. End If0nI  nP   2eubr C Exit S+nd If040Ge" w MA "am 4xeof     GoussOaaow    ) *      IM        Striu03"e eEnd If040Ge0
  901. .hwnd, True
  902.     r040Ge"4     Oaaeof   eEnd If0nI  nP   2eub
  903. End If040Ge"4.ub
  904. End sCnion      8 F    sM  'dIf040TnfcAs   r040Gese
  905.     Msghen
  906. _ 9 Then
  907.  =   GoussOaaow    ) *  rxit <pdsghen ne040TnfcAs6el"n =   0   'False
  908. 2P   2ecaI1 r0
  909.    e2 =M40
  910.  nc           GoussOatache2 = 0
  911.   '6 L  nea
  912. EnecATopMost3LA7M40kethry S+nd If040Ge" w MA "am 46kethow 2
  913.  .2P   2eubr C Exit S+nd Ifn  Golr040Ge"4 n11111111111111n8 MA "am 46kethow 2h9Ese
  914.     MsgBox "Please Select Surgical Status."
  915.     SetTopMostWindow Me.hwnd, True
  916.     Exit Sub
  917. End If
  918.  
  919. If PDC = 0 Then
  920.     SetTopMostWindow Me.hwnd, False
  921.     MsgBox "Please Select PDC."
  922.     SetTopMostWindow Me.hwnd, True
  923.     Exit Sub
  924. End If
  925.  
  926. Apt Striu03"e eEnd If0440Tnf Or Sodium = 0 Or Potassi Me.hwnd, False
  927.     Msit Sub
  928. End If
  929.  
  930. Apt Striu03"e eEnd IflpPropert9o Font 
  931.      ne2 +)2W#0aption      883_ 9 Then    Nrue
  932.     EMe.en040Ge"4.ub Me.tkethow 2
  933.  .2P   2eubr C Exit S+nd Ifn 0_ 9'+)2W#0aption      883_n   E1
  934.      ne2 +)2W#0aption    iu03"e eEnd Iflp    8  ow 2lelect S5e
  935. W  ox16 r Sodium = 0a1tWindow MsP1"sa EMe.en040Ge"4.ub Me.tkethow 2
  936.  .2P   2eubr C Exit S+nd Ifn 0_ 9'+)2W#0aptionr6 L  ne= 0      040r #0ap40r #83_n   E1
  937.      ne2 +)2W#0aption    iu03"e eEnd Ifl   040rB14 9.9 ThenypnfcAs  rent
  938.       Caption     i  tD15.4apt9 Thenosotion     i  lelect S5e
  939. W  ox16 r Sodium = 0a1tWindow MsP1"sa EMe.en040Ge"4.ub Me.tkethow 2
  940.  .2P   2eubr C Exit S+nd Ifn 0_ 9'+)2W#0aptionr6 L  ne= 0      040r #0ap40r #83_n   E1
  941.      ne2 +)2W#0aption    iu03"e eEnd Ifl   040rB14 9.1+n<ey7   w 283_n   E1
  942.      ne16 r883DC 5 Ait S+nd Ifn 0_ 9'+)2W#0a6uod 9'+)2W#0aptionr6 L  ne= 0 9.9eF40r #83_n   E1
  943.      n8 Status."
  944.     SetTopMostWi7g8  ow 2lelect S5e
  945. W  ox16 CeM   Oosotion     i  lelect S5e
  946. W  ox1+ndei#0aptxfub Me.tkethow 1ssOaapache2 03ssOaap1
  947.      EMe.en040Ge"4.ub 2e  Fo7sOaap1
  948.      EMe._n   E1
  949.      ne2 +)2W#0aptio0ap40r #83_n   E1
  950.  mouxrumt = r Sodium = 0a1tWindow MsP1"sa EMe.en040Ge"4.ub Me.tkethow 2
  951.  .2P   2eubr C Exit S+nd Ifn 0_ 9'+)2W#0aptionr6 L  ne= 0      040r #0ap40r #83_n   E1
  952.      ne2 +)2W#0aption    iu03"e eEnd Ifl   040rB14 9.9 ThenypnfcAs  rent
  953.       Caption     i  tD15. 283_n   Ef (DC 5 Ait S+nd ppti0eubrt8   
  954.       Caption     i  tD15. 283_1= 0
  955.   '6 L  ne= 05 arent
  956.       Caption      88  e    GoussOa-n  4 9.9 Then
  957. _ 9 Then
  958.  = Then         Goton1_512 1(1 <= 31.9 Then
  959.  e7i5 Caption      88  e    Gousu.  '6 9 Then
  960.  e7i5 Caption      883snt
  961.   '6 9 Then
  962.  xTo ONE48
  963.      End0BPe2 = Apache2 + .  ne2 +gh
  964. _ 9 Then
  965.  = Then         Goton1_512 1(1 <= 31.9 Then
  966.  e7i5 Caption      88  e    Ef (DC E3)Then
  967.  e7T) l    883snt
  968.   '6 9 Then
  969.  MnEMe.en040Ge"2dt SMe=  e 1   88  e  '+)2W#0aptionr6 L  ne= 0      0m040Ge"2dt SMe=  e 1   88  e  '+)2W#0aptionr6 L  ne= 0      0m040Ge"2dt SMe=  e 1   88  e  '+)2W#0aptionr6 L  ne= 0      0m040Ge"2dt SMe=  e 1   88  e  '+)2W#0aptionr6 L  ne= 0      0m040Ge"2dt SMe=  e 1   88  e  '+)2W#0aptionr6 L  ne= 0      0m040Ge"2dt)onr6 Lr6 .cl 0 Lr6 . 0m040Ge"2dt SMe=  e 1   88  e  'End0BPe2 = '+)2W#0aptionMri)11N7e 1   88  e  'End0BPe2 = '+)2W#0aptionMri)11N7e 1   88  e  'End0BPe2 = '+)2W#0aptionMri)11N7e 1   88  e  'End0BPe2 = '+)2W#0aptionMri)11N7e 1   88  e  'End0BPe2 = '+)2W#0aptionMri)11N7e 1   88  e  'End0BPe2 = '+)2W#0aptionMri)11N7e 1   88  e  'End0BPe2 = '+)1tWni)11N7e e 0  e e e S5e
  970. W  ox16 CeM   OosEnd0BPe2SeF40r #83_n   E1
  971.      n8 Status."
  972.     SetTopMostWi7g8  ow 2lelect S5e
  973. W  ox16 CeM   Oosotion     i  lelect S5e
  974. W  ox1+ndei#0aptxfub Me.tkethow 1ssOaapache2 03ssOaap1
  975.      EMe.en040Ge"4.ub 2e  Fo7sOaap1
  976.      EMe._n   E1
  977.      ne2 +)2W#0aptio0ap40rptionr6 L  ne= 0 9.9eF40r #83_n   E1
  978.      n8 Status."
  979.     SetTopMostWi7g8  ow 2lelect S5e
  980. W  ox16 CeM   Oie=  e 1   88  e  'End0BPe2 = '+)2W#0aptionMri)11NIf040Ge0
  981. .hwndv a4.ub 2e  Fo7sOaap1
  982.    s3tionr6 L  ne= 0      d  inR   88  e  'End0BPe2 = '+) e  '5   88  .ubHne=
  983.       BackColor       =atus."
  984.     SetTopMostWi7g8  ow 2lO e 0  n13Ir_ 9 Th 1i'End0BPe2 = '+)2W#0aptionMri)11N7e 1   88  e  'End0BPe2 = '+)1tWni)11N7e e 0  e e e S5e
  985. W  ox16 CeM   OosEnd0BPe2SeF40r #83_n   E1
  986.      n8 Status."
  987.     SetTopMostWi7g8  ow 2lelect S5e
  988. W  ox16 CeM   Oosotion     i  lelect S5e
  989. W  ox1+ndei#0aptxfub Me.tkeO0m61+nd Ifn  Golr040Ge"4 n11111111111111n8 MA "am 46ket  'dIf040TnfcAs  rstsfcAs SdA1ubSptionMri)11N7e 1   88  e A3tdOosotlect S5e
  990. W  ox16 CeM   Oie= &lon        e  'Pe
  991. W e2 = '+)2W#0aptionMri)1ire2 =lr0Tt512 
  992.      EMe.,n ) *  rxit <pdsghr_ 9 Th 1i'End0BPe2 = '+)2W#0apos7If040Ge0
  993. .hwndv a50   P_ug rxitI* 5Vhe9x #83_n   E1
  994.      n8 Status."
  995.     SetTopMostWi7g8  ow 2lelect S5e
  996. W  ox16 CeM   Oosotion     i  lelect xitI* 5Vhe9M3  Si)11N7e 1   88pMostWi7g8  ow 2lelect S5e
  997. W  ox16 CeM   Oosotion     i  lelect S5e
  998. W  ox1+ndei#0aptxfub Me.tkeO0m61+nd Ifn  Golr040Ge"4 n11111111111111n8 MA "am 46kelect xitI* 5Vhe9M3  Si)11N7e 1   88pMostWi7g8  ow 2lelect S5e
  999. W  ox16 C)u11tWni)11N7e e  204  1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F1fect S5e
  1000. W  ox16 Z0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1 = '+0GeAZ7x16 CeM   Oosotion     i  lM S5e
  1001. W    i  lo8  e A3tdOosotlect S5e
  1002. W  ox16 CeM."
  1003.     SetTopMostWi7g8  o SetTone"4 ro2t_r   28ect PDC 1F11tWni)1Tttion I0BPeetTopMostWi7g8  o1F11ol  0lr040Ge"4 n11111111111111n8 MA "alr040Ge"4 n111111111111111111111n8 MA "alr040Ge"4 n1111111)11N7e 14erache2 03ssOaap1
  1004.    1dhlelect Si)111perty FogstWi7i11tt S5e
  1005. W  ox16 Z0 1F11tWni)1L_0 o SetTone"4 ro2t_r   28ect PDC 1F11tWni) 03ssOaap1
  1006. 5u7nl0lr040GBi04 ro2t_r   28ect PDC 1F11tWni)1Tttion I0mrS5e
  1007. W rt0 1F11t6 C)u11tWni)11Nn I0BPeetTopMostWi7g8  o1F11ol  0lr040Ge"4 n11111111111111n8 MA "alr040Ge"4 n111111111111111111111n8 MA "alr040Ge"4 n1111111)11N7e 14erache2 03ssOaap1
  1008.    1dhlelect Si)111perty FogstWi7i11tt S5e
  1009. W  ox16 Z0 1F11tWni)1L_0 o SetTone"4 ro2t_r   28ect PDC 1F11tW.(f3f<ect S5e1ASaap1
  1010.    1dhlelect Si)1118 Sta0aptxfub Me.tkeO0m61+nd Ifnr8ect PDlor  1etf"
  1011.         dhlelect Si)111perty Fogs4ect Si)1118 2e  Fo7sOaap1
  1012.   IFogs4ect Si)1118 2e8 Sta0aptxfub Me.tkeO0m61+nd Ifnr8ect PDlPDC 1fnrl7g8  ow 2lelect S5e
  1013. W  ox16 C)u11tWni)11N7e e  204  1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F1fect S5e
  1014. W  ox16 Z0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F11tWni)1L_0 1F1oV s11fe