|
@@ -982,3 +982,48 @@ func (this *NewDialysisApiController) ToSearchePatient() {
|
982
|
982
|
"patient": patient,
|
983
|
983
|
})
|
984
|
984
|
}
|
|
985
|
+
|
|
986
|
+func (this *NewDialysisApiController) SearchallPatient() {
|
|
987
|
+ keyword := this.GetString("keyword")
|
|
988
|
+ fmt.Print("关键字", keyword)
|
|
989
|
+ adminUser := this.GetMobileAdminUserInfo()
|
|
990
|
+ orgid := adminUser.Org.Id
|
|
991
|
+ patient, err := service.SearchallPatient(keyword, orgid)
|
|
992
|
+ if err != nil {
|
|
993
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
994
|
+ return
|
|
995
|
+ }
|
|
996
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
997
|
+ "patient": patient,
|
|
998
|
+ })
|
|
999
|
+}
|
|
1000
|
+
|
|
1001
|
+func (this *NewDialysisApiController) GetSearchallBlood() {
|
|
1002
|
+ keyword := this.GetString("keyword")
|
|
1003
|
+ fmt.Print("关键字", keyword)
|
|
1004
|
+ adminUser := this.GetMobileAdminUserInfo()
|
|
1005
|
+ orgid := adminUser.Org.Id
|
|
1006
|
+ bloodPatient, err := service.GetSearchallBlood(keyword, orgid)
|
|
1007
|
+ if err != nil {
|
|
1008
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
1009
|
+ return
|
|
1010
|
+ }
|
|
1011
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1012
|
+ "bloodPatient": bloodPatient,
|
|
1013
|
+ })
|
|
1014
|
+}
|
|
1015
|
+
|
|
1016
|
+func (this *NewDialysisApiController) GetSlowSearchePatient() {
|
|
1017
|
+ keyword := this.GetString("keyword")
|
|
1018
|
+ fmt.Print("关键字", keyword)
|
|
1019
|
+ adminUser := this.GetMobileAdminUserInfo()
|
|
1020
|
+ orgid := adminUser.Org.Id
|
|
1021
|
+ slowPatient, err := service.GetSlowSearchePatient(keyword, orgid)
|
|
1022
|
+ if err != nil {
|
|
1023
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
1024
|
+ return
|
|
1025
|
+ }
|
|
1026
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1027
|
+ "slowPatient": slowPatient,
|
|
1028
|
+ })
|
|
1029
|
+}
|