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 / AminoGlyc.frm < prev    next >
Text File  |  2008-07-01  |  30KB  |  936 lines

  1. VERSION 5.00
  2. Begin VB.Form AminoGlyc 
  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.    ScaleHeight     =   5085
  12.    ScaleWidth      =   6465
  13.    ShowInTaskbar   =   0   'False
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin VB.CommandButton Command1 
  16.       Caption         =   "Caveats"
  17.       Height          =   375
  18.       Left            =   4200
  19.       TabIndex        =   30
  20.       Top             =   4440
  21.       Width           =   1575
  22.    End
  23.    Begin VB.CommandButton CandyButton1 
  24.       Caption         =   "Calculate"
  25.       Height          =   375
  26.       Left            =   2400
  27.       TabIndex        =   28
  28.       Top             =   4440
  29.       Width           =   1575
  30.    End
  31.    Begin VB.CommandButton FlatButton5 
  32.       Caption         =   "Back"
  33.       Height          =   375
  34.       Left            =   600
  35.       TabIndex        =   29
  36.       Top             =   4440
  37.       Width           =   1575
  38.    End
  39.    Begin VB.TextBox Text1 
  40.       Alignment       =   2  'Center
  41.       BeginProperty Font 
  42.          Name            =   "MS Sans Serif"
  43.          Size            =   9.75
  44.          Charset         =   0
  45.          Weight          =   700
  46.          Underline       =   0   'False
  47.          Italic          =   0   'False
  48.          Strikethrough   =   0   'False
  49.       EndProperty
  50.       ForeColor       =   &H00FF0000&
  51.       Height          =   285
  52.       Left            =   3960
  53.       TabIndex        =   26
  54.       Top             =   3240
  55.       Width           =   495
  56.    End
  57.    Begin VB.Frame Frame5 
  58.       BackColor       =   &H00FF0000&
  59.       Caption         =   "Neutropenia"
  60.       BeginProperty Font 
  61.          Name            =   "MS Sans Serif"
  62.          Size            =   9.75
  63.          Charset         =   0
  64.          Weight          =   700
  65.          Underline       =   0   'False
  66.          Italic          =   0   'False
  67.          Strikethrough   =   0   'False
  68.       EndProperty
  69.       ForeColor       =   &H0000FFFF&
  70.       Height          =   855
  71.       Left            =   4560
  72.       TabIndex        =   22
  73.       Top             =   2880
  74.       Width           =   1695
  75.       Begin VB.OptionButton Option7 
  76.          BackColor       =   &H00FF0000&
  77.          Caption         =   "NO"
  78.          BeginProperty Font 
  79.             Name            =   "MS Sans Serif"
  80.             Size            =   9.75
  81.             Charset         =   0
  82.             Weight          =   700
  83.             Underline       =   0   'False
  84.             Italic          =   0   'False
  85.             Strikethrough   =   0   'False
  86.          EndProperty
  87.          ForeColor       =   &H0000FFFF&
  88.          Height          =   375
  89.          Index           =   1
  90.          Left            =   840
  91.          Style           =   1  'Graphical
  92.          TabIndex        =   24
  93.          Top             =   360
  94.          Width           =   735
  95.       End
  96.       Begin VB.OptionButton Option7 
  97.          BackColor       =   &H00FF0000&
  98.          Caption         =   "YES"
  99.          BeginProperty Font 
  100.             Name            =   "MS Sans Serif"
  101.             Size            =   9.75
  102.             Charset         =   0
  103.             Weight          =   700
  104.             Underline       =   0   'False
  105.             Italic          =   0   'False
  106.             Strikethrough   =   0   'False
  107.          EndProperty
  108.          ForeColor       =   &H0000FFFF&
  109.          Height          =   375
  110.          Index           =   0
  111.          Left            =   120
  112.          Style           =   1  'Graphical
  113.          TabIndex        =   23
  114.          Top             =   360
  115.          Width           =   735
  116.       End
  117.    End
  118.    Begin VB.Frame Frame4 
  119.       BackColor       =   &H00FF0000&
  120.       Caption         =   "Severity"
  121.       BeginProperty Font 
  122.          Name            =   "MS Sans Serif"
  123.          Size            =   9.75
  124.          Charset         =   0
  125.          Weight          =   700
  126.          Underline       =   0   'False
  127.          Italic          =   0   'False
  128.          Strikethrough   =   0   'False
  129.       EndProperty
  130.       ForeColor       =   &H0000FFFF&
  131.       Height          =   855
  132.       Left            =   4560
  133.       TabIndex        =   18
  134.       Top             =   1920
  135.       Width           =   1695
  136.       Begin VB.OptionButton Option4 
  137.          BackColor       =   &H00FF0000&
  138.          Caption         =   "SE"
  139.          BeginProperty Font 
  140.             Name            =   "MS Sans Serif"
  141.             Size            =   9.75
  142.             Charset         =   0
  143.             Weight          =   700
  144.             Underline       =   0   'False
  145.             Italic          =   0   'False
  146.             Strikethrough   =   0   'False
  147.          EndProperty
  148.          ForeColor       =   &H0000FFFF&
  149.          Height          =   375
  150.          Index           =   2
  151.          Left            =   1080
  152.          Style           =   1  'Graphical
  153.          TabIndex        =   21
  154.          Top             =   360
  155.          Width           =   495
  156.       End
  157.       Begin VB.OptionButton Option4 
  158.          BackColor       =   &H00FF0000&
  159.          Caption         =   "MO"
  160.          BeginProperty Font 
  161.             Name            =   "MS Sans Serif"
  162.             Size            =   9.75
  163.             Charset         =   0
  164.             Weight          =   700
  165.             Underline       =   0   'False
  166.             Italic          =   0   'False
  167.             Strikethrough   =   0   'False
  168.          EndProperty
  169.          ForeColor       =   &H0000FFFF&
  170.          Height          =   375
  171.          Index           =   1
  172.          Left            =   600
  173.          Style           =   1  'Graphical
  174.          TabIndex        =   20
  175.          Top             =   360
  176.          Width           =   495
  177.       End
  178.       Begin VB.OptionButton Option4 
  179.          BackColor       =   &H00FF0000&
  180.          Caption         =   "MI"
  181.          BeginProperty Font 
  182.             Name            =   "MS Sans Serif"
  183.             Size            =   9.75
  184.             Charset         =   0
  185.             Weight          =   700
  186.             Underline       =   0   'False
  187.             Italic          =   0   'False
  188.             Strikethrough   =   0   'False
  189.          EndProperty
  190.          ForeColor       =   &H0000FFFF&
  191.          Height          =   375
  192.          Index           =   0
  193.          Left            =   120
  194.          Style           =   1  'Graphical
  195.          TabIndex        =   19
  196.          Top             =   360
  197.          Width           =   495
  198.       End
  199.    End
  200.    Begin VB.Frame Frame3 
  201.       BackColor       =   &H00FF0000&
  202.       Caption         =   "Hydration"
  203.       BeginProperty Font 
  204.          Name            =   "MS Sans Serif"
  205.          Size            =   9.75
  206.          Charset         =   0
  207.          Weight          =   700
  208.          Underline       =   0   'False
  209.          Italic          =   0   'False
  210.          Strikethrough   =   0   'False
  211.       EndProperty
  212.       ForeColor       =   &H0000FFFF&
  213.       Height          =   855
  214.       Left            =   4560
  215.       TabIndex        =   14
  216.       Top             =   960
  217.       Width           =   1695
  218.       Begin VB.OptionButton Option3 
  219.          BackColor       =   &H00FF0000&
  220.          Caption         =   "I"
  221.          BeginProperty Font 
  222.             Name            =   "MS Sans Serif"
  223.             Size            =   9.75
  224.             Charset         =   0
  225.             Weight          =   700
  226.             Underline       =   0   'False
  227.             Italic          =   0   'False
  228.             Strikethrough   =   0   'False
  229.          EndProperty
  230.          ForeColor       =   &H0000FFFF&
  231.          Height          =   375
  232.          Index           =   2
  233.          Left            =   1080
  234.          Style           =   1  'Graphical
  235.          TabIndex        =   17
  236.          Top             =   360
  237.          Width           =   375
  238.       End
  239.       Begin VB.OptionButton Option3 
  240.          BackColor       =   &H00FF0000&
  241.          Caption         =   "N"
  242.          BeginProperty Font 
  243.             Name            =   "MS Sans Serif"
  244.             Size            =   9.75
  245.             Charset         =   0
  246.             Weight          =   700
  247.             Underline       =   0   'False
  248.             Italic          =   0   'False
  249.             Strikethrough   =   0   'False
  250.          EndProperty
  251.          ForeColor       =   &H0000FFFF&
  252.          Height          =   375
  253.          Index           =   1
  254.          Left            =   720
  255.          Style           =   1  'Graphical
  256.          TabIndex        =   16
  257.          Top             =   360
  258.          Width           =   375
  259.       End
  260.       Begin VB.OptionButton Option3 
  261.          BackColor       =   &H00FF0000&
  262.          Caption         =   "D"
  263.          BeginProperty Font 
  264.             Name            =   "MS Sans Serif"
  265.             Size            =   9.75
  266.             Charset         =   0
  267.             Weight          =   700
  268.             Underline       =   0   'False
  269.             Italic          =   0   'False
  270.             Strikethrough   =   0   'False
  271.          EndProperty
  272.          ForeColor       =   &H0000FFFF&
  273.          Height          =   375
  274.          Index           =   0
  275.          Left            =   360
  276.          Style           =   1  'Graphical
  277.          TabIndex        =   15
  278.          Top             =   360
  279.          Width           =   375
  280.       End
  281.    End
  282.    Begin VB.Frame Frame2 
  283.       BackColor       =   &H00FF0000&
  284.       Height          =   1815
  285.       Left            =   2280
  286.       TabIndex        =   10
  287.       Top             =   960
  288.       Width           =   2175
  289.       Begin VB.OptionButton Option2 
  290.          BackColor       =   &H00FF0000&
  291.          Caption         =   "Adjust Dosage"
  292.          BeginProperty Font 
  293.             Name            =   "MS Sans Serif"
  294.             Size            =   9.75
  295.             Charset         =   0
  296.             Weight          =   700
  297.             Underline       =   0   'False
  298.             Italic          =   0   'False
  299.             Strikethrough   =   0   'False
  300.          EndProperty
  301.          ForeColor       =   &H0000FFFF&
  302.          Height          =   435
  303.          Index           =   2
  304.          Left            =   120
  305.          Style           =   1  'Graphical
  306.          TabIndex        =   13
  307.          Top             =   1200
  308.          Width           =   1920
  309.       End
  310.       Begin VB.OptionButton Option2 
  311.          BackColor       =   &H00FF0000&
  312.          Caption         =   "Estimate Dosage"
  313.          BeginProperty Font 
  314.             Name            =   "MS Sans Serif"
  315.             Size            =   9.75
  316.             Charset         =   0
  317.             Weight          =   700
  318.             Underline       =   0   'False
  319.             Italic          =   0   'False
  320.             Strikethrough   =   0   'False
  321.          EndProperty
  322.          ForeColor       =   &H0000FFFF&
  323.          Height          =   435
  324.          Index           =   1
  325.          Left            =   120
  326.          Style           =   1  'Graphical
  327.          TabIndex        =   12
  328.          Top             =   720
  329.          Width           =   1920
  330.       End
  331.       Begin VB.OptionButton Option2 
  332.          BackColor       =   &H00FF0000&
  333.          Caption         =   "Initial Dosage"
  334.          BeginProperty Font 
  335.             Name            =   "MS Sans Serif"
  336.             Size            =   9.75
  337.             Charset         =   0
  338.             Weight          =   700
  339.             Underline       =   0   'False
  340.             Italic          =   0   'False
  341.             Strikethrough   =   0   'False
  342.          EndProperty
  343.          ForeColor       =   &H0000FFFF&
  344.          Height          =   435
  345.          Index           =   0
  346.          Left            =   120
  347.          Style           =   1  'Graphical
  348.          TabIndex        =   11
  349.          Top             =   240
  350.          Width           =   1920
  351.       End
  352.    End
  353.    Begin VB.Frame Frame1 
  354.       BackColor       =   &H00FF0000&
  355.       Height          =   2775
  356.       Left            =   120
  357.       TabIndex        =   4
  358.       Top             =   960
  359.       Width           =   2130
  360.       Begin VB.OptionButton Option1 
  361.          BackColor       =   &H00FF0000&
  362.          Caption         =   "Kanamycin"
  363.          BeginProperty Font 
  364.             Name            =   "MS Sans Serif"
  365.             Size            =   9.75
  366.             Charset         =   0
  367.             Weight          =   700
  368.             Underline       =   0   'False
  369.             Italic          =   0   'False
  370.             Strikethrough   =   0   'False
  371.          EndProperty
  372.          ForeColor       =   &H0000FFFF&
  373.          Height          =   435
  374.          Index           =   4
  375.          Left            =   120
  376.          Style           =   1  'Graphical
  377.          TabIndex        =   9
  378.          Top             =   2160
  379.          Width           =   1920
  380.       End
  381.       Begin VB.OptionButton Option1 
  382.          BackColor       =   &H00FF0000&
  383.          Caption         =   "Amikacin"
  384.          BeginProperty Font 
  385.             Name            =   "MS Sans Serif"
  386.             Size            =   9.75
  387.             Charset         =   0
  388.             Weight          =   700
  389.             Underline       =   0   'False
  390.             Italic          =   0   'False
  391.             Strikethrough   =   0   'False
  392.          EndProperty
  393.          ForeColor       =   &H0000FFFF&
  394.          Height          =   435
  395.          Index           =   3
  396.          Left            =   120
  397.          Style           =   1  'Graphical
  398.          TabIndex        =   8
  399.          Top             =   1680
  400.          Width           =   1920
  401.       End
  402.       Begin VB.OptionButton Option1 
  403.          BackColor       =   &H00FF0000&
  404.          Caption         =   "Netilimicin"
  405.          BeginProperty Font 
  406.             Name            =   "MS Sans Serif"
  407.             Size            =   9.75
  408.             Charset         =   0
  409.             Weight          =   700
  410.             Underline       =   0   'False
  411.             Italic          =   0   'False
  412.             Strikethrough   =   0   'False
  413.          EndProperty
  414.          ForeColor       =   &H0000FFFF&
  415.          Height          =   435
  416.          Index           =   2
  417.          Left            =   120
  418.          Style           =   1  'Graphical
  419.          TabIndex        =   7
  420.          Top             =   1200
  421.          Width           =   1920
  422.       End
  423.       Begin VB.OptionButton Option1 
  424.          BackColor       =   &H00FF0000&
  425.          Caption         =   "Tobramycin"
  426.          BeginProperty Font 
  427.             Name            =   "MS Sans Serif"
  428.             Size            =   9.75
  429.             Charset         =   0
  430.             Weight          =   700
  431.             Underline       =   0   'False
  432.             Italic          =   0   'False
  433.             Strikethrough   =   0   'False
  434.          EndProperty
  435.          ForeColor       =   &H0000FFFF&
  436.          Height          =   435
  437.          Index           =   1
  438.          Left            =   120
  439.          Style           =   1  'Graphical
  440.          TabIndex        =   6
  441.          Top             =   720
  442.          Width           =   1920
  443.       End
  444.       Begin VB.OptionButton Option1 
  445.          BackColor       =   &H00FF0000&
  446.          Caption         =   "Gentamycin"
  447.          BeginProperty Font 
  448.             Name            =   "MS Sans Serif"
  449.             Size            =   9.75
  450.             Charset         =   0
  451.             Weight          =   700
  452.             Underline       =   0   'False
  453.             Italic          =   0   'False
  454.             Strikethrough   =   0   'False
  455.          EndProperty
  456.          ForeColor       =   &H0000FFFF&
  457.          Height          =   435
  458.          Index           =   0
  459.          Left            =   120
  460.          Style           =   1  'Graphical
  461.          TabIndex        =   5
  462.          Top             =   240
  463.          Width           =   1920
  464.       End
  465.    End
  466.    Begin GoffsICU.ocxFormShape ocxFormShape1 
  467.       Left            =   360
  468.       Top             =   4560
  469.       _ExtentX        =   794
  470.       _ExtentY        =   873
  471.       Shape           =   4
  472.    End
  473.    Begin VB.Label Label1 
  474.       BackStyle       =   0  'Transparent
  475.       Caption         =   "o"
  476.       BeginProperty Font 
  477.          Name            =   "Marlett"
  478.          Size            =   21.75
  479.          Charset         =   2
  480.          Weight          =   700
  481.          Underline       =   0   'False
  482.          Italic          =   0   'False
  483.          Strikethrough   =   0   'False
  484.       EndProperty
  485.       ForeColor       =   &H8000000E&
  486.       Height          =   495
  487.       Index           =   2
  488.       Left            =   5880
  489.       TabIndex        =   31
  490.       Top             =   4440
  491.       Width           =   495
  492.    End
  493.    Begin VB.Label Label1 
  494.       BackColor       =   &H00FF0000&
  495.       Caption         =   "(.5 - 1hr):"
  496.       BeginProperty Font 
  497.          Name            =   "MS Sans Serif"
  498.          Size            =   9.75
  499.          Charset         =   0
  500.          Weight          =   700
  501.          Underline       =   0   'False
  502.          Italic          =   0   'False
  503.          Strikethrough   =   0   'False
  504.       EndProperty
  505.       ForeColor       =   &H0000FFFF&
  506.       Height          =   255
  507.       Index           =   1
  508.       Left            =   2640
  509.       TabIndex        =   27
  510.       Top             =   3360
  511.       Width           =   975
  512.    End
  513.    Begin VB.Label Label1 
  514.       BackColor       =   &H00FF0000&
  515.       Caption         =   "Infusion Time:"
  516.       BeginProperty Font 
  517.          Name            =   "MS Sans Serif"
  518.          Size            =   9.75
  519.          Charset         =   0
  520.          Weight          =   700
  521.          Underline       =   0   'False
  522.          Italic          =   0   'False
  523.          Strikethrough   =   0   'False
  524.       EndProperty
  525.       ForeColor       =   &H0000FFFF&
  526.       Height          =   255
  527.       Index           =   0
  528.       Left            =   2400
  529.       TabIndex        =   25
  530.       Top             =   3120
  531.       Width           =   1455
  532.    End
  533.    Begin VB.Label Label11 
  534.       Alignment       =   2  'Center
  535.       BackStyle       =   0  'Transparent
  536.       Caption         =   "Aminoglycosides Dosing"
  537.       BeginProperty Font 
  538.          Name            =   "Verdana"
  539.          Size            =   14.25
  540.          Charset         =   0
  541.          Weight          =   700
  542.          Underline       =   0   'False
  543.          Italic          =   0   'False
  544.          Strikethrough   =   0   'False
  545.       EndProperty
  546.       ForeColor       =   &H000000FF&
  547.       Height          =   375
  548.       Index           =   0
  549.       Left            =   840
  550.       TabIndex        =   3
  551.       Top             =   360
  552.       Width           =   4455
  553.    End
  554.    Begin VB.Label Label11 
  555.       Alignment       =   2  'Center
  556.       BackStyle       =   0  'Transparent
  557.       Caption         =   "Aminoglycosides Dosing"
  558.       BeginProperty Font 
  559.          Name            =   "Verdana"
  560.          Size            =   14.25
  561.          Charset         =   0
  562.          Weight          =   700
  563.          Underline       =   0   'False
  564.          Italic          =   0   'False
  565.          Strikethrough   =   0   'False
  566.       EndProperty
  567.       ForeColor       =   &H00000000&
  568.       Height          =   375
  569.       Index           =   1
  570.       Left            =   810
  571.       TabIndex        =   2
  572.       Top             =   330
  573.       Width           =   4455
  574.    End
  575.    Begin VB.Label Label107 
  576.       BackStyle       =   0  'Transparent
  577.       Caption         =   "Q"
  578.       BeginProperty Font 
  579.          Name            =   "Wingdings 2"
  580.          Size            =   15.75
  581.          Charset         =   2
  582.          Weight          =   700
  583.          Underline       =   0   'False
  584.          Italic          =   0   'False
  585.          Strikethrough   =   0   'False
  586.       EndProperty
  587.       ForeColor       =   &H0000C000&
  588.       Height          =   375
  589.       Index           =   0
  590.       Left            =   6000
  591.       TabIndex        =   0
  592.       Top             =   180
  593.       Width           =   345
  594.    End
  595.    Begin VB.Label Label107 
  596.       BackStyle       =   0  'Transparent
  597.       Caption         =   "Q"
  598.       BeginProperty Font 
  599.          Name            =   "Wingdings 2"
  600.          Size            =   15.75
  601.          Charset         =   2
  602.          Weight          =   700
  603.          Underline       =   0   'False
  604.          Italic          =   0   'False
  605.          Strikethrough   =   0   'False
  606.       EndProperty
  607.       ForeColor       =   &H0000FFFF&
  608.       Height          =   360
  609.       Index           =   1
  610.       Left            =   5970
  611.       TabIndex        =   1
  612.       Top             =   180
  613.       Visible         =   0   'False
  614.       Width           =   345
  615.    End
  616. End
  617. Attribute VB_Name = "AminoGlyc"
  618. Attribute VB_GlobalNameSpace = False
  619. Attribute VB_Creatable = False
  620. Attribute VB_PredeclaredId = True
  621. Attribute VB_Exposed = False
  622. Private Sub CandyButton1_Click()
  623. X = 0 'Peak
  624. Y = 0 'trough
  625. w = 0
  626. z = 0
  627. KDAminog = 0
  628. DIAminog = 0
  629. MDAminog = 0
  630. PE = 0
  631. TR = 0
  632. t = 0
  633. Pk = 0
  634. TA = 0
  635. TB = 0
  636. TH = 0
  637.  
  638.  
  639.  
  640. Dw = IBW + ((ABW - IBW) * CF)
  641. If Dw < 0 Then Dw = IBW
  642. If Age >= 65 Then
  643.     vd = 0.3 * Dw
  644. Else
  645.     vd = 0.27 * Dw
  646. End If
  647. SetTopMostWindow Me.hwnd, False
  648.  
  649. If Trim(AminoRx) = "" Then 'Gentamycin.Status = 0 And Netilmicin.Status = 0 And Kanamycin.Status = 0 And Tobramycin.Status = 0 And Amikacin.Status = 0 Then
  650.     MsgBox "Please Select an Aminoglycoside Drug."
  651.     SetTopMostWindow Me.hwnd, True
  652.     Exit Sub
  653. End If
  654. If Option2(1).Value = False And Option2(2).Value = False And Option2(0).Value = False Then
  655.     MsgBox "Please Select a Dosing Protocol."
  656.     SetTopMostWindow Me.hwnd, True
  657.     Exit Sub
  658. End If
  659.  
  660. If AminoVolDistribution = 0 Then    'Decreased.Status = 0 And Normal.Status = 0 And Increased.Status = 0 Then
  661.     MsgBox "Please Select a State of Hydration."
  662.     SetTopMostWindow Me.hwnd, True
  663.     Exit Sub
  664. End If
  665.  
  666. If Trim(AminoDiseaseSev) = "" Then 'Mild.Status = 0 And Moderate.Status = 0 And Severe.Status = 0 Then
  667.     MsgBox "Please Select Disease Severity."
  668.     SetTopMostWindow Me.hwnd, True
  669.     Exit Sub
  670. End If
  671.  
  672. If Trim(Neut) = "" Then 'NeutropeniaYes.Status = 0 And NeutropeniaNo.Status = 0 Then
  673.     MsgBox "Please Specify if Patient is Neutropenic."
  674.     SetTopMostWindow Me.hwnd, True
  675.     Exit Sub
  676. End If
  677.  
  678. If Val(Text1.Text) = 0 Then     'InfusionTimetxt.Label = "" Then
  679.     MsgBox "Please Select Either a .5 or 1 hr Infusion time."
  680.     SetTopMostWindow Me.hwnd, True
  681.     Exit Sub
  682. Else
  683.     t = Val(Text1.Text)
  684. End If
  685. SetTopMostWindow Me.hwnd, True
  686.  
  687.     If Option4(0).Value = True And Option1(3).Value = False And Option1(4).Value = False Then
  688.       X = 5
  689.       GoTo NINE60
  690.     End If
  691.     If Option4(0).Value = True Then
  692.        X = 20
  693.     End If
  694.     If Option4(1).Value = True And Option1(3).Value = False And Option1(4).Value = False Then
  695.       X = 7
  696.       GoTo NINE60
  697.     End If
  698.     If Option4(1).Value = True Then
  699.       X = 25
  700.     End If
  701.     If Option4(2).Value = True And Option1(3).Value = False And Option1(4).Value = False Then
  702.       X = 8
  703.       GoTo NINE60
  704.     End If
  705.     If Option4(2).Value = True Then
  706.       X = 30
  707.     End If
  708. NINE60:
  709.  
  710.     If Option7(0).Value = True And Option1(3).Value = False And Option1(4).Value = False Then
  711.       Y = 1.5
  712.       GoTo NINE68
  713.     End If
  714.     If Option7(0).Value = True Then
  715.       Y = 8
  716.       GoTo NINE68
  717.     End If
  718.     If Option1(3).Value = True Or Option1(4).Value = True Then
  719.       Y = 5
  720.       GoTo NINE68
  721.     End If
  722.  
  723. Y = 1
  724.  
  725. NINE68:
  726.  
  727.     'If Gentamycin.status = 1 Then
  728.     '  KDAminog = (.00285 * crcl) + .015
  729.     'End If
  730.     'If Tobramycin.status = 1 Then
  731.     '  KDAminog = (.0031 * crcl) + .01
  732.     'End If
  733.     'If Amikacin.status = 1 Then
  734.     '   KDAminog = (.0024 * crcl) + .01
  735.     'End If
  736.  
  737. 'w =  LOG(y / x) 'LOG10(y / x)
  738. 'DIAminog = ((-1 / KDAminog) * w) + t
  739. 'w = 1 - EXP(-1 * KDAminog * DIAminog)
  740. 'z = 1 - EXP(-1 * KDAminog * t)
  741. 'MDAminog = t* x * AminoVolDistribution *KDAminog * w / z
  742. 'PE = (MDAminog / AminoVolDistribution) * z / KDAminog / w
  743. 'MDAminog = MDAminog * ABW
  744. 'w =  EXP(-1 * KDAminog * (DIAminog - t))
  745. 'TR = PE * w
  746. SetTopMostWindow Me.hwnd, False
  747. If ActualCrCl <> 0 Then
  748.     CrCl = ActualCrCl
  749. Else
  750.     If EstimatedCrCl <> 0 Then
  751.         CrCl = EstimatedCrCl
  752.     Else
  753.         MsgBox "Please Input Serum Creatinine and/or Urinary data for a Creatinine Clearance."
  754.         If Trim(DataInput.Creatininetxt) = "" Then
  755.             Unload Me
  756.             DataInput.Show
  757.             DataInput.SSTab1.Tab = 0
  758.             DataInput.SStab2.Tab = 2
  759.         Else
  760.             Load Renal
  761.             Renal.Show
  762.             Exit Sub
  763.         End If
  764.     End If
  765. End If
  766. SetTopMostWindow Me.hwnd, True
  767.  
  768. kel = 0.01 + (CrCl * 0.0024)
  769. AminogLD = Dw * AminogLD
  770. If Option2(0).Value = True Then
  771.     Load InitialAmino
  772.     InitialAmino.Show
  773.     Exit Sub
  774. End If
  775. If Option2(1).Value = True Then
  776.     Load Estimated
  777.     Estimated.Show
  778.     Exit Sub
  779. End If
  780. If Option2(2).Value = True Then
  781.     Load Adjust
  782.     Adjust.Show
  783.     Exit Sub
  784. End If
  785.  
  786.  
  787.  
  788.  
  789.  
  790. End Sub
  791.  
  792. Private Sub Command1_Click()
  793. Interpretive.Interpret.Text = "General Information for Kinetic Dosing:" & vbCrLf
  794. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  795. "   Check Levels 24 hours after initiating Tx (Pk/Tr) after" & vbCrLf & _
  796. "   24 hours (4 x T1/2) and every 2-3 days." & vbCrLf
  797. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  798. "   Bun/Creatinine <= qod." & vbCrLf
  799. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  800. "   Weight q 2-7 days" & vbCrLf
  801. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  802. "   Daily I&O" & vbCrLf
  803. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  804. "   Baseline & Weekly Audiograms and check for tinnitis/vertigo" & vbCrLf & _
  805. "   daily." & vbCrLf + Chr(10)
  806. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  807. "   Gent/Tobra/Netil => Serious Peak 6-8 Trough .5 - 1.5" & vbCrLf
  808. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  809. "   Gent/Tobra/Netil => Life Threatening Peak 8-10 Trough 1-< 2." & vbCrLf
  810. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  811. "   Amikacin/Kanamycin => Serious Peak 20-25 Trough 1 - 4" & vbCrLf
  812. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  813. "   Amikacin/Kanamycin => Life Threatening Peak 25-30 Trough 4-8" & vbCrLf
  814. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  815. "   Timing of Levels must be precise.  Peak MUST be 15-30 min" & vbCrLf & _
  816. "   after infusion and trough 30 min prior to next dose.  Documentation" & vbCrLf & _
  817. "   is essential and if timing is inaccurate, dosing will not be correct!" & vbCrLf
  818. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  819. "   A Correction Factor is applied for Obesity.  The Ideal Body Weight" & vbCrLf & _
  820. "   is used for those underweight." & vbCrLf
  821. Interpretive.Interpret.Text = Interpretive.Interpret.Text & _
  822. "   This algorithm is based on a Single Compartment Model of" & vbCrLf & _
  823. "   Sarrubi & Hull which has been shown to result a 90% accuracy." & vbCrLf
  824.  
  825. Load Interpretive
  826. Interpretive.Show
  827.  
  828. End Sub
  829.  
  830. Private Sub FlatButton5_Click()
  831. Unload Me
  832. End Sub
  833.  
  834. Private Sub Form_Load()
  835. Me.Left = Hemodynamics.Left + 100
  836. Me.Top = Hemodynamics.Top + 900
  837. SetTopMostWindow Me.hwnd, True
  838. AminoRx = ""
  839. End Sub
  840.  
  841. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  842. If Button = vbLeftButton Then
  843.   ReleaseCapture
  844.   SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
  845. End If
  846.  
  847. End Sub
  848.  
  849. Private Sub Label1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  850. If Button = vbLeftButton Then
  851.   ReleaseCapture
  852.   SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
  853. End If
  854.  
  855. End Sub
  856.  
  857. Private Sub Label107_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  858.         Label107(0).Visible = False
  859.         Label107(1).Visible = True
  860. End Sub
  861.  
  862. Private Sub Label107_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  863.         Label107(1).Visible = False
  864.         Label107(0).Visible = True
  865.         Unload Me
  866. End Sub
  867.  
  868.  
  869. Private Sub Label11_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  870. If Button = vbLeftButton Then
  871.   ReleaseCapture
  872.   SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
  873. End If
  874.  
  875. End Sub
  876.  
  877. Private Sub Option1_Click(Index As Integer)
  878. Select Case Index
  879.     Case 0
  880.         AminoRx = "Gentamycin"
  881.         CF = 0.43
  882.         AminogLD = 2
  883.     Case 1
  884.         CF = 0.58
  885.         AminoRx = "Tobramycin"
  886.         AminogLD = 2
  887.     Case 2
  888.         AminoRx = "Netilmicin"
  889.         CF = 0.5
  890.         AminogLD = 2
  891.     Case 3
  892.         AminoRx = "Amikacin"
  893.         CF = 0.38
  894.         AminogLD = 7.5
  895.     Case 4
  896.         AminoRx = "Kanamycin"
  897.         CF = 1
  898.         AminogLD = 7.5
  899. End Select
  900. End Sub
  901.  
  902. Private Sub Option3_Click(Index As Integer)
  903. Select Case Index
  904.     Case 0
  905.         AminoVolDistribution = 0.2
  906.     Case 1
  907.         AminoVolDistribution = 0.25
  908.     Case 2
  909.         AminoVolDistribution = 0.3
  910. End Select
  911. End Sub
  912.  
  913. Private Sub Option4_Click(Index As Integer)
  914. Select Case Index
  915.     Case 0
  916.         AminoDiseaseSev = "MI"
  917.     Case 1
  918.         AminoDiseaseSev = "MO"
  919.     Case 2
  920.         AminoDiseaseSev = "SE"
  921. End Select
  922. End Sub
  923.  
  924. Private Sub Option7_Click(Index As Integer)
  925. Select Case Index
  926.     Case 0
  927.         Neut = "Y"
  928.     Case 1
  929.         Neut = "N"
  930. End Select
  931. End Sub
  932.  
  933. Private Sub Text1_Change()
  934.     t = Val(Text1.Text)
  935. End Sub
  936.