}
//Get all diagnoses
query = "select DIAGNOSE.ID, DIAGNOSE.CODE, DIAGNOSE.NAME, DIAGNOSE.CODE, DIAGNOSE.LANGUAGE, DIAGNOSE.SORTORDER,DIAGNOSE_REL.DIAGNOSE_GROUP from diagnose, diagnose_rel where diagnose.ID=diagnose_rel.DIAGNOSE and diagnose.STATUS=1 and diagnose_rel.STATUS=1 AND diagnose.LANGUAGE="+currentLanguage+" ORDER BY diagnose.SORTORDER";
rs = db.executeQuery(query);
Integer groupId = new Integer(-1);
while(rs.next()) {
groupId = new Integer(rs.getInt("DIAGNOSE_REL.DIAGNOSE_GROUP"));