|
@@ -50,6 +50,11 @@ func XcxApiControllersRegisterRouters() {
|
50
|
50
|
//获取机构医生护士的姓名
|
51
|
51
|
beego.Router("/xcx/api/mobile/getdoctorname", &XcxApiController{}, "Get:GetDoctorName")
|
52
|
52
|
|
|
53
|
+ //获取显示配置
|
|
54
|
+ beego.Router("/xcx/api/moible/getfieldconfig", &XcxApiController{}, "Get:GetFieldConfig")
|
|
55
|
+
|
|
56
|
+ //获取数据字典数据
|
|
57
|
+ beego.Router("/xcx/api/mobile/getdataconfig", &XcxApiController{}, "Get:GetDataConfig")
|
53
|
58
|
}
|
54
|
59
|
|
55
|
60
|
type XcxApiController struct {
|
|
@@ -634,3 +639,51 @@ func (this *XcxApiController) GetDoctorName() {
|
634
|
639
|
"user_name": user_name,
|
635
|
640
|
})
|
636
|
641
|
}
|
|
642
|
+
|
|
643
|
+func (this *XcxApiController) GetFieldConfig() {
|
|
644
|
+
|
|
645
|
+ patient_id, _ := this.GetInt64("patient_id")
|
|
646
|
+ fmt.Println("patient_id", patient_id)
|
|
647
|
+ info, _ := service.GetXcxPatientInfo(patient_id)
|
|
648
|
+
|
|
649
|
+ //处方
|
|
650
|
+ prescripition_config, _ := service.GetPrescripionFieldConfig(info.UserOrgId)
|
|
651
|
+
|
|
652
|
+ //接诊评估
|
|
653
|
+ receive_treatement_config, _ := service.GetReceiveTreatmentAssess(info.UserOrgId)
|
|
654
|
+
|
|
655
|
+ //透前评估
|
|
656
|
+ dialysis_befor, _ := service.GetDialysisBefor(info.UserOrgId)
|
|
657
|
+
|
|
658
|
+ //透析上机
|
|
659
|
+ dialysis_order, _ := service.GetDialysisOrderConfig(info.UserOrgId)
|
|
660
|
+
|
|
661
|
+ //透析监测
|
|
662
|
+ monitor_record, _ := service.GetMonitorRecordConfig(info.UserOrgId)
|
|
663
|
+
|
|
664
|
+ //透后评估
|
|
665
|
+ dialysis_after, _ := service.GetDialysisAfeterConfig(info.UserOrgId)
|
|
666
|
+
|
|
667
|
+ treate_ment, _ := service.GetTreatMentConfig(info.UserOrgId)
|
|
668
|
+
|
|
669
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
670
|
+ "prescripition_config": prescripition_config,
|
|
671
|
+ "receive_treatement_config": receive_treatement_config,
|
|
672
|
+ "dialysis_befor": dialysis_befor,
|
|
673
|
+ "dialysis_order": dialysis_order,
|
|
674
|
+ "monitor_record": monitor_record,
|
|
675
|
+ "dialysis_after": dialysis_after,
|
|
676
|
+ "treate_ment": treate_ment,
|
|
677
|
+ })
|
|
678
|
+}
|
|
679
|
+
|
|
680
|
+func (this *XcxApiController) GetDataConfig() {
|
|
681
|
+
|
|
682
|
+ patient_id, _ := this.GetInt64("patient_id")
|
|
683
|
+ fmt.Println("patient_id", patient_id)
|
|
684
|
+ info, _ := service.GetXcxPatientInfo(patient_id)
|
|
685
|
+ list, _ := service.GetDataConfig(info.UserOrgId)
|
|
686
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
687
|
+ "list": list,
|
|
688
|
+ })
|
|
689
|
+}
|