package com.gnx.telemedicine.repository;

import com.gnx.telemedicine.model.AccountingOfDisclosure;
import com.gnx.telemedicine.model.Patient;
import com.gnx.telemedicine.model.UserModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.Instant;
import java.util.List;
import java.util.UUID;

@Repository
public interface AccountingOfDisclosureRepository extends JpaRepository<AccountingOfDisclosure, UUID> {
    List<AccountingOfDisclosure> findByPatient(Patient patient);
    
    List<AccountingOfDisclosure> findByPatientAndDisclosureDateBetween(
        Patient patient, Instant startDate, Instant endDate
    );
    
    List<AccountingOfDisclosure> findByUser(UserModel user);
}

