public RTTStatusPointVoCollection listTargetRTTStatusPoints(RTTStatusPointVo currentRTT) {
    if (currentRTT == null) {
      return listRTTStatusPoints(false);
    }
    String hql =
        "Select targetRTT from RTTStatusPoint as rTT left join rTT.children as targetRTT where rTT.id = "
            + currentRTT.getID_RTTStatusPoint()
            + "order by targetRTT.nationalCode asc"; // WDEV-18594

    return RTTStatusPointVoAssembler.createRTTStatusPointVoCollectionFromRTTStatusPoint(
        getDomainFactory().find(hql));
  }
  public ims.pathways.vo.RTTStatusPointVoCollection listRTTStatusPoints(
      Boolean excludeDeclinedTreatmentCodes) {
    DomainFactory fact = getDomainFactory();
    StringBuilder hqlMain = new StringBuilder();
    hqlMain.append("select rt from RTTStatusPoint as rt");
    if (Boolean.TRUE.equals(excludeDeclinedTreatmentCodes)) {
      hqlMain.append(
          " WHERE nationalco NOT IN"
              + "("
              + DECISION_NOT_TO_TREAT_NATIONAL_CODE
              + ", "
              + PATIENT_DECLINED_OFFERED_TREATMENT
              + ", "
              + PATIENT_DIED_BEFORE_TREATMENT
              + " )");
    }
    hqlMain.append(" ORDER BY rt.nationalCode ASC"); // WDEV-20640

    return RTTStatusPointVoAssembler.createRTTStatusPointVoCollectionFromRTTStatusPoint(
        fact.find(hqlMain.toString()));
  }