|
@@ -473,6 +473,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
473
|
473
|
doctor_id, _ := c.GetInt64("doctor", 0)
|
474
|
474
|
department, _ := c.GetInt64("department", 0)
|
475
|
475
|
his_patient_id, _ := c.GetInt64("his_patient_id")
|
|
476
|
+
|
476
|
477
|
p_type, _ := c.GetInt64("p_type")
|
477
|
478
|
dataBody := make(map[string]interface{}, 0)
|
478
|
479
|
err := json.Unmarshal(c.Ctx.Input.RequestBody, &dataBody)
|
|
@@ -1871,6 +1872,11 @@ func (c *HisApiController) setAdviceWithJSON(advice *models.HisDoctorAdviceInfo,
|
1871
|
1872
|
advice.Groupno = groupno
|
1872
|
1873
|
}
|
1873
|
1874
|
|
|
1875
|
+ if json["hosp_appr_flag"] != nil && reflect.TypeOf(json["hosp_appr_flag"]).String() == "string" {
|
|
1876
|
+ hosp_appr_flag, _ := strconv.ParseInt(json["hosp_appr_flag"].(string), 10, 64)
|
|
1877
|
+ advice.HospApprFlag = hosp_appr_flag
|
|
1878
|
+ }
|
|
1879
|
+
|
1874
|
1880
|
if json["prescribing_number"] != nil && reflect.TypeOf(json["prescribing_number"]).String() == "string" {
|
1875
|
1881
|
prescribingNumber, _ := strconv.ParseFloat(json["prescribing_number"].(string), 64)
|
1876
|
1882
|
advice.PrescribingNumber = prescribingNumber
|
|
@@ -1895,6 +1901,7 @@ func (c *HisApiController) setAdviceWithJSON(advice *models.HisDoctorAdviceInfo,
|
1895
|
1901
|
advice.Checker = hisAdvice.Checker
|
1896
|
1902
|
advice.CheckState = hisAdvice.CheckState
|
1897
|
1903
|
advice.StartTime = hisAdvice.StartTime
|
|
1904
|
+ advice.HospApprFlag = hisAdvice.HospApprFlag
|
1898
|
1905
|
//advice.Groupno = hisAdvice.Groupno
|
1899
|
1906
|
|
1900
|
1907
|
}
|