Update service master pasien

Penerapan parameter kdprofile untuk flag update nik pasien kepesertaan bpjs
This commit is contained in:
Salman Manoe 2023-10-18 08:56:19 +07:00
parent d0a3b67d6c
commit 6d3a1ecc42
2 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,7 @@ public interface PasienDao extends JpaRepository<Pasien, Integer> {
+ "and to_char(anak.tglLahir,'yyyy-MM-dd') between :tglAwal and :tglAkhir " + "order by ibu.namaPasien")
List<Map<String, Object>> findIbuAnak(@Param("tglAwal") String tglAwal, @Param("tglAkhir") String tglAkhir);
@Query(value = "select ps.* " + "from pasien_m ps " + "where ps.statusenabled is true "
@Query(value = "select ps.* " + "from pasien_m ps " + "where ps.statusenabled is true " + "and ps.kdProfile <> 1 "
+ "and (ps.nobpjs is not null " + "and trim(ps.nobpjs) <> '' " + "and ps.nobpjs <> '-' "
+ "and ps.nobpjs ~ '[0-9]+' " + "and length(ps.nobpjs) = 13) " + "and (ps.noidentitas is null "
+ "or length(ps.noidentitas) <> 16) " + "order by ps.statusenabled, ps.tgldaftar desc", nativeQuery = true)

View File

@ -17,4 +17,5 @@ import lombok.NoArgsConstructor;
public class PesertaBpjsDto {
private String noKartu;
private String nik;
private Short kdProfile;
}