package com.jasamedika.medifirst2000.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.jasamedika.medifirst2000.entities.PernahDirawatDetail;

/**
 * Repository class for Pasien
 * 
 * @author Askur
 */
@Repository("PernahDiPeriksaDetailDao")
public interface PernahDiPeriksaDetailDao extends PagingAndSortingRepository<PernahDirawatDetail, String> {
	
	@Query("select p from PernahDirawatDetail p where p.riwayatKesehatan.noRec=:noRec ")	
	List<PernahDirawatDetail> findByRiwayatPemeriksaan(@Param("noRec")  String noRec);

	
}
