Disable jdbRadioButton

Hello, I am new to JAVA programming and needed some help on disabling jdbRadioButton's. We are working on a program for our business and we have two gorups of jdbRadioButtons on a panel that we need to be able to enable and disable depending on what option the user has chosen.

The first option would disable the radio buttons as they are not needed (but we still want to displayt hem) and the second option would have the buttons enabled as the users would need to choose one from each set.

There are 7 radio buttons in each set (2 sets). The code we are currently using is as follows:

publicvoid setDataSet(com.borland.dx.dataset.DataSet thisDataSet){

jdbRadioButton1.setDataSet(thisDataSet);

jdbRadioButton2.setDataSet(thisDataSet);

jdbRadioButton3.setDataSet(thisDataSet);

jdbRadioButton4.setDataSet(thisDataSet);

jdbRadioButton5.setDataSet(thisDataSet);

jdbRadioButton6.setDataSet(thisDataSet);

jdbRadioButton7.setDataSet(thisDataSet);

jdbRadioButton8.setDataSet(thisDataSet);

jdbRadioButton9.setDataSet(thisDataSet);

jdbRadioButton10.setDataSet(thisDataSet);

jdbRadioButton11.setDataSet(thisDataSet);

jdbRadioButton12.setDataSet(thisDataSet);

jdbRadioButton13.setDataSet(thisDataSet);

jdbRadioButton14.setDataSet(thisDataSet);

}

publicvoid setFieldsStatus(boolean Flagger){

Color setTextColor;

setTextColor = CWSCustomColors.enabledBackgroundColor;

if (Flagger =false){

setTextColor = CWSCustomColors.disabledBackgroundColor;

}

jdbRadioButton1.setEnabled(Flagger);

jdbRadioButton2.setEnabled(Flagger);

jdbRadioButton3.setEnabled(Flagger);

jdbRadioButton4.setEnabled(Flagger);

jdbRadioButton5.setEnabled(Flagger);

jdbRadioButton6.setEnabled(Flagger);

jdbRadioButton7.setEnabled(Flagger);

jdbRadioButton8.setEnabled(Flagger);

jdbRadioButton9.setEnabled(Flagger);

jdbRadioButton10.setEnabled(Flagger);

jdbRadioButton11.setEnabled(Flagger);

jdbRadioButton12.setEnabled(Flagger);

jdbRadioButton13.setEnabled(Flagger);

jdbRadioButton14.setEnabled(Flagger);

}

We pass the true/false via

if (isDischarge){

this.setTitle("Discharge Summary");

this.setDataSet(dmEvalCommon1.getQryProgress());

this.setFieldsStatus(true);

}else{

this.setTitle("Progress Note");

dmEvalCommon1.getQryProgress().refresh();

this.setDataSet(dmEvalCommon1.getQryProgress());

this.setFieldsStatus(false);

}

I did find this article on a simular issue but cant find any work arounds on it: http://qc.borland.com/qc/wc/qcmain.aspx?d=7235

We are able to get any ohter field to disable off this code besides checkboxes and radio buttons. Again I am a "newbie" to JAVA (I have done ASP and ColdFusion programming in the past) so any help you can send my way would be great.

Thanks in advance for your reply.

[3716 byte] By [JWINKLERa] at [2007-11-27 1:30:55]
# 1
The code should work ... what's the problem?
abillconsla at 2007-7-12 0:32:51 > top of Java-index,Java Essentials,New To Java...
# 2
The problem is it doesnt work. The radiobuttons will not disable no matter what i try to do they always re-enable themselves on the panel.
JWINKLERa at 2007-7-12 0:32:51 > top of Java-index,Java Essentials,New To Java...
# 3
Explain what you mean. To me that sounds like: "I can see they are being disabled, but then, right before my eyes, they re-enable themselves". Mind you, I am not joking - that is what it sounds like.
abillconsla at 2007-7-12 0:32:51 > top of Java-index,Java Essentials,New To Java...
# 4
No sir, they are just enabled all the time. I do a debug I can see if run through the code to disable them just fine but they are always enabled.So to answer your question, no I do not ever see them disabled, they are always enabled even though that code is in place. Thanks.
JWINKLERa at 2007-7-12 0:32:51 > top of Java-index,Java Essentials,New To Java...
# 5

Should I assume that jdbRadioButton1is an Object of JRadioButton?

If so, it sounds like either setFieldStatus is never really called, or the 'buttons' are being re-enabled immediately - perhaps setFieldStatus is being called twice or more, once right after the other, with the status going false and then true ... ?

I would suggest placing System.out.println statements in that method at the top and checking the boolean value.

abillconsla at 2007-7-12 0:32:51 > top of Java-index,Java Essentials,New To Java...
# 6

The field status is False as it should be. Here is the full code, I dont think it is resetting them anywhere else I have already looked for that. When I run it in debug mode I watch the code go through setting the db and the field status (which is false and that is what i meant by it was setting them disabled but on the screen they were still enabled).

public class ProgressNote extends JFrame {

iEvalTMJ1 evalTMJ1 = null;

IEvalTMJ2 evalTMJ2 = null;

iEvalTMJ1 initialEvalTMJ1 = null;

IEvalTMJ2 initialEvalTMJ2 = null;

iEvalWoundCare1 evalWoundCare1 = null;

iEvalWoundCare2 evalWoundCare2 = null;

iEvalWoundCare1 initialEvalWoundCare1 = null;

iEvalWoundCare2 initialEvalWoundCare2 = null;

iEvalAnklePanel1 evalAnkle1 = null;

iEvalAnklePanel2 evalAnkle2 = null;

iEvalAnklePanel1 initialEvalAnkle1 = null;

iEvalAnklePanel2 initialEvalAnkle2 = null;

iEvalCervicalPanel1 evalCervical1 = null;

iEvalCervicalPanel2 evalCervical2 = null;

iEvalCervicalPanel1 initialEvalCervical1 = null;

iEvalCervicalPanel2 initialEvalCervical2 = null;

iEvalShoulderPanel1 evalShoulder1 = null;

iEvalShoulderPanel2 evalShoulder2 = null;

iEvalShoulderPanel1 initialEvalShoulder1 = null;

iEvalShoulderPanel2 initialEvalShoulder2 = null;

iEvalHip1 evalHip1 = null;

iEvalHip2 evalHip2 = null;

iEvalHip1 initialEvalHip1 = null;

iEvalHip2 initialEvalHip2 = null;

iEvalLumbar1 evalLumbar1 = null;

iEvalLumbar2 evalLumbar2 = null;

iEvalLumbar1 initialEvalLumbar1 = null;

iEvalLumbar2 initialEvalLumbar2 = null;

iEvalKnee1 evalKnee1 = null;

iEvalKnee2 evalKnee2 = null;

iEvalKnee1 initialEvalKnee1 = null;

iEvalKnee2 initialEvalKnee2 = null;

iEvalLymphedema1 evalLymphedema1 = null;

iEvalLymphedema2 evalLymphedema2 = null;

iEvalLymphedema3 evalLymphedema3 = null;

iEvalLymphedema1 initialEvalLymphedema1 = null;

iEvalLymphedema2 initialEvalLymphedema2 = null;

iEvalLymphedema3 initialEvalLymphedema3 = null;

iEvalSplint1 evalSplint1 = null;

iEvalSplint2 evalSplint2 = null;

iEvalSplint1 initialEvalSplint1 = null;

iEvalSplint2 initialEvalSplint2 = null;

iEvalUpperExtremity1 evalUpperExtremity1 = null;

iEvalUpperExtremity2 evalUpperExtremity2 = null;

iEvalUpperExtremity3 evalUpperExtremity3 = null;

iEvalUpperExtremity1 initialEvalUpperExtremity1 = null;

iEvalUpperExtremity2 initialEvalUpperExtremity2 = null;

iEvalUpperExtremity3 initialEvalUpperExtremity3 = null;

iEvalElbow1 evalElbow1 = null;

iEvalElbow2 evalElbow2 = null;

iEvalElbow1 initialEvalElbow1 = null;

iEvalElbow2 initialEvalElbow2 = null;

iEvalNeurological1 evalNeurological1 = null;

iEvalNeurological2 evalNeurological2 = null;

iEvalNeurological3 evalNeurological3 = null;

iEvalNeurological1 initialEvalNeurological1 = null;

iEvalNeurological2 initialEvalNeurological2 = null;

iEvalNeurological3 initialEvalNeurological3 = null;

iEvalVestibular1 evalVestibular1 = null;

iEvalVestibular2 evalVestibular2 = null;

iEvalVestibular3 evalVestibular3 = null;

iEvalVestibular1 initialEvalVestibular1 = null;

iEvalVestibular2 initialEvalVestibular2 = null;

iEvalVestibular3 initialEvalVestibular3 = null;

iEvalWomensHealth1 evalWomensHealth1 = null;

iEvalWomensHealth2 evalWomensHealth2 = null;

iEvalWomensHealth1 initialEvalWomensHealth1 = null;

iEvalWomensHealth2 initialEvalWomensHealth2 = null;

iEvalGeneral1 evalGeneral1 = null;

iEvalGeneral2 evalGeneral2 = null;

iEvalGeneral1 initialEvalGeneral1 = null;

iEvalGeneral2 initialEvalGeneral2 = null;

RecordCharges recordCharges1 = null;

public int thisEpno = 0;

public String evalType = "";

dmEvalCommon dmEvalCommon1 = dmEvalCommon.getDataModule();

dmEvalSpecific3 dmEval3 = dmEvalSpecific3.getDataModule();

aApplauseDB applauseDB;

QueryDataSet qryInitialEval = new QueryDataSet();

ResultSet resultSetInitial;

Statement initialEvalStatement;

Statement progressNoteStatement;

Statement visitStatement;

SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");

JTabbedPane jTabbedPane1 = new JTabbedPane();

JPanel jPanel1 = new JPanel();

cwsButtons cwsButtons1 = new cwsButtons();

JLabel jLabel1 = new JLabel();

TitledBorder titledBorder1;

JdbTextField jdbTextFieldVisits = new JdbTextField();

JLabel jLabel2 = new JLabel();

JLabel jLabel3 = new JLabel();

JdbTextField jdbTextFieldMet = new JdbTextField();

JLabel jLabel4 = new JLabel();

JLabel jLabel5 = new JLabel();

JdbTextField jdbTextFieldCancel = new JdbTextField();

JLabel jLabel6 = new JLabel();

JLabel jLabel7 = new JLabel();

JdbComboBoxFixed jdbComboBoxProgress = new JdbComboBoxFixed();

JLabel jLabel8 = new JLabel();

JPanel jPanel3 = new JPanel();

JdbTextArea jdbTextAreaSummary = new JdbTextArea();

JdbTextArea jdbTextAreaGoalsUpdate = new JdbTextArea();

JPanel jPanel4 = new JPanel();

TitledBorder titledBorder2;

JPanel jPanel5 = new JPanel();

TitledBorder titledBorder3;

JdbCheckBox jdbCheckBoxFollowUp = new JdbCheckBox();

JdbCheckBox jdbCheckBoxContinue = new JdbCheckBox();

JdbTextField jdbTextFieldPerWeek = new JdbTextField();

JLabel jLabel23 = new JLabel();

JdbTextField jdbTextFieldWeeks = new JdbTextField();

JLabel jLabel24 = new JLabel();

JdbCheckBox jdbCheckBoxVisitsRemain = new JdbCheckBox();

JdbTextField jdbTextFieldRemain = new JdbTextField();

JLabel jLabel25 = new JLabel();

JdbCheckBox jdbCheckBoxPhysical = new JdbCheckBox();

JdbCheckBox jdbCheckBoxWork = new JdbCheckBox();

JdbCheckBox jdbCheckBoxFCE = new JdbCheckBox();

JdbCheckBox jdbCheckBoxPacks = new JdbCheckBox();

JdbCheckBox jdbCheckBoxThera = new JdbCheckBox();

JdbCheckBox jdbCheckBoxAnodyne = new JdbCheckBox();

JdbCheckBox jdbCheckBoxUltrasound = new JdbCheckBox();

JdbCheckBox jdbCheckBoxGait = new JdbCheckBox();

JdbCheckBox jdbCheckBoxWound = new JdbCheckBox();

JdbCheckBox jdbCheckBoxIonto = new JdbCheckBox();

JdbCheckBox jdbCheckBoxNeuro = new JdbCheckBox();

JdbCheckBox jdbCheckBoxOther = new JdbCheckBox();

JdbCheckBox jdbCheckBoxTraction = new JdbCheckBox();

JdbCheckBox jdbCheckBoxManual = new JdbCheckBox();

JdbCheckBox jdbCheckBoxHomeManage = new JdbCheckBox();

JdbCheckBox jdbCheckBoxElectric = new JdbCheckBox();

JdbTextField jdbTextFieldOther = new JdbTextField();

DBDisposeMonitor dBDisposeMonitor1 = new DBDisposeMonitor();

UserProfile user;

private Calendar today = Calendar.getInstance();

private int mainEvalId;

private JButton saveButton;

private JButton saveInProgressButton;

private JButton cancelButton;

GridBagLayout gridBagLayout2 = new GridBagLayout();

JLabel jLabel113 = new JLabel();

JLabel jLabel114 = new JLabel();

JLabel jLabel115 = new JLabel();

JLabel jLabel116 = new JLabel();

JLabel jLabel117 = new JLabel();

JLabel jLabel118 = new JLabel();

JLabel jLabel119 = new JLabel();

JLabel jLabel1110 = new JLabel();

JPanel jPanel2 = new JPanel();

GridBagLayout gridBagLayout3 = new GridBagLayout();

JScrollPane jScrollPane1 = new JScrollPane();

JPanel jPanel6 = new JPanel();

GridBagLayout gridBagLayout4 = new GridBagLayout();

JScrollPane jScrollPane2 = new JScrollPane();

Border border1;

TitledBorder titledBorder4;

GoalsPanel goalsPanel1 = new GoalsPanel();

BorderLayout borderLayout1 = new BorderLayout();

JPanel jPanel7 = new JPanel();

GridBagLayout gridBagLayout5 = new GridBagLayout();

ButtonGroup discharge = new ButtonGroup();

Border border2;

TitledBorder titledBorder5;

JLabel jLabel9 = new JLabel();

JdbTextField jdbTextFieldResched = new JdbTextField();

JLabel jLabel10 = new JLabel();

GridBagLayout gridBagLayout8 = new GridBagLayout();

JPanel jPanel8 = new JPanel();

JPanel jPanel9 = new JPanel();

JLabel jLabel11 = new JLabel();

JLabel jLabel12 = new JLabel();

GridBagLayout gridBagLayout6 = new GridBagLayout();

GridBagLayout gridBagLayout7 = new GridBagLayout();

JdbRadioButton jdbRadioButton1 = new JdbRadioButton();

JdbRadioButton jdbRadioButton2 = new JdbRadioButton();

JdbRadioButton jdbRadioButton3 = new JdbRadioButton();

JdbRadioButton jdbRadioButton4 = new JdbRadioButton();

JdbRadioButton jdbRadioButton5 = new JdbRadioButton();

JdbRadioButton jdbRadioButton6 = new JdbRadioButton();

JdbRadioButton jdbRadioButton7 = new JdbRadioButton();

JdbRadioButton jdbRadioButton8 = new JdbRadioButton();

JdbRadioButton jdbRadioButton9 = new JdbRadioButton();

JdbRadioButton jdbRadioButton10 = new JdbRadioButton();

JdbRadioButton jdbRadioButton11 = new JdbRadioButton();

JdbRadioButton jdbRadioButton12 = new JdbRadioButton();

JdbRadioButton jdbRadioButton13 = new JdbRadioButton();

JdbRadioButton jdbRadioButton14 = new JdbRadioButton();

ButtonGroup reason = new ButtonGroup();

ButtonGroup dest = new ButtonGroup();

public ProgressNote(int mainEval,boolean isDischarge) {

Tracer.start();

this.mainEvalId = mainEval;

//Logger.log(LogLevelEnum.VERBOSE, "hsdlfksjdfkljsdf");

try {

applauseDB = aApplauseDB.getDataModule();

String initialEvalSQL = "SELECT MNADDDATE FROM CWEVALMAIN WHERE MNNO = " + mainEvalId + ";";

qryInitialEval.close();

qryInitialEval.setQuery(new QueryDescriptor(applauseDB.getDatabase2(),

initialEvalSQL, null, true, Load.ALL));

qryInitialEval.open();

jbInit();

if (isDischarge){

this.setTitle("Discharge Summary");

this.setDataSet(dmEvalCommon1.getQryProgress());

this.setFieldsStatus(true);

//Disable the progress note items...

this.jdbCheckBoxFollowUp.setEnabled(false);

this.jdbCheckBoxFollowUp.setDataSet(null);

this.jdbCheckBoxContinue.setEnabled(false);

this.jdbTextFieldPerWeek.setEnabled(false);

this.jdbTextFieldWeeks.setEnabled(false);

this.jdbCheckBoxVisitsRemain.setEnabled(false);

this.jdbTextFieldRemain.setEnabled(false);

this.jdbCheckBoxWork.setEnabled(false);

this.jdbCheckBoxPhysical.setEnabled(false);

this.jdbCheckBoxFCE.setEnabled(false);

//Enable the discharge items...

// this.jdbRadioButton1.setEnabled(true);

// this.jdbRadioButton2.setEnabled(true);

// this.jdbRadioButton3.setEnabled(true);

// this.jdbRadioButton4.setEnabled(true);

// this.jdbRadioButton5.setEnabled(true);

// this.jdbRadioButton6.setEnabled(true);

// this.jdbRadioButton7.setEnabled(true);

// this.jdbRadioButton8.setEnabled(true);

// this.jdbRadioButton9.setEnabled(true);

// this.jdbRadioButton10.setEnabled(true);

// this.jdbRadioButton11.setEnabled(true);

// this.jdbRadioButton12.setEnabled(true);

// this.jdbRadioButton13.setEnabled(true);

// this.jdbRadioButton14.setEnabled(true);

}else{

this.setTitle("Progress Note");

// dmEvalCommon1.getQryProgress().refresh();

this.setDataSet(dmEvalCommon1.getQryProgress());

this.setFieldsStatus(false);

//Enable the progress note items...

this.jdbCheckBoxFollowUp.setEnabled(true);

this.jdbCheckBoxContinue.setEnabled(true);

this.jdbTextFieldPerWeek.setEnabled(true);

this.jdbTextFieldWeeks.setEnabled(true);

this.jdbCheckBoxVisitsRemain.setEnabled(true);

this.jdbTextFieldRemain.setEnabled(true);

this.jdbCheckBoxWork.setEnabled(true);

this.jdbCheckBoxPhysical.setEnabled(true);

this.jdbCheckBoxFCE.setEnabled(true);

//Disable the discharge items...

// this.jdbRadioButton1.setEnabled(false);

// this.jdbRadioButton2.setEnabled(false);

// this.jdbRadioButton3.setEnabled(false);

// this.jdbRadioButton4.setEnabled(false);

// this.jdbRadioButton5.setEnabled(false);

// this.jdbRadioButton6.setEnabled(false);

// this.jdbRadioButton7.setEnabled(false);

// this.jdbRadioButton8.setEnabled(false);

// this.jdbRadioButton9.setEnabled(false);

// this.jdbRadioButton10.setEnabled(false);

// this.jdbRadioButton11.setEnabled(false);

// this.jdbRadioButton12.setEnabled(false);

// this.jdbRadioButton13.setEnabled(false);

// this.jdbRadioButton14.setEnabled(false);

}

ProgressNoteUpdate progressNoteUpdate1 = new ProgressNoteUpdate();

progressNoteUpdate1.thisMainEval = mainEvalId;

progressNoteUpdate1.thisBodyPartToUpdate = evalType;

progressNoteUpdate1.updateThisBodyPart();

cancelButton = cwsButtons1.getCancelButton();

cancelButton.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(ActionEvent e) {

cancelButton_actionPerformed(e);

}

});

saveButton = cwsButtons1.getSaveButton();

saveButton.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(ActionEvent e) {

saveButton_actionPerformed(e);

}

});

saveInProgressButton = cwsButtons1.getSaveInProgressButton();

saveInProgressButton.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(ActionEvent e) {

saveInProgressButton_actionPerformed(e);

}

});

}

catch(Exception ex) {

ex.printStackTrace();

}

Tracer.end();

}

public void setDataSet(com.borland.dx.dataset.DataSet thisDataSet){

jdbRadioButton1.setDataSet(thisDataSet);

jdbRadioButton2.setDataSet(thisDataSet);

jdbRadioButton3.setDataSet(thisDataSet);

jdbRadioButton4.setDataSet(thisDataSet);

jdbRadioButton5.setDataSet(thisDataSet);

jdbRadioButton6.setDataSet(thisDataSet);

jdbRadioButton7.setDataSet(thisDataSet);

jdbRadioButton8.setDataSet(thisDataSet);

jdbRadioButton9.setDataSet(thisDataSet);

jdbRadioButton10.setDataSet(thisDataSet);

jdbRadioButton11.setDataSet(thisDataSet);

jdbRadioButton12.setDataSet(thisDataSet);

jdbRadioButton13.setDataSet(thisDataSet);

jdbRadioButton14.setDataSet(thisDataSet);

}

public void setFieldsStatus(boolean Flagger){

Color setTextColor;

setTextColor = CWSCustomColors.enabledBackgroundColor;

if (Flagger = false) {

setTextColor = CWSCustomColors.disabledBackgroundColor;

}

jdbRadioButton1.setEnabled(Flagger);

jdbRadioButton2.setEnabled(Flagger);

jdbRadioButton3.setEnabled(Flagger);

jdbRadioButton4.setEnabled(Flagger);

jdbRadioButton5.setEnabled(Flagger);

jdbRadioButton6.setEnabled(Flagger);

jdbRadioButton7.setEnabled(Flagger);

jdbRadioButton8.setEnabled(Flagger);

jdbRadioButton9.setEnabled(Flagger);

jdbRadioButton10.setEnabled(Flagger);

jdbRadioButton11.setEnabled(Flagger);

jdbRadioButton12.setEnabled(Flagger);

jdbRadioButton13.setEnabled(Flagger);

jdbRadioButton14.setEnabled(Flagger);

}

void jbInit() throws Exception {

titledBorder1 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,CWSCustomColors.borderColor)," Re-Assessment Measures ");

titledBorder2 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,CWSCustomColors.borderColor)," Summary of Progress ");

titledBorder3 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,CWSCustomColors.borderColor)," Updated Goals ");

border1 = BorderFactory.createEtchedBorder(Color.white,CWSCustomColors.borderColor);

titledBorder4 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,CWSCustomColors.borderColor)," Updated Plan of Care ");

border2 = BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));

titledBorder5 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,CWSCustomColors.borderColor)," Discharged ");

titledBorder5.setTitleFont(new java.awt.Font("Arial", 1, 11));

titledBorder5.setTitleColor(CWSCustomColors.textHeaderColor);

titledBorder4.setTitleFont(new java.awt.Font("Arial", 1, 11));

titledBorder4.setTitleColor(CWSCustomColors.textHeaderColor);

titledBorder1.setTitleFont(new java.awt.Font("Arial", 1, 11));

titledBorder1.setTitleColor(CWSCustomColors.textHeaderColor);

titledBorder2.setTitleFont(new java.awt.Font("Arial", 1, 11));

titledBorder2.setTitleColor(CWSCustomColors.textHeaderColor);

titledBorder3.setTitleFont(new java.awt.Font("Arial", 1, 11));

titledBorder3.setTitleColor(CWSCustomColors.textHeaderColor);

this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);

this.setResizable(true);

this.setSize(790, 590);

this.addWindowListener(new java.awt.event.WindowAdapter() {

public void windowClosing(WindowEvent e) {

this_windowClosing(e);

}

});

this.getContentPane().setLayout(borderLayout1);

jPanel1.setLayout(gridBagLayout2);

jTabbedPane1.setBorder(null);

jTabbedPane1.setMaximumSize(new Dimension(32767, 32767));

jTabbedPane1.setMinimumSize(new Dimension(150, 0));

jTabbedPane1.setPreferredSize(new Dimension(150, 0));

jLabel1.setForeground(CWSCustomColors.textColor);

jLabel1.setText("Patient Attended");

jdbTextFieldVisits.setVisible(true);

jdbTextFieldVisits.setToolTipText("");

jdbTextFieldVisits.setEditable(false);

jdbTextFieldVisits.setText("");

jdbTextFieldVisits.setColumnName("PDVISITATTD");

jdbTextFieldVisits.setDataSet(dmEvalCommon1.getQryProgress());

jLabel2.setForeground(CWSCustomColors.textColor);

jLabel2.setRequestFocusEnabled(true);

jLabel2.setText("visits from Evaluation.");

jLabel3.setForeground(CWSCustomColors.textColor);

jLabel3.setText("Patient met");

jdbTextFieldMet.setText("");

jdbTextFieldMet.setColumnName("PDGOALPCT");

jdbTextFieldMet.setDataSet(dmEvalCommon1.getQryProgress());

jdbTextFieldMet.setToolTipText("");

jdbTextFieldMet.setVisible(true);

jLabel4.setForeground(CWSCustomColors.textColor);

jLabel4.setRequestFocusEnabled(true);

jLabel4.setText("% of goals.");

jLabel5.setForeground(CWSCustomColors.textColor);

jLabel5.setMaximumSize(new Dimension(165, 15));

jLabel5.setMinimumSize(new Dimension(165, 15));

jLabel5.setPreferredSize(new Dimension(165, 15));

jLabel5.setText("Patient Cancelled/No Showed");

jdbTextFieldCancel.setVisible(true);

jdbTextFieldCancel.setPreferredSize(new Dimension(8, 20));

jdbTextFieldCancel.setToolTipText("");

jdbTextFieldCancel.setText("");

jdbTextFieldCancel.setColumnName("PDVISITCXNS");

jdbTextFieldCancel.setDataSet(dmEvalCommon1.getQryProgress());

jLabel6.setForeground(CWSCustomColors.textColor);

jLabel6.setText("visits.");

jLabel7.setForeground(CWSCustomColors.textColor);

jLabel7.setMaximumSize(new Dimension(125, 15));

jLabel7.setMinimumSize(new Dimension(125, 15));

jLabel7.setPreferredSize(new Dimension(125, 15));

jLabel7.setText("This patient has made");

jdbComboBoxProgress.setMinimumSize(new Dimension(50, 20));

jdbComboBoxProgress.setPreferredSize(new Dimension(50, 20));

jdbComboBoxProgress.setActionCommand("comboBoxChanged");

jdbComboBoxProgress.setColumnName("PDPROGRESS");

jdbComboBoxProgress.setDataSet(dmEvalCommon1.getQryProgress());

jdbComboBoxProgress.setItems(new String[] {"", "Excellent", "Good", "Fair", "Poor"});

jLabel8.setForeground(CWSCustomColors.textColor);

jLabel8.setMaximumSize(new Dimension(141, 15));

jLabel8.setMinimumSize(new Dimension(141, 15));

jLabel8.setPreferredSize(new Dimension(141, 15));

jLabel8.setText("progress with therapy.");

jPanel3.setLayout(null);

jdbTextAreaSummary.setBackground(Color.white);

jdbTextAreaSummary.setBorder(null);

jdbTextAreaSummary.setMinimumSize(new Dimension(646, 43));

jdbTextAreaSummary.setText("");

jdbTextAreaSummary.setColumnName("PDSUMMARY");

jdbTextAreaSummary.setDataSet(dmEvalCommon1.getQryProgress());

jdbTextAreaGoalsUpdate.setBackground(Color.white);

jdbTextAreaGoalsUpdate.setBorder(null);

jdbTextAreaGoalsUpdate.setMinimumSize(new Dimension(646, 43));

jdbTextAreaGoalsUpdate.setCaretColor(Color.black);

jdbTextAreaGoalsUpdate.setText("");

jdbTextAreaGoalsUpdate.setColumnName("PDUPDATEGL");

jdbTextAreaGoalsUpdate.setDataSet(dmEvalCommon1.getQryProgress());

jPanel4.setFont(new java.awt.Font("Arial", 1, 11));

jPanel4.setBorder(titledBorder2);

jPanel4.setBounds(new Rectangle(6, 166, 335, 210));

jPanel4.setLayout(null);

jPanel5.setFont(new java.awt.Font("Arial", 1, 11));

jPanel5.setForeground(Color.orange);

jPanel5.setBorder(titledBorder4);

jPanel5.setBounds(new Rectangle(6, 377, 768, 107));

jPanel5.setLayout(gridBagLayout8);

jdbCheckBoxFollowUp.setText("Follow up with physician");

jdbCheckBoxFollowUp.setColumnName("PDFOLLOWUP");

jdbCheckBoxFollowUp.setBounds(new Rectangle(13, 23, 145, 23));

//jdbCheckBoxFollowUp.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxContinue.setText("Continue therapy");

jdbCheckBoxContinue.setColumnName("PDCONTINUE");

jdbCheckBoxContinue.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxContinue.setBounds(new Rectangle(13, 53, 107, 23));

jdbTextFieldPerWeek.setToolTipText("");

jdbTextFieldPerWeek.setText("");

jdbTextFieldPerWeek.setColumnName("PDCNTTIMES");

jdbTextFieldPerWeek.setDataSet(dmEvalCommon1.getQryProgress());

jdbTextFieldPerWeek.setBounds(new Rectangle(123, 52, 25, 20));

jLabel23.setText("times per week for");

jLabel23.setBounds(new Rectangle(153, 57, 91, 15));

jdbTextFieldWeeks.setText("");

jdbTextFieldWeeks.setColumnName("PDCNTWEEKS");

jdbTextFieldWeeks.setDataSet(dmEvalCommon1.getQryProgress());

jdbTextFieldWeeks.setBounds(new Rectangle(247, 55, 24, 20));

jdbTextFieldWeeks.setMaximumSize(new Dimension(40, 20));

jdbTextFieldWeeks.setMinimumSize(new Dimension(40, 20));

jdbTextFieldWeeks.setPreferredSize(new Dimension(40, 20));

jdbTextFieldWeeks.setToolTipText("");

jLabel24.setText("weeks");

jLabel24.setBounds(new Rectangle(276, 59, 33, 15));

jdbCheckBoxVisitsRemain.setText(" ");

jdbCheckBoxVisitsRemain.setColumnName("PDVREMAIN");

jdbCheckBoxVisitsRemain.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxVisitsRemain.setBounds(new Rectangle(13, 86, 22, 23));

jdbTextFieldRemain.setToolTipText("");

jdbTextFieldRemain.setSelectionStart(1);

jdbTextFieldRemain.setText("");

jdbTextFieldRemain.setColumnName("PDNUMREMAIN");

jdbTextFieldRemain.setDataSet(dmEvalCommon1.getQryProgress());

jdbTextFieldRemain.setBounds(new Rectangle(36, 88, 23, 20));

jLabel25.setText("visits remaining, continue with plan of care");

jLabel25.setBounds(new Rectangle(64, 92, 206, 15));

jdbCheckBoxPhysical.setText("Physical reconditioning");

jdbCheckBoxPhysical.setColumnName("PDPHYSICAL");

jdbCheckBoxPhysical.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxPhysical.setBounds(new Rectangle(13, 145, 135, 23));

jdbCheckBoxWork.setDebugGraphicsOptions(0);

jdbCheckBoxWork.setText("Work conditioning");

jdbCheckBoxWork.setColumnName("PDWORKCOND");

jdbCheckBoxWork.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxWork.setBounds(new Rectangle(13, 116, 111, 23));

jdbCheckBoxFCE.setText("FCE");

jdbCheckBoxFCE.setColumnName("PDFCE");

jdbCheckBoxFCE.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxFCE.setBounds(new Rectangle(13, 176, 45, 23));

jdbCheckBoxPacks.setText("Hot Pack/Cold Pack");

jdbCheckBoxPacks.setColumnName("PDPACKS");

jdbCheckBoxPacks.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxThera.setText("Therapeutic Exercise");

jdbCheckBoxThera.setColumnName("PDTHERAPEUT");

jdbCheckBoxThera.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxAnodyne.setText("Anodyne");

jdbCheckBoxAnodyne.setColumnName("PDANODYNE");

jdbCheckBoxAnodyne.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxUltrasound.setText("Ultrasound");

jdbCheckBoxUltrasound.setColumnName("PDULTRASND");

jdbCheckBoxUltrasound.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxGait.setText("Gait Training");

jdbCheckBoxGait.setColumnName("PDGAITTRAIN");

jdbCheckBoxGait.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxWound.setText("Wound Care");

jdbCheckBoxWound.setColumnName("PDWOUNDCARE");

jdbCheckBoxWound.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxIonto.setText("Iontophoresis");

jdbCheckBoxIonto.setColumnName("PDIONTO");

jdbCheckBoxIonto.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxNeuro.setText("Neuromuscular re-education");

jdbCheckBoxNeuro.setColumnName("PDNEUROMUSC");

jdbCheckBoxNeuro.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxOther.setActionCommand("jdbCheckBox1");

jdbCheckBoxOther.setText("Other:");

jdbCheckBoxOther.setColumnName("PDOTHER");

jdbCheckBoxOther.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxTraction.setText("Traction");

jdbCheckBoxTraction.setColumnName("PDTRACTION");

jdbCheckBoxTraction.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxManual.setText("Manual Therapy");

jdbCheckBoxManual.setColumnName("PDMANUAL");

jdbCheckBoxManual.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxHomeManage.setText("Home Management");

jdbCheckBoxHomeManage.setColumnName("PDHOMEMGMT");

jdbCheckBoxHomeManage.setDataSet(dmEvalCommon1.getQryProgress());

jdbCheckBoxElectric.setText("Electrical Stimulation");

jdbCheckBoxElectric.setColumnName("PDELECTRIC");

jdbCheckBoxElectric.setDataSet(dmEvalCommon1.getQryProgress());

jdbTextFieldOther.setMaximumSize(new Dimension(65, 20));

jdbTextFieldOther.setMinimumSize(new Dimension(65, 20));

jdbTextFieldOther.setPreferredSize(new Dimension(65, 20));

jdbTextFieldOther.setText("");

jdbTextFieldOther.setColumnName("PDOTHERTXT");

jdbTextFieldOther.setDataSet(dmEvalCommon1.getQryProgress());

jLabel113.setText("Re-Assess");

jLabel113.setPreferredSize(new Dimension(55, 19));

jLabel113.setMinimumSize(new Dimension(55, 19));

jLabel114.setText("Re-Assess");

jLabel114.setPreferredSize(new Dimension(55, 19));

jLabel114.setMinimumSize(new Dimension(55, 19));

jLabel115.setText("Re-Assess");

jLabel115.setPreferredSize(new Dimension(55, 19));

jLabel115.setMinimumSize(new Dimension(55, 19));

jLabel116.setText("Re-Assess");

jLabel116.setPreferredSize(new Dimension(55, 19));

jLabel116.setMinimumSize(new Dimension(55, 19));

jLabel117.setText("Re-Assess");

jLabel117.setPreferredSize(new Dimension(55, 19));

jLabel117.setMinimumSize(new Dimension(55, 19));

jLabel118.setText("Re-Assess");

jLabel118.setPreferredSize(new Dimension(55, 19));

jLabel118.setMinimumSize(new Dimension(55, 19));

jLabel119.setText("Re-Assess");

jLabel119.setPreferredSize(new Dimension(55, 19));

jLabel119.setMinimumSize(new Dimension(55, 19));

jLabel1110.setText("Re-Assess");

jLabel1110.setPreferredSize(new Dimension(55, 19));

jLabel1110.setMinimumSize(new Dimension(55, 19));

jPanel1.setMinimumSize(new Dimension(740, 300));

jPanel1.setOpaque(true);

jPanel1.setPreferredSize(new Dimension(740, 300));

jPanel2.setBorder(titledBorder3);

jPanel2.setMinimumSize(new Dimension(646, 43));

jPanel2.setPreferredSize(new Dimension(646, 43));

jPanel2.setBounds(new Rectangle(7, 86, 766, 69));

jPanel2.setLayout(gridBagLayout3);

jPanel6.setBorder(titledBorder2);

jPanel6.setMinimumSize(new Dimension(647, 131));

jPanel6.setPreferredSize(new Dimension(647, 131));

jPanel6.setBounds(new Rectangle(8, 8, 765, 74));

jPanel6.setLayout(gridBagLayout4);

jPanel7.setBorder(titledBorder5);

jPanel7.setBounds(new Rectangle(354, 166, 419, 211));

jPanel7.setLayout(gridBagLayout5);

jLabel9.setText("Patient Rescheduled");

jLabel9.setForeground(CWSCustomColors.textColor);

jdbTextFieldResched.setPreferredSize(new Dimension(8, 20));

jdbTextFieldResched.setText("");

jdbTextFieldResched.setHorizontalAlignment(SwingConstants.RIGHT);

jdbTextFieldResched.setColumnName("PDVISITRESCHED");

jdbTextFieldResched.setDataSet(dmEvalCommon1.getQryProgress());

jLabel10.setText("visits.");

jLabel10.setForeground(CWSCustomColors.textColor);

jLabel11.setText("Reason");

jLabel12.setText("Destination");

jPanel8.setLayout(gridBagLayout6);

jPanel9.setLayout(gridBagLayout7);

jdbRadioButton1.setEnabled(false);

jdbRadioButton1.setRequestFocusEnabled(false);

jdbRadioButton1.setText("Did not return to therapy");

jdbRadioButton1.setButtonGroup(reason);

jdbRadioButton1.setColumnName("PDDISREASON");

//jdbRadioButton1.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton1.setSelectedDataValue("DNR");

jdbRadioButton2.setText("Poor compliance");

jdbRadioButton2.setButtonGroup(reason);

jdbRadioButton2.setColumnName("PDDISREASON");

//jdbRadioButton2.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton2.setSelectedDataValue("PC");

jdbRadioButton3.setText("Return to physician");

jdbRadioButton3.setButtonGroup(reason);

jdbRadioButton3.setColumnName("PDDISREASON");

//jdbRadioButton3.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton3.setSelectedDataValue("RTP");

jdbRadioButton4.setText("Percent of goals met");

jdbRadioButton4.setButtonGroup(reason);

jdbRadioButton4.setColumnName("PDDISREASON");

//jdbRadioButton4.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton4.setSelectedDataValue("GPM");

jdbRadioButton5.setText("All goals met");

jdbRadioButton5.setButtonGroup(reason);

jdbRadioButton5.setColumnName("PDDISREASON");

//jdbRadioButton5.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton5.setSelectedDataValue("GM");

jdbRadioButton6.setText("Plateau/Lack of progress");

jdbRadioButton6.setButtonGroup(reason);

jdbRadioButton6.setColumnName("PDDISREASON");

//jdbRadioButton6.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton6.setSelectedDataValue("MPR");

jdbRadioButton7.setText("Insurance benefits maximized");

jdbRadioButton7.setButtonGroup(reason);

jdbRadioButton7.setColumnName("PDDISREASON");

//jdbRadioButton7.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton7.setSelectedDataValue("NMB");

jdbRadioButton8.setText("Continuing care");

jdbRadioButton8.setButtonGroup(dest);

jdbRadioButton8.setColumnName("PDDISDESTINATION");

//jdbRadioButton8.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton8.setSelectedDataValue("CC");

jdbRadioButton9.setText("Home-Independently");

jdbRadioButton9.setButtonGroup(dest);

jdbRadioButton9.setColumnName("PDDISDESTINATION");

//jdbRadioButton9.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton9.setSelectedDataValue("HMI");

jdbRadioButton10.setText("Home-Caregiver Assistance");

jdbRadioButton10.setButtonGroup(dest);

jdbRadioButton10.setColumnName("PDDISDESTINATION");

//jdbRadioButton10.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton10.setSelectedDataValue("HMC");

jdbRadioButton11.setText("Assisted Living center");

jdbRadioButton11.setButtonGroup(dest);

jdbRadioButton11.setColumnName("PDDISDESTINATION");

//jdbRadioButton11.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton11.setSelectedDataValue("AL");

jdbRadioButton12.setText("Board & care facility");

jdbRadioButton12.setButtonGroup(dest);

jdbRadioButton12.setColumnName("PDDISDESTINATION");

//jdbRadioButton12.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton12.setSelectedDataValue("BC");

jdbRadioButton13.setText("Intermediate care facility");

jdbRadioButton13.setButtonGroup(dest);

jdbRadioButton13.setColumnName("PDDISDESTINATION");

//jdbRadioButton13.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton13.setSelectedDataValue("ICF");

jdbRadioButton14.setText("Skilled nursing facility");

jdbRadioButton14.setButtonGroup(dest);

jdbRadioButton14.setColumnName("PDDISDESTINATION");

//jdbRadioButton14.setDataSet(dmEvalCommon1.getQryProgress());

jdbRadioButton14.setSelectedDataValue("SNF");

this.getContentPane().add(jTabbedPane1, BorderLayout.CENTER);

this.getContentPane().add(cwsButtons1, BorderLayout.SOUTH);

jPanel1.add(jLabel1,new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 8, 0));

jPanel1.add(jdbTextFieldVisits,new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(2, 2, 2, 2), 17, -1));

jPanel1.add(jLabel2,new GridBagConstraints(2, 0, 3, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 6, 0));

jPanel1.add(jLabel5,new GridBagConstraints(0, 1, 3, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 0, 0));

jPanel1.add(jLabel6,new GridBagConstraints(4, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

jPanel1.add(jdbTextFieldCancel,new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(2, 2, 2, 2), 17, 0));

jPanel1.add(jLabel3,new GridBagConstraints(5, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 17, 0, 0), 9, 0));

jPanel1.add(jLabel7,new GridBagConstraints(5, 1, 3, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

jPanel1.add(jdbTextFieldMet,new GridBagConstraints(6, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(2, 2, 2, 2), 11, -1));

jPanel1.add(jLabel4,new GridBagConstraints(7, 0, 2, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 48), 7, 0));

jPanel1.add(jdbComboBoxProgress,new GridBagConstraints(8, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(2, 2, 2, 2), 0, 0));

jPanel1.add(jLabel8, new GridBagConstraints(9, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 2, 0, 0), 89, 0));

jPanel1.add(jLabel9,new GridBagConstraints(0, 2, 3, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 6, 0, 0), 0, 0));

jPanel1.add(jdbTextFieldResched,new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(2, 2, 2, 2), 0, 0));

jPanel1.add(jLabel10,new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

jTabbedPane1.add(jPanel1,"General Re-Assessment");

jTabbedPane1.add(jPanel3, "Summaries");

jPanel4.add(jdbCheckBoxFollowUp, null);

jPanel4.add(jdbCheckBoxFCE, null);

jPanel4.add(jdbCheckBoxContinue, null);

jPanel4.add(jdbTextFieldPerWeek, null);

jPanel4.add(jLabel23, null);

jPanel4.add(jdbTextFieldWeeks, null);

jPanel4.add(jLabel24, null);

jPanel4.add(jdbTextFieldRemain, null);

jPanel4.add(jdbCheckBoxVisitsRemain, null);

jPanel4.add(jLabel25, null);

jPanel4.add(jdbCheckBoxWork, null);

jPanel4.add(jdbCheckBoxPhysical, null);

jPanel3.add(jPanel5, null);

jPanel3.add(jPanel7, null);

jPanel7.add(jPanel8, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

jPanel8.add(jLabel11, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));

jPanel8.add(jdbRadioButton1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 15), 0, 0));

jPanel8.add(jdbRadioButton2, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 15), 0, 0));

jPanel8.add(jdbRadioButton3,new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 15), 0, 0));

jPanel8.add(jdbRadioButton4,new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 15), 0, 0));

jPanel8.add(jdbRadioButton5, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 15), 0, 0));

jPanel8.add(jdbRadioButton7,new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 15), 0, 0));

jPanel8.add(jdbRadioButton6,new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 15), 0, 0));

jPanel7.add(jPanel9, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

jPanel9.add(jLabel12,new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));

jPanel9.add(jdbRadioButton8,new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 0, 0));

jPanel9.add(jdbRadioButton9, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 0, 0));

jPanel9.add(jdbRadioButton10, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 0, 0));

jPanel9.add(jdbRadioButton11,new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 0, 0));

jPanel9.add(jdbRadioButton12,new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 0, 0));

jPanel9.add(jdbRadioButton13,new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 0, 0));

jPanel9.add(jdbRadioButton14,new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 6, 0, 0), 0, 0));

jTabbedPane1.add(goalsPanel1, "Goals");

jPanel3.add(jPanel6, null);

jPanel6.add(jScrollPane2, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0

,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

jScrollPane2.getViewport().add(jdbTextAreaSummary, null);

jPanel3.add(jPanel2, null);

jPanel2.add(jScrollPane1,new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0

,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

jScrollPane1.getViewport().add(jdbTextAreaGoalsUpdate, null);

jPanel5.add(jdbCheckBoxPacks, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 15, 0, 10), 1, 0));

jPanel5.add(jdbCheckBoxThera, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 15, 0, 0), 1, 0));

jPanel5.add(jdbCheckBoxAnodyne, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 15, 14, 33), 26, 0));

jPanel5.add(jdbCheckBoxUltrasound, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 15, 0, 0), 18, 0));

jPanel5.add(jdbCheckBoxGait, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 15, 0, 0), 10, 0));

jPanel5.add(jdbCheckBoxWound, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 15, 14, 0), 8, 0));

jPanel5.add(jdbCheckBoxNeuro,new GridBagConstraints(2, 1, 2, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 15, 0, 4), 101, 0));

jPanel5.add(jdbCheckBoxOther, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0

,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 15, 14, 0), 0, 0));

jPanel5.add(jdbTextFieldOther,new GridBagConstraints(3, 2, 1, 1, 1.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 14, 0), 0, 0));

jPanel5.add(jdbCheckBoxTraction, new GridBagConstraints(5, 0, 2, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 3, 0, 20), 30, 0));

jPanel5.add(jdbCheckBoxManual,new GridBagConstraints(6, 1, 1, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 3, 0, 20), 5, 0));

jPanel5.add(jdbCheckBoxIonto,new GridBagConstraints(2, 0, 2, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 15, 0, 70), 4, 0));

jPanel5.add(jdbCheckBoxElectric,new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0

,GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE, new Insets(0, -5, 0, 36), 4, 0));

jPanel5.add(jdbCheckBoxHomeManage,new GridBagConstraints(4, 1, 2, 1, 0.0, 0.0

,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, -5, 0, 40), 0, 0));

jPanel3.add(jPanel4, null);

user = UserProfile.getInstance();

}

void cancelButton_actionPerformed(ActionEvent e) {

int confirm = JOptionPane.showConfirmDialog(this,"Are you sure you want to cancel?","Cancel",JOptionPane.YES_NO_OPTION);

if (confirm == JOptionPane.YES_OPTION) {

dmEvalCommon1.cancelAllChanges();

dmEvalSpecific1.getDataModule().cancelAllChanges();

dmEvalSpecific2.getDataModule().cancelAllChanges();

dmEvalSpecific3.getDataModule().cancelAllChanges();

dmEvalSpecific4.getDataModule().cancelAllChanges();

dmUpperExtremity.getDataModule().cancelAllChanges();

dmExercise.getDataModule().cancelAllChanges();

this.dispose();

}

}

public void findVisits() {

visitStatement = applauseDB.getDatabase2().createStatement();

try {

String findTheseVisits = "Select count(distinct(chtrtdate)) as visitCount from bpcharges where chepno = " + thisEpno ;

ResultSet visitSet = visitStatement.executeQuery(findTheseVisits);

visitSet.next();

dmEvalCommon1.qryProgress.setInt("PDVISITATTD",visitSet.getInt("visitCount"));

visitStatement.close();

Patient patient = Patient.getInstance();

if (patient.get() != -1) {

int cancelNoShowCount = -1;

int reschedCount = -1;

if( !this.dmEvalCommon1.getQryProgress().isOpen() ) {

this.dmEvalCommon1.getQryProgress().open();

}

cancelNoShowCount = patient.getCancelNoShowCount(thisEpno);

dmEvalCommon1.getQryProgress().setInt("PDVISITCXNS", cancelNoShowCount);

reschedCount = patient.getReschedCount(thisEpno);

dmEvalCommon1.getQryProgress().setInt("PDVISITRESCHED", reschedCount);

}

}

catch (Exception visitsException) {

visitsException.printStackTrace();

}

finally {

try {

visitStatement.close();

}

catch (Exception finallyException) { //nothing

}

}

}

public void initProgressNote() {

dmEvalCommon1.qryProgress.open();

dmEvalCommon1.qryProgress.insertRow(false);

dmEvalCommon1.qryProgress.setInt("PDNO", 0);

dmEvalCommon1.qryProgress.setInt("PDMNNO", mainEvalId);

dmEvalCommon1.qryProgress.setInt("PDADDUSER", user.getUserNo());

dmEvalCommon1.qryProgress.setDate("PDADDDATE", today.getTime().getTime());

findVisits();

loadInitialEvalForThisBodyPart();

this.goalsPanel1.refreshForProgressNote(dmEvalCommon1.qryProgress.getInt("PDNO"));

}

public void initProgressNote(int pdno) {

boolean found = false;

dmEvalCommon1.qryProgress.open();

dmEvalCommon1.getQryProgress().first();

for( int x = 0; x < dmEvalCommon1.getQryProgress().getRowCount(); x++ ) {

if( dmEvalCommon1.getQryProgress().getInt("PDNO") == pdno ) {

// we found the correct eval, so break

found = true;

break;

}

dmEvalCommon1.getQryProgress().next();

}

if( found ) {

findVisits();

loadInitialEvalForThisBodyPart();

this.goalsPanel1.refreshForProgressNote(dmEvalCommon1.qryProgress.getInt("PDNO"));

}

}

public void loadInitialEvalForThisBodyPart() {

if (evalType.trim().equals("Ankle")) {

evalAnkle2 = new iEvalAnklePanel2();

evalAnkle1 = new iEvalAnklePanel1();

evalAnkle1.initializeData();

jTabbedPane1.addTab("Objective", evalAnkle2);

jTabbedPane1.addTab("DTRs/Special Tests", evalAnkle1);

try {

initialEvalAnkle1 = new iEvalAnklePanel1(dmAnkle.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalAnkle2 = new iEvalAnklePanel2(dmAnkle.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalAnkle1);

jTabbedPane1.addTab("Eval. Functional Tests", initialEvalAnkle2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Cervical/Thoracic Spine")) {

evalCervical1 = new iEvalCervicalPanel1();

evalCervical2 = new iEvalCervicalPanel2();

evalCervical1.initializeData();

jTabbedPane1.addTab("Cervical", evalCervical1);

jTabbedPane1.addTab("Upper Extremity", evalCervical2);

try {

initialEvalCervical1 = new iEvalCervicalPanel1(dmCervical.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalCervical2 = new iEvalCervicalPanel2(dmCervical.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. Cervical", initialEvalCervical1);

jTabbedPane1.addTab("Eval. Upper Extremity", initialEvalCervical2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Shoulder")) {

evalShoulder1 = new iEvalShoulderPanel1();

evalShoulder2 = new iEvalShoulderPanel2();

evalShoulder1.initializeData();

jTabbedPane1.addTab("Objective", evalShoulder2);

jTabbedPane1.addTab("DTRs/Special Tests", evalShoulder1);

try {

initialEvalShoulder1 = new iEvalShoulderPanel1(dmShoulder.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalShoulder2 = new iEvalShoulderPanel2(dmShoulder.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. Objective", initialEvalShoulder1);

jTabbedPane1.addTab("Eval. DTRs/Special Tests", initialEvalShoulder2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Elbow")) {

evalElbow1 = new iEvalElbow1();

evalElbow2 = new iEvalElbow2();

evalElbow1.initializeData();

jTabbedPane1.addTab("DTR's", evalElbow1);

jTabbedPane1.addTab("Functional", evalElbow2);

try {

initialEvalElbow1 = new iEvalElbow1(dmElbow.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalElbow2 = new iEvalElbow2(dmElbow.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalElbow1);

jTabbedPane1.addTab("Eval. Functional", initialEvalElbow2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Wound Care")) {

evalWoundCare1 = new iEvalWoundCare1();

evalWoundCare2 = new iEvalWoundCare2();

evalWoundCare1.initializeData();

jTabbedPane1.addTab("Objective", evalWoundCare1);

jTabbedPane1.addTab("Tests/Findings", evalWoundCare2);

try {

/**

* @todo add datamodule for wound care

*/

initialEvalWoundCare1 = new iEvalWoundCare1(dmWoundCare.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalWoundCare2 = new iEvalWoundCare2(dmWoundCare.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. Objective", initialEvalWoundCare1);

jTabbedPane1.addTab("Eval. Tests/Findings", initialEvalWoundCare2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("General Eval")) {

evalGeneral1 = new iEvalGeneral1();

evalGeneral2 = new iEvalGeneral2();

evalGeneral1.initializeData();

jTabbedPane1.addTab("DTR's", evalGeneral1);

jTabbedPane1.addTab("Functional", evalGeneral2);

try {

initialEvalGeneral1 = new iEvalGeneral1(dmGeneral.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalGeneral2 = new iEvalGeneral2(dmGeneral.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalGeneral1);

jTabbedPane1.addTab("Eval. Functional", initialEvalGeneral2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Hip")) {

evalHip1 = new iEvalHip1();

evalHip2 = new iEvalHip2();

evalHip1.initializeData();

jTabbedPane1.addTab("DTR's", evalHip1);

jTabbedPane1.addTab("Functional Tests", evalHip2);

try {

initialEvalHip1 = new iEvalHip1(dmHip.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalHip2 = new iEvalHip2(dmHip.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalHip1);

jTabbedPane1.addTab("Eval. Functional Tests", initialEvalHip2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Knee")) {

evalKnee1 = new iEvalKnee1();

evalKnee2 = new iEvalKnee2();

evalKnee1.initializeData();

jTabbedPane1.addTab("DTR's", evalKnee1);

jTabbedPane1.addTab("Functional", evalKnee2);

try {

initialEvalKnee1 = new iEvalKnee1(dmKnee.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalKnee2 = new iEvalKnee2(dmKnee.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalKnee1);

jTabbedPane1.addTab("Eval. Functional", initialEvalKnee2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Lumbar")) {

evalLumbar1 = new iEvalLumbar1();

evalLumbar2 = new iEvalLumbar2();

evalLumbar1.initializeData();

jTabbedPane1.addTab("DTR's", evalLumbar1);

jTabbedPane1.addTab("Functional", evalLumbar2);

try {

initialEvalLumbar1 = new iEvalLumbar1(dmLumbar.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalLumbar2 = new iEvalLumbar2(dmLumbar.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalLumbar1);

jTabbedPane1.addTab("Eval. Functional", initialEvalLumbar2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Neurological")) {

evalNeurological1 = new iEvalNeurological1();

evalNeurological2 = new iEvalNeurological2();

evalNeurological3 = new iEvalNeurological3();

evalNeurological1.initializeData();

jTabbedPane1.addTab("DTR's", evalNeurological1);

jTabbedPane1.addTab("Functional", evalNeurological2);

jTabbedPane1.addTab("Functional Ext", evalNeurological3);

try {

initialEvalNeurological1 = new iEvalNeurological1(dmNeuro.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalNeurological2 = new iEvalNeurological2(dmNeuro.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalNeurological3 = new iEvalNeurological3(dmNeuro.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalNeurological1);

jTabbedPane1.addTab("Eval. Functional", initialEvalNeurological2);

jTabbedPane1.addTab("Eval. Functional Ext.", initialEvalNeurological3);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Splint")) {

evalSplint1 = new iEvalSplint1();

evalSplint2 = new iEvalSplint2();

evalSplint1.initializeData();

jTabbedPane1.addTab("DTR's", evalSplint1);

jTabbedPane1.addTab("Functional Tests", evalSplint2);

try {

initialEvalSplint1 = new iEvalSplint1(dmSplint.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalSplint2 = new iEvalSplint2(dmSplint.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalSplint1);

jTabbedPane1.addTab("Eval. Functional Tests", initialEvalSplint2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("TMJ")) {

evalTMJ1 = new iEvalTMJ1();

evalTMJ2 = new IEvalTMJ2();

evalTMJ1.initializeData();

jTabbedPane1.addTab("TMJ1", evalTMJ1);

jTabbedPane1.addTab("TMJ2", evalTMJ2);

try {

initialEvalTMJ1 = new iEvalTMJ1(dmTMJ.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalTMJ2 = new IEvalTMJ2(dmTMJ.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalTMJ1);

jTabbedPane1.addTab("Eval. Functional", initialEvalTMJ2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Upper Extremity")) {

evalUpperExtremity1 = new iEvalUpperExtremity1();

evalUpperExtremity2 = new iEvalUpperExtremity2();

evalUpperExtremity3 = new iEvalUpperExtremity3();

evalUpperExtremity1.initializeData();

jTabbedPane1.addTab("DTR's", evalUpperExtremity1);

jTabbedPane1.addTab("Functional", evalUpperExtremity2);

jTabbedPane1.addTab("Functional Ext.", evalUpperExtremity3);

try {

initialEvalUpperExtremity1 = new iEvalUpperExtremity1(dmHand.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalUpperExtremity2 = new iEvalUpperExtremity2(dmHand.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalUpperExtremity3 = new iEvalUpperExtremity3(dmHand.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalUpperExtremity1);

jTabbedPane1.addTab("Eval. Functional", initialEvalUpperExtremity2);

jTabbedPane1.addTab("Eval. Functional Ext.", initialEvalUpperExtremity3);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Vestibular")) {

evalVestibular1 = new iEvalVestibular1();

evalVestibular2 = new iEvalVestibular2();

evalVestibular3 = new iEvalVestibular3();

evalVestibular1.initializeData();

jTabbedPane1.addTab("DTR's", evalVestibular1);

jTabbedPane1.addTab("Functional", evalVestibular2);

jTabbedPane1.addTab("Functional Ext.", evalVestibular3);

try {

/**

* @todo ADD data module

*/

initialEvalVestibular1 = new iEvalVestibular1(dmVestibular.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalVestibular2 = new iEvalVestibular2(dmVestibular.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalVestibular3 = new iEvalVestibular3(dmVestibular.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalVestibular1);

jTabbedPane1.addTab("Eval. Functional", initialEvalVestibular2);

jTabbedPane1.addTab("Eval. Functional Ext.", initialEvalVestibular3);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Women's Health")) {

evalWomensHealth1 = new iEvalWomensHealth1();

evalWomensHealth2 = new iEvalWomensHealth2();

evalWomensHealth1.initializeData();

jTabbedPane1.addTab("DTR's", evalWomensHealth1);

jTabbedPane1.addTab("Functional Tests", evalWomensHealth2);

try {

/**

* @todo ADD data module

*/

initialEvalWomensHealth1 = new iEvalWomensHealth1(dmWomensHealth.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalWomensHealth2 = new iEvalWomensHealth2(dmWomensHealth.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalWomensHealth1);

jTabbedPane1.addTab("Eval. Functional", initialEvalWomensHealth2);

}

catch (Exception e) {

e.printStackTrace();

}

}

if (evalType.trim().equals("Lymphedema")) {

evalLymphedema1 = new iEvalLymphedema1();

evalLymphedema2 = new iEvalLymphedema2();

evalLymphedema1.initializeData();

jTabbedPane1.addTab("DTR's", evalLymphedema1);

jTabbedPane1.addTab("Functional Tests", evalLymphedema2);

try {

/**

* @todo add data module

*/

initialEvalLymphedema1 = new iEvalLymphedema1(dmLymphedema.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

initialEvalLymphedema2 = new iEvalLymphedema2(dmLymphedema.getDataModule().lookupInitialEvalIdByMainId(mainEvalId));

jTabbedPane1.addTab("Eval. DTR's", initialEvalLymphedema1);

jTabbedPane1.addTab("Eval. Functional", initialEvalLymphedema2);

}

catch (Exception e) {

e.printStackTrace();

}

}

}

private int save(int status) {

int progressNoteId = 0;

if( dmEvalCommon1.getQryProgress().getInt("PDNO") > 0 ) {

// we already have created as new in the past, so new we just need to save

progressNoteId = dmEvalCommon1.getQryProgress().getInt("PDNO");

dmEvalCommon1.getQryProgress().setDate("PDEDITDATE", today.getTime().getTime());

dmEvalCommon1.getQryProgress().setInt("PDEDITUSER", user.getUserNo());

dmEvalCommon1.getQryProgress().setInt("PDMDNO", status);

dmEvalCommon1.getQryProgress().saveChanges();

dmGoals.getDataModule().getQryGoals().saveChanges();

} else {

ResultSet resultsProgressNote;

applauseDB = aApplauseDB.getDataModule();

java.util.Date reDate1 = null;

java.util.Date reDate2 = null;

java.util.Date reDate3 = null;

java.util.Date reDate4 = null;

java.sql.Date reDate1SQL = null;

java.sql.Date reDate2SQL = null;

java.sql.Date reDate3SQL = null;

java.sql.Date reDate4SQL = null;

try {

progressNoteStatement = applauseDB.getDatabase2().createStatement();

String strSQL1 = "SELECT * FROM NEW_PROGRESS_NOTE";

resultsProgressNote = progressNoteStatement.executeQuery(strSQL1);

resultsProgressNote.next();

progressNoteId = resultsProgressNote.getInt("NEXT_PDNO");

if (reDate1 != null) {

reDate1SQL = new java.sql.Date(reDate1.getTime());

}

if (reDate2 != null) {

reDate2SQL = new java.sql.Date(reDate2.getTime());

}

if (reDate3 != null) {

reDate3SQL = new java.sql.Date(reDate3.getTime());

}

if (reDate4 != null) {

reDate4SQL = new java.sql.Date(reDate4.getTime());

}

dmEvalCommon1.qryProgress.setInt("PDNO", progressNoteId);

dmEvalCommon1.qryProgress.setInt("PDMDNO", status);

dmEvalCommon1.qryProgress.saveChanges();

strSQL1 = "SELECT * FROM NEW_GOAL";

resultsProgressNote = progressNoteStatement.executeQuery(strSQL1);

resultsProgressNote.next();

int goalsID = resultsProgressNote.getInt("NEXT_GLNO");

dmGoals.getDataModule().getParamSelPNDN().setInt("PDNO", progressNoteId);

dmGoals.getDataModule().getQryGoals().setAssignedNull("GLDNNO");

dmGoals.getDataModule().getQryGoals().setInt("GLPDNO", progressNoteId);

dmGoals.getDataModule().getQryGoals().setInt("GLNO", goalsID);

dmGoals.getDataModule().getQryGoals().saveChanges();

}

catch (Exception e) {

e.printStackTrace();

}

}

this.saveBodyPartSpecificData(mainEvalId, progressNoteId);

return progressNoteId;

}

boolean saveProgressNote(int status) {

boolean retval = true;

int progressNoteId = 0;

try {

progressNoteId = this.save(status);

}

catch (Exception e) {

e.printStackTrace();

}

finally {

try {

if (progressNoteStatement != null) {

progressNoteStatement.close();

}

}

catch (Exception f) {}

}

// FB 1703 - Save data for the patients admission in CPASII

if( status == DocumentStatusEnum.COMPLETE ) {

int pdno = this.dmEvalCommon1.getQryProgress().getInt("PDNO");

Date dischargeDate = new Date(System.currentTimeMillis());

String dischargeDestination = "";

String dischargeReason = "";

if( this.jdbRadioButton1.isSelected() ) {

dischargeReason = "DNR";

} else if( this.jdbRadioButton2.isSelected() ) {

dischargeReason = "PC";

} else if( this.jdbRadioButton3.isSelected() ) {

dischargeReason = "RTP";

} else if( this.jdbRadioButton4.isSelected() ) {

dischargeReason = "PHP";

} else if( this.jdbRadioButton5.isSelected() ) {

dischargeReason = "GM";

} else if( this.jdbRadioButton6.isSelected() ) {

dischargeReason = "NMB";

} else if( this.jdbRadioButton7.isSelected() ) {

dischargeReason = "PHP";

}

// FB 1784 - ADD CODING OF DESTINATION CODES HERE FOR NEW RADIO BUTTONS

if( this.jdbRadioButton8.isSelected() ) {

dischargeDestination = "CC";

} else if( this.jdbRadioButton9.isSelected() ) {

dischargeDestination = "HMI";

} else if( this.jdbRadioButton10.isSelected() ) {

dischargeDestination = "HML";

} else if( this.jdbRadioButton11.isSelected() ) {

dischargeDestination = "AL";

} else if( this.jdbRadioButton12.isSelected() ) {

dischargeDestination = "BC";

} else if( this.jdbRadioButton13.isSelected() ) {

dischargeDestination = "ICF";

} else if( this.jdbRadioButton14.isSelected() ) {

dischargeDestination = "SNF";

}

try {

this.dmEvalCommon1.saveDischargeInfo(pdno, dischargeDate, dischargeDestination, dischargeReason);

} catch (Exception e) {

e.printStackTrace();

}

}

if( status == DocumentStatusEnum.COMPLETE ) {

this.generateReport(evalType, progressNoteId);

Wait.manySec(10);

AssessmentReport assessmentReport = new AssessmentReport(mainEvalId, evalType.trim());

assessmentReport.previewReport();

}

return retval;

}

private void generateReport(String evalType, int progressNoteId) {

// generate report output here

if (evalType.trim().equals("Ankle")) {

AnkleEvalReport AnkleReport = new AnkleEvalReport(mainEvalId,

evalAnkle1.subEvalId);

AnkleReport.evaltype = "Re-Assessment";

AnkleReport.progressNoteId = progressNoteId;

AnkleReport.previewReport();

Wait.manySec(5);

AnkleProgressNoteReport ankleProgressNoteReport1 = new

AnkleProgressNoteReport(mainEvalId, progressNoteId);

ankleProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Cervical/Thoracic Spine")) {

CervicalEvalReport cervicalReport = new CervicalEvalReport(mainEvalId,

evalCervical1.subEvalId);

cervicalReport.evaltype = "Re-Assessment";

cervicalReport.progressNoteId = progressNoteId;

cervicalReport.previewReport();

Wait.manySec(5);

CervicalProgressNoteReport CervicalProgressNoteReport1 = new

CervicalProgressNoteReport(mainEvalId, progressNoteId);

CervicalProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Shoulder")) {

ShoulderEvalReport shoulderReport = new ShoulderEvalReport(mainEvalId,

evalShoulder1.subEvalId);

shoulderReport.evaltype = "Re-Assessment";

shoulderReport.progressNoteId = progressNoteId;

shoulderReport.previewReport();

Wait.manySec(5);

ShoulderProgressNoteReport shoulderProgressNoteReport1 = new

ShoulderProgressNoteReport(mainEvalId, progressNoteId);

shoulderProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Elbow")) {

ElbowEvalReport elbowReport = new ElbowEvalReport(mainEvalId,

evalElbow1.subEvalId);

elbowReport.evaltype = "Re-Assessment";

elbowReport.progressNoteId = progressNoteId;

elbowReport.previewReport();

Wait.manySec(5);

ElbowProgressNoteReport elbowProgressNoteReport1 = new

ElbowProgressNoteReport(mainEvalId, progressNoteId);

elbowProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Wound Care")) {

WoundCareEvalReport woundReport = new WoundCareEvalReport(mainEvalId,

evalWoundCare1.subEvalId);

woundReport.evaltype = "Re-Assessment";

woundReport.progressNoteId = progressNoteId;

woundReport.previewReport();

Wait.manySec(5);

WoundCareProgressNoteReport WoundCareProgressNoteReport1 = new

WoundCareProgressNoteReport(mainEvalId, progressNoteId);

WoundCareProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("General Eval")) {

GeneralEvalReport generalReport = new GeneralEvalReport(mainEvalId,

evalGeneral1.subEvalId);

generalReport.evaltype = "Re-Assessment";

generalReport.progressNoteId = progressNoteId;

generalReport.previewReport();

Wait.manySec(5);

GeneralProgressNoteReport GeneralProgressNoteReport1 = new

GeneralProgressNoteReport(mainEvalId, progressNoteId);

GeneralProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Hip")) {

HipEvalReport hipReport = new HipEvalReport(mainEvalId,

evalHip1.subEvalId);

hipReport.evaltype = "Re-Assessment";

hipReport.progressNoteId = progressNoteId;

hipReport.previewReport();

Wait.manySec(5);

HipProgressNoteReport hipProgressNoteReport1 = new HipProgressNoteReport(

mainEvalId, progressNoteId);

hipProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Knee")) {

KneeEvalReport kneeReport = new KneeEvalReport(mainEvalId,

evalKnee1.subEvalId);

kneeReport.evaltype = "Re-Assessment";

kneeReport.progressNoteId = progressNoteId;

kneeReport.previewReport();

Wait.manySec(5);

KneeProgressNoteReport kneeProgressNoteReport1 = new

KneeProgressNoteReport(mainEvalId, progressNoteId);

kneeProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Lumbar")) {

LumbarEvalReport lumbarReport = new LumbarEvalReport(mainEvalId,

evalLumbar1.subEvalId);

lumbarReport.evaltype = "Re-Assessment";

lumbarReport.progressNoteId = progressNoteId;

lumbarReport.previewReport();

Wait.manySec(5);

LumbarProgressNoteReport LumbarProgressNoteReport1 = new

LumbarProgressNoteReport(mainEvalId, progressNoteId);

LumbarProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Neurological")) {

NeuroEvalReport neuroReport = new NeuroEvalReport(mainEvalId,

evalNeurological1.subEvalId);

neuroReport.evaltype = "Re-Assessment";

neuroReport.progressNoteId = progressNoteId;

neuroReport.previewReport();

Wait.manySec(5);

NeuroProgressNoteReport NeuroProgressNoteReport1 = new

NeuroProgressNoteReport(mainEvalId, progressNoteId);

NeuroProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Splint")) {

SplintEvalReport splintReport = new SplintEvalReport(mainEvalId,

evalSplint1.subEvalId);

splintReport.evaltype = "Re-Assessment";

splintReport.progressNoteId = progressNoteId;

splintReport.previewReport();

Wait.manySec(5);

SplintProgressNoteReport SplintProgressNoteReport1 = new

SplintProgressNoteReport(mainEvalId, progressNoteId);

SplintProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("TMJ")) {

TMJEvalReport tmjReport = new TMJEvalReport(mainEvalId,

evalTMJ1.subEvalId);

tmjReport.evaltype = "Re-Assessment";

tmjReport.progressNoteId = progressNoteId;

tmjReport.previewReport();

Wait.manySec(5);

TMJProgressNoteReport TMJProgressNoteReport1 = new TMJProgressNoteReport(

mainEvalId, progressNoteId);

TMJProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Upper Extremity")) {

HandEvalReport handReport = new HandEvalReport(mainEvalId,

evalUpperExtremity1.subEvalId);

handReport.evaltype = "Re-Assessment";

handReport.progressNoteId = progressNoteId;

handReport.previewReport();

Wait.manySec(5);

HandProgressNoteReport HandProgressNoteReport1 = new

HandProgressNoteReport(mainEvalId, progressNoteId);

HandProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Vestibular")) {

VestibularEvalReport vestibularReport = new VestibularEvalReport(

mainEvalId, evalVestibular1.subEvalId);

vestibularReport.evaltype = "Re-Assessment";

vestibularReport.progressNoteId = progressNoteId;

vestibularReport.previewReport();

Wait.manySec(5);

VestibularProgressNoteReport VestibularProgressNoteReport1 = new

VestibularProgressNoteReport(mainEvalId, progressNoteId);

VestibularProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Women's Health")) {

WomensHealthEvalReport womensReport = new WomensHealthEvalReport(

mainEvalId, evalWomensHealth1.subEvalId);

womensReport.evaltype = "Re-Assessment";

womensReport.progressNoteId = progressNoteId;

womensReport.previewReport();

Wait.manySec(5);

WomensHealthProgressNoteReport WomensHealthProgressNoteReport1 = new

WomensHealthProgressNoteReport(mainEvalId, progressNoteId);

WomensHealthProgressNoteReport1.previewReport();

}

else if (evalType.trim().equals("Lymphedema")) {

LymphedemaEvalReport lymphedemaReport = new LymphedemaEvalReport(

mainEvalId, evalLymphedema1.subEvalId);

lymphedemaReport.evaltype = "Re-Assessment";

lymphedemaReport.progressNoteId = progressNoteId;

lymphedemaReport.previewReport();

Wait.manySec(5);

LymphedemaProgressNoteReport LymphedemaProgressNoteReport1 = new

LymphedemaProgressNoteReport(mainEvalId, progressNoteId);

LymphedemaProgressNoteReport1.previewReport();

}

return;

}

private void saveBodyPartSpecificData(int mainEvalId, int progressNoteId) {

if (evalType.trim().equals("Ankle")) {

evalAnkle1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Cervical/Thoracic Spine")) {

this.evalCervical1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Shoulder")) {

evalShoulder1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Elbow")) {

this.evalElbow1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Wound Care")) {

this.evalWoundCare1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("General Eval")) {

this.evalGeneral1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Hip")) {

this.evalHip1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Knee")) {

this.evalKnee1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Lumbar")) {

this.evalLumbar1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Neurological")) {

this.evalNeurological1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Splint")) {

this.evalSplint1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("TMJ")) {

this.evalTMJ1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Upper Extremity")) {

this.evalUpperExtremity1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Vestibular")) {

this.evalVestibular1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Women's Health")) {

this.evalWomensHealth1.saveData(mainEvalId, progressNoteId);

}

else if (evalType.trim().equals("Lymphedema")) {

this.evalLymphedema1.saveData(mainEvalId, progressNoteId);

}

return;

}

void saveButton_actionPerformed(ActionEvent e) {

boolean saved = false;

int response = JOptionPane.showConfirmDialog(this, "You have chosen to Save a Final version of\nthis Progress Note. If you choose Yes, you will\nNOT be able to make any additional updates\n to this document. Do you want to commit a\nFinal version of this Progress Note and mark the\nappointment as complete?", "Confirm Final Progress Note Save", JOptionPane.YES_NO_OPTION);

if( response == JOptionPane.YES_OPTION ) {

// save in-progress

setCursor(new Cursor(Cursor.WAIT_CURSOR));

saved = this.saveProgressNote(DocumentStatusEnum.COMPLETE);

setCursor(null);

}

if( saved == true ) {

this.setVisible(false);

this.dispose();

}

}