public PendingTransfersLiteVoCollection listPendingTransfersInByWard(LocationRefVo destWard) {
    if (destWard == null || destWard.getID_Location() == null)
      throw new CodingRuntimeException(
          "destWard is null or id not provided in method listPendingTransfersInByWard");

    String hql =
        "from PendingTransfers pend where pend.destinationWard.id = :idWard and pend.currentStatus = :status";
    List pendingTrans =
        getDomainFactory()
            .find(
                hql,
                new String[] {"idWard", "status"},
                new Object[] {destWard.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler
        .createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
  }
  public PendingTransfersLiteVoCollection listPendingTransfersOutByWard(
      LocationRefVo currentLocation) {
    if (currentLocation == null || currentLocation.getID_Location() == null)
      throw new CodingRuntimeException(
          "currentLocation is null or id not provided in method listPendingTransfersOutByWard");

    String hql =
        "from PendingTransfers pend where pend.inpatientEpisode.pasEvent.location.id = :idWard and pend.currentStatus = :status order by pend.inpatientEpisode.pasEvent.patient.name.upperSurname asc, pend.inpatientEpisode.pasEvent.patient.name.upperForename asc";
    List pendingTrans =
        getDomainFactory()
            .find(
                hql,
                new String[] {"idWard", "status"},
                new Object[] {
                  currentLocation.getID_Location(), getDomLookup(TransferStatus.PENDING)
                });
    return PendingTransfersLiteVoAssembler
        .createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
  }