return null;
}
public ClinicalInformation getClinicalInformation() {
ClinicalInformation info = new ClinicalInformation();
info.setInformationDate(this.jXDateAnalysis.getDate());
Integer age = 0;
if ((this.jTxtAge.isEditValid()) && (!this.jTxtAge.getText().isEmpty())) {
try {
age = Integer.parseInt(this.jTxtAge.getText());
} catch (NumberFormatException e) {
age = 0;
}
}
info.setYears(age);
Integer height = 0;
if ((this.jTxtHeight.isEditValid()) && (!this.jTxtHeight.getText().isEmpty())) {
try {
height = Integer.parseInt(this.jTxtHeight.getText());
} catch (NumberFormatException e) {
height = 0;
}
}
info.setHeight(height);
Float weight = 0f;
if ((this.jTxtWeight.isEditValid()) && (!this.jTxtWeight.getText().isEmpty())) {
try {
String value = this.jTxtWeight.getText();
value = value.replace(",", ".");
weight = Float.parseFloat(value);
} catch (NumberFormatException e) {
weight = 0f;
}
}
info.setWeight(weight);
Float hdl = 0f;
if ((this.jTxtHDL.isEditValid()) && (!this.jTxtHDL.getText().isEmpty())) {
try {
String value = this.jTxtHDL.getText();
value = value.replace(",", ".");
hdl = Float.parseFloat(value);
} catch (NumberFormatException e) {
hdl = 0f;
}
}
info.setHdl(hdl);
Float ldl = 0f;
if ((this.jTxtLDL.isEditValid()) && (!this.jTxtLDL.getText().isEmpty())) {
try {
String value = this.jTxtLDL.getText();
value = value.replace(",", ".");
ldl = Float.parseFloat(value);
} catch (NumberFormatException e) {
ldl = 0f;
}
}
info.setLdl(ldl);
Float totalCholesterol = 0f;
if ((this.jTxtTotal.isEditValid()) && (!this.jTxtTotal.getText().isEmpty())) {
try {
String value = this.jTxtTotal.getText();
value = value.replace(",", ".");
totalCholesterol = Float.parseFloat(value);
} catch (NumberFormatException e) {
totalCholesterol = 0f;
}
}
info.setTotalCholesterol(totalCholesterol);
Float glucose = 0f;
if ((this.jTxtGlucemy.isEditValid()) && (!this.jTxtGlucemy.getText().isEmpty())) {
try {
String value = this.jTxtGlucemy.getText();
value = value.replace(",", ".");
glucose = Float.parseFloat(value);
} catch (NumberFormatException e) {
glucose = 0f;
}
}
info.setGlucemic(glucose);
Float triglycerides = 0f;
if ((this.jTxtTriglycerides.isEditValid()) && (!this.jTxtTriglycerides.getText().isEmpty())) {
try {
String value = this.jTxtTriglycerides.getText();
value = value.replace(",", ".");
triglycerides = Float.parseFloat(value);
} catch (NumberFormatException e) {
triglycerides = 0f;
}
}
info.setTriglycerides(triglycerides);
Float ps = 0f;
if ((this.jTxtPS.isEditValid()) && (!this.jTxtPS.getText().isEmpty())) {
try {
String value = this.jTxtPS.getText();
value = value.replace(",", ".");
ps = Float.parseFloat(value);
} catch (NumberFormatException e) {
ps = 0f;
}
}
info.setSystolicPressure(ps);
Float pd = 0f;
if ((this.jTxtPD.isEditValid()) && (!this.jTxtPD.getText().isEmpty())) {
try {
String value = this.jTxtPD.getText();
value = value.replace(",", ".");
pd = Float.parseFloat(value);
} catch (NumberFormatException e) {
pd = 0f;
}
}
info.setDiastolicPressure(pd);
return info;
}