瀏覽代碼

医保对接

csx 4 年之前
父節點
當前提交
93b96f1e95
共有 2 個文件被更改,包括 45 次插入0 次删除
  1. 44 0
      controllers/his_api_controller.go
  2. 1 0
      models/his_models.go

+ 44 - 0
controllers/his_api_controller.go 查看文件

@@ -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

+ 1 - 0
models/his_models.go 查看文件

@@ -319,6 +319,7 @@ type HisPrescription struct {
319 319
 	HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
320 320
 	HisAdditionalCharge    []*HisAdditionalCharge    `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
321 321
 	VMHisPrescriptionInfo  HisPrescriptionInfo       `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,ScheduleDate" json:"info"`
322
+	Total                  string                    `gorm:"-" json:"total" form:"total"`
322 323
 }
323 324
 
324 325
 func (HisPrescription) TableName() string {