2021-01-07 11:34:56 +07:00

20 lines
1016 B
Java

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.PapKeluhanUtama;
@Repository("PengkajianPerawatanDao")
public interface PengkajianPerawatanDao extends PagingAndSortingRepository<PapKeluhanUtama, String>{
@Query("select a.tglResep, a.noResep, b.jumlah, b.hargaSatuan, b.produkId,c.noRegistrasi, d.noCm,d.namaPasien,d.tglLahir,d.jenisKelamin.jenisKelamin, a.ruanganTujuan.namaRuangan, b.produkId from StrukResep a, PelayananPasien b, PasienDaftar c, Pasien d, MapGenerikToProduk e, Generik f where a.strukOrderId = b.strukOrderId and a.pasien.pasienDaftarId = c.noRec and c.pasienId = d.id and b.produkId = e.produkId and e.generikId = f.id")
List<Object[]> findPengkajianKeperawatan(@Param("noCm") String noCm);
}