public void overwriteExisting(ILabResult labResult) { labResult.setComment(comment); labResult.setResult(result); // pathologic check takes place in labResult if it is numeric if (labItem.getTyp() == LabItemTyp.NUMERIC) { flags = labResult.getFlags(); } setFields(labResult); }
public ILabResult persist() { // determine gender, set refVal String refVal; if (Gender.MALE == patient.getGender()) { refVal = refMale; } else { refVal = refFemale; } ILabResult labResult = labImportUtil.createLabResult(patient, date, labItem, result, comment, refVal, origin); // pathologic check takes place in labResult if it is numeric if (labItem.getTyp() == LabItemTyp.NUMERIC) { flags = labResult.getFlags(); } setFields(labResult); return labResult; }