|
@@ -221,6 +221,7 @@ func (c *HisApiController) GetHisPatientInfo() {
|
221
|
221
|
his_patient_info, _ := service.GetHisPatientInfo(admin.CurrentOrgId, patient_id, recordDateTime)
|
222
|
222
|
xt_patient_info, _ := service.GetXTPatientInfo(admin.CurrentOrgId, patient_id)
|
223
|
223
|
prescriptions, _ := service.GetHisPrescription(admin.CurrentOrgId, patient_id, recordDateTime)
|
|
224
|
+
|
224
|
225
|
case_history, _ := service.GetHisPatientCaseHistoryInfo(admin.CurrentOrgId, patient_id, recordDateTime)
|
225
|
226
|
patientPrescriptionInfo, _ := service.FindPatientPrescriptionInfo(admin.CurrentOrgId, patient_id, recordDateTime)
|
226
|
227
|
lastPatientPrescriptionInfo, _ := service.FindLastPatientPrescriptionInfo(admin.CurrentOrgId, patient_id, recordDateTime)
|
|
@@ -927,6 +928,49 @@ func (c *HisApiController) setAdviceWithJSON(advice *models.HisDoctorAdviceInfo,
|
927
|
928
|
}
|
928
|
929
|
}
|
929
|
930
|
|
|
931
|
+ //
|
|
932
|
+ //if json["execution_time"] != nil && reflect.TypeOf(json["execution_time"]).String() == "string" {
|
|
933
|
+ // execution_time, _ := strconv.ParseInt(json["execution_time"].(string), 10,64)
|
|
934
|
+ // advice.ExecutionTime = execution_time
|
|
935
|
+ //}
|
|
936
|
+ //
|
|
937
|
+ //
|
|
938
|
+ //
|
|
939
|
+ //if json["execution_staff"] != nil && reflect.TypeOf(json["execution_staff"]).String() == "string" {
|
|
940
|
+ // execution_staff, _ := strconv.ParseInt(json["execution_staff"].(string), 10,64)
|
|
941
|
+ // advice.ExecutionStaff = execution_staff
|
|
942
|
+ //}
|
|
943
|
+ //
|
|
944
|
+ //
|
|
945
|
+ //
|
|
946
|
+ //if json["execution_state"] != nil && reflect.TypeOf(json["execution_state"]).String() == "string" {
|
|
947
|
+ // execution_state, _ := strconv.ParseInt(json["execution_state"].(string), 10,64)
|
|
948
|
+ // advice.ExecutionState = execution_state
|
|
949
|
+ //}
|
|
950
|
+ //
|
|
951
|
+ //
|
|
952
|
+ //if json["check_time"] != nil && reflect.TypeOf(json["check_time"]).String() == "string" {
|
|
953
|
+ // check_time, _ := strconv.ParseInt(json["check_time"].(string), 10,64)
|
|
954
|
+ // advice.CheckTime = check_time
|
|
955
|
+ //}
|
|
956
|
+ //
|
|
957
|
+ //
|
|
958
|
+ //if json["check_state"] != nil && reflect.TypeOf(json["check_state"]).String() == "string" {
|
|
959
|
+ // check_state, _ := strconv.ParseInt(json["check_state"].(string), 10,64)
|
|
960
|
+ // advice.CheckState = check_state
|
|
961
|
+ //}
|
|
962
|
+ //
|
|
963
|
+ //
|
|
964
|
+ //if json["checker"] != nil && reflect.TypeOf(json["checker"]).String() == "string" {
|
|
965
|
+ // checker, _ := strconv.ParseInt(json["checker"].(string), 10,64)
|
|
966
|
+ // advice.Checker = checker
|
|
967
|
+ //}
|
|
968
|
+ //
|
|
969
|
+ //if json["start_time"] != nil && reflect.TypeOf(json["start_time"]).String() == "string" {
|
|
970
|
+ // start_time, _ := strconv.ParseInt(json["start_time"].(string), 10,64)
|
|
971
|
+ // advice.StartTime = start_time
|
|
972
|
+ //}
|
|
973
|
+
|
930
|
974
|
if json["min_unit"] != nil && reflect.TypeOf(json["min_unit"]).String() == "string" {
|
931
|
975
|
drugSpecUnit, _ := json["min_unit"].(string)
|
932
|
976
|
advice.DrugSpecUnit = drugSpecUnit
|