|
@@ -1455,7 +1455,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
1455
|
1455
|
|
1456
|
1456
|
diagnosis_id, _ := c.GetInt64("diagnosis")
|
1457
|
1457
|
sick_type, _ := c.GetInt64("sick_type")
|
1458
|
|
- reg_type := c.GetString("p_type")
|
|
1458
|
+ reg_type, _ := c.GetInt64("p_type")
|
1459
|
1459
|
|
1460
|
1460
|
timeLayout := "2006-01-02"
|
1461
|
1461
|
loc, _ := time.LoadLocation("Local")
|
|
@@ -1696,7 +1696,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
1696
|
1696
|
if err == nil {
|
1697
|
1697
|
api2 := "http://127.0.0.1:9532/" + "gdyb/four?psn_no=" + his.PsnNo +
|
1698
|
1698
|
"&mdtrt_id=" + his.Number + "&doctor=" + patientPrescription.Doctor + "&department=" + department.Name +
|
1699
|
|
- "&diag=" + diagnosisConfig.ClassName + "&org_name=" + miConfig.OrgName + "&med_type=" + reg_type + "&doctor_id=" + strconv.FormatInt(patientPrescription.DoctorId, 10) + "&fixmedins_code=" + miConfig.Code + "&diag_code=" + diagnosisConfig.CountryCode +
|
|
1699
|
+ "&diag=" + diagnosisConfig.ClassName + "&org_name=" + miConfig.OrgName + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&doctor_id=" + strconv.FormatInt(patientPrescription.DoctorId, 10) + "&fixmedins_code=" + miConfig.Code + "&diag_code=" + diagnosisConfig.CountryCode +
|
1700
|
1700
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&sick_code=" + sickConfig.CountryCode + "&sick_name=" + sickConfig.ClassName
|
1701
|
1701
|
resp2, requestErr2 := http.Get(api2)
|
1702
|
1702
|
if requestErr2 != nil {
|