|
@@ -1664,7 +1664,7 @@ func MobileGetMonitorsWithPatient(orgID int64, keyword string, page int) ([]*mod
|
1664
|
1664
|
}
|
1665
|
1665
|
|
1666
|
1666
|
func GetPatientByKeyWord(orgID int64, keywords string) (patient []*models.Patients, err error) {
|
1667
|
|
- db := readDb.Model(&models.Patients{}).Where("user_org_id=? and status=1", orgID)
|
|
1667
|
+ db := readDb.Model(&models.Patients{}).Where("user_org_id=? and status=1 and lapseto = 1", orgID)
|
1668
|
1668
|
|
1669
|
1669
|
if len(keywords) > 0 {
|
1670
|
1670
|
likekey := "%" + keywords + "%"
|