This commit is contained in:
abing
2025-04-02 11:17:27 +08:00
parent eb7a7d6d98
commit a22efae39e
8 changed files with 14016 additions and 6 deletions

16
.gitattributes vendored Normal file
View File

@@ -0,0 +1,16 @@
# Windows 用户配置:
# 由于 Windows 默认使用 CRLF而 macOS 默认使用 LF因此建议 Windows 用户使用 core.autocrlf true这样 Git 会在提交时将 CRLF 转换为 LF在检出代码时将 LF 转换为 CRLF。
# git config --global core.autocrlf true
# macOS 用户配置:
# macOS和 Linux默认使用 LF因此建议 macOS 用户使用 core.autocrlf input这样 Git 只会在提交时将 CRLF 转换为 LF不会改变 LF 文件的行结束符。
# git config --global core.autocrlf input
# 该文件可以避免不同操作系统之间引发行结束符的冲突
# 强制所有文本文件使用 LF 作为行结束符。确保项目一致性
* text=auto eol=lf
# 对于 Windows 特有的二进制文件(如 .exe, .dll 等),保持原始行结束符
*.exe binary
*.dll binary

57
.gitignore vendored
View File

@@ -1 +1,58 @@
# 忽略所有编译器、IDE相关的文件
**/.idea/
**/.vscode/
**/*.swp
**/*.swo
**/*.bak
**/*.tmp
**/.vs/
# 忽略 Java 项目编译文件
**/*.class
**/*.jar
**/*.war
**/*.ear
**/target/
**/bin/
# 忽略 Maven、Gradle、Ant 相关文件
**/.mvn/
**/.gradle/
**/build/
**/out/
# 忽略 Eclipse、IntelliJ IDEA 和 NetBeans 临时文件
**/*.log
**/*.project
**/*.classpath
# 忽略 Java 配置文件
**/*.iml
# 忽略 Node.js 和 Vue 项目相关文件
**/node_modules/
**/npm-debug.log
**/yarn-error.log
**/yarn-debug.log
**/dist/
**/*.lock
**/*.tgz
# 忽略 Vue 项目相关构建文件
**/.vuepress/dist/
# 忽略 IDE 配置文件
**/*.launch
**/*.settings/
# 忽略操作系统生成的文件
**/.DS_Store
**/Thumbs.db
**/Desktop.ini
/openhis-miniapp/unpackage
# 忽略设计书
PostgreSQL/openHis_DB设计书.xlsx

13908
PostgreSQL/public.sql Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1,24 @@
# openhis
# OpenHis-ITAII
OpenHis 信创版
## 运行环境
jdk17 (必须)
node.js-v16.15 (推荐)
PostgreSQL-v16.2 (必须)
redis (常用稳定版本即可)
## 开发提示
需要修改数据库和redis的连接信息,详见:
application.yml
application-druid.yml
## 目录解释
前端: openhis-ui-vue3
后端: openhis-server
启动类: OpenHisApplication

Binary file not shown.

View File

@@ -233,6 +233,7 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
// TODO: 药品分方;待做
prescriptionNo = assignSeqUtil.getSeq(AssignSeqEnum.PRESCRIPTION_NO.getPrefix(), 8);
}
Date curDate = new Date();
// 声明费用项
ChargeItem chargeItem;
// 保存药品请求
@@ -284,7 +285,7 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
chargeItem.setDefinitionId(adviceSaveDto.getDefinitionId()); // 费用定价ID
chargeItem.setDefDetailId(adviceSaveDto.getDefinitionDetailId()); // 定价子表主键
chargeItem.setEntererId(adviceSaveDto.getPractitionerId());// 开立人ID
chargeItem.setEnteredDate(new Date()); // 开立时间
chargeItem.setEnteredDate(curDate); // 开立时间
chargeItem.setServiceTable("med_medication_request");// 医疗服务类型
chargeItem.setServiceId(medicationRequest.getId()); // 医疗服务ID
chargeItem.setProductTable(adviceSaveDto.getAdviceTableName());// 产品所在表
@@ -332,14 +333,13 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
chargeItem = new ChargeItem();
chargeItem.setStatusEnum(ChargeItemStatus.PLANNED.getValue()); // 默认-待收费
chargeItem.setBusNo(AssignSeqEnum.CHARGE_ITEM_NO.getPrefix().concat(deviceRequest.getBusNo()));
chargeItem.setPrescriptionNo(prescriptionNo); // 处方号
chargeItem.setPatientId(adviceSaveDto.getPatientId()); // 患者
chargeItem.setContextEnum(adviceSaveDto.getAdviceType()); // 类型
chargeItem.setEncounterId(adviceSaveDto.getEncounterId()); // 就诊id
chargeItem.setDefinitionId(adviceSaveDto.getDefinitionId()); // 费用定价ID
chargeItem.setDefDetailId(adviceSaveDto.getDefinitionDetailId()); // 定价子表主键
chargeItem.setEntererId(adviceSaveDto.getPractitionerId());// 开立人ID
chargeItem.setEnteredDate(new Date()); // 开立时间
chargeItem.setEnteredDate(curDate); // 开立时间
chargeItem.setServiceTable("wor_device_request");// 医疗服务类型
chargeItem.setServiceId(deviceRequest.getId()); // 医疗服务ID
chargeItem.setProductTable(adviceSaveDto.getAdviceTableName());// 产品所在表
@@ -377,14 +377,13 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
chargeItem = new ChargeItem();
chargeItem.setStatusEnum(ChargeItemStatus.PLANNED.getValue()); // 默认-待收费
chargeItem.setBusNo(AssignSeqEnum.CHARGE_ITEM_NO.getPrefix().concat(serviceRequest.getBusNo()));
chargeItem.setPrescriptionNo(prescriptionNo); // 处方号
chargeItem.setPatientId(adviceSaveDto.getPatientId()); // 患者
chargeItem.setContextEnum(adviceSaveDto.getAdviceType()); // 类型
chargeItem.setEncounterId(adviceSaveDto.getEncounterId()); // 就诊id
chargeItem.setDefinitionId(adviceSaveDto.getDefinitionId()); // 费用定价ID
chargeItem.setDefDetailId(adviceSaveDto.getDefinitionDetailId()); // 定价子表主键
chargeItem.setEntererId(adviceSaveDto.getPractitionerId());// 开立人ID
chargeItem.setEnteredDate(new Date()); // 开立时间
chargeItem.setEnteredDate(curDate); // 开立时间
chargeItem.setServiceTable("wor_service_request");// 医疗服务类型
chargeItem.setServiceId(serviceRequest.getId()); // 医疗服务ID
chargeItem.setProductTable(adviceSaveDto.getAdviceTableName());// 产品所在表

View File

@@ -42,6 +42,7 @@
"devDependencies": {
"@vitejs/plugin-vue": "4.5.0",
"@vue/compiler-sfc": "3.3.9",
"less": "^4.2.2",
"sass": "1.69.5",
"unplugin-auto-import": "0.17.1",
"unplugin-vue-setup-extend-plus": "1.0.0",

6
openhis-ui/package-lock.json generated Normal file
View File

@@ -0,0 +1,6 @@
{
"name": "openhis-ui",
"lockfileVersion": 2,
"requires": true,
"packages": {}
}