|
@@ -1734,7 +1734,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
1734
|
1734
|
timeFormat := tempTime.Format("20060102150405")
|
1735
|
1735
|
chrgBchno := rand.Intn(100000) + 10000
|
1736
|
1736
|
ipt_otp_no := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(his.PatientId, 10)
|
1737
|
|
- count, _ := service.FindHisRegisterRecord(theTime.Unix(), patient.ID, adminInfo.CurrentOrgId)
|
|
1737
|
+ //count, _ := service.FindHisRegisterRecord(theTime.Unix(), patient.ID, adminInfo.CurrentOrgId)
|
1738
|
1738
|
department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
|
1739
|
1739
|
doctor_id := strconv.FormatInt(patientPrescription.DoctorId, 10)
|
1740
|
1740
|
|
|
@@ -1779,10 +1779,10 @@ func (c *HisApiController) GetRegisterInfo() {
|
1779
|
1779
|
insutype = "310"
|
1780
|
1780
|
}
|
1781
|
1781
|
|
1782
|
|
- if count == 1 {
|
1783
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterRepeatException)
|
1784
|
|
- return
|
1785
|
|
- }
|
|
1782
|
+ //if count == 1 {
|
|
1783
|
+ // c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterRepeatException)
|
|
1784
|
+ // return
|
|
1785
|
+ //}
|
1786
|
1786
|
api := "http://127.0.0.1:9532/" + "gdyb/two?cert_no=" + IdCardNo + "&insutype=" +
|
1787
|
1787
|
insutype + "&psn_no=" + res.Output.Baseinfo.PsnNo +
|
1788
|
1788
|
"&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&ipt_otp_no=" + ipt_otp_no +
|