Quellcode durchsuchen

feat: 添加透析病历api

fan vor 2 Jahren
Ursprung
Commit
3f1a75e0de

+ 8 - 0
src/api/biz/README.md

@@ -0,0 +1,8 @@
+## 文件夹情况说明
+
+- biz
+  - archives 透析病历
+    - patientBasicApi 基础病历
+    - vascularAccessApi 血管通路
+    - accessReturnApi 血透通路转归
+    - accessComplicationApi 血管通路并发症

+ 97 - 0
src/api/biz/archives/accessComplicationApi.ts

@@ -0,0 +1,97 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+  archivesAccessComplicationQueryList = '/archives/accessComplication/query/list',
+  archivesAccessComplicationDetail = '/archives/accessComplication/detail',
+  archivesAccessComplicationAdd = '/archives/accessComplication/add',
+  archivesAccessComplicationEdit = '/archives/accessComplication/edit',
+  archivesAccessComplicationRemove = '/archives/accessComplication/removeByIds',
+}
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:41
+ * @description: 根据条件查询血管通路并发症列表,权限 - archives:accessComplication:query
+ * @method: GET
+ * @param:
+ * @return:
+ *       {String}  vascularAccessId  血透通路id
+ *       {Date}  occurredTime  发生时间
+ *       {String}  name  并发症名称
+ *       {String}  remark  说明
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ */
+
+export const archivesAccessComplicationQueryList = (accessId: string) => {
+  return defHttp.get({ url: Api.archivesAccessComplicationQueryList + '/' + accessId });
+};
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:41
+ * @description: 根据id查询血管通路并发症详细信息,权限 - archives:accessComplication:query
+ * @method: GET
+ * @param:  id 血管通路并发症主键id
+ * @return:
+ *       {String}  vascularAccessId  血透通路id
+ *       {Date}  occurredTime  发生时间
+ *       {String}  name  并发症名称
+ *       {String}  remark  说明
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ */
+export const archivesAccessComplicationDetail = (id: string) => {
+  return defHttp.get({ url: Api.archivesAccessComplicationDetail + '/' + id });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:41
+ * @description: 添加血管通路并发症,权限 - archives:accessComplication:add
+ * @method: POST
+ * @param:
+ *       {String}  vascularAccessId  血透通路id
+ *       {Date}  occurredTime  发生时间
+ *       {String}  name  并发症名称
+ *       {String}  remark  说明
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ * @return:
+ *       0 添加失败
+ *       1 添加成功
+ */
+export const archivesAccessComplicationAdd = (params?: object) => {
+  return defHttp.post({ url: Api.archivesAccessComplicationAdd, params: params });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:41
+ * @description: 通过主键id编辑血管通路并发症,权限 - archives:accessComplication:edit
+ * @method: POST
+ * @param:
+ *       {String}  vascularAccessId  血透通路id
+ *       {Date}  occurredTime  发生时间
+ *       {String}  name  并发症名称
+ *       {String}  remark  说明
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ * @return:
+ *       0 编辑失败
+ *       1 编辑成功
+ */
+export const archivesAccessComplicationEdit = (params?: object) => {
+  return defHttp.post({ url: Api.archivesAccessComplicationEdit, params: params });
+};
+
+/**
+ * @description: 删除,权限 - archives:accessComplication:remove
+ * @method: POST
+ */
+export const archivesAccessComplicationRemove = (params: Array<string | number>) => {
+  return defHttp.post({ url: Api.archivesAccessComplicationRemove, params: params });
+};

+ 73 - 0
src/api/biz/archives/accessReturnApi.ts

@@ -0,0 +1,73 @@
+import { defHttp } from '/@/utils/http/axios';
+import { setParams } from '/@/utils/index';
+
+enum Api {
+  archivesAccessReturnQueryPage = '/archives/accessReturn/query/page',
+  archivesAccessReturnDetail = '/archives/accessReturn/access',
+  archivesAccessReturnAdd = '/archives/accessReturn/addOrEdit',
+  archivesAccessReturnRemove = '/archives/accessReturn/removeByIds',
+}
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:41
+ * @description: 根据条件查询血透通路转归列表,权限 - archives:accessReturn:query
+ * @method: POST
+ * @param:
+ * @return:
+ *       {String}  vascularAccessId  血管通路id
+ *       {Date}  returnTime  转归时间
+ *       {String}  returnCause  转归原因
+ *       {String}  creatorName  创建人名称
+ *       {String}  updatorName  更新人名称
+ */
+
+export const archivesAccessReturnQueryPage = (params?: object) => {
+  return defHttp.post({ url: Api.archivesAccessReturnQueryPage, params: setParams(params) });
+};
+/**
+ *
+ * @author fan
+ * @date  2023/06/17 10:41
+ * @description: 根据id查询血透通路转归详细信息,权限 - archives:accessReturn:query
+ * @method: GET
+ * @param:  id 血透通路转归主键id
+ * @return:
+ *       {String}  vascularAccessId  血管通路id
+ *       {Date}  returnTime  转归时间
+ *       {String}  returnCause  转归原因
+ *       {String}  creatorName  创建人名称
+ *       {String}  updatorName  更新人名称
+ */
+export const archivesAccessReturnDetail = (id: string) => {
+  return defHttp.get({ url: Api.archivesAccessReturnDetail + '/' + id });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:41
+ * @description: 添加血透通路转归,权限 - archives:accessReturn:add
+ * @method: POST
+ * @param:
+ *       {String}  vascularAccessId  血管通路id
+ *       {Date}  returnTime  转归时间
+ *       {String}  returnCause  转归原因
+ *       {String}  creatorName  创建人名称
+ *       {String}  updatorName  更新人名称
+ * @return:
+ *       0 添加失败
+ *       1 添加成功
+ */
+export const archivesAccessReturnAdd = (params?: object) => {
+  return defHttp.post({ url: Api.archivesAccessReturnAdd, params: params });
+};
+
+/**
+ * @description: 删除,权限 - archives:accessReturn:remove
+ * @method: POST
+ */
+export const archivesAccessReturnRemove = (params: Array<string | number>) => {
+  return defHttp.post({ url: Api.archivesAccessReturnRemove, params: params });
+};

+ 65 - 0
src/api/biz/archives/diagnosisHistoryApi.ts

@@ -0,0 +1,65 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+  archivesDiagnosisHistoryQueryListSingle = '/archives/diagnosisHistory/query/list/single',
+  archivesDiagnosisHistoryQueryListMulti = '/archives/diagnosisHistory/query/list/multi',
+  archivesDiagnosisHistorySingleAddOrEdit = '/archives/diagnosisHistory/single/addOrEdit',
+  archivesDiagnosisHistoryMultiAddOrEdit = '/archives/diagnosisHistory/multi/addOrEdit',
+  archivesDiagnosisHistoryMultiRemoveByIds = '/archives/diagnosisHistory/multi/removeByIds',
+}
+
+/**
+ *
+ * @author fan
+ * @date  2023/06/17 10:40
+ * @description: 首次透析、手术史、过敏史、传染病史诊断查询,权限 - archives:diagnosisHistory:query
+ * @method: POST
+ */
+
+export const archivesDiagnosisHistoryQueryListSingle = (patientBasicId?: string) => {
+  return defHttp.get({ url: Api.archivesDiagnosisHistoryQueryListSingle + '/' + patientBasicId });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/06/17 10:40
+ * @description: 过敏原,合并症类型、临床诊断类型、病理类型、CKD类型、其他 病史查询,权限 - archives:diagnosisHistory:query
+ * @method: POST
+ */
+
+export const archivesDiagnosisHistoryQueryListMulti = (patientBasicId?: string) => {
+  return defHttp.get({ url: Api.archivesDiagnosisHistoryQueryListMulti + '/' + patientBasicId });
+};
+/**
+ *
+ * @author fan
+ * @date  2023/06/17 10:40
+ * @description: 编辑(添加)首次透析、手术史、过敏史、传染病史诊断编辑(添加) 病史诊断,权限 - archives:diagnosisHistory:edit
+ * @method: POST
+ */
+export const archivesDiagnosisHistorySingleAddOrEdit = (params?: object) => {
+  return defHttp.post({ url: Api.archivesDiagnosisHistorySingleAddOrEdit, params: params });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/06/17 10:40
+ * @description: 编辑(添加)过敏原,合并症类型、临床诊断类型、病理类型、CKD类型、其他编辑(添加) 病史诊断,权限 - archives:diagnosisHistory:edit
+ * @method: POST
+ */
+export const archivesDiagnosisHistoryMultiAddOrEdit = (params?: object) => {
+  return defHttp.post({ url: Api.archivesDiagnosisHistoryMultiAddOrEdit, params: params });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/06/17 10:40
+ * @description: 删除 过敏原,合并症类型、临床诊断类型、病理类型、CKD类型、其他编辑(添加) 病史诊断,权限 - archives:diagnosisHistory:edit
+ * @method: POST
+ */
+export const archivesDiagnosisHistoryMultiRemoveByIds = (params?: object) => {
+  return defHttp.post({ url: Api.archivesDiagnosisHistoryMultiRemoveByIds, params: params });
+};

+ 90 - 0
src/api/biz/archives/formulaTemplateApi.ts

@@ -0,0 +1,90 @@
+import { defHttp } from '/@/utils/http/axios';
+import { setParams } from '/@/utils/index';
+
+enum Api {
+  archivesFormulaTemplateQueryPage = '/archives/formulaTemplate/query/page',
+  archivesFormulaTemplateQueryList = '/archives/formulaTemplate/query/list',
+  archivesFormulaTemplateQueryType = '/archives/formulaTemplate/query/type',
+  archivesFormulaTemplateDetail = '/archives/formulaTemplate/detail',
+  archivesFormulaTemplateAdd = '/archives/formulaTemplate/add',
+  archivesFormulaTemplateEdit = '/archives/formulaTemplate/edit',
+  archivesFormulaTemplateRemove = '/archives/formulaTemplate/removeByIds',
+}
+
+/**
+ *
+ * @author fan
+ * @date  2023/07/11 13:59
+ * @description: 添加透析处方,权限 - archives:formulaTemplate:add
+ * @method: POST
+ */
+export const archivesFormulaTemplateAdd = (params?: object) => {
+  return defHttp.post({ url: Api.archivesFormulaTemplateAdd, params: params });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/07/11 13:59
+ * @description: 编辑透析处方,权限 - archives:formulaTemplate:edit
+ * @method: POST
+ */
+export const archivesFormulaTemplateEdit = (params?: object) => {
+  return defHttp.post({ url: Api.archivesFormulaTemplateEdit, params: params });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/07/11 13:59
+ * @description: 查询透析处方模板
+ * @method: POST
+ */
+
+export const archivesFormulaTemplateQueryPage = (params?: object) => {
+  return defHttp.post({ url: Api.archivesFormulaTemplateQueryPage, params: setParams(params) });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/07/11 13:59
+ * @description: 基础病历下的所有处方模板
+ * @method: GET
+ */
+
+export const archivesFormulaTemplateQueryList = (patientBasicId: string) => {
+  return defHttp.get({ url: Api.archivesFormulaTemplateQueryList + '/' + patientBasicId });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/07/11 13:59
+ * @description: 基础病历下的所有处方模板类型
+ * @method: GET
+ */
+
+export const archivesFormulaTemplateQueryType = (patientBasicId: string) => {
+  return defHttp.get({ url: Api.archivesFormulaTemplateQueryType + '/' + patientBasicId });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/07/11 13:59
+ * @description: 查询透析处方模板byId
+ * @method: GET
+ */
+
+export const archivesFormulaTemplateDetail = (id: string) => {
+  return defHttp.get({ url: Api.archivesFormulaTemplateDetail + '/' + id });
+};
+
+/**
+ * @description: 删除,权限 - archives:formulaTemplate:remove
+ * @method: POST
+ */
+export const archivesFormulaTemplateRemove = (params: Array<string | number>) => {
+  return defHttp.post({ url: Api.archivesFormulaTemplateRemove, params: params });
+};

+ 153 - 0
src/api/biz/archives/patientBasicApi.ts

@@ -0,0 +1,153 @@
+import { defHttp } from '/@/utils/http/axios';
+import { setParams } from '/@/utils/index';
+
+enum Api {
+  archivesPatientBasicQueryPage = '/archives/patientBasic/query/page',
+  archivesPatientBasicDetail = '/archives/patientBasic/detail',
+  archivesPatientBasicAdd = '/archives/patientBasic/add',
+  archivesPatientBasicEdit = '/archives/patientBasic/edit',
+  archivesPatientBasicRemove = '/archives/patientBasic/removeByIds',
+  archivesPatientBasicStats = '/archives/patientBasic/stats',
+}
+
+/**
+ * @author fan
+ * @description 病人类型数量统计
+ * @returns
+ */
+export const archivesPatientBasicStats = () => {
+  return defHttp.post({ url: Api.archivesPatientBasicStats });
+};
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:40
+ * @description: 根据条件查询基础病历列表,权限 - archives:patientBasic:query
+ * @method: POST
+ * @param:
+ *       {String}  name     患者姓名
+ *       {String}  gender     性别
+ * @return:
+ *       {String}  scheduledId  排床id
+ *       {String}  accessId  血管通路id
+ *       {String}  uniqueNo  病人唯一编号
+ *       {String}  name  患者姓名
+ *       {String}  gender  性别
+ *       {String}  cardNo  证件号码
+ *       {Date}  birthday  出生日期
+ *       {Integer}  height  身高
+ *       {String}  address  详细地址
+ *       {String}  moblie  联系电话
+ *       {String}  type  类型
+ *       {String}  bloodType  血型
+ *       {String}  infectiousDiseases  传染病
+ *       {String}  familyName  家属姓名
+ *       {String}  familyMoblie  家属电话
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ */
+
+export const archivesPatientBasicQueryPage = (params?: object) => {
+  return defHttp.post({ url: Api.archivesPatientBasicQueryPage, params: setParams(params) });
+};
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:40
+ * @description: 根据id查询基础病历详细信息,权限 - archives:patientBasic:query
+ * @method: GET
+ * @param:  id 基础病历主键id
+ * @return:
+ *       {String}  scheduledId  排床id
+ *       {String}  accessId  血管通路id
+ *       {String}  uniqueNo  病人唯一编号
+ *       {String}  name  患者姓名
+ *       {String}  gender  性别
+ *       {String}  cardNo  证件号码
+ *       {Date}  birthday  出生日期
+ *       {Integer}  height  身高
+ *       {String}  address  详细地址
+ *       {String}  moblie  联系电话
+ *       {String}  type  类型
+ *       {String}  bloodType  血型
+ *       {String}  infectiousDiseases  传染病
+ *       {String}  familyName  家属姓名
+ *       {String}  familyMoblie  家属电话
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ */
+export const archivesPatientBasicDetail = (id: string) => {
+  return defHttp.get({ url: Api.archivesPatientBasicDetail + '/' + id });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:40
+ * @description: 添加基础病历,权限 - archives:patientBasic:add
+ * @method: POST
+ * @param:
+ *       {String}  scheduledId  排床id
+ *       {String}  accessId  血管通路id
+ *       {String}  uniqueNo  病人唯一编号
+ *       {String}  name  患者姓名
+ *       {String}  gender  性别
+ *       {String}  cardNo  证件号码
+ *       {Date}  birthday  出生日期
+ *       {Integer}  height  身高
+ *       {String}  address  详细地址
+ *       {String}  moblie  联系电话
+ *       {String}  type  类型
+ *       {String}  bloodType  血型
+ *       {String}  infectiousDiseases  传染病
+ *       {String}  familyName  家属姓名
+ *       {String}  familyMoblie  家属电话
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ * @return:
+ *       0 添加失败
+ *       1 添加成功
+ */
+export const archivesPatientBasicAdd = (params?: object) => {
+  return defHttp.post({ url: Api.archivesPatientBasicAdd, params: params });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/17 10:40
+ * @description: 通过主键id编辑基础病历,权限 - archives:patientBasic:edit
+ * @method: POST
+ * @param:
+ *       {String}  scheduledId  排床id
+ *       {String}  accessId  血管通路id
+ *       {String}  uniqueNo  病人唯一编号
+ *       {String}  name  患者姓名
+ *       {String}  gender  性别
+ *       {String}  cardNo  证件号码
+ *       {Date}  birthday  出生日期
+ *       {Integer}  height  身高
+ *       {String}  address  详细地址
+ *       {String}  moblie  联系电话
+ *       {String}  type  类型
+ *       {String}  bloodType  血型
+ *       {String}  infectiousDiseases  传染病
+ *       {String}  familyName  家属姓名
+ *       {String}  familyMoblie  家属电话
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ * @return:
+ *       0 编辑失败
+ *       1 编辑成功
+ */
+export const archivesPatientBasicEdit = (params?: object) => {
+  return defHttp.post({ url: Api.archivesPatientBasicEdit, params: params });
+};
+
+/**
+ * @description: 删除,权限 - archives:patientBasic:remove
+ * @method: POST
+ */
+export const archivesPatientBasicRemove = (params: Array<string | number>) => {
+  return defHttp.post({ url: Api.archivesPatientBasicRemove, params: params });
+};

+ 97 - 0
src/api/biz/archives/patientReturnApi.ts

@@ -0,0 +1,97 @@
+import { defHttp } from '/@/utils/http/axios';
+
+enum Api {
+  archivesPatientReturnQueryPage = '/archives/patientReturn/query/list',
+  archivesPatientReturnDetail = '/archives/patientReturn/detail',
+  archivesPatientReturnAdd = '/archives/patientReturn/add',
+  archivesPatientReturnEdit = '/archives/patientReturn/edit',
+  archivesPatientReturnRemove = '/archives/patientReturn/removeByIds',
+}
+
+/**
+ *
+ * @author lf
+ * @date  2023/07/04 13:42
+ * @description: 根据条件查询转归记录列表,权限 - archives:patientReturn:query
+ * @method: POST
+ * @param:
+ * @return:
+ *       {String}  patientBasicId  基础病历id
+ *       {Date}  returnTime  转归时间
+ *       {String}  type  转归类型
+ *       {String}  remark  remark
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ */
+
+export const archivesPatientReturnQueryPage = (params?: any) => {
+  return defHttp.get({ url: Api.archivesPatientReturnQueryPage + '/' + params?.patientBasicId });
+};
+/**
+ *
+ * @author lf
+ * @date  2023/07/04 13:42
+ * @description: 根据id查询转归记录详细信息,权限 - archives:patientReturn:query
+ * @method: GET
+ * @param:  id 转归记录主键id
+ * @return:
+ *       {String}  patientBasicId  基础病历id
+ *       {Date}  returnTime  转归时间
+ *       {String}  type  转归类型
+ *       {String}  remark  remark
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ */
+export const archivesPatientReturnDetail = (id: string) => {
+  return defHttp.get({ url: Api.archivesPatientReturnDetail + '/' + id });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/07/04 13:42
+ * @description: 添加转归记录,权限 - archives:patientReturn:add
+ * @method: POST
+ * @param:
+ *       {String}  patientBasicId  基础病历id
+ *       {Date}  returnTime  转归时间
+ *       {String}  type  转归类型
+ *       {String}  remark  remark
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ * @return:
+ *       0 添加失败
+ *       1 添加成功
+ */
+export const archivesPatientReturnAdd = (params?: object) => {
+  return defHttp.post({ url: Api.archivesPatientReturnAdd, params: params });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/07/04 13:42
+ * @description: 通过主键id编辑转归记录,权限 - archives:patientReturn:edit
+ * @method: POST
+ * @param:
+ *       {String}  patientBasicId  基础病历id
+ *       {Date}  returnTime  转归时间
+ *       {String}  type  转归类型
+ *       {String}  remark  remark
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ * @return:
+ *       0 编辑失败
+ *       1 编辑成功
+ */
+export const archivesPatientReturnEdit = (params?: object) => {
+  return defHttp.post({ url: Api.archivesPatientReturnEdit, params: params });
+};
+
+/**
+ * @description: 删除,权限 - archives:patientReturn:remove
+ * @method: POST
+ */
+export const archivesPatientReturnRemove = (params: Array<string | number>) => {
+  return defHttp.post({ url: Api.archivesPatientReturnRemove, params: params });
+};

+ 93 - 0
src/api/biz/archives/patrolWardApi.ts

@@ -0,0 +1,93 @@
+import { defHttp } from '/@/utils/http/axios';
+import { setParams } from '/@/utils/index';
+
+enum Api {
+  archivesPatrolWardQueryPage = '/archives/patrolWard/query/page',
+  archivesPatrolWardDetail = '/archives/patrolWard/detail',
+  archivesPatrolWardAdd = '/archives/patrolWard/add',
+  archivesPatrolWardEdit = '/archives/patrolWard/edit',
+  archivesPatrolWardRemove = '/archives/patrolWard/removeByIds',
+}
+
+/**
+ *
+ * @author fan
+ * @date  2023/06/30 17:39
+ * @description: 根据条件查询查房列表,权限 - biz:patrolward:query
+ * @method: POST
+ * @param:
+ *       {String}  updatorName     updator_name
+ * @return:
+ *       {String}  patientBasicId  基础病历id
+ *       {String}  scheduledId  排床id
+ *       {Date}  patrolTime  查房时间
+ *       {String}  content  查房内容
+ *       {String}  updatorName  updator_name
+ */
+
+export const archivesPatrolWardQueryPage = (params?: object) => {
+  return defHttp.post({ url: Api.archivesPatrolWardQueryPage, params: setParams(params) });
+};
+/**
+ *
+ * @author fan
+ * @date  2023/06/30 17:39
+ * @description: 根据id查询查房详细信息,权限 - biz:patrolward:query
+ * @method: GET
+ * @param:  id 查房主键id
+ * @return:
+ *       {String}  patientBasicId  基础病历id
+ *       {String}  scheduledId  排床id
+ *       {Date}  patrolTime  查房时间
+ *       {String}  content  查房内容
+ *       {String}  updatorName  updator_name
+ */
+export const archivesPatrolWardDetail = (id: string) => {
+  return defHttp.get({ url: Api.archivesPatrolWardDetail + '/' + id });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/06/30 17:39
+ * @description: 添加查房,权限 - biz:patrolward:add
+ * @method: POST
+ * @param:
+ *       {String}  patientBasicId  基础病历id
+ *       {String}  scheduledId  排床id
+ *       {Date}  patrolTime  查房时间
+ *       {String}  content  查房内容
+ * @return:
+ *       0 添加失败
+ *       1 添加成功
+ */
+export const archivesPatrolWardAdd = (params?: object) => {
+  return defHttp.post({ url: Api.archivesPatrolWardAdd, params: params });
+};
+
+/**
+ *
+ * @author fan
+ * @date  2023/06/30 17:39
+ * @description: 通过主键id编辑查房,权限 - biz:patrolward:edit
+ * @method: POST
+ * @param:
+ *       {String}  patientBasicId  基础病历id
+ *       {String}  scheduledId  排床id
+ *       {Date}  patrolTime  查房时间
+ *       {String}  content  查房内容
+ * @return:
+ *       0 编辑失败
+ *       1 编辑成功
+ */
+export const archivesPatrolWardEdit = (params?: object) => {
+  return defHttp.post({ url: Api.archivesPatrolWardEdit, params: params });
+};
+
+/**
+ * @description: 删除,权限 - biz:patrolward:remove
+ * @method: POST
+ */
+export const archivesPatrolWardRemove = (params: Array<string | number>) => {
+  return defHttp.post({ url: Api.archivesPatrolWardRemove, params: params });
+};

+ 146 - 0
src/api/biz/archives/vascularAccessApi.ts

@@ -0,0 +1,146 @@
+import { defHttp } from '/@/utils/http/axios';
+import { setParams } from '/@/utils/index';
+
+enum Api {
+  archivesVascularAccessQueryPage = '/archives/vascularAccess/query/page',
+  archivesVascularAccessDetail = '/archives/vascularAccess/detail',
+  archivesVascularAccessAdd = '/archives/vascularAccess/add',
+  archivesVascularAccessEdit = '/archives/vascularAccess/edit',
+  archivesVascularAccessRemove = '/archives/vascularAccess/removeByIds',
+  archivesVascularAccessQueryCurrent = '/archives/vascularAccess/query/current',
+  archivesVascularAccessQueryList = '/archives/vascularAccess/query/list',
+}
+
+// 当前基础病历的血透通路
+export const archivesVascularAccessQueryCurrent = (patientBasicId: string) => {
+  return defHttp.get({ url: Api.archivesVascularAccessQueryCurrent + '/' + patientBasicId });
+};
+
+// 基础病历下的所有血透通路
+export const archivesVascularAccessQueryList = (patientBasicId: string) => {
+  return defHttp.get({ url: Api.archivesVascularAccessQueryList + '/' + patientBasicId });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/19 13:59
+ * @description: 根据条件查询血管通路列表,权限 - archives:vascularAccess:query
+ * @method: POST
+ * @param:
+ * @return:
+ *       {String}  patientBasicId  病人基础信息id
+ *       {Boolean}  returnBack  是否转归
+ *       {Date}  setUpTime  建立时间
+ *       {String}  type  血管通路类型
+ *       {String}  setUpHospital  建立医院名称
+ *       {String}  puncture  穿刺体侧
+ *       {String}  location  手术位置
+ *       {String}  arteries  动脉
+ *       {String}  vein  静脉
+ *       {String}  vascularMaterial  血管材料(当通路类型为AVG时使用)
+ *       {String}  path  路径
+ *       {String}  anastomosis  吻合方式
+ *       {String}  catheterGuidance  置管引导
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ */
+
+export const archivesVascularAccessQueryPage = (params?: object) => {
+  return defHttp.post({ url: Api.archivesVascularAccessQueryPage, params: setParams(params) });
+};
+/**
+ *
+ * @author lf
+ * @date  2023/06/19 13:59
+ * @description: 根据id查询血管通路详细信息,权限 - archives:vascularAccess:query
+ * @method: GET
+ * @param:  id 血管通路主键id
+ * @return:
+ *       {String}  patientBasicId  病人基础信息id
+ *       {Boolean}  returnBack  是否转归
+ *       {Date}  setUpTime  建立时间
+ *       {String}  type  血管通路类型
+ *       {String}  setUpHospital  建立医院名称
+ *       {String}  puncture  穿刺体侧
+ *       {String}  location  手术位置
+ *       {String}  arteries  动脉
+ *       {String}  vein  静脉
+ *       {String}  vascularMaterial  血管材料(当通路类型为AVG时使用)
+ *       {String}  path  路径
+ *       {String}  anastomosis  吻合方式
+ *       {String}  catheterGuidance  置管引导
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ */
+export const archivesVascularAccessDetail = (id: string) => {
+  return defHttp.get({ url: Api.archivesVascularAccessDetail + '/' + id });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/19 13:59
+ * @description: 添加血管通路,权限 - archives:vascularAccess:add
+ * @method: POST
+ * @param:
+ *       {String}  patientBasicId  病人基础信息id
+ *       {Boolean}  returnBack  是否转归
+ *       {Date}  setUpTime  建立时间
+ *       {String}  type  血管通路类型
+ *       {String}  setUpHospital  建立医院名称
+ *       {String}  puncture  穿刺体侧
+ *       {String}  location  手术位置
+ *       {String}  arteries  动脉
+ *       {String}  vein  静脉
+ *       {String}  vascularMaterial  血管材料(当通路类型为AVG时使用)
+ *       {String}  path  路径
+ *       {String}  anastomosis  吻合方式
+ *       {String}  catheterGuidance  置管引导
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ * @return:
+ *       0 添加失败
+ *       1 添加成功
+ */
+export const archivesVascularAccessAdd = (params?: object) => {
+  return defHttp.post({ url: Api.archivesVascularAccessAdd, params: params });
+};
+
+/**
+ *
+ * @author lf
+ * @date  2023/06/19 13:59
+ * @description: 通过主键id编辑血管通路,权限 - archives:vascularAccess:edit
+ * @method: POST
+ * @param:
+ *       {String}  patientBasicId  病人基础信息id
+ *       {Boolean}  returnBack  是否转归
+ *       {Date}  setUpTime  建立时间
+ *       {String}  type  血管通路类型
+ *       {String}  setUpHospital  建立医院名称
+ *       {String}  puncture  穿刺体侧
+ *       {String}  location  手术位置
+ *       {String}  arteries  动脉
+ *       {String}  vein  静脉
+ *       {String}  vascularMaterial  血管材料(当通路类型为AVG时使用)
+ *       {String}  path  路径
+ *       {String}  anastomosis  吻合方式
+ *       {String}  catheterGuidance  置管引导
+ *       {String}  creatorName  creator_name
+ *       {String}  updatorName  updator_name
+ * @return:
+ *       0 编辑失败
+ *       1 编辑成功
+ */
+export const archivesVascularAccessEdit = (params?: object) => {
+  return defHttp.post({ url: Api.archivesVascularAccessEdit, params: params });
+};
+
+/**
+ * @description: 删除,权限 - archives:vascularAccess:remove
+ * @method: POST
+ */
+export const archivesVascularAccessRemove = (params: Array<string | number>) => {
+  return defHttp.post({ url: Api.archivesVascularAccessRemove, params: params });
+};

+ 5 - 0
src/api/common/index.ts

@@ -7,6 +7,7 @@ import { UploadFileParams } from '/#/axios';
 
 enum Api {
   listDictModel = '/sys/dictItem/query/list',
+  listDictModelBatch = '/sys/dictItem/query/batch/list',
   getConfigValue = '/system/sysConfig/getConfigValue',
   getSystemTime = '/system/sysConfig/getTime',
   getDownloadUrl = '/sys/storage/file/download/',
@@ -19,6 +20,10 @@ export function listDictModel(params?: object) {
   return defHttp.post({ url: Api.listDictModel, params: params });
 }
 
+export function listDictModelBatch(params?: Array<string>) {
+  return defHttp.post({ url: Api.listDictModelBatch, params: params });
+}
+
 export function getConfigValue(params?: object) {
   return defHttp.get({ url: Api.getConfigValue, params: params });
 }