|
@@ -3438,7 +3438,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
3438
|
3438
|
// return
|
3439
|
3439
|
//}
|
3440
|
3440
|
//med_type := strconv.Itoa(int(items["med_type"].(float64)))
|
3441
|
|
- //diagnoses, _ := items["diagnoses"].(string)
|
|
3441
|
+ diagnoses, _ := items["diagnoses"].(string)
|
3442
|
3442
|
|
3443
|
3443
|
//if order_status == 0 {
|
3444
|
3444
|
// order_status = 1
|
|
@@ -3482,7 +3482,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
3482
|
3482
|
PreTime: pTime,
|
3483
|
3483
|
PType: p_type,
|
3484
|
3484
|
MedType: med_type,
|
3485
|
|
- Diagnose: "",
|
|
3485
|
+ Diagnose: diagnoses,
|
3486
|
3486
|
}
|
3487
|
3487
|
tempPrescription = prescription
|
3488
|
3488
|
service.SaveHisPrescriptionOne(tx, tempPrescription)
|
|
@@ -5096,7 +5096,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
5096
|
5096
|
//if items["diagnoses"] == nil || reflect.TypeOf(items["diagnoses"]).String() != "string" {
|
5097
|
5097
|
// utils.ErrorLog("diagnoses")
|
5098
|
5098
|
//}
|
5099
|
|
- //diagnoses, _ := items["diagnoses"].(string)
|
|
5099
|
+ diagnoses, _ := items["diagnoses"].(string)
|
5100
|
5100
|
|
5101
|
5101
|
if items["pre_time"] == nil || reflect.TypeOf(items["pre_time"]).String() != "string" {
|
5102
|
5102
|
utils.ErrorLog("pre_time")
|
|
@@ -5136,7 +5136,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
5136
|
5136
|
PreTime: pTime,
|
5137
|
5137
|
PType: p_type,
|
5138
|
5138
|
MedType: med_type,
|
5139
|
|
- Diagnose: "",
|
|
5139
|
+ Diagnose: diagnoses,
|
5140
|
5140
|
}
|
5141
|
5141
|
tempPrescription = prescription
|
5142
|
5142
|
service.SaveHisPrescription(tempPrescription)
|