|
@@ -1847,11 +1847,6 @@ func (c *HisApiController) GetRegisterInfo() {
|
1847
|
1847
|
his.Status = 0
|
1848
|
1848
|
service.CreateHisPatientTwo(&his)
|
1849
|
1849
|
|
1850
|
|
- lists, _ := service.GetHisPatientInfoList(adminInfo.CurrentOrgId, patient.ID, recordDateTime)
|
1851
|
|
- if len(lists) == 1 {
|
1852
|
|
- service.UpdateHisPrescriptionHisID(his.ID, patient.ID, recordDateTime, adminInfo.CurrentOrgId)
|
1853
|
|
- }
|
1854
|
|
-
|
1855
|
1850
|
if err == nil {
|
1856
|
1851
|
api2 := "http://127.0.0.1:9532/" + "gdyb/four?psn_no=" + his.PsnNo +
|
1857
|
1852
|
"&mdtrt_id=" + his.Number + "&doctor=" + patientPrescription.Doctor + "&department=" + department.Name +
|
|
@@ -1905,6 +1900,10 @@ func (c *HisApiController) GetRegisterInfo() {
|
1905
|
1900
|
} else {
|
1906
|
1901
|
his.Status = 1
|
1907
|
1902
|
service.UpdateHisPatientStatus(&his)
|
|
1903
|
+ lists, _ := service.GetHisPatientInfoList(adminInfo.CurrentOrgId, patient.ID, recordDateTime)
|
|
1904
|
+ if len(lists) == 1 {
|
|
1905
|
+ service.UpdateHisPrescriptionHisID(his.ID, patient.ID, recordDateTime, adminInfo.CurrentOrgId)
|
|
1906
|
+ }
|
1908
|
1907
|
|
1909
|
1908
|
c.ServeSuccessJSON(map[string]interface{}{
|
1910
|
1909
|
"his_info": his,
|