|
@@ -348,12 +348,12 @@ func (c *SZHisApiController) ReadCard() {
|
348
|
348
|
if ret4 == 0 {
|
349
|
349
|
patient, _ := service.GetPatientByNumber(id_card_number, adminInfo.CurrentOrgId)
|
350
|
350
|
if patient.ID == 0 {
|
351
|
|
- patient.HealthCareNo = health_card_no
|
352
|
351
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNoPateintException)
|
353
|
352
|
return
|
354
|
353
|
} else {
|
355
|
354
|
c.ServeSuccessJSON(map[string]interface{}{
|
356
|
|
- "patient": patient,
|
|
355
|
+ "patient": patient,
|
|
356
|
+ "health_card_no": health_card_no,
|
357
|
357
|
})
|
358
|
358
|
}
|
359
|
359
|
} else {
|