|
@@ -9,6 +9,7 @@ import (
|
9
|
9
|
"gdyb/service"
|
10
|
10
|
"gdyb/utils"
|
11
|
11
|
"github.com/astaxie/beego"
|
|
12
|
+ "github.com/axgle/mahonia"
|
12
|
13
|
"math/rand"
|
13
|
14
|
|
14
|
15
|
|
|
@@ -272,6 +273,7 @@ func SZHisManagerApiRegistRouters() {
|
272
|
273
|
beego.Router("/sz/api/register/get", &SZHisApiController{}, "get:GetRegisterInfo")
|
273
|
274
|
|
274
|
275
|
|
|
276
|
+
|
275
|
277
|
|
276
|
278
|
beego.Router("/sz/api/settle/get", &SZHisApiController{}, "get:GetSettleInfo")
|
277
|
279
|
|
|
@@ -283,9 +285,10 @@ func SZHisManagerApiRegistRouters() {
|
283
|
285
|
beego.Router("sz/api/refundnumber/get", &SZHisApiController{}, "get:RefundNumber")
|
284
|
286
|
|
285
|
287
|
beego.Router("/sz/api/monthrefund/get", &SZHisApiController{}, "get:MonthRefund")
|
|
288
|
+
|
286
|
289
|
|
287
|
290
|
beego.Router("/sz/api/settle/query", &SZHisApiController{}, "get:GetSettleAccounts")
|
288
|
|
-
|
|
291
|
+ beego.Router("/sz/api/detail/upload", &SZHisApiController{}, "get:GetUploadDetail")
|
289
|
292
|
beego.Router("/sz/api/detail/cancel", &SZHisApiController{}, "get:CancelOrderDetail")
|
290
|
293
|
|
291
|
294
|
|
|
@@ -347,12 +350,12 @@ func (c *SZHisApiController) ReadCard() {
|
347
|
350
|
if ret4 == 0 {
|
348
|
351
|
patient, _ := service.GetPatientByNumber(id_card_number, adminInfo.CurrentOrgId)
|
349
|
352
|
if patient.ID == 0 {
|
350
|
|
- patient.HealthCareNo = health_card_no
|
351
|
353
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNoPateintException)
|
352
|
354
|
return
|
353
|
355
|
} else {
|
354
|
356
|
c.ServeSuccessJSON(map[string]interface{}{
|
355
|
|
- "patient": patient,
|
|
357
|
+ "patient": patient,
|
|
358
|
+ "health_card_no": health_card_no,
|
356
|
359
|
})
|
357
|
360
|
}
|
358
|
361
|
} else {
|
|
@@ -806,10 +809,10 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
806
|
809
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeIDCartNo)
|
807
|
810
|
return
|
808
|
811
|
}
|
809
|
|
-
|
|
812
|
+
|
|
813
|
+ doctorDepartment, _ := service.GetDepartMentDetail(department)
|
810
|
814
|
adminRole, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, admin_user_id)
|
811
|
815
|
his, _ := service.GetHisPatientInfo(adminInfo.CurrentOrgId, patient_id, theTime.Unix())
|
812
|
|
-
|
813
|
816
|
var custom_code string
|
814
|
817
|
var custom_project_name string
|
815
|
818
|
var allPrice float64
|
|
@@ -844,42 +847,36 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
844
|
847
|
|
845
|
848
|
break
|
846
|
849
|
}
|
847
|
|
-
|
848
|
850
|
if his.ID == 0 {
|
849
|
|
-
|
850
|
|
- var doctor_name string
|
851
|
|
- var doctor_code string
|
|
851
|
+ var opera_name string
|
|
852
|
+ var opera_code string
|
852
|
853
|
if adminRole.ID == 0 {
|
853
|
|
-
|
854
|
|
- doctor_name = "管理员"
|
855
|
|
- doctor_code = "01"
|
856
|
|
-
|
|
854
|
+ opera_name = "管理员"
|
|
855
|
+ opera_code = "01"
|
857
|
856
|
} else {
|
858
|
|
- doctor_name = adminRole.UserName
|
859
|
|
- doctor_code = strconv.FormatInt(admin_user_id, 10)
|
860
|
|
-
|
|
857
|
+ opera_name = adminRole.UserName
|
|
858
|
+ opera_code = strconv.FormatInt(admin_user_id, 10)
|
861
|
859
|
}
|
862
|
860
|
month := time.Unix(1557042972, 0).Format("1")
|
863
|
861
|
year := time.Now().Format("2006")
|
864
|
862
|
month = time.Now().Format("01")
|
865
|
863
|
day := time.Now().Format("02")
|
866
|
|
-
|
867
|
864
|
|
868
|
|
-
|
869
|
865
|
number := miConfig.Code + year + month + day +
|
870
|
866
|
fmt.Sprintf("%07v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(10000000))
|
871
|
867
|
mz_number := miConfig.Code + year + month + day +
|
872
|
868
|
fmt.Sprintf("%07v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(10000000))
|
873
|
869
|
|
874
|
870
|
|
875
|
|
- yiliao_number, id_card_number, verifyCode, version_code, _, ret4 := ReadBasCardGetNumber("MZ002" + "|" + number + "|" + miConfig.Code + "|")
|
|
871
|
+ yiliao_number, id_card_number, verifyCode, version_code, health_card_no, _, ret4 := ReadBasCardGetNumber("MZ002" + "|" + number + "|" + miConfig.Code + "|")
|
876
|
872
|
fmt.Println(yiliao_number)
|
877
|
873
|
fmt.Println(id_card_number)
|
878
|
874
|
fmt.Println(verifyCode)
|
879
|
875
|
fmt.Println(version_code)
|
880
|
876
|
fmt.Println(ret4)
|
881
|
877
|
|
882
|
|
- dept_code := "0306"
|
|
878
|
+ dept_code := doctorDepartment.Number
|
|
879
|
+
|
883
|
880
|
is_yidi = 1
|
884
|
881
|
tempPatient, _ := service.GetPatientByNumber(id_card_number, adminInfo.CurrentOrgId)
|
885
|
882
|
|
|
@@ -891,7 +888,7 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
891
|
888
|
if is_yidi == 1 {
|
892
|
889
|
|
893
|
890
|
|
894
|
|
- resp_result := service.SzybMZ002(doctor_name, doctor_code, miConfig.Code, dept_code, yiliao_number, verifyCode, number, mz_number, version_code, custom_code, custom_project_name, allPrice, medical_care)
|
|
891
|
+ resp_result := service.SzybMZ002(opera_name, opera_code, miConfig.Code, dept_code, yiliao_number, verifyCode, number, mz_number, version_code, custom_code, custom_project_name, allPrice, medical_care)
|
895
|
892
|
var dat map[string]interface{}
|
896
|
893
|
if err := json.Unmarshal([]byte(resp_result), &dat); err == nil {
|
897
|
894
|
fmt.Println(dat)
|
|
@@ -934,6 +931,7 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
934
|
931
|
YiliaoNumber: yiliao_number,
|
935
|
932
|
MzNumber: number,
|
936
|
933
|
Number: mz_number,
|
|
934
|
+ PsnNo: health_card_no,
|
937
|
935
|
}
|
938
|
936
|
service.CreateHisPatientTwo(&his)
|
939
|
937
|
c.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -955,7 +953,7 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
955
|
953
|
|
956
|
954
|
|
957
|
955
|
|
958
|
|
- resp_result := service.SzybMZ002(doctor_name, doctor_code, miConfig.Code, "0305", yiliao_number, verifyCode, number, mz_number, version_code, custom_code, custom_project_name, allPrice, medical_care)
|
|
956
|
+ resp_result := service.SzybMZ002(opera_name, opera_code, miConfig.Code, "0305", yiliao_number, verifyCode, number, mz_number, version_code, custom_code, custom_project_name, allPrice, medical_care)
|
959
|
957
|
var dat map[string]interface{}
|
960
|
958
|
if err := json.Unmarshal([]byte(resp_result), &dat); err == nil {
|
961
|
959
|
fmt.Println(dat)
|
|
@@ -1000,6 +998,7 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
1000
|
998
|
YiliaoNumber: yiliao_number,
|
1001
|
999
|
MzNumber: number,
|
1002
|
1000
|
Number: mz_number,
|
|
1001
|
+ PsnNo: health_card_no,
|
1003
|
1002
|
}
|
1004
|
1003
|
service.CreateHisPatientTwo(&his)
|
1005
|
1004
|
c.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -1020,7 +1019,7 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
1020
|
1019
|
|
1021
|
1020
|
|
1022
|
1021
|
if is_yidi == 1 {
|
1023
|
|
- resp_result := service.SzybMZ002(doctor_name, doctor_code, miConfig.Code, "0305", yiliao_number, verifyCode, number, mz_number, version_code, custom_code, custom_project_name, allPrice, medical_care)
|
|
1022
|
+ resp_result := service.SzybMZ002(opera_name, opera_code, miConfig.Code, "0305", yiliao_number, verifyCode, number, mz_number, version_code, custom_code, custom_project_name, allPrice, medical_care)
|
1024
|
1023
|
var dat map[string]interface{}
|
1025
|
1024
|
if err := json.Unmarshal([]byte(resp_result), &dat); err == nil {
|
1026
|
1025
|
fmt.Println(dat)
|
|
@@ -1065,6 +1064,7 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
1065
|
1064
|
YiliaoNumber: yiliao_number,
|
1066
|
1065
|
MzNumber: number,
|
1067
|
1066
|
Number: mz_number,
|
|
1067
|
+ PsnNo: health_card_no,
|
1068
|
1068
|
}
|
1069
|
1069
|
service.CreateHisPatientTwo(&his)
|
1070
|
1070
|
c.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -1081,7 +1081,7 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
1081
|
1081
|
} else {
|
1082
|
1082
|
|
1083
|
1083
|
|
1084
|
|
- resp_result := service.SzybMZ002(doctor_name, doctor_code, miConfig.Code, "0305", yiliao_number, verifyCode, number, mz_number, version_code, custom_code, custom_project_name, allPrice, medical_care)
|
|
1084
|
+ resp_result := service.SzybMZ002(opera_name, opera_code, miConfig.Code, "0305", yiliao_number, verifyCode, number, mz_number, version_code, custom_code, custom_project_name, allPrice, medical_care)
|
1085
|
1085
|
var dat map[string]interface{}
|
1086
|
1086
|
if err := json.Unmarshal([]byte(resp_result), &dat); err == nil {
|
1087
|
1087
|
fmt.Println(dat)
|
|
@@ -1126,6 +1126,7 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
1126
|
1126
|
YiliaoNumber: yiliao_number,
|
1127
|
1127
|
MzNumber: number,
|
1128
|
1128
|
Number: mz_number,
|
|
1129
|
+ PsnNo: health_card_no,
|
1129
|
1130
|
}
|
1130
|
1131
|
service.CreateHisPatientTwo(&his)
|
1131
|
1132
|
c.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -1152,7 +1153,6 @@ func (c *SZHisApiController) GetRegisterInfo() {
|
1152
|
1153
|
}
|
1153
|
1154
|
|
1154
|
1155
|
func (c *SZHisApiController) RefundNumber() {
|
1155
|
|
- order_id, _ := c.GetInt64("order_id")
|
1156
|
1156
|
record_time := c.GetString("record_time")
|
1157
|
1157
|
patient_id, _ := c.GetInt64("patient_id")
|
1158
|
1158
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
@@ -1167,12 +1167,7 @@ func (c *SZHisApiController) RefundNumber() {
|
1167
|
1167
|
}
|
1168
|
1168
|
recordDateTime := theTime.Unix()
|
1169
|
1169
|
fmt.Println(recordDateTime)
|
1170
|
|
- var order models.HisOrder
|
1171
|
|
- order, _ = service.GetHisOrderByID(order_id)
|
1172
|
|
- if order.ID == 0 {
|
1173
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHisOrderNoExistParamWrong)
|
1174
|
|
- return
|
1175
|
|
- }
|
|
1170
|
+
|
1176
|
1171
|
his, _ := service.GetHisPatientInfo(adminUser.CurrentOrgId, patient_id, theTime.Unix())
|
1177
|
1172
|
roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
1178
|
1173
|
miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
|
@@ -1201,7 +1196,7 @@ func (c *SZHisApiController) RefundNumber() {
|
1201
|
1196
|
verifyCode, version_code := ReadCardGetCode("JY002" + "|" + number + "|" + miConfig.Code)
|
1202
|
1197
|
config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
|
1203
|
1198
|
if config.IsOpen == 1 {
|
1204
|
|
- result := service.SzybJY002(doctor_name, doctor_code, miConfig.Code, his.MzNumber, order.Number, verifyCode, number, version_code)
|
|
1199
|
+ result := service.SzybJY002(doctor_name, doctor_code, miConfig.Code, his.MzNumber, his.Number, verifyCode, number, version_code)
|
1205
|
1200
|
var dat map[string]interface{}
|
1206
|
1201
|
if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
1207
|
1202
|
fmt.Println(dat)
|
|
@@ -1702,6 +1697,13 @@ func (c *SZHisApiController) GetSettleInfo() {
|
1702
|
1697
|
|
1703
|
1698
|
patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, patient_id, recordDateTime)
|
1704
|
1699
|
|
|
1700
|
+ sick, _ := service.FindSickById(patientPrescription.SickType)
|
|
1701
|
+
|
|
1702
|
+ if sick.ID == 0 {
|
|
1703
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamSickTypeWrong)
|
|
1704
|
+ return
|
|
1705
|
+ }
|
|
1706
|
+
|
1705
|
1707
|
adminRole_two, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, patientPrescription.DoctorId)
|
1706
|
1708
|
|
1707
|
1709
|
adminRole, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
|
@@ -1764,7 +1766,9 @@ func (c *SZHisApiController) GetSettleInfo() {
|
1764
|
1766
|
if len(subItem.HisProject.MedicalCode) > 0 {
|
1765
|
1767
|
detItemFeeSumamt, _ := strconv.ParseFloat(fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count)), 64)
|
1766
|
1768
|
|
1767
|
|
- count, _ := strconv.ParseFloat(fmt.Sprintf("%f", subItem.Count), 64)
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+ count, _ := strconv.ParseFloat(strconv.FormatInt(subItem.Count, 10), 64)
|
1768
|
1772
|
temp := strings.Split(subItem.FeedetlSn, "-")
|
1769
|
1773
|
newFl := fmt.Sprintf("%07v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(10000000)) + "-" + temp[1] + "-" + temp[2]
|
1770
|
1774
|
|
|
@@ -1974,13 +1978,13 @@ func (c *SZHisApiController) GetSettleInfo() {
|
1974
|
1978
|
}
|
1975
|
1979
|
}
|
1976
|
1980
|
|
1977
|
|
- yiliao_number, id_card_number, verifyCode, version_code, _, ret4 := ReadBasCardGetNumber("FY005" + "|" + number + "|" + miConfig.Code + "|")
|
|
1981
|
+ yiliao_number, id_card_number, verifyCode, version_code, health_card_no, _, ret4 := ReadBasCardGetNumber("FY005" + "|" + number + "|" + miConfig.Code + "|")
|
|
1982
|
+
|
1978
|
1983
|
if ret4 == 0 {
|
1979
|
1984
|
|
1980
|
1985
|
tempPatient, _ := service.GetPatientByNumber(id_card_number, adminUser.CurrentOrgId)
|
1981
|
1986
|
if tempPatient.ID == patient_id {
|
1982
|
|
-
|
1983
|
|
- result_three := service.SzybFY005(doctor_name, doctor_code, miConfig.Code, total, yiliao_number, verifyCode, number, mz_number, version_code, drug_doctor_code, drug_doctor_name, his.MedicalTreatmentType)
|
|
1987
|
+ result_three := service.SzybFY005(doctor_name, doctor_code, miConfig.Code, total, yiliao_number, verifyCode, number, mz_number, version_code, drug_doctor_code, drug_doctor_name, his.MedicalTreatmentType, sick.CountryCode)
|
1984
|
1988
|
var dat map[string]interface{}
|
1985
|
1989
|
if err := json.Unmarshal([]byte(result_three), &dat); err == nil {
|
1986
|
1990
|
fmt.Println(dat)
|
|
@@ -2000,6 +2004,7 @@ func (c *SZHisApiController) GetSettleInfo() {
|
2000
|
2004
|
order.PayWay = pay_way
|
2001
|
2005
|
order.PayPrice = pay_price
|
2002
|
2006
|
order.PayCardNo = pay_card_no
|
|
2007
|
+ order.PsnNo = health_card_no
|
2003
|
2008
|
order.DiscountPrice = discount_price
|
2004
|
2009
|
order.PreferentialPrice = preferential_price
|
2005
|
2010
|
order.RealityPrice = reality_price
|
|
@@ -2743,6 +2748,17 @@ func (c *SZHisApiController) Refund() {
|
2743
|
2748
|
|
2744
|
2749
|
|
2745
|
2750
|
config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
|
|
2751
|
+ order_infos, _ := service.GetHisOrderInfoByNumber(order.Number)
|
|
2752
|
+ var customs []*models.CustomDetail
|
|
2753
|
+
|
|
2754
|
+ for _, item := range order_infos {
|
|
2755
|
+ cus := &models.CustomDetail{
|
|
2756
|
+ PrescriptionNumber: item.OrderNumber,
|
|
2757
|
+ ChargeSerialNumber: item.FeedetlSn,
|
|
2758
|
+ }
|
|
2759
|
+ customs = append(customs, cus)
|
|
2760
|
+ }
|
|
2761
|
+
|
2746
|
2762
|
if config.IsOpen == 1 {
|
2747
|
2763
|
|
2748
|
2764
|
result := service.SzybJY002(doctor_name, doctor_code, miConfig.Code, order.OrgSetlNumber, order.MzNumber, verifyCode, number, version_code)
|
|
@@ -2764,6 +2780,7 @@ func (c *SZHisApiController) Refund() {
|
2764
|
2780
|
if res.Transreturncode == "00000000" {
|
2765
|
2781
|
service.UpdataOrderlog(order_id, adminUser.CurrentOrgId, result)
|
2766
|
2782
|
service.UpdataOrderStatusSZ(order_id, order.Number, adminUser.CurrentOrgId, his.MzNumber, his.Number)
|
|
2783
|
+ service.UpdataOrderInfoStatus(order.ID, order.Number, adminUser.CurrentOrgId)
|
2767
|
2784
|
c.ServeSuccessJSON(map[string]interface{}{
|
2768
|
2785
|
"msg": "退费成功",
|
2769
|
2786
|
})
|
|
@@ -2874,9 +2891,50 @@ func (c *SZHisApiController) GetSettleAccounts() {
|
2874
|
2891
|
|
2875
|
2892
|
patient, _ := service.GetPatientByIDTwo(adminUser.CurrentOrgId, patient_id)
|
2876
|
2893
|
|
2877
|
|
- patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, patient_id, recordDateTime)
|
|
2894
|
+ patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, patient_id, order.SettleAccountsDate)
|
2878
|
2895
|
adminRole_two, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, patientPrescription.DoctorId)
|
2879
|
2896
|
|
|
2897
|
+ his, _ := service.GetHisPatientInfo(adminUser.CurrentOrgId, patient_id, order.SettleAccountsDate)
|
|
2898
|
+ yiliao_leibie := ""
|
|
2899
|
+
|
|
2900
|
+ switch his.MedicalTreatmentType {
|
|
2901
|
+ case 11:
|
|
2902
|
+ yiliao_leibie = "普通门诊"
|
|
2903
|
+ break
|
|
2904
|
+ case 12:
|
|
2905
|
+ yiliao_leibie = "家庭通道"
|
|
2906
|
+ break
|
|
2907
|
+ case 13:
|
|
2908
|
+ yiliao_leibie = "门诊大病"
|
|
2909
|
+ break
|
|
2910
|
+ case 14:
|
|
2911
|
+ yiliao_leibie = "重疾特药"
|
|
2912
|
+ break
|
|
2913
|
+ case 15:
|
|
2914
|
+ yiliao_leibie = "门诊慢病"
|
|
2915
|
+ break
|
|
2916
|
+ case 16:
|
|
2917
|
+ yiliao_leibie = "门诊特检"
|
|
2918
|
+ break
|
|
2919
|
+ case 17:
|
|
2920
|
+ yiliao_leibie = "健康体检"
|
|
2921
|
+ break
|
|
2922
|
+ case 18:
|
|
2923
|
+ yiliao_leibie = "预防接种"
|
|
2924
|
+ break
|
|
2925
|
+ case 19:
|
|
2926
|
+ yiliao_leibie = "门诊输血"
|
|
2927
|
+ break
|
|
2928
|
+ case 91:
|
|
2929
|
+ yiliao_leibie = "新冠肺炎门诊"
|
|
2930
|
+ break
|
|
2931
|
+
|
|
2932
|
+ }
|
|
2933
|
+
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+ departments, _ := service.GetDepartMentDetail(patientPrescription.Departments)
|
|
2937
|
+
|
2880
|
2938
|
if order.ID == 0 {
|
2881
|
2939
|
order, _ = service.GetHisOrderThree(recordDateTime, patient_id, adminUser.CurrentOrgId)
|
2882
|
2940
|
|
|
@@ -2925,12 +2983,16 @@ func (c *SZHisApiController) GetSettleAccounts() {
|
2925
|
2983
|
}
|
2926
|
2984
|
if res.Transreturncode == "00000000" {
|
2927
|
2985
|
c.ServeSuccessJSON(map[string]interface{}{
|
2928
|
|
- "result": res,
|
2929
|
|
- "org_name": miConfig.OrgName,
|
2930
|
|
- "org_code": miConfig.Code,
|
2931
|
|
- "patient_name": patient.Name,
|
2932
|
|
- "doctor_code": adminRole_two.DoctorCode,
|
2933
|
|
- "doctor_name": doctor_name,
|
|
2986
|
+ "result": res,
|
|
2987
|
+ "org_name": miConfig.OrgName,
|
|
2988
|
+ "org_code": miConfig.Code,
|
|
2989
|
+ "patient_name": patient.Name,
|
|
2990
|
+ "doctor_code": adminRole_two.DoctorCode,
|
|
2991
|
+ "doctor_name": doctor_name,
|
|
2992
|
+ "health_card_no": order.PsnNo,
|
|
2993
|
+ "order_number": order.Number,
|
|
2994
|
+ "department": departments.Name,
|
|
2995
|
+ "yiliao_leibie": yiliao_leibie,
|
2934
|
2996
|
})
|
2935
|
2997
|
} else {
|
2936
|
2998
|
c.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -3111,6 +3173,33 @@ func (c *SZHisApiController) CancelOrderDetail() {
|
3111
|
3173
|
|
3112
|
3174
|
|
3113
|
3175
|
|
|
3176
|
+func ReadBasCardGetNumber(request string) (string, string, string, string, string, error, int64) {
|
|
3177
|
+ DllDef2 := syscall.MustLoadDLL("SSCardDriver_SZ.dll")
|
|
3178
|
+ readCards := DllDef2.MustFindProc("iReadCardBas")
|
|
3179
|
+ str := request
|
|
3180
|
+ str3 := make([]byte, 1024)
|
|
3181
|
+ fmt.Println(":", request)
|
|
3182
|
+ fmt.Println(":", StrPtr(str))
|
|
3183
|
+
|
|
3184
|
+ ret4, _, err := readCards.Call(IntPtr(1), StrPtr(str), (uintptr)(unsafe.Pointer(&str3[0])))
|
|
3185
|
+ fmt.Println(":", string(str3))
|
|
3186
|
+ fmt.Println(":", ConvertToString(string(str3), "gbk", "utf-8"))
|
|
3187
|
+ if ret4 == 0 {
|
|
3188
|
+ result := string(str3)
|
|
3189
|
+ fmt.Println(result)
|
|
3190
|
+ result_arr := strings.Split(result, "|")
|
|
3191
|
+
|
|
3192
|
+ yiliao_number := result_arr[12]
|
|
3193
|
+
|
|
3194
|
+ id_card_number := result_arr[1]
|
|
3195
|
+ verifyCode := result_arr[11] + "|" + result_arr[13]
|
|
3196
|
+ versionCode := result_arr[14]
|
|
3197
|
+ health_card_no := result_arr[2]
|
|
3198
|
+
|
|
3199
|
+ return yiliao_number, id_card_number, verifyCode, versionCode, health_card_no, err, 0
|
|
3200
|
+ }
|
|
3201
|
+ return "", "", "", "", "", err, -10
|
|
3202
|
+}
|
3114
|
3203
|
|
3115
|
3204
|
|
3116
|
3205
|
func ReadBasCard(request string) (string, string, error, int64) {
|
|
@@ -3236,15 +3325,15 @@ func (c *SZHisApiController) GetDrugList() {
|
3236
|
3325
|
detail := &models.DrugDetail{
|
3237
|
3326
|
|
3238
|
3327
|
MedicalInsuranceNumber: item.MedicalInsuranceNumber,
|
3239
|
|
- Code: item.Code,
|
3240
|
|
- DrugName: item.DrugName,
|
3241
|
|
- DrugSpec: item.DrugSpec,
|
3242
|
|
- DrugDosageName: item.DrugDosageName,
|
3243
|
|
- ManufacturerName: item.ManufacturerName,
|
3244
|
|
- MinUnit: item.MinUnit,
|
3245
|
|
- RetailPrice: item.RetailPrice,
|
3246
|
|
- LastPrice: item.LastPrice,
|
3247
|
|
- LimitRemark: item.LimitRemark,
|
|
3328
|
+ Code: item.Code,
|
|
3329
|
+ DrugName: item.DrugName,
|
|
3330
|
+ DrugSpec: item.DrugSpec,
|
|
3331
|
+ DrugDosageName: item.DrugDosageName,
|
|
3332
|
+ ManufacturerName: item.ManufacturerName,
|
|
3333
|
+ MinUnit: item.MinUnit,
|
|
3334
|
+ RetailPrice: item.RetailPrice,
|
|
3335
|
+ LastPrice: item.LastPrice,
|
|
3336
|
+ LimitRemark: item.LimitRemark,
|
3248
|
3337
|
}
|
3249
|
3338
|
|
3250
|
3339
|
result := service.SzybML008(doctor_name, doctor_code, miConfig.Code, detail)
|
|
@@ -3408,15 +3497,14 @@ func (c *SZHisApiController) GetRevocation() {
|
3408
|
3497
|
detail := &models.DrugDetail{
|
3409
|
3498
|
|
3410
|
3499
|
SocialSecurityDirectoryCode: item.MedicalInsuranceNumber,
|
3411
|
|
- Code: item.Code,
|
3412
|
|
- DrugName: item.DrugName,
|
3413
|
|
- DrugSpec: item.DrugSpec,
|
3414
|
|
- ManufacturerName: item.ManufacturerName,
|
3415
|
|
- MinUnit: item.MinUnit,
|
3416
|
|
- RetailPrice: item.RetailPrice,
|
3417
|
|
- LimitRemark: item.LimitRemark,
|
3418
|
|
- MedicalInsuranceNumber: item.MedicalInsuranceNumber,
|
3419
|
|
-
|
|
3500
|
+ Code: item.Code,
|
|
3501
|
+ DrugName: item.DrugName,
|
|
3502
|
+ DrugSpec: item.DrugSpec,
|
|
3503
|
+ ManufacturerName: item.ManufacturerName,
|
|
3504
|
+ MinUnit: item.MinUnit,
|
|
3505
|
+ RetailPrice: item.RetailPrice,
|
|
3506
|
+ LimitRemark: item.LimitRemark,
|
|
3507
|
+ MedicalInsuranceNumber: item.MedicalInsuranceNumber,
|
3420
|
3508
|
}
|
3421
|
3509
|
customs = append(customs, detail)
|
3422
|
3510
|
}
|
|
@@ -3494,15 +3582,15 @@ func (c *SZHisApiController) GetRevocation() {
|
3494
|
3582
|
detail := &models.DrugDetail{
|
3495
|
3583
|
MedicalInsuranceNumber: item.MedicalInsuranceNumber,
|
3496
|
3584
|
SocialSecurityDirectoryCode: item.MedicalInsuranceNumber,
|
3497
|
|
- Code: item.Code,
|
3498
|
|
- DrugName: item.DrugName,
|
3499
|
|
- DrugSpec: item.DrugSpec,
|
3500
|
|
- DrugDosageName: item.DrugDosageName,
|
3501
|
|
- ManufacturerName: item.ManufacturerName,
|
3502
|
|
- MinUnit: item.MinUnit,
|
3503
|
|
- RetailPrice: item.RetailPrice,
|
3504
|
|
- LastPrice: item.LastPrice,
|
3505
|
|
- LimitRemark: item.LimitRemark,
|
|
3585
|
+ Code: item.Code,
|
|
3586
|
+ DrugName: item.DrugName,
|
|
3587
|
+ DrugSpec: item.DrugSpec,
|
|
3588
|
+ DrugDosageName: item.DrugDosageName,
|
|
3589
|
+ ManufacturerName: item.ManufacturerName,
|
|
3590
|
+ MinUnit: item.MinUnit,
|
|
3591
|
+ RetailPrice: item.RetailPrice,
|
|
3592
|
+ LastPrice: item.LastPrice,
|
|
3593
|
+ LimitRemark: item.LimitRemark,
|
3506
|
3594
|
}
|
3507
|
3595
|
|
3508
|
3596
|
result := service.SzybML008(doctor_name, doctor_code, miConfig.Code, detail)
|
|
@@ -3870,39 +3958,39 @@ func (c *SZHisApiController) GetDoctorList() {
|
3870
|
3958
|
for _, item := range list {
|
3871
|
3959
|
fmt.Println("医护类别", item.StudyMajorName)
|
3872
|
3960
|
detail := &models.DocDetail{
|
3873
|
|
- UserName: item.UserName,
|
3874
|
|
- RoleId: item.Name,
|
3875
|
|
- Sex: strconv.FormatInt(item.Sex, 10),
|
3876
|
|
- CardType: strconv.FormatInt(item.CardType, 10),
|
3877
|
|
- IdCard: item.IdCard,
|
3878
|
|
- Phone: item.Mobile,
|
3879
|
|
- WorkMajorName: item.WorkMajorName,
|
3880
|
|
- Nation: item.Nation,
|
3881
|
|
- BirthDay: 20201022,
|
3882
|
|
- WorkTime: 20201022,
|
3883
|
|
- Education: strconv.FormatInt(item.Education, 10),
|
3884
|
|
- StudyMajorName: item.StudyMajorName,
|
3885
|
|
- CertificateCode: item.MedicalCode,
|
3886
|
|
- MedicalCode: item.DoctorCode,
|
3887
|
|
- MedicalRangeCode: strconv.FormatInt(item.DoctorRangeCode, 10),
|
3888
|
|
- MedicalLevel: strconv.FormatInt(item.DoctorLevel, 10),
|
3889
|
|
- TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
3890
|
|
- DoctorNumber: item.DoctorNumber,
|
3891
|
|
- Licensing: strconv.FormatInt(item.Licensing, 10),
|
3892
|
|
- DoctorServiceStatus: "",
|
3893
|
|
- MonitoringLevel: "",
|
3894
|
|
- DrugPsychotropicSubstances: "",
|
3895
|
|
- HealthCareCode: "",
|
3896
|
|
- PlanningTechnicalServiceCode: "",
|
3897
|
|
- PharmacistType: "",
|
3898
|
|
- PharmacistPracticeCategory: "",
|
3899
|
|
- PharmacistsLicensing: "",
|
3900
|
|
- PharmacistRegistrationNumber: "",
|
3901
|
|
- OfficeCode: "",
|
3902
|
|
- JobNumber: item.JobNumber,
|
3903
|
|
- PostName: "",
|
3904
|
|
- TechnicalJobLevelCode: "",
|
3905
|
|
- IsActive: strconv.FormatInt(item.IsActive, 10),
|
|
3961
|
+ UserName: item.UserName,
|
|
3962
|
+ RoleId: item.Name,
|
|
3963
|
+ Sex: strconv.FormatInt(item.Sex, 10),
|
|
3964
|
+ CardType: strconv.FormatInt(item.CardType, 10),
|
|
3965
|
+ IdCard: item.IdCard,
|
|
3966
|
+ Phone: item.Mobile,
|
|
3967
|
+ WorkMajorName: item.WorkMajorName,
|
|
3968
|
+ Nation: item.Nation,
|
|
3969
|
+ BirthDay: 20201022,
|
|
3970
|
+ WorkTime: 20201022,
|
|
3971
|
+ Education: strconv.FormatInt(item.Education, 10),
|
|
3972
|
+ StudyMajorName: item.StudyMajorName,
|
|
3973
|
+ CertificateCode: item.MedicalCode,
|
|
3974
|
+ MedicalCode: item.DoctorCode,
|
|
3975
|
+ MedicalRangeCode: strconv.FormatInt(item.DoctorRangeCode, 10),
|
|
3976
|
+ MedicalLevel: strconv.FormatInt(item.DoctorLevel, 10),
|
|
3977
|
+ TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
|
3978
|
+ DoctorNumber: item.DoctorNumber,
|
|
3979
|
+ Licensing: strconv.FormatInt(item.Licensing, 10),
|
|
3980
|
+ DoctorServiceStatus: "",
|
|
3981
|
+ MonitoringLevel: "",
|
|
3982
|
+ DrugPsychotropicSubstances: "",
|
|
3983
|
+ HealthCareCode: "",
|
|
3984
|
+ PlanningTechnicalServiceCode: "",
|
|
3985
|
+ PharmacistType: "",
|
|
3986
|
+ PharmacistPracticeCategory: "",
|
|
3987
|
+ PharmacistsLicensing: "",
|
|
3988
|
+ PharmacistRegistrationNumber: "",
|
|
3989
|
+ OfficeCode: "",
|
|
3990
|
+ JobNumber: item.JobNumber,
|
|
3991
|
+ PostName: "",
|
|
3992
|
+ TechnicalJobLevelCode: "",
|
|
3993
|
+ IsActive: strconv.FormatInt(item.IsActive, 10),
|
3906
|
3994
|
PrescriptionQualificationIdentification: strconv.FormatInt(item.PrescriptionQualificationIdentification, 10),
|
3907
|
3995
|
IdentificationOutpatients: strconv.FormatInt(item.IdentificationOutpatients, 10),
|
3908
|
3996
|
OutpatientIllnessCategory: item.OutpatientIllnessCategory,
|
|
@@ -3984,39 +4072,39 @@ func (c *SZHisApiController) GetMedicalList() {
|
3984
|
4072
|
fmt.Println("医护类别", item.Mobile)
|
3985
|
4073
|
|
3986
|
4074
|
detail := &models.DocDetail{
|
3987
|
|
- UserName: item.UserName,
|
3988
|
|
- RoleId: item.Name,
|
3989
|
|
- Sex: strconv.FormatInt(item.Sex, 10),
|
3990
|
|
- CardType: strconv.FormatInt(item.CardType, 10),
|
3991
|
|
- IdCard: item.IdCard,
|
3992
|
|
- Phone: item.Mobile,
|
3993
|
|
- WorkMajorName: item.WorkMajorName,
|
3994
|
|
- Nation: item.Nation,
|
3995
|
|
- BirthDay: 20201022,
|
3996
|
|
- WorkTime: 20201022,
|
3997
|
|
- Education: strconv.FormatInt(item.Education, 10),
|
3998
|
|
- StudyMajorName: item.StudyMajorName,
|
3999
|
|
- CertificateCode: item.MedicalCode,
|
4000
|
|
- MedicalCode: item.DoctorCode,
|
4001
|
|
- MedicalRangeCode: strconv.FormatInt(item.DoctorRangeCode, 10),
|
4002
|
|
- MedicalLevel: strconv.FormatInt(item.DoctorLevel, 10),
|
4003
|
|
- TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
4004
|
|
- DoctorNumber: item.DoctorNumber,
|
4005
|
|
- Licensing: strconv.FormatInt(item.Licensing, 10),
|
4006
|
|
- DoctorServiceStatus: "",
|
4007
|
|
- MonitoringLevel: "",
|
4008
|
|
- DrugPsychotropicSubstances: "",
|
4009
|
|
- HealthCareCode: "",
|
4010
|
|
- PlanningTechnicalServiceCode: "",
|
4011
|
|
- PharmacistType: "",
|
4012
|
|
- PharmacistPracticeCategory: "",
|
4013
|
|
- PharmacistsLicensing: "",
|
4014
|
|
- PharmacistRegistrationNumber: "",
|
4015
|
|
- OfficeCode: "",
|
4016
|
|
- JobNumber: item.JobNumber,
|
4017
|
|
- PostName: "",
|
4018
|
|
- TechnicalJobLevelCode: "",
|
4019
|
|
- IsActive: strconv.FormatInt(item.IsActive, 10),
|
|
4075
|
+ UserName: item.UserName,
|
|
4076
|
+ RoleId: item.Name,
|
|
4077
|
+ Sex: strconv.FormatInt(item.Sex, 10),
|
|
4078
|
+ CardType: strconv.FormatInt(item.CardType, 10),
|
|
4079
|
+ IdCard: item.IdCard,
|
|
4080
|
+ Phone: item.Mobile,
|
|
4081
|
+ WorkMajorName: item.WorkMajorName,
|
|
4082
|
+ Nation: item.Nation,
|
|
4083
|
+ BirthDay: 20201022,
|
|
4084
|
+ WorkTime: 20201022,
|
|
4085
|
+ Education: strconv.FormatInt(item.Education, 10),
|
|
4086
|
+ StudyMajorName: item.StudyMajorName,
|
|
4087
|
+ CertificateCode: item.MedicalCode,
|
|
4088
|
+ MedicalCode: item.DoctorCode,
|
|
4089
|
+ MedicalRangeCode: strconv.FormatInt(item.DoctorRangeCode, 10),
|
|
4090
|
+ MedicalLevel: strconv.FormatInt(item.DoctorLevel, 10),
|
|
4091
|
+ TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
|
4092
|
+ DoctorNumber: item.DoctorNumber,
|
|
4093
|
+ Licensing: strconv.FormatInt(item.Licensing, 10),
|
|
4094
|
+ DoctorServiceStatus: "",
|
|
4095
|
+ MonitoringLevel: "",
|
|
4096
|
+ DrugPsychotropicSubstances: "",
|
|
4097
|
+ HealthCareCode: "",
|
|
4098
|
+ PlanningTechnicalServiceCode: "",
|
|
4099
|
+ PharmacistType: "",
|
|
4100
|
+ PharmacistPracticeCategory: "",
|
|
4101
|
+ PharmacistsLicensing: "",
|
|
4102
|
+ PharmacistRegistrationNumber: "",
|
|
4103
|
+ OfficeCode: "",
|
|
4104
|
+ JobNumber: item.JobNumber,
|
|
4105
|
+ PostName: "",
|
|
4106
|
+ TechnicalJobLevelCode: "",
|
|
4107
|
+ IsActive: strconv.FormatInt(item.IsActive, 10),
|
4020
|
4108
|
PrescriptionQualificationIdentification: strconv.FormatInt(item.PrescriptionQualificationIdentification, 10),
|
4021
|
4109
|
IdentificationOutpatients: strconv.FormatInt(item.IdentificationOutpatients, 10),
|
4022
|
4110
|
OutpatientIllnessCategory: item.OutpatientIllnessCategory,
|
|
@@ -4084,46 +4172,45 @@ func (c *SZHisApiController) GetMedicalList() {
|
4084
|
4172
|
for _, item := range list {
|
4085
|
4173
|
fmt.Println("医护类别", item.Name)
|
4086
|
4174
|
detail := &models.DocDetail{
|
4087
|
|
- UserName: item.UserName,
|
4088
|
|
- RoleId: item.Name,
|
4089
|
|
- Sex: strconv.FormatInt(item.Sex, 10),
|
4090
|
|
- CardType: strconv.FormatInt(item.CardType, 10),
|
4091
|
|
- IdCard: item.IdCard,
|
4092
|
|
- Phone: item.Mobile,
|
4093
|
|
- WorkMajorName: item.WorkMajorName,
|
4094
|
|
- Nation: item.Nation,
|
4095
|
|
- BirthDay: 20201022,
|
4096
|
|
- WorkTime: 20201022,
|
4097
|
|
- Education: strconv.FormatInt(item.Education, 10),
|
4098
|
|
- StudyMajorName: item.StudyMajorName,
|
4099
|
|
- CertificateCode: item.MedicalCode,
|
4100
|
|
- MedicalCode: item.DoctorCode,
|
4101
|
|
- MedicalRangeCode: strconv.FormatInt(item.DoctorRangeCode, 10),
|
4102
|
|
- MedicalLevel: strconv.FormatInt(item.DoctorLevel, 10),
|
4103
|
|
- TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
4104
|
|
- DoctorNumber: item.DoctorNumber,
|
4105
|
|
- Licensing: strconv.FormatInt(item.Licensing, 10),
|
4106
|
|
- DoctorServiceStatus: "",
|
4107
|
|
- MonitoringLevel: "",
|
4108
|
|
- DrugPsychotropicSubstances: "",
|
4109
|
|
- HealthCareCode: "",
|
4110
|
|
- PlanningTechnicalServiceCode: "",
|
4111
|
|
- PharmacistType: "",
|
4112
|
|
- PharmacistPracticeCategory: "",
|
4113
|
|
- PharmacistsLicensing: "",
|
4114
|
|
- PharmacistRegistrationNumber: "",
|
4115
|
|
- OfficeCode: "",
|
4116
|
|
- JobNumber: item.JobNumber,
|
4117
|
|
- PostName: "",
|
4118
|
|
- TechnicalJobLevelCode: "",
|
4119
|
|
- IsActive: strconv.FormatInt(item.IsActive, 10),
|
|
4175
|
+ UserName: item.UserName,
|
|
4176
|
+ RoleId: item.Name,
|
|
4177
|
+ Sex: strconv.FormatInt(item.Sex, 10),
|
|
4178
|
+ CardType: strconv.FormatInt(item.CardType, 10),
|
|
4179
|
+ IdCard: item.IdCard,
|
|
4180
|
+ Phone: item.Mobile,
|
|
4181
|
+ WorkMajorName: item.WorkMajorName,
|
|
4182
|
+ Nation: item.Nation,
|
|
4183
|
+ BirthDay: 20201022,
|
|
4184
|
+ WorkTime: 20201022,
|
|
4185
|
+ Education: strconv.FormatInt(item.Education, 10),
|
|
4186
|
+ StudyMajorName: item.StudyMajorName,
|
|
4187
|
+ CertificateCode: item.MedicalCode,
|
|
4188
|
+ MedicalCode: item.DoctorCode,
|
|
4189
|
+ MedicalRangeCode: strconv.FormatInt(item.DoctorRangeCode, 10),
|
|
4190
|
+ MedicalLevel: strconv.FormatInt(item.DoctorLevel, 10),
|
|
4191
|
+ TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
|
4192
|
+ DoctorNumber: item.DoctorNumber,
|
|
4193
|
+ Licensing: strconv.FormatInt(item.Licensing, 10),
|
|
4194
|
+ DoctorServiceStatus: "",
|
|
4195
|
+ MonitoringLevel: "",
|
|
4196
|
+ DrugPsychotropicSubstances: "",
|
|
4197
|
+ HealthCareCode: "",
|
|
4198
|
+ PlanningTechnicalServiceCode: "",
|
|
4199
|
+ PharmacistType: "",
|
|
4200
|
+ PharmacistPracticeCategory: "",
|
|
4201
|
+ PharmacistsLicensing: "",
|
|
4202
|
+ PharmacistRegistrationNumber: "",
|
|
4203
|
+ OfficeCode: "",
|
|
4204
|
+ JobNumber: item.JobNumber,
|
|
4205
|
+ PostName: "",
|
|
4206
|
+ TechnicalJobLevelCode: "",
|
|
4207
|
+ IsActive: strconv.FormatInt(item.IsActive, 10),
|
4120
|
4208
|
PrescriptionQualificationIdentification: strconv.FormatInt(item.PrescriptionQualificationIdentification, 10),
|
4121
|
4209
|
IdentificationOutpatients: strconv.FormatInt(item.IdentificationOutpatients, 10),
|
4122
|
4210
|
OutpatientIllnessCategory: item.OutpatientIllnessCategory,
|
4123
|
4211
|
StartTime: 20201010,
|
4124
|
4212
|
StaffCode: "",
|
4125
|
4213
|
EndTime: 0,
|
4126
|
|
-
|
4127
|
4214
|
}
|
4128
|
4215
|
result := service.SzybYS002(doctor_name, doctor_code, miConfig.Code, detail)
|
4129
|
4216
|
fmt.Println("reuslt9999999999999999", result)
|
|
@@ -4210,44 +4297,44 @@ func (c *SZHisApiController) GetUpdateMedicalList() {
|
4210
|
4297
|
for _, item := range list {
|
4211
|
4298
|
fmt.Println("医护类别", item.Name)
|
4212
|
4299
|
detail := &models.DocDetail{
|
4213
|
|
- StaffCode: "",
|
4214
|
|
- UserName: item.UserName,
|
4215
|
|
- RoleId: item.Name,
|
4216
|
|
- Sex: "",
|
4217
|
|
- CardType: "",
|
4218
|
|
- IdCard: "",
|
4219
|
|
- Phone: "",
|
4220
|
|
- WorkMajorName: "",
|
4221
|
|
- Nation: "",
|
4222
|
|
- BirthDay: 20201022,
|
4223
|
|
- WorkTime: 12,
|
4224
|
|
- Education: "",
|
4225
|
|
- StudyMajorName: "",
|
4226
|
|
- CertificateCode: "",
|
4227
|
|
- MedicalCode: "",
|
4228
|
|
- MedicalRangeCode: "",
|
4229
|
|
- MedicalLevel: "",
|
4230
|
|
- TypeJob: "",
|
4231
|
|
- DoctorNumber: "",
|
4232
|
|
- Licensing: "",
|
4233
|
|
- DoctorServiceStatus: "",
|
4234
|
|
- MonitoringLevel: "",
|
4235
|
|
- DrugPsychotropicSubstances: "",
|
4236
|
|
- HealthCareCode: "",
|
4237
|
|
- PlanningTechnicalServiceCode: "",
|
4238
|
|
- PharmacistType: "",
|
4239
|
|
- PharmacistPracticeCategory: "",
|
4240
|
|
- PharmacistsLicensing: "",
|
4241
|
|
- PharmacistRegistrationNumber: "",
|
4242
|
|
- OfficeCode: "",
|
4243
|
|
- JobNumber: "",
|
4244
|
|
- PostName: "",
|
4245
|
|
- TechnicalJobLevelCode: "",
|
4246
|
|
- IsActive: "",
|
4247
|
|
- PrescriptionQualificationIdentification: "",
|
4248
|
|
- IdentificationOutpatients: "",
|
4249
|
|
- OutpatientIllnessCategory: "",
|
4250
|
|
- StartTime: 1233,
|
|
4300
|
+ StaffCode: "",
|
|
4301
|
+ UserName: item.UserName,
|
|
4302
|
+ RoleId: item.Name,
|
|
4303
|
+ Sex: "",
|
|
4304
|
+ CardType: "",
|
|
4305
|
+ IdCard: "",
|
|
4306
|
+ Phone: "",
|
|
4307
|
+ WorkMajorName: "",
|
|
4308
|
+ Nation: "",
|
|
4309
|
+ BirthDay: 20201022,
|
|
4310
|
+ WorkTime: 12,
|
|
4311
|
+ Education: "",
|
|
4312
|
+ StudyMajorName: "",
|
|
4313
|
+ CertificateCode: "",
|
|
4314
|
+ MedicalCode: "",
|
|
4315
|
+ MedicalRangeCode: "",
|
|
4316
|
+ MedicalLevel: "",
|
|
4317
|
+ TypeJob: "",
|
|
4318
|
+ DoctorNumber: "",
|
|
4319
|
+ Licensing: "",
|
|
4320
|
+ DoctorServiceStatus: "",
|
|
4321
|
+ MonitoringLevel: "",
|
|
4322
|
+ DrugPsychotropicSubstances: "",
|
|
4323
|
+ HealthCareCode: "",
|
|
4324
|
+ PlanningTechnicalServiceCode: "",
|
|
4325
|
+ PharmacistType: "",
|
|
4326
|
+ PharmacistPracticeCategory: "",
|
|
4327
|
+ PharmacistsLicensing: "",
|
|
4328
|
+ PharmacistRegistrationNumber: "",
|
|
4329
|
+ OfficeCode: "",
|
|
4330
|
+ JobNumber: "",
|
|
4331
|
+ PostName: "",
|
|
4332
|
+ TechnicalJobLevelCode: "",
|
|
4333
|
+ IsActive: "",
|
|
4334
|
+ PrescriptionQualificationIdentification: "",
|
|
4335
|
+ IdentificationOutpatients: "",
|
|
4336
|
+ OutpatientIllnessCategory: "",
|
|
4337
|
+ StartTime: 1233,
|
4251
|
4338
|
EndTime: 123333,
|
4252
|
4339
|
}
|
4253
|
4340
|
customs = append(customs, detail)
|