Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

test_user 1 year ago
parent
commit
072d9596f8
1 changed files with 19 additions and 1 deletions
  1. 19 1
      controllers/sg/his_api_controller.go

+ 19 - 1
controllers/sg/his_api_controller.go View File

6439
 	Signtype    string `json:"signtype"`
6439
 	Signtype    string `json:"signtype"`
6440
 	WarnMsg     string `json:"warn_msg"`
6440
 	WarnMsg     string `json:"warn_msg"`
6441
 }
6441
 }
6442
+type ResultMemo struct {
6443
+	InsuAdmdvs string `json:"insuAdmdvs"`
6444
+}
6445
+
6446
+//[{"begntime":"2022-01-01 00:00:00","endtime":"2022-12-31 00:00:00","memo":"{\"matIdetCode\":\"20\",\"insuAdmdvs\":\"350481\"}","psn_idet_type":"23","psn_type_lv":null}]
6447
+type ResultIDInfo struct {
6448
+	Begntime string     `json:"begntime"`
6449
+	Endtime  string     `json:"endtime"`
6450
+	Memo     ResultMemo `json:"memo"`
6451
+}
6442
 
6452
 
6443
 type ResultFive struct {
6453
 type ResultFive struct {
6444
 	Balc                   float64 `json:"balc"`
6454
 	Balc                   float64 `json:"balc"`
7658
 				insuplc_admdvs_temp = insuplc_admdvs
7668
 				insuplc_admdvs_temp = insuplc_admdvs
7659
 
7669
 
7660
 			}
7670
 			}
7661
-
7671
+			if miConfig.MdtrtareaAdmvs == "350500" {
7672
+				var rf []*ResultIDInfo
7673
+				json.Unmarshal([]byte(idetinfoStr), &rf)
7674
+				if len(rf) > 0 {
7675
+					if len(rf[0].Memo.InsuAdmdvs) > 0 {
7676
+						insuplc_admdvs_temp = rf[0].Memo.InsuAdmdvs
7677
+					}
7678
+				}
7679
+			}
7662
 			if miConfig.MdtrtareaAdmvs == "421300" {
7680
 			if miConfig.MdtrtareaAdmvs == "421300" {
7663
 				hb_doctor_info, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, patientPrescription.DoctorId)
7681
 				hb_doctor_info, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, patientPrescription.DoctorId)
7664
 
7682