lujh 4 veckor sedan
förälder
incheckning
3d7ea211f5

+ 16 - 0
src/api/patients/historytRecord/index.ts

@@ -0,0 +1,16 @@
+import request from '@/utils/request';
+import {AxiosPromise} from 'axios';
+
+/**
+ * 查询就诊记录列表
+ * @param query
+ * @returns {*}
+ *
+ */
+export const getHistoryRecordListAPI = (query?: any): AxiosPromise<any[]> => {
+  return request({
+    url: '/patients/hospitalRecord/list',
+    method: 'get',
+    params: query
+  });
+};

+ 84 - 0
src/api/patients/historytRecord/type.ts

@@ -0,0 +1,84 @@
+// 营养诊断类型定义
+export interface DiagnosisRecord {
+  createBy: number;
+  createByUser: string;
+  createTime: string;
+  diagnosisLabelStr: string;
+  diagnosisLabelId: string;
+  id: string;
+  patientId: string;
+  treatmentUserId: string;
+  updateBy?: number;
+  updateByUser?: string;
+  updateTime?: string;
+}
+
+// 日常膳食类型
+export interface recordDailyMealPlanVoList {
+  createBy: number;
+  createByUser: string;
+  createTime: string;
+  id: string;
+  recipeMap: any;
+  recommendEndDate: string;
+  recommendStartDate: string;
+  totalCalorie: number | null;
+}
+
+// 院内膳食类型
+export interface recordHospitalMealPlanVoList extends recordDailyMealPlanVoList {}
+
+// 营养筛查类型定义
+export interface recordScreeningVoList {
+  configId: string;
+  configName: string;
+  createBy: number;
+  createByUser: string;
+  createTime: string;
+  id: string;
+  screeningConclusion: string | null;
+  screeningScore: string;
+}
+
+// 营养评估类型定义
+export interface recordEvaluationVoList {
+  configId: string;
+  configName: string;
+  content: string;
+  createBy: number;
+  createByUser: string;
+  createTime: string;
+  id: string;
+}
+
+// 营养处方产品信息类型
+export interface EnteralProduct {
+  fid: string;
+  settlementId: string;
+  prescriptionDate: string;
+  groupNo: string;
+  nutritionProduct: string;
+  [key: string]: any; // 其他可能的属性
+}
+
+// 营养处方类型定义
+export interface recordSettlementVoList {
+  createBy: number | null;
+  createByUser: string | null;
+  createTime: string | null;
+  enteralMap: {
+    [key: string]: EnteralProduct[]; // 键为时间(如:"09:44:11"),值为产品数组
+  };
+  id: string;
+  orderTime: string;
+}
+
+// API 响应数据类型
+export interface HistoryRecordResponse {
+  recordDiagnosisVoList: DiagnosisRecord[];
+  recordDailyMealPlanVoList: recordDailyMealPlanVoList[];
+  recordHospitalMealPlanVoList: recordHospitalMealPlanVoList[];
+  recordScreeningVoList: recordScreeningVoList[];
+  recordEvaluationVoList: recordEvaluationVoList[];
+  recordSettlementVoList: recordSettlementVoList[];
+}

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 148 - 1513
src/views/patients/hospitalRecord/index.vue


Vissa filer visades inte eftersom för många filer har ändrats