Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
  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;
  }