Compare commits
298 Commits
Author | SHA1 | Date |
---|---|---|
|
357aea83e8 | 1 year ago |
|
51484d6733 | 1 year ago |
|
2deeb08c6d | 1 year ago |
|
d5f392d0d1 | 1 year ago |
|
1766021c2b | 1 year ago |
|
31b1b34b12 | 1 year ago |
|
14e8cb760e | 1 year ago |
|
f2ba8df622 | 1 year ago |
|
4a8573e751 | 1 year ago |
|
b6547b4389 | 1 year ago |
|
55914c5b05 | 1 year ago |
|
7ebc5e6276 | 1 year ago |
|
3c0d5acbd9 | 1 year ago |
|
2060c06a34 | 1 year ago |
|
aa1629ade5 | 1 year ago |
|
878e0146fa | 1 year ago |
|
7571705f6e | 1 year ago |
|
369f8a6ae4 | 1 year ago |
|
20bdd4dda2 | 1 year ago |
|
6768578a16 | 1 year ago |
|
70d20b1ac0 | 1 year ago |
|
7eadb12c2c | 1 year ago |
|
de9057e600 | 1 year ago |
|
117c5b0b64 | 1 year ago |
|
736cfc3291 | 1 year ago |
|
b7a2236cef | 1 year ago |
|
8a035d66d9 | 1 year ago |
|
b95218a11e | 1 year ago |
|
92989d281d | 1 year ago |
|
7a68456ef7 | 1 year ago |
|
518192984c | 1 year ago |
|
43c881f1c0 | 1 year ago |
|
fcff56f26e | 1 year ago |
|
bc683dbfae | 1 year ago |
|
8663175bb4 | 1 year ago |
|
696bbaaf05 | 1 year ago |
|
37e5a93833 | 1 year ago |
|
3a2217e3d9 | 1 year ago |
|
167181c66c | 1 year ago |
|
b86e582e6e | 1 year ago |
|
4ff3c6bf31 | 1 year ago |
|
6263047420 | 1 year ago |
|
f5f91244fc | 1 year ago |
|
8ba94d592e | 1 year ago |
|
9c08c8cdce | 1 year ago |
|
37d84d1011 | 1 year ago |
|
686f378e4c | 1 year ago |
|
d92f26d1b7 | 1 year ago |
|
7922a8e0c0 | 1 year ago |
|
976b33d6e7 | 1 year ago |
|
f85c2a627b | 1 year ago |
|
0ff139a803 | 1 year ago |
|
5c88a419f9 | 1 year ago |
|
f8dd864942 | 1 year ago |
|
c704386be2 | 1 year ago |
|
ffb509017d | 1 year ago |
|
87a8941f35 | 1 year ago |
|
806618e611 | 1 year ago |
|
4173d4b9fd | 1 year ago |
|
081e49a92c | 1 year ago |
|
97b955a5a8 | 1 year ago |
|
dd6f149730 | 1 year ago |
|
50c9805ce4 | 1 year ago |
|
759d168966 | 1 year ago |
|
c2548a115b | 1 year ago |
|
0a00e89278 | 1 year ago |
|
a4d03a4322 | 1 year ago |
|
97e4ed0ad6 | 1 year ago |
|
be56dbb188 | 1 year ago |
|
61f72c6ec8 | 1 year ago |
|
d0a145582d | 1 year ago |
|
a563f6f397 | 1 year ago |
|
43f0f2ef4c | 1 year ago |
|
72e0670e28 | 1 year ago |
|
c295051802 | 1 year ago |
|
ef4a3fc96b | 1 year ago |
|
3d741b282e | 1 year ago |
|
a1da405d37 | 1 year ago |
|
627ab5d889 | 1 year ago |
|
2308f3f8a6 | 1 year ago |
|
92fc5403e1 | 1 year ago |
|
81a20bf16f | 1 year ago |
|
0fadda6819 | 1 year ago |
|
297dcc53b3 | 1 year ago |
|
f38198085b | 1 year ago |
|
7841153e58 | 1 year ago |
|
718f395719 | 1 year ago |
|
5736487568 | 1 year ago |
|
2ce1252556 | 1 year ago |
|
1fc3b08900 | 1 year ago |
|
4d85b74c52 | 1 year ago |
|
c6c47b9507 | 1 year ago |
|
047cd36495 | 1 year ago |
|
c6de710292 | 1 year ago |
|
62d38a29e8 | 1 year ago |
|
665016f998 | 1 year ago |
|
001f40204f | 1 year ago |
|
60b1b6e46d | 1 year ago |
|
f976fc5efb | 1 year ago |
|
f5ca86ede5 | 1 year ago |
|
d8a35320f4 | 1 year ago |
|
497a5a0ebc | 1 year ago |
|
f1aeb1eeb7 | 1 year ago |
|
b5377bb305 | 1 year ago |
|
6f365d133e | 1 year ago |
|
8e0704a60e | 1 year ago |
|
3c91a96586 | 1 year ago |
|
a97dfd599f | 1 year ago |
|
f98abe0149 | 1 year ago |
|
6821cd03cb | 1 year ago |
|
ef03a59de4 | 1 year ago |
|
41711c4c0e | 1 year ago |
|
9cad83457e | 1 year ago |
|
f6781d276f | 1 year ago |
|
d852904594 | 1 year ago |
|
badf0b4b44 | 1 year ago |
|
f581af1ad3 | 1 year ago |
|
4ef4e47016 | 1 year ago |
|
eceebb3c08 | 1 year ago |
|
28043a2976 | 1 year ago |
|
9dfff24041 | 1 year ago |
|
63796445b4 | 1 year ago |
|
d010af373d | 1 year ago |
|
1a9abe1494 | 1 year ago |
|
fa432a1d48 | 1 year ago |
|
8757f60599 | 1 year ago |
|
21d411b26c | 1 year ago |
|
64c442d939 | 1 year ago |
|
f65e96b526 | 1 year ago |
|
643d94494c | 1 year ago |
|
661b378873 | 1 year ago |
|
50c7a72aaf | 1 year ago |
|
c8397014cb | 1 year ago |
|
0bc00115f6 | 1 year ago |
|
a31e1d9988 | 1 year ago |
|
2aeeac2a8e | 1 year ago |
|
ed312d44a0 | 1 year ago |
|
8c8396b11a | 1 year ago |
|
1904a7f7f6 | 1 year ago |
|
d63c4f81ad | 1 year ago |
|
51d59517c1 | 1 year ago |
|
9353cf4176 | 1 year ago |
|
9dae6a0791 | 1 year ago |
|
bf171937d1 | 1 year ago |
|
737755651f | 1 year ago |
|
c78b90fe4a | 1 year ago |
|
680e07cc39 | 1 year ago |
|
d77ef0ec7c | 1 year ago |
|
59c2b46ca3 | 1 year ago |
|
491ff0efe1 | 1 year ago |
|
1d95cb9155 | 1 year ago |
|
5b298e2096 | 1 year ago |
|
0937cc80fe | 1 year ago |
|
b963080610 | 1 year ago |
|
2f80a9a79f | 1 year ago |
|
23d81a5719 | 1 year ago |
|
53bc464316 | 1 year ago |
|
ff24e0cb57 | 1 year ago |
|
cac7d036fc | 1 year ago |
|
6bd33e34a3 | 1 year ago |
|
fb657bb9fa | 1 year ago |
|
d18cb19987 | 1 year ago |
|
9f2e8db131 | 1 year ago |
|
7f7bd78bb2 | 1 year ago |
|
0218761a1c | 1 year ago |
|
f7b8440195 | 1 year ago |
|
2e89edc985 | 1 year ago |
|
45900abc2f | 1 year ago |
|
4073d7f63d | 1 year ago |
|
4bf72b2938 | 1 year ago |
|
0239c2485c | 1 year ago |
|
24e211a0df | 1 year ago |
|
6fc06a1cc8 | 1 year ago |
|
853a13b45e | 1 year ago |
|
033d4347c6 | 1 year ago |
|
fe0af29b27 | 1 year ago |
|
ed21c5d316 | 1 year ago |
|
944bbddcca | 1 year ago |
|
56417e2fbf | 1 year ago |
|
858d128f8c | 1 year ago |
|
3eb0de3431 | 1 year ago |
|
79b65870d1 | 1 year ago |
|
1d942eeef7 | 1 year ago |
|
937e8c713a | 1 year ago |
|
5b21c5d64a | 1 year ago |
|
4640ce2e76 | 1 year ago |
|
66588bf851 | 1 year ago |
|
7d444beed4 | 1 year ago |
|
b21a5f70e2 | 1 year ago |
|
726448fef2 | 1 year ago |
|
c7bc05e0c6 | 1 year ago |
|
ba61e59b6f | 1 year ago |
|
fbc48cb4a8 | 1 year ago |
|
732c568a2d | 1 year ago |
|
ce1c2acdfa | 1 year ago |
|
511b8864ef | 1 year ago |
|
3257ac18df | 1 year ago |
|
5c6e30a5fd | 1 year ago |
|
ccdc5cdfb2 | 1 year ago |
|
1a650a4df5 | 1 year ago |
|
c0d0565aab | 1 year ago |
|
d5e0bd1b0a | 1 year ago |
|
fd5a8226f3 | 1 year ago |
|
0bde7b509a | 1 year ago |
|
158196e119 | 1 year ago |
|
2e9c097620 | 1 year ago |
|
24d943fe43 | 1 year ago |
|
25450fc781 | 1 year ago |
|
b83a820f63 | 1 year ago |
|
b08921138f | 1 year ago |
|
6f91973c8e | 1 year ago |
|
ca97cffad8 | 1 year ago |
|
20ae059e00 | 1 year ago |
|
b36d38e286 | 1 year ago |
|
7b522286e7 | 1 year ago |
|
f380b9fc10 | 1 year ago |
|
74f5ac4514 | 1 year ago |
|
e4a61d9862 | 1 year ago |
|
6bb22ec25e | 1 year ago |
|
81a13def97 | 1 year ago |
|
ffdd115f5e | 1 year ago |
|
78ad6808bf | 1 year ago |
|
f21da0f6e3 | 1 year ago |
|
8b6ad5330b | 1 year ago |
|
d77a7b9bbd | 1 year ago |
|
4ba733bea3 | 1 year ago |
|
31a383f086 | 1 year ago |
|
5407c4b84c | 1 year ago |
|
4590549852 | 1 year ago |
|
1aec63ca88 | 1 year ago |
|
b4f8168028 | 1 year ago |
|
4e6340ac06 | 1 year ago |
|
4740bbafe1 | 1 year ago |
|
763f2e5aee | 1 year ago |
|
cf3ab921c8 | 1 year ago |
|
8f010b7c99 | 1 year ago |
|
4ac974c50e | 1 year ago |
|
5e6f029dc8 | 1 year ago |
|
c59c4f9907 | 1 year ago |
|
365c9446d0 | 1 year ago |
|
c89bf42035 | 1 year ago |
|
7bca2c63df | 1 year ago |
|
b638a661ef | 1 year ago |
|
c81b4055b2 | 1 year ago |
|
41dd81ac3f | 1 year ago |
|
e93e8d6a83 | 1 year ago |
|
6641bd4bbf | 1 year ago |
|
822af5cec0 | 1 year ago |
|
70b6f60cb2 | 1 year ago |
|
a3ef5675b8 | 1 year ago |
|
b718b5e35b | 1 year ago |
|
949386e11c | 1 year ago |
|
6fa9641290 | 1 year ago |
|
d912bbaeeb | 1 year ago |
|
4d56468a28 | 1 year ago |
|
161c90aaf3 | 1 year ago |
|
4320559301 | 1 year ago |
|
9d16bb58b4 | 1 year ago |
|
0d103102d3 | 1 year ago |
|
3e06aa5893 | 1 year ago |
|
35a8319106 | 1 year ago |
|
686c149a48 | 1 year ago |
|
150cb16873 | 1 year ago |
|
f0a7b18da9 | 1 year ago |
|
87ba70f100 | 1 year ago |
|
c9f19d35bb | 1 year ago |
|
bc62a3677d | 1 year ago |
|
e8f9284e54 | 1 year ago |
|
12cb7a6c32 | 1 year ago |
|
1159b3e523 | 1 year ago |
|
dcf2853190 | 1 year ago |
|
d722669db4 | 1 year ago |
|
6bd610d479 | 1 year ago |
|
98538db7dc | 1 year ago |
|
da4f37e3a5 | 1 year ago |
|
a9e72d6f6d | 1 year ago |
|
0750334c82 | 1 year ago |
|
4cef221c0b | 1 year ago |
|
2f0acf4315 | 1 year ago |
|
9825ba2ae8 | 1 year ago |
|
40504046b3 | 1 year ago |
|
8c70cdba9b | 1 year ago |
|
6e802fffcf | 1 year ago |
|
41f2a9282d | 1 year ago |
|
6615d49333 | 1 year ago |
|
3014f6e274 | 1 year ago |
|
b607d93da1 | 1 year ago |
|
0f542eed24 | 1 year ago |
|
6a3c864192 | 1 year ago |
|
8cd33b2698 | 1 year ago |
|
c8de05db9f | 1 year ago |
|
402040a6dd | 1 year ago |
|
8060d82518 | 1 year ago |
|
989cb44e32 | 1 year ago |
|
0ceadbf1bf | 1 year ago |
|
24575d1785 | 1 year ago |
|
0ebfae0389 | 1 year ago |
|
6e15cbe3ba | 1 year ago |
@ -1,3 +1,26 @@
|
|||||||
# virtual-patient
|
# virtual-patient
|
||||||
|
|
||||||
虚拟病人WEB后端
|
虚拟病人WEB后端
|
||||||
|
|
||||||
|
|
||||||
|
## 环境地址访问
|
||||||
|
### dev环境
|
||||||
|
- 前台内网访问:
|
||||||
|
- http://192.168.10.138:8199/#/login
|
||||||
|
- https://192.168.10.138:443/#/login
|
||||||
|
- 前台外网访问
|
||||||
|
- http://124.220.94.55:8014/#/login
|
||||||
|
- https://124.220.94.55:8025/#/login
|
||||||
|
- 后台内网访问(访问前需要先登录):
|
||||||
|
- http://192.168.10.138:8199/#/caseManagement/diseaseType
|
||||||
|
- https://192.168.10.138:443/#/caseManagement/diseaseType
|
||||||
|
### test环境
|
||||||
|
- 前台内网访问:
|
||||||
|
- http://192.168.10.138:8299/#/login
|
||||||
|
- https://192.168.10.138:453/#/login
|
||||||
|
- 前台外网访问
|
||||||
|
- http://124.220.94.55:8013/#/login
|
||||||
|
- https://124.220.94.55:8015/#/login
|
||||||
|
- 后台内网访问(访问前需要先登录):
|
||||||
|
- http://192.168.10.138:8299/#/caseManagement/diseaseType
|
||||||
|
- https://192.168.10.138:453/#/caseManagement/diseaseType
|
@ -0,0 +1,19 @@
|
|||||||
|
# 设置基础镜像
|
||||||
|
# 在137服务器中使用的是 rasa_dev:1.0.0镜像
|
||||||
|
FROM nginx:1.25
|
||||||
|
|
||||||
|
ENV APP_HOME=/data/vp
|
||||||
|
|
||||||
|
# 设置工作目录
|
||||||
|
WORKDIR $APP_HOME
|
||||||
|
|
||||||
|
# 复制java jar 到容器中
|
||||||
|
COPY ./docs/conf.d /etc/nginx/conf.d
|
||||||
|
# 复制rasa配置文件到 rasa目录下
|
||||||
|
COPY ./docs/ssl /data/vp/nginx/ssl
|
||||||
|
|
||||||
|
# 暴漏服务端口
|
||||||
|
EXPOSE 80 443
|
||||||
|
|
||||||
|
# 设置启动命令
|
||||||
|
CMD ["nginx","-g","daemon off;"]
|
@ -0,0 +1,3 @@
|
|||||||
|
# 构建步骤
|
||||||
|
- 修改配置文件 docs/conf.d/default.conf中的服务器地址
|
||||||
|
- 运行Dockerfile文件构建镜像 docker build -t my/nginx:1.25 .
|
@ -0,0 +1,21 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIDdzCCAl8CFC5Pwm//gTURwneg5cjhbkyueufNMA0GCSqGSIb3DQEBCwUAMHgx
|
||||||
|
CzAJBgNVBAYTAkNIMQswCQYDVQQIDAJOSjEOMAwGA1UEBwwFbmogeWgxDDAKBgNV
|
||||||
|
BAoMA3NzdDEMMAoGA1UECwwDc3N0MQ8wDQYDVQQDDAZzc3RvcmcxHzAdBgkqhkiG
|
||||||
|
9w0BCQEWEDEyMzQ1NkBlbWFpbC5jb20wHhcNMjMxMTEwMDEyMzIzWhcNMjMxMjEw
|
||||||
|
MDEyMzIzWjB4MQswCQYDVQQGEwJDSDELMAkGA1UECAwCTkoxDjAMBgNVBAcMBW5q
|
||||||
|
IHloMQwwCgYDVQQKDANzc3QxDDAKBgNVBAsMA3NzdDEPMA0GA1UEAwwGc3N0b3Jn
|
||||||
|
MR8wHQYJKoZIhvcNAQkBFhAxMjM0NTZAZW1haWwuY29tMIIBIjANBgkqhkiG9w0B
|
||||||
|
AQEFAAOCAQ8AMIIBCgKCAQEA0/VotZw72C+GVQnKsVfwtxeXEPPfiUfE0/H6mp8A
|
||||||
|
jhxHnFofNK5mvjYs3++U9UEfP1jq84flaD5qgrEGzhauJg6NdrLdcd9RCguu8Pkm
|
||||||
|
YHIMVl9UzLQexKg15wh0Fc8S6vc3xGBPfosS29YJulXcUZB2CeVJ9CXCTx2Z1dRG
|
||||||
|
Ug9eMTiPwgB8GnQ56h2GjTyCnVWeVoXBFVef6sY0czkPoJVPk7TZI3K5BmaLBNX1
|
||||||
|
0L4OzaJtOa6ZWll3rGxVrk/7oB+Z3t3l8NXF9SrmC039K3sZerNLjlVUdkGD52jz
|
||||||
|
xCc4Eixcus2pduKfIP3dUhdn05TNUln1/nIFRErcXUWdswIDAQABMA0GCSqGSIb3
|
||||||
|
DQEBCwUAA4IBAQCLmsogw3J6KOyHnzaWQaKvhRzqPAupIBY4HYTk+hyOahgMMkkd
|
||||||
|
+3QIiWU/pp0Nu5iyYytzGRCQIz1Jh+xpk3UQVpayDB8C4XIB7oyzpuatTuyeCvq/
|
||||||
|
lnDlk8jk64EewLLWE2pOce6yAKZ/xhcQiDI9YcjgGOkUOjv7Hgqhzwlafrt5FXGB
|
||||||
|
znFmVi5A52RqkkteplkRsl08OE5VmfxwFYJWZ7QXMlp5ec13oCE21PU+cmLLF/Vb
|
||||||
|
xl7JJKeMOgDICiSczcYzwP56SiYFktKQ8KmDotFWgBM9mtxkEcOqPb2Xe9vzOclk
|
||||||
|
AK+5bHhgF2yZGhjbNuzp/FwGSAIozuR5IXxJ
|
||||||
|
-----END CERTIFICATE-----
|
@ -0,0 +1,17 @@
|
|||||||
|
-----BEGIN CERTIFICATE REQUEST-----
|
||||||
|
MIICvTCCAaUCAQAweDELMAkGA1UEBhMCQ0gxCzAJBgNVBAgMAk5KMQ4wDAYDVQQH
|
||||||
|
DAVuaiB5aDEMMAoGA1UECgwDc3N0MQwwCgYDVQQLDANzc3QxDzANBgNVBAMMBnNz
|
||||||
|
dG9yZzEfMB0GCSqGSIb3DQEJARYQMTIzNDU2QGVtYWlsLmNvbTCCASIwDQYJKoZI
|
||||||
|
hvcNAQEBBQADggEPADCCAQoCggEBANP1aLWcO9gvhlUJyrFX8LcXlxDz34lHxNPx
|
||||||
|
+pqfAI4cR5xaHzSuZr42LN/vlPVBHz9Y6vOH5Wg+aoKxBs4WriYOjXay3XHfUQoL
|
||||||
|
rvD5JmByDFZfVMy0HsSoNecIdBXPEur3N8RgT36LEtvWCbpV3FGQdgnlSfQlwk8d
|
||||||
|
mdXURlIPXjE4j8IAfBp0Oeodho08gp1VnlaFwRVXn+rGNHM5D6CVT5O02SNyuQZm
|
||||||
|
iwTV9dC+Ds2ibTmumVpZd6xsVa5P+6Afmd7d5fDVxfUq5gtN/St7GXqzS45VVHZB
|
||||||
|
g+do88QnOBIsXLrNqXbinyD93VIXZ9OUzVJZ9f5yBURK3F1FnbMCAwEAAaAAMA0G
|
||||||
|
CSqGSIb3DQEBCwUAA4IBAQCFdN/RMNZtduCGs21f5Le4uGePh2nHzqB2tPzPsWYV
|
||||||
|
LLPO/pInHB0lQ3vJLFtIeaTLIDwB+AFcdM7rNhMGz9rj/Qrk9LCvgm+CQGUOy1h4
|
||||||
|
r1tJ27z+8xfwHls/fgghHnSLoaUvma2FfIQzZc/rGTDLkdERBZ1skxOVqIw56qlA
|
||||||
|
aPyKUt9s/fg6P5xMSv5SDIR89n0i3TChSa8nNdHV1Ld44mLZ7Aw29ChXI5DaQ05t
|
||||||
|
B6rdNz3AofmxlkzHIlFl46kPMy4H5jgHWlOBT+eLHv/fecPWCNpgnr9vi7O2Ih9o
|
||||||
|
i8KHDeK1T9Bl5U+sGof6E0Sey/xBOEGnYzuiQUl4kxfL
|
||||||
|
-----END CERTIFICATE REQUEST-----
|
@ -0,0 +1,28 @@
|
|||||||
|
-----BEGIN PRIVATE KEY-----
|
||||||
|
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDT9Wi1nDvYL4ZV
|
||||||
|
CcqxV/C3F5cQ89+JR8TT8fqanwCOHEecWh80rma+Nizf75T1QR8/WOrzh+VoPmqC
|
||||||
|
sQbOFq4mDo12st1x31EKC67w+SZgcgxWX1TMtB7EqDXnCHQVzxLq9zfEYE9+ixLb
|
||||||
|
1gm6VdxRkHYJ5Un0JcJPHZnV1EZSD14xOI/CAHwadDnqHYaNPIKdVZ5WhcEVV5/q
|
||||||
|
xjRzOQ+glU+TtNkjcrkGZosE1fXQvg7Nom05rplaWXesbFWuT/ugH5ne3eXw1cX1
|
||||||
|
KuYLTf0rexl6s0uOVVR2QYPnaPPEJzgSLFy6zal24p8g/d1SF2fTlM1SWfX+cgVE
|
||||||
|
StxdRZ2zAgMBAAECggEAAPoKh3u20uI1LkMjSfnrxAw5x/w3tXw9LfTZgMjmycDb
|
||||||
|
m57Wsflzw8CgKFAEUbUBHdudCY5AwmA3QW7rZxu3pbk/caKVXqb2yqMPJVEgmiUs
|
||||||
|
ZWF/FIpn8eQMi4oAbvFLVwXYnfELrLubVKQB23f10fJmeNkzpApggNjUEqYtxMcH
|
||||||
|
MjfUmXzrZhvFKdRjdmyITa4gI9djuRvOIfWz0bZTePUtcfgCfpkM3lbxWRIst7Dg
|
||||||
|
FqCcgX68XOHHDCzzWTE7LasFBZx3mAcOyRMC+MKw96becC4r1c2KFFKh8tFp57y2
|
||||||
|
hQ1ybjxeF2MaWf3I/ioi2uTUza+L8m2RsKwABcRwIQKBgQDUrnn/WtKdryDU0rBj
|
||||||
|
cwsKTrMCycblwYCJj58cGSiETTVJOlhh1N2QtE/kwQI69tUVOc7C5p5FZzk+iff7
|
||||||
|
KwvwDqurtW5kKHE5IamUnKqv32bbHuRtg9CB0ktmmbxOrwP5s+QGhh5fKGvFKs3D
|
||||||
|
xVytLVw76f+BLK4NaBbzCdEN6wKBgQD/IT0F9f9XnTIa1a/bNVLCuRRZdWjDK40i
|
||||||
|
bD8EgO9T/FxK4yXSV3IB2C6mQNdMxDcmFBTS7EoXPZpZYuFCqBKQvV1OQ0yUAy2b
|
||||||
|
+PmmZMBakbpQHkIjkq2cgXNXaVdDeKPfoG4SqPz/6x7p/Np/UG9Ey8juNuQXmIiH
|
||||||
|
wwjwTfqVWQKBgQDNd6ogykuDTvd24/zIdxIJaTKD1Q+0U5asTvY2HRAJkNWT4ywT
|
||||||
|
h6Rt8eTlaJmRAXmmQezAWjA5eJnTE1NhcZrc1i9/eY4mcPPBcAX2rswvkLI7qsKg
|
||||||
|
EqJTaSiy/H7xvR8oE2SN8PBSmihTmSCkq3z3SUU8FLpkvxd/mDnjnm469QKBgQCg
|
||||||
|
rRQ7ftPTH+MAV3erPIfkrp8MQA88a181QKrncTRI1nRhjXCyafQZCUdH2So+5Iw+
|
||||||
|
5QLAW6PFwzxD8yweyK74jOoIcgX2aZH92u2PR4CFCaYm8weAU84W9MfpUyRsD7xV
|
||||||
|
CDqKcfb0TeVoQ6Bv8f5Be34N2HAKFDxYFBK7FMEt8QKBgDNBG3n8/912dDWV1Dve
|
||||||
|
o4v+TAnlAMHgEXZH+VCCzeIyj1UkUh4sxdIGGaGCPrWGrqxIYIKPKX8gPIWQ7QJj
|
||||||
|
QJZyL5nqGXWwZUvBuHzE3tB24XJpuHGfg+oBdDfg0aiEMTQKnRORdgHHVdB9W3SN
|
||||||
|
2TrXQbtwB1X+wioA4615n6ih
|
||||||
|
-----END PRIVATE KEY-----
|
@ -0,0 +1,7 @@
|
|||||||
|
# 设置基础镜像
|
||||||
|
FROM redis:6.0.0
|
||||||
|
|
||||||
|
COPY ./redis.conf /usr/local/redis
|
||||||
|
|
||||||
|
# 设置启动命令
|
||||||
|
CMD ["redis-server","/usr/local/redis/redis.conf"]
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
|||||||
|
package com.supervision.config;
|
||||||
|
|
||||||
|
import io.minio.MinioClient;
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class MinioConfig {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建基于Java端的MinioClient
|
||||||
|
*/
|
||||||
|
@Bean
|
||||||
|
@ConditionalOnProperty(prefix = "minio",name = "url")
|
||||||
|
public MinioClient minioClient(MinioProperties minioProperties) {
|
||||||
|
return MinioClient.builder().endpoint(minioProperties.getUrl())
|
||||||
|
.credentials(minioProperties.getAccessKey(), minioProperties.getSecretKey())
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.supervision.config;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Component
|
||||||
|
@ConfigurationProperties(prefix = "minio")
|
||||||
|
public class MinioProperties {
|
||||||
|
|
||||||
|
private String url;
|
||||||
|
|
||||||
|
private String accessKey;
|
||||||
|
|
||||||
|
private String secretKey;
|
||||||
|
|
||||||
|
private String bucketName;
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
package com.supervision.constant;
|
||||||
|
|
||||||
|
public interface TreatmentPlanIdConstant {
|
||||||
|
String DRUG_ID = "8";
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.supervision.constant;
|
||||||
|
|
||||||
|
public interface UserTokenConstant {
|
||||||
|
String USER_WEBSOCKET_CACHE = "USER:ID:CACHE";
|
||||||
|
|
||||||
|
String KICK_CHANNEL = "USER:KICK:CHANNEL";
|
||||||
|
|
||||||
|
Integer KICK_CODE = 10000;
|
||||||
|
|
||||||
|
Integer NO_RESOURCE_CODE = 10001;
|
||||||
|
|
||||||
|
Integer KEEPALIVE_CODE = 10002;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
# 设置基础镜像
|
||||||
|
FROM openjdk:8
|
||||||
|
|
||||||
|
ENV APP_HOME=/home/app
|
||||||
|
|
||||||
|
# 设置工作目录
|
||||||
|
WORKDIR $APP_HOME
|
||||||
|
|
||||||
|
# 复制java jar 到容器中
|
||||||
|
COPY target/virtual-patient-manage-1.0-SNAPSHOT.jar /home/app/virtual-patient-manage-1.0-SNAPSHOT.jar
|
||||||
|
|
||||||
|
# 暴漏服务端口
|
||||||
|
EXPOSE 8891
|
||||||
|
|
||||||
|
# 设置启动命令
|
||||||
|
ENTRYPOINT ["java","-jar","-Duser.timezone=Asia/Shanghai","/home/app/virtual-patient-manage-1.0-SNAPSHOT.jar"]
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.supervision.manage.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.supervision.manage.service.AncillaryItemManageService;
|
||||||
|
import com.supervision.vo.ask.AncillaryItemReqVo;
|
||||||
|
import com.supervision.vo.ask.ConfigAncillaryItemResVO;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api(tags = "辅助检查项管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("ancillaryItem")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class AncillaryItemManageController {
|
||||||
|
|
||||||
|
private final AncillaryItemManageService ancillaryItemManageService;
|
||||||
|
@ApiOperation("查询辅助检查项目列表")
|
||||||
|
@GetMapping("queryAncillaryItemList")
|
||||||
|
public List<ConfigAncillaryItemResVO> queryAncillaryItemList(AncillaryItemReqVo ancillaryItemReqVo) {
|
||||||
|
return ancillaryItemManageService.queryAncillaryItemList(ancillaryItemReqVo);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,52 @@
|
|||||||
|
package com.supervision.manage.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.manage.service.AskQuestionLibraryManageService;
|
||||||
|
import com.supervision.model.CommonDic;
|
||||||
|
import com.supervision.model.Disease;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryReqVo;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseVo;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api(tags = "问题库管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("aqLibrary")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class AskQuestionLibraryManageController {
|
||||||
|
|
||||||
|
private final AskQuestionLibraryManageService askQuestionLibraryManageService;
|
||||||
|
@ApiOperation("查询问题库列表")
|
||||||
|
@GetMapping("/queryList")
|
||||||
|
public List<AskQuestionLibraryResVo> queryList(AskQuestionLibraryReqVo askQuestionLibraryReqVo) {
|
||||||
|
|
||||||
|
return askQuestionLibraryManageService.queryList(askQuestionLibraryReqVo);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("分页查询问题库列表")
|
||||||
|
@GetMapping("/queryPageList")
|
||||||
|
public Page<AskQuestionLibraryResVo> queryPageList(@RequestParam(defaultValue = "1") Integer pageNum,
|
||||||
|
@RequestParam(defaultValue = "10") Integer pageSize,
|
||||||
|
AskQuestionLibraryReqVo askQuestionLibraryReqVo) {
|
||||||
|
|
||||||
|
return askQuestionLibraryManageService.queryPageList(pageNum, pageSize, askQuestionLibraryReqVo);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("查询问题类目编码列表")
|
||||||
|
@GetMapping("/queryItemList")
|
||||||
|
public List<CommonDic> queryItemList() {
|
||||||
|
|
||||||
|
return askQuestionLibraryManageService.queryItemList();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.supervision.manage.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.supervision.manage.service.PhysicalLocationManageService;
|
||||||
|
import com.supervision.vo.manage.PhysicalLocationNode;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api(tags = "身体位置管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("physicalLocation")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class PhysicalLocationManageController {
|
||||||
|
|
||||||
|
private final PhysicalLocationManageService physicalLocationManageService;
|
||||||
|
@ApiOperation("查询身体部位树")
|
||||||
|
@GetMapping("/queryTree")
|
||||||
|
public List<PhysicalLocationNode> queryTree() {
|
||||||
|
|
||||||
|
return physicalLocationManageService.queryTree();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.supervision.manage.controller;
|
||||||
|
|
||||||
|
import com.supervision.manage.service.PhysicalToolManageService;
|
||||||
|
import com.supervision.vo.ask.ConfigPhysicalToolResVO;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api(tags = "体格检查工具管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("physicalTool")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class PhysicalToolManageController {
|
||||||
|
|
||||||
|
private final PhysicalToolManageService physicalToolManageService;
|
||||||
|
|
||||||
|
@ApiOperation(value = "查询体格检查的工具列表")
|
||||||
|
@GetMapping("queryPhysicalToolList")
|
||||||
|
public List<ConfigPhysicalToolResVO> queryPhysicalToolList() {
|
||||||
|
|
||||||
|
return physicalToolManageService.queryPhysicalToolList();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
package com.supervision.manage.controller;
|
||||||
|
|
||||||
|
import com.supervision.manage.service.ConfigTreatmentPlanManageService;
|
||||||
|
import com.supervision.vo.manage.TreatmentPlanTreeNode;
|
||||||
|
import com.supervision.model.ConfigTreatmentPlan;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(tags = "处置计划管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("treatmentPlan")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class TreatmentPlanManageController {
|
||||||
|
|
||||||
|
private final ConfigTreatmentPlanManageService configTreatmentPlanManageService;
|
||||||
|
|
||||||
|
@ApiOperation("查询处置计划树")
|
||||||
|
@GetMapping("/queryTree")
|
||||||
|
public List<TreatmentPlanTreeNode> queryTree(@ApiParam("处置方式")@RequestParam(required = false) Integer disposalMethod) {
|
||||||
|
|
||||||
|
return configTreatmentPlanManageService.queryTree(disposalMethod);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("根据id查询处置计划详情")
|
||||||
|
@GetMapping("/findById")
|
||||||
|
public ConfigTreatmentPlan findById(@ApiParam("主键") @RequestParam String id) {
|
||||||
|
|
||||||
|
return configTreatmentPlanManageService.findById(id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
package com.supervision.manage.controller.diseasemanage;
|
||||||
|
|
||||||
|
import com.supervision.manage.service.DiseaseAncillaryManageService;
|
||||||
|
import com.supervision.model.DiseaseAncillary;
|
||||||
|
import com.supervision.vo.ask.AncillaryItemReqVo;
|
||||||
|
import com.supervision.vo.ask.ConfigAncillaryItemResVO;
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryReqVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(tags = "疾病辅助检查管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("diseaseAncillary")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseaseAncillaryManageController {
|
||||||
|
|
||||||
|
private final DiseaseAncillaryManageService diseaseAncillaryManageService;
|
||||||
|
|
||||||
|
@ApiOperation("新增辅助检查信息")
|
||||||
|
@PostMapping("/save")
|
||||||
|
public String saveAncillary(@RequestBody DiseaseAncillaryReqVo diseaseAncillary) {
|
||||||
|
|
||||||
|
diseaseAncillary.floatDiagnosticCriteria();
|
||||||
|
DiseaseAncillary result = diseaseAncillaryManageService.saveAncillary(diseaseAncillary);
|
||||||
|
return result.getId();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("删除疾病辅助检查信息")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public boolean deleteDiseaseAncillary(@RequestParam("id") String id) {
|
||||||
|
|
||||||
|
return diseaseAncillaryManageService.deleteDiseaseAncillary(id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("修改辅助检查信息")
|
||||||
|
@PutMapping("/update")
|
||||||
|
public boolean updateAncillary(@RequestBody DiseaseAncillaryReqVo diseaseAncillary) {
|
||||||
|
|
||||||
|
diseaseAncillary.floatDiagnosticCriteria();
|
||||||
|
return diseaseAncillaryManageService.updateAncillary(diseaseAncillary);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("根据疾病id查询疾病辅助检查信息列表")
|
||||||
|
@GetMapping("/queryListByDiseaseId")
|
||||||
|
public List<DiseaseAncillaryResVo> queryListByDiseaseId(@RequestParam("diseaseId") String diseaseId) {
|
||||||
|
|
||||||
|
return diseaseAncillaryManageService.queryListByDiseaseId(diseaseId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("查询疾病辅助检查项目列表")
|
||||||
|
@GetMapping("queryAncillaryItemList")
|
||||||
|
public List<ConfigAncillaryItemResVO> queryAncillaryItemList(AncillaryItemReqVo ancillaryItemReqVo) {
|
||||||
|
return diseaseAncillaryManageService.queryAncillaryItemList(ancillaryItemReqVo);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
package com.supervision.manage.controller.diseasemanage;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.exception.BusinessException;
|
||||||
|
import com.supervision.manage.service.DiseaseManageService;
|
||||||
|
import com.supervision.model.Disease;
|
||||||
|
import com.supervision.vo.manage.DiseaseVo;
|
||||||
|
import io.swagger.annotations.*;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
@Api(tags = "疾病管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("disease")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseaseManageController {
|
||||||
|
|
||||||
|
|
||||||
|
private final DiseaseManageService diseaseManageService;
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("/save")
|
||||||
|
@ApiOperation("新增疾病")
|
||||||
|
@ApiModelProperty
|
||||||
|
public Disease saveDisease(@RequestBody Disease disease) {
|
||||||
|
|
||||||
|
return diseaseManageService.saveDisease(disease);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除疾病")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public boolean deleteDisease(@ApiParam("疾病id") @RequestParam String id) {
|
||||||
|
|
||||||
|
if (StrUtil.isEmpty(id)){
|
||||||
|
throw new BusinessException("id is not allow empty");
|
||||||
|
}
|
||||||
|
return diseaseManageService.deleteDisease(id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("修改疾病信息")
|
||||||
|
@PutMapping("/update")
|
||||||
|
public boolean updateDisease(@RequestBody Disease disease) {
|
||||||
|
|
||||||
|
return diseaseManageService.updateDisease(disease);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("查询分页疾病列表")
|
||||||
|
@GetMapping("/queryPageList")
|
||||||
|
public Page<Disease> queryPageList(@RequestParam(defaultValue = "1")Integer pageNum,
|
||||||
|
@RequestParam(defaultValue = "10")Integer pageSize,
|
||||||
|
DiseaseVo diseaseVo) {
|
||||||
|
|
||||||
|
return diseaseManageService.queryPageList(pageNum,pageSize,diseaseVo);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
package com.supervision.manage.controller.diseasemanage;
|
||||||
|
|
||||||
|
|
||||||
|
import com.supervision.manage.service.DiseasePhysicalManageService;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalLocationNodeVo;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalReqVo;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
||||||
|
import com.supervision.model.DiseasePhysical;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api(tags = "疾病体格检查管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("diseasePhysical")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseasePhysicalManageController {
|
||||||
|
|
||||||
|
|
||||||
|
private final DiseasePhysicalManageService diseasePhysicalManageService;
|
||||||
|
|
||||||
|
@ApiOperation("新增体格检查信息")
|
||||||
|
@PostMapping("/save")
|
||||||
|
public String savePhysical(@RequestBody DiseasePhysicalReqVo diseasePhysical) {
|
||||||
|
|
||||||
|
diseasePhysical.floatDiagnosticCriteria();
|
||||||
|
DiseasePhysical result = diseasePhysicalManageService.savePhysical(diseasePhysical);
|
||||||
|
return result.getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除体格检查")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public boolean deletePhysical(@RequestParam String id) {
|
||||||
|
|
||||||
|
return diseasePhysicalManageService.deletePhysical(id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("修改体格检查信息")
|
||||||
|
@PutMapping("/update")
|
||||||
|
public boolean updatePhysical(@RequestBody DiseasePhysicalReqVo diseasePhysical) {
|
||||||
|
|
||||||
|
diseasePhysical.floatDiagnosticCriteria();
|
||||||
|
return diseasePhysicalManageService.updatePhysical(diseasePhysical);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("根据疾病id查询体格检查列表")
|
||||||
|
@GetMapping("/queryListByDiseaseId")
|
||||||
|
public List<DiseasePhysicalResVo> queryListByDiseaseId(@RequestParam("diseaseId") String diseaseId) {
|
||||||
|
|
||||||
|
return diseasePhysicalManageService.queryListByDiseaseId(diseaseId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("查询疾病身体部位树")
|
||||||
|
@GetMapping("/queryTree")
|
||||||
|
public List<DiseasePhysicalLocationNodeVo> queryTree(@RequestParam("diseaseId") String diseaseId,
|
||||||
|
@RequestParam(value = "toolId",required = false) String toolId) {
|
||||||
|
|
||||||
|
return diseasePhysicalManageService.queryTree(diseaseId, toolId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.supervision.manage.controller.diseasemanage;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.manage.service.DiseaseQuestionManageService;
|
||||||
|
import com.supervision.model.DiseaseQuestion;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryReqVo;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseQuestionResVo;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api(tags = "疾病问题管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("diseaseQuestion")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseaseQuestionManageController {
|
||||||
|
|
||||||
|
|
||||||
|
private final DiseaseQuestionManageService diseaseQuestionManageService;
|
||||||
|
|
||||||
|
@ApiOperation("保存疾病问题信息")
|
||||||
|
@PostMapping("/batchSave")
|
||||||
|
public boolean batchSaveQuestionList(@RequestBody List<DiseaseQuestion> diseaseQuestionList) {
|
||||||
|
|
||||||
|
diseaseQuestionManageService.batchSaveQuestion(diseaseQuestionList);
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除疾病问题")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public boolean deleteDiseaseQuestion(@RequestParam String id) {
|
||||||
|
|
||||||
|
return diseaseQuestionManageService.deleteDiseaseQuestion(id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("根据疾病id查询问题库信息列表")
|
||||||
|
@GetMapping("/queryListByDiseaseId")
|
||||||
|
public List<DiseaseQuestionResVo> queryPageByDiseaseId(@RequestParam("diseaseId") String diseaseId) {
|
||||||
|
|
||||||
|
return diseaseQuestionManageService.queryPageByDiseaseId(diseaseId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("分页查询问题库列表(排除已选择的问题)")
|
||||||
|
@GetMapping("/queryQaLibPageList")
|
||||||
|
public Page<AskQuestionLibraryResVo> queryQaLibPageList(@RequestParam(defaultValue = "1") Integer pageNum,
|
||||||
|
@RequestParam(defaultValue = "10") Integer pageSize,
|
||||||
|
AskQuestionLibraryReqVo askQuestionLibraryReqVo) {
|
||||||
|
|
||||||
|
return diseaseQuestionManageService.queryQaLibPageList(pageNum, pageSize, askQuestionLibraryReqVo);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
package com.supervision.manage.controller.diseasemanage;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.manage.service.DiseaseTreatmentPlanManageService;
|
||||||
|
import com.supervision.model.ConfigTreatmentPlan;
|
||||||
|
import com.supervision.model.DiseaseTreatmentPlan;
|
||||||
|
import com.supervision.vo.manage.*;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api(tags = "疾病处置计划管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("diseaseTreatmentPlan")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseaseTreatmentPlanManageController {
|
||||||
|
|
||||||
|
|
||||||
|
private final DiseaseTreatmentPlanManageService diseaseTreatmentPlanManageService;
|
||||||
|
|
||||||
|
@ApiOperation("保存处置信息")
|
||||||
|
@PostMapping("/save")
|
||||||
|
public String saveTreatmentPlan(@RequestBody DiseaseTreatmentPlan diseaseTreatmentPlan) {
|
||||||
|
|
||||||
|
DiseaseTreatmentPlan result = diseaseTreatmentPlanManageService.saveTreatmentPlan(diseaseTreatmentPlan);
|
||||||
|
return result.getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("批量保存处置信息")
|
||||||
|
@PostMapping("/batchSave")
|
||||||
|
public boolean batchSaveTreatmentPlan(@RequestBody List<DiseaseTreatmentPlan> diseaseTreatmentPlanList) {
|
||||||
|
|
||||||
|
diseaseTreatmentPlanManageService.batchSaveTreatmentPlan(diseaseTreatmentPlanList);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("根据疾病id查询疾病处置信息列表")
|
||||||
|
@GetMapping("/queryListByDiseaseId")
|
||||||
|
public List<DiseaseTreatmentPlanResVo> queryListByDiseaseId(String diseaseId) {
|
||||||
|
|
||||||
|
return diseaseTreatmentPlanManageService.queryListByDiseaseId(diseaseId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("删除疾病处置计划")
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
public boolean deleteDiseaseTreatmentPlan(@RequestParam("id") String id) {
|
||||||
|
|
||||||
|
return diseaseTreatmentPlanManageService.deleteDiseaseTreatmentPlan(id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("查询处置计划树")
|
||||||
|
@GetMapping("/queryTree")
|
||||||
|
public List<DiseaseTreatmentPlanTreeNode> queryTree(@ApiParam("处置方式")@RequestParam(required = false) Integer disposalMethod,
|
||||||
|
@ApiParam("疾病id") String diseaseId) {
|
||||||
|
|
||||||
|
return diseaseTreatmentPlanManageService.queryDiseaseTreatmentPlanTree(disposalMethod,diseaseId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,105 @@
|
|||||||
|
package com.supervision.manage.controller.medicalrec;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.supervision.dto.CommonDictTreeDTO;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecCheckResVO;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecInfoVO;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecManageVO;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecQaVO;
|
||||||
|
import com.supervision.service.CommonDicService;
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
||||||
|
import com.supervision.vo.manage.MedicalRecPageResVO;
|
||||||
|
import com.supervision.manage.service.MedicalRecManageService;
|
||||||
|
import com.supervision.model.Disease;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api(tags = "病历管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("medicalRecManage")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class MedicalRecManageController {
|
||||||
|
|
||||||
|
private final MedicalRecManageService medicalRecManageService;
|
||||||
|
|
||||||
|
@ApiOperation("初步诊断下拉列表联想(这里目前只查单一疾病)")
|
||||||
|
@GetMapping("queryDiseaseListByDropList")
|
||||||
|
public List<Disease> queryDiseaseListByDropList() {
|
||||||
|
return medicalRecManageService.queryDiseaseListByDropList();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("病历管理分页查询")
|
||||||
|
@GetMapping("queryMedicalRecPage")
|
||||||
|
public IPage<MedicalRecPageResVO> queryMedicalRecManagePage(@ApiParam("主诉") String selfDescKeyword,
|
||||||
|
@ApiParam("性别") String gender,
|
||||||
|
@ApiParam("疾病ID") String diseaseId,
|
||||||
|
Integer pageNum, Integer pageSize) {
|
||||||
|
return medicalRecManageService.queryMedicalRecManagePage(selfDescKeyword, gender, diseaseId, pageNum, pageSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("创建病历")
|
||||||
|
@PostMapping("createMedicalRec")
|
||||||
|
public void createMedicalRec(@RequestBody MedicalRecManageVO reqVO) {
|
||||||
|
medicalRecManageService.createMedicalRec(reqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("创建疾病时可选的的疾病列表")
|
||||||
|
@GetMapping("queryDiseaseListByCreat")
|
||||||
|
public List<Disease> queryDiseaseListByCreat() {
|
||||||
|
return medicalRecManageService.queryDiseaseListByCreat();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("创建病历时查看配置的辅助检查项")
|
||||||
|
@GetMapping("queryDiseaseAncillaryByCreat")
|
||||||
|
public List<DiseaseAncillaryResVo> queryDiseaseAncillaryByCreat(String diseaseId){
|
||||||
|
return medicalRecManageService.queryDiseaseAncillaryByCreat(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("创建病历时查看配置的体格检查项")
|
||||||
|
@GetMapping("queryDiseasePhysicalByCreat")
|
||||||
|
public List<DiseasePhysicalResVo> queryDiseasePhysicalByCreat(String diseaseId){
|
||||||
|
return medicalRecManageService.queryDiseasePhysicalByCreat(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("创建病历时查看配置的处置计划")
|
||||||
|
@GetMapping("queryDiseaseTreatmentPlanByCreat")
|
||||||
|
public List<DiseaseTreatmentPlanResVo> queryDiseaseTreatmentPlanByCreat(String diseaseId){
|
||||||
|
return medicalRecManageService.queryDiseaseTreatmentPlanByCreat(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("创建病历时,根据疾病ID查询配置的问题(目前只支持单一疾病)")
|
||||||
|
@GetMapping("queryQuestionListByCreat")
|
||||||
|
public List<MedicalRecQaVO> queryQuestionListByCreat(String diseaseId) {
|
||||||
|
return medicalRecManageService.queryQuestionListByCreat(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("修改病历")
|
||||||
|
@PostMapping("modifyMedicalRec")
|
||||||
|
public void modifyMedicalRec(@RequestBody MedicalRecManageVO reqVO) {
|
||||||
|
medicalRecManageService.modifyMedicalRec(reqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("查询病例详细信息")
|
||||||
|
@GetMapping("queryMedicalRecInfo")
|
||||||
|
public MedicalRecInfoVO queryMedicalRecInfo(String id) {
|
||||||
|
return medicalRecManageService.queryMedicalRecInfo(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除病历")
|
||||||
|
@GetMapping("deleteMedicalRec")
|
||||||
|
public void deleteMedicalRec(String id) {
|
||||||
|
medicalRecManageService.deleteMedicalRec(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
package com.supervision.manage.pojo.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病历检查项
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class MedicalRecCheckResVO {
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String location;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否初步诊断依据(0否1是)
|
||||||
|
*/
|
||||||
|
private Integer isPrimarilyDiagnosisCriteria;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否必查-初步诊断依据(0否1是)
|
||||||
|
*/
|
||||||
|
private Integer requireCheck;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否是正式诊断依据(0否1是)
|
||||||
|
*/
|
||||||
|
private Integer basisConfirm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否是鉴别依据(0否1是)
|
||||||
|
*/
|
||||||
|
private Integer basisIdentification;
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.supervision.manage.pojo.vo;
|
||||||
|
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@ApiModel(value = "病历管理详细信息", parent = MedicalRecManageVO.class)
|
||||||
|
public class MedicalRecInfoVO extends MedicalRecManageVO {
|
||||||
|
|
||||||
|
@ApiModelProperty("疾病名称")
|
||||||
|
private String diseaseName;
|
||||||
|
|
||||||
|
@ApiModelProperty("辅助检查")
|
||||||
|
private List<DiseaseAncillaryResVo> ancillaryList;
|
||||||
|
|
||||||
|
@ApiModelProperty("体格检查")
|
||||||
|
private List<DiseasePhysicalResVo> physicalList;
|
||||||
|
|
||||||
|
@ApiModelProperty("处置计划列表")
|
||||||
|
private List<DiseaseTreatmentPlanResVo> treatmentPlanList;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.supervision.manage.pojo.vo;
|
||||||
|
|
||||||
|
import com.supervision.model.AskPatientAnswer;
|
||||||
|
import com.supervision.model.MedicalRec;
|
||||||
|
import com.supervision.model.Patient;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@ApiModel(value = "病历管理创建及新建", parent = MedicalRec.class)
|
||||||
|
public class MedicalRecManageVO extends MedicalRec {
|
||||||
|
|
||||||
|
@ApiModelProperty("step:1 基础信息")
|
||||||
|
private Patient patient;
|
||||||
|
|
||||||
|
@NotBlank(message = "疾病不能为空")
|
||||||
|
@ApiModelProperty("step:1 疾病ID(目前只支持单选疾病,且修改时不允许变更)")
|
||||||
|
private String diseaseId;
|
||||||
|
|
||||||
|
@ApiModelProperty("step:4 应答策略")
|
||||||
|
private List<MedicalRecQaVO> qaList;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
package com.supervision.manage.pojo.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class MedicalRecQaVO {
|
||||||
|
|
||||||
|
@ApiModelProperty("本条问答ID,对应vp_ask_patient_answer表ID,更新必填")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 问题库问题ID
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(" 问题库问题ID,新增更新时必填")
|
||||||
|
private String libraryQuestionId;
|
||||||
|
|
||||||
|
@ApiModelProperty("问题,新增更新时不需要")
|
||||||
|
private List<String> questionList;
|
||||||
|
|
||||||
|
@ApiModelProperty("字典ID,新增更新时不需要")
|
||||||
|
private Long dictId;
|
||||||
|
|
||||||
|
@ApiModelProperty("问题类目,新增更新时不需要")
|
||||||
|
private String dictNamePath;
|
||||||
|
|
||||||
|
@ApiModelProperty("默认回答,新增更新时不需要")
|
||||||
|
private String defaultAnswer;
|
||||||
|
|
||||||
|
@ApiModelProperty("针对病例的特定回答,新增更新时必填")
|
||||||
|
private String medicalRecAnswer;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.supervision.manage.pojo.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处置计划项
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class MedicalRecTreatmentPlanResVO {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.supervision.vo.ask.AncillaryItemReqVo;
|
||||||
|
import com.supervision.vo.ask.ConfigAncillaryItemResVO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface AncillaryItemManageService {
|
||||||
|
|
||||||
|
List<ConfigAncillaryItemResVO> queryAncillaryItemList(AncillaryItemReqVo ancillaryItemReqVo);
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.model.CommonDic;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryReqVo;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryResVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface AskQuestionLibraryManageService {
|
||||||
|
List<AskQuestionLibraryResVo> queryList(AskQuestionLibraryReqVo askQuestionLibraryReqVo);
|
||||||
|
|
||||||
|
Page<AskQuestionLibraryResVo> queryPageList(Integer pageNum, Integer pageSize, AskQuestionLibraryReqVo askQuestionLibraryReqVo);
|
||||||
|
|
||||||
|
List<CommonDic> queryItemList();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.supervision.model.ConfigTreatmentPlan;
|
||||||
|
import com.supervision.vo.manage.TreatmentPlanTreeNode;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ConfigTreatmentPlanManageService {
|
||||||
|
|
||||||
|
List<TreatmentPlanTreeNode> queryTree(Integer disposalMethod);
|
||||||
|
|
||||||
|
ConfigTreatmentPlan findById(String id);
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.supervision.model.DiseaseAncillary;
|
||||||
|
import com.supervision.vo.ask.AncillaryItemReqVo;
|
||||||
|
import com.supervision.vo.ask.ConfigAncillaryItemResVO;
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface DiseaseAncillaryManageService {
|
||||||
|
|
||||||
|
List<DiseaseAncillaryResVo> queryListByDiseaseId(String diseaseId);
|
||||||
|
|
||||||
|
DiseaseAncillary saveAncillary(DiseaseAncillary diseaseAncillary);
|
||||||
|
|
||||||
|
boolean deleteDiseaseAncillary(String id);
|
||||||
|
|
||||||
|
boolean updateAncillary(DiseaseAncillary diseaseAncillary);
|
||||||
|
|
||||||
|
|
||||||
|
boolean deleteByDiseaseId(String diseaseId);
|
||||||
|
|
||||||
|
|
||||||
|
List<ConfigAncillaryItemResVO> queryAncillaryItemList(AncillaryItemReqVo ancillaryItemReqVo);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.model.Disease;
|
||||||
|
import com.supervision.vo.manage.DiseaseVo;
|
||||||
|
|
||||||
|
public interface DiseaseManageService {
|
||||||
|
|
||||||
|
|
||||||
|
Disease saveDisease(Disease disease);
|
||||||
|
|
||||||
|
|
||||||
|
boolean updateDisease(Disease disease);
|
||||||
|
|
||||||
|
boolean deleteDisease(String id);
|
||||||
|
|
||||||
|
Page<Disease> queryPageList(Integer pageNum, Integer pageSize, DiseaseVo diseaseVo);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.supervision.model.DiseasePhysical;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalLocationNodeVo;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
||||||
|
import com.supervision.vo.manage.PhysicalLocationNode;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface DiseasePhysicalManageService {
|
||||||
|
|
||||||
|
List<DiseasePhysicalResVo> queryListByDiseaseId(String diseaseId);
|
||||||
|
|
||||||
|
DiseasePhysical savePhysical(DiseasePhysical diseasePhysical);
|
||||||
|
|
||||||
|
boolean deletePhysical(String id);
|
||||||
|
|
||||||
|
boolean updatePhysical(DiseasePhysical diseasePhysical);
|
||||||
|
|
||||||
|
boolean deleteByDiseaseId(String diseaseId);
|
||||||
|
|
||||||
|
List<DiseasePhysicalLocationNodeVo> queryTree(String diseaseId, String toolId);
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.model.DiseaseQuestion;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryReqVo;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseQuestionResVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface DiseaseQuestionManageService {
|
||||||
|
|
||||||
|
List<DiseaseQuestionResVo> queryPageByDiseaseId(String diseaseId);
|
||||||
|
|
||||||
|
void batchSaveQuestion(List<DiseaseQuestion> diseaseQuestionList);
|
||||||
|
|
||||||
|
boolean deleteDiseaseQuestion(String id);
|
||||||
|
|
||||||
|
boolean deleteByDiseaseId(String diseaseId);
|
||||||
|
|
||||||
|
Page<AskQuestionLibraryResVo> queryQaLibPageList(Integer pageNum, Integer pageSize, AskQuestionLibraryReqVo askQuestionLibraryReqVo);
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.supervision.model.ConfigTreatmentPlan;
|
||||||
|
import com.supervision.model.DiseaseTreatmentPlan;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanTreeNode;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface DiseaseTreatmentPlanManageService {
|
||||||
|
|
||||||
|
List<DiseaseTreatmentPlanResVo> queryListByDiseaseId(String diseaseId);
|
||||||
|
|
||||||
|
DiseaseTreatmentPlan saveTreatmentPlan(DiseaseTreatmentPlan diseaseTreatmentPlan);
|
||||||
|
|
||||||
|
void batchSaveTreatmentPlan(List<DiseaseTreatmentPlan> diseaseTreatmentPlanList);
|
||||||
|
|
||||||
|
boolean deleteDiseaseTreatmentPlan(String id);
|
||||||
|
|
||||||
|
boolean deleteByDiseaseId(String diseaseId);
|
||||||
|
|
||||||
|
List<DiseaseTreatmentPlanTreeNode> queryDiseaseTreatmentPlanTree(Integer disposalMethod, String diseaseId);
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecInfoVO;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecManageVO;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecQaVO;
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
||||||
|
import com.supervision.vo.manage.MedicalRecPageResVO;
|
||||||
|
import com.supervision.model.Disease;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface MedicalRecManageService {
|
||||||
|
|
||||||
|
List<Disease> queryDiseaseListByDropList();
|
||||||
|
|
||||||
|
List<Disease> queryDiseaseListByCreat();
|
||||||
|
|
||||||
|
IPage<MedicalRecPageResVO> queryMedicalRecManagePage(String selfDescKeyword, String gender, String diseaseId, Integer pageNum, Integer pageSize);
|
||||||
|
|
||||||
|
void createMedicalRec(MedicalRecManageVO reqVO);
|
||||||
|
|
||||||
|
List<DiseaseAncillaryResVo> queryDiseaseAncillaryByCreat(String diseaseId);
|
||||||
|
|
||||||
|
List<DiseasePhysicalResVo> queryDiseasePhysicalByCreat(String diseaseId);
|
||||||
|
|
||||||
|
List<DiseaseTreatmentPlanResVo> queryDiseaseTreatmentPlanByCreat(String diseaseId);
|
||||||
|
|
||||||
|
List<MedicalRecQaVO> queryQuestionListByCreat(String diseaseId);
|
||||||
|
|
||||||
|
|
||||||
|
void modifyMedicalRec(MedicalRecManageVO reqVO);
|
||||||
|
|
||||||
|
MedicalRecInfoVO queryMedicalRecInfo(String id);
|
||||||
|
|
||||||
|
void deleteMedicalRec(String id);
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.supervision.vo.manage.PhysicalLocationNode;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface PhysicalLocationManageService {
|
||||||
|
|
||||||
|
|
||||||
|
List<PhysicalLocationNode> queryTree();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package com.supervision.manage.service;
|
||||||
|
|
||||||
|
import com.supervision.vo.ask.ConfigPhysicalToolResVO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface PhysicalToolManageService {
|
||||||
|
List<ConfigPhysicalToolResVO> queryPhysicalToolList();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.supervision.manage.service.AncillaryItemManageService;
|
||||||
|
import com.supervision.model.DiseaseAncillary;
|
||||||
|
import com.supervision.service.ConfigAncillaryItemService;
|
||||||
|
import com.supervision.service.DiseaseAncillaryService;
|
||||||
|
import com.supervision.vo.ask.AncillaryItemReqVo;
|
||||||
|
import com.supervision.vo.ask.ConfigAncillaryItemResVO;
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
||||||
|
import com.supervision.vo.result.ConfigAncillaryItemVo;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class AncillaryItemManageServiceImpl implements AncillaryItemManageService {
|
||||||
|
|
||||||
|
private final ConfigAncillaryItemService configAncillaryItemService;
|
||||||
|
@Override
|
||||||
|
public List<ConfigAncillaryItemResVO> queryAncillaryItemList(AncillaryItemReqVo ancillaryItemReqVo) {
|
||||||
|
return configAncillaryItemService.queryAncillaryItemList(ancillaryItemReqVo);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.manage.service.AskQuestionLibraryManageService;
|
||||||
|
import com.supervision.model.CommonDic;
|
||||||
|
import com.supervision.service.AskTemplateQuestionLibraryService;
|
||||||
|
import com.supervision.service.CommonDicService;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryReqVo;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryResVo;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class AskQuestionLibraryManageServiceImpl implements AskQuestionLibraryManageService {
|
||||||
|
|
||||||
|
private final AskTemplateQuestionLibraryService askTemplateQuestionLibraryService;
|
||||||
|
|
||||||
|
private final CommonDicService commonDicService;
|
||||||
|
@Override
|
||||||
|
public List<AskQuestionLibraryResVo> queryList(AskQuestionLibraryReqVo askQuestionLibraryReqVo) {
|
||||||
|
|
||||||
|
|
||||||
|
return askTemplateQuestionLibraryService.queryList(askQuestionLibraryReqVo);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Page<AskQuestionLibraryResVo> queryPageList(Integer pageNum, Integer pageSize,
|
||||||
|
AskQuestionLibraryReqVo askQuestionLibraryReqVo) {
|
||||||
|
|
||||||
|
return askTemplateQuestionLibraryService.queryPageList(pageNum,pageSize,askQuestionLibraryReqVo);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CommonDic> queryItemList() {
|
||||||
|
return commonDicService.lambdaQuery().eq(CommonDic::getGroupCode, "AQT").isNull(CommonDic::getParentId).list();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.supervision.manage.service.ConfigTreatmentPlanManageService;
|
||||||
|
import com.supervision.model.ConfigTreatmentPlan;
|
||||||
|
import com.supervision.service.ConfigTreatmentPlanService;
|
||||||
|
import com.supervision.vo.manage.TreatmentPlanTreeNode;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class ConfigTreatmentPlanManageServiceImpl implements ConfigTreatmentPlanManageService {
|
||||||
|
|
||||||
|
private final ConfigTreatmentPlanService configTreatmentPlanService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TreatmentPlanTreeNode> queryTree(Integer disposalMethod) {
|
||||||
|
|
||||||
|
return configTreatmentPlanService.queryTree(disposalMethod);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConfigTreatmentPlan findById(String id) {
|
||||||
|
|
||||||
|
Assert.notEmpty(id,"id 不允许为空");
|
||||||
|
return configTreatmentPlanService.getById(id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,139 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;
|
||||||
|
import com.supervision.manage.service.DiseaseAncillaryManageService;
|
||||||
|
import com.supervision.model.DiseaseAncillary;
|
||||||
|
import com.supervision.service.ConfigAncillaryItemService;
|
||||||
|
import com.supervision.service.DiseaseAncillaryService;
|
||||||
|
import com.supervision.vo.ask.AncillaryItemReqVo;
|
||||||
|
import com.supervision.vo.ask.ConfigAncillaryItemResVO;
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
||||||
|
import com.supervision.vo.result.ConfigAncillaryItemVo;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseaseAncillaryManageServiceImpl implements DiseaseAncillaryManageService {
|
||||||
|
|
||||||
|
private final DiseaseAncillaryService diseaseAncillaryService;
|
||||||
|
|
||||||
|
private final ConfigAncillaryItemService configAncillaryItemService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseaseAncillaryResVo> queryListByDiseaseId(String diseaseId) {
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(diseaseId),"diseaseId不能为空");
|
||||||
|
List<DiseaseAncillaryResVo> diseaseAncillaryResVos = diseaseAncillaryService.queryListByDiseaseId(diseaseId);
|
||||||
|
|
||||||
|
diseaseAncillaryResVos.forEach(DiseaseAncillaryResVo::populateOther);
|
||||||
|
return diseaseAncillaryResVos;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DiseaseAncillary saveAncillary(DiseaseAncillary diseaseAncillary) {
|
||||||
|
|
||||||
|
assertDiseaseAncillary(diseaseAncillary);
|
||||||
|
|
||||||
|
Assert.isFalse(checkIfPresent(diseaseAncillary),"数据已存在!");
|
||||||
|
|
||||||
|
diseaseAncillaryService.save(diseaseAncillary);
|
||||||
|
|
||||||
|
return diseaseAncillary;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean deleteDiseaseAncillary(String id) {
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(id),"id 不允许为空");
|
||||||
|
|
||||||
|
return diseaseAncillaryService.removeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean updateAncillary(DiseaseAncillary diseaseAncillary) {
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(diseaseAncillary.getId()),"id 不允许为空");
|
||||||
|
|
||||||
|
return diseaseAncillaryService.updateById(diseaseAncillary);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean deleteByDiseaseId(String diseaseId) {
|
||||||
|
Assert.notEmpty(diseaseId,"疾病id不能为空");
|
||||||
|
|
||||||
|
return diseaseAncillaryService.lambdaUpdate().eq(DiseaseAncillary::getDiseaseId, diseaseId).remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ConfigAncillaryItemResVO> queryAncillaryItemList(AncillaryItemReqVo ancillaryItemReqVo) {
|
||||||
|
List<ConfigAncillaryItemResVO> configAncillaryItemResVOS = configAncillaryItemService.queryAncillaryItemList(ancillaryItemReqVo);
|
||||||
|
if (CollUtil.isEmpty(configAncillaryItemResVOS) || StrUtil.isEmpty(ancillaryItemReqVo.getDiseaseId())){
|
||||||
|
return configAncillaryItemResVOS;
|
||||||
|
}
|
||||||
|
|
||||||
|
List<DiseaseAncillaryResVo> diseaseAncillaryResVos = diseaseAncillaryService.queryListByDiseaseId(ancillaryItemReqVo.getDiseaseId());
|
||||||
|
if (CollUtil.isEmpty(diseaseAncillaryResVos)){
|
||||||
|
return configAncillaryItemResVOS;
|
||||||
|
}
|
||||||
|
List<String> itemIds = diseaseAncillaryResVos.stream().map(DiseaseAncillary::getItemId).distinct().collect(Collectors.toList());
|
||||||
|
for (ConfigAncillaryItemResVO configAncillaryItemResVO : configAncillaryItemResVOS) {
|
||||||
|
if (CollUtil.isEmpty(configAncillaryItemResVO.getItemList())){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
for (ConfigAncillaryItemVo itemVo : configAncillaryItemResVO.getItemList()) {
|
||||||
|
itemVo.setFlag(itemIds.contains(itemVo.getId()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return configAncillaryItemResVOS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void assertDiseaseAncillary(DiseaseAncillary diseaseAncillary){
|
||||||
|
|
||||||
|
Assert.isNull(diseaseAncillary.getId(),"id不为空");
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(diseaseAncillary.getDiseaseId()),"疾病id不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseaseAncillary.getPrimarilyDiagnosisCriteriaFlag(),"初步诊断依据不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseaseAncillary.getBasisConfirmFlag(),"证实诊断依据不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseaseAncillary.getBasisIdentificationFlag(),"鉴别诊断依据不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseaseAncillary.getFullCheckFlag(),"全面诊断不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseaseAncillary.getDiagnosisAssessmentFlag(),"判断不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseaseAncillary.getRequireCheckFlag(),"是否必查不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseaseAncillary.getDiagnosisAssessmentFlag(),"判断不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseaseAncillary.getExpectedDiagnosisResult(),"预期诊断结果不能为空");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private boolean checkIfPresent(DiseaseAncillary diseaseAncillary){
|
||||||
|
|
||||||
|
return !Objects.isNull(findByDiseaseIdAndItemId(diseaseAncillary.getDiseaseId(), diseaseAncillary.getItemId()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private DiseaseAncillary findByDiseaseIdAndItemId(String diseaseId,String itemId){
|
||||||
|
List<DiseaseAncillary> list = diseaseAncillaryService.lambdaQuery().eq(DiseaseAncillary::getDiseaseId, diseaseId).eq(DiseaseAncillary::getItemId, itemId).list();
|
||||||
|
if (CollUtil.isEmpty(list)){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return list.get(0);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,121 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.exception.BusinessException;
|
||||||
|
import com.supervision.manage.service.*;
|
||||||
|
import com.supervision.model.Disease;
|
||||||
|
import com.supervision.model.DiseaseAncillary;
|
||||||
|
import com.supervision.service.DiseaseAncillaryService;
|
||||||
|
import com.supervision.service.DiseaseService;
|
||||||
|
import com.supervision.vo.manage.DiseaseVo;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseaseManageServiceImpl implements DiseaseManageService {
|
||||||
|
|
||||||
|
private final DiseaseService diseaseService;
|
||||||
|
|
||||||
|
private final DiseaseAncillaryManageService diseaseAncillaryManageService;
|
||||||
|
|
||||||
|
private final DiseasePhysicalManageService diseasePhysicalManageService;
|
||||||
|
|
||||||
|
private final DiseaseQuestionManageService diseaseQuestionManageService;
|
||||||
|
|
||||||
|
private final DiseaseTreatmentPlanManageService diseaseTreatmentPlanManageService;
|
||||||
|
@Override
|
||||||
|
public Disease saveDisease(Disease disease) {
|
||||||
|
|
||||||
|
assertDisease(disease);
|
||||||
|
|
||||||
|
disease.setStatus(0);
|
||||||
|
diseaseService.save(disease);
|
||||||
|
|
||||||
|
return disease;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean updateDisease(Disease disease) {
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(disease.getId()),"id is not allow empty");
|
||||||
|
|
||||||
|
return diseaseService.updateById(disease);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public boolean deleteDisease(String id) {
|
||||||
|
|
||||||
|
// 1. 删除疾病信息
|
||||||
|
diseaseService.removeById(id);
|
||||||
|
|
||||||
|
// 2. 删除疾病辅助检查信息
|
||||||
|
diseaseAncillaryManageService.deleteByDiseaseId(id);
|
||||||
|
|
||||||
|
// 3. 删除疾病体格检查信息
|
||||||
|
diseasePhysicalManageService.deleteByDiseaseId(id);
|
||||||
|
|
||||||
|
//4. 删除疾病问题信息
|
||||||
|
diseaseQuestionManageService.deleteByDiseaseId(id);
|
||||||
|
|
||||||
|
// 5. 删除疾病处置计划信息
|
||||||
|
diseaseTreatmentPlanManageService.deleteByDiseaseId(id);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Page<Disease> queryPageList(Integer pageNum, Integer pageSize, DiseaseVo diseaseVo) {
|
||||||
|
|
||||||
|
|
||||||
|
LambdaQueryChainWrapper<Disease> wrapper = diseaseService.lambdaQuery()
|
||||||
|
.like(StrUtil.isNotEmpty(diseaseVo.getDiseaseName()), Disease::getDiseaseName, diseaseVo.getDiseaseName());
|
||||||
|
|
||||||
|
return wrapper.page(new Page<>(pageNum, pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private List<Disease> queryByAnyCondition(String code, String diseaseName, String diseaseNameAlias){
|
||||||
|
|
||||||
|
return diseaseService.lambdaQuery().eq(StrUtil.isNotEmpty(code),Disease::getCode,code).or()
|
||||||
|
.eq(StrUtil.isNotEmpty(diseaseName), Disease::getDiseaseName,diseaseName).or()
|
||||||
|
.eq(StrUtil.isNotEmpty(diseaseNameAlias),Disease::getDiseaseNameAlias,diseaseNameAlias)
|
||||||
|
.list();
|
||||||
|
|
||||||
|
}
|
||||||
|
private List<Disease> queryByCode(String code){
|
||||||
|
if (Objects.isNull(code)){
|
||||||
|
throw new BusinessException("code is not allow empty");
|
||||||
|
}
|
||||||
|
return diseaseService.lambdaQuery().eq(Disease::getCode,code).list();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void assertDisease(Disease disease){
|
||||||
|
|
||||||
|
Assert.isNull(disease.getId(),"id 不为空");
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(disease.getDiseaseName()),"疾病名称不能为空");
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(disease.getDiseaseNameAlias()),"疾病别名不能为空");
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(disease.getCode()),"疾病编码不能为空");
|
||||||
|
|
||||||
|
List<Disease> diseases = this.queryByAnyCondition(disease.getCode(), disease.getDiseaseName(), disease.getDiseaseNameAlias());
|
||||||
|
Assert.isTrue(CollUtil.isEmpty(diseases),"类目编码: {},或疾病名称: {},或疾病分类别名: {} 已存在",
|
||||||
|
disease.getCode(),disease.getDiseaseName(),disease.getDiseaseNameAlias());
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,138 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.supervision.manage.service.DiseasePhysicalManageService;
|
||||||
|
import com.supervision.manage.service.PhysicalLocationManageService;
|
||||||
|
import com.supervision.manage.service.PhysicalToolManageService;
|
||||||
|
import com.supervision.model.ConfigPhysicalLocation;
|
||||||
|
import com.supervision.model.DiseaseAncillary;
|
||||||
|
import com.supervision.model.DiseasePhysical;
|
||||||
|
import com.supervision.service.ConfigPhysicalLocationService;
|
||||||
|
import com.supervision.service.DiseasePhysicalService;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalLocationNodeVo;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
||||||
|
import com.supervision.vo.manage.PhysicalLocationNode;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseasePhysicalManageServiceImpl implements DiseasePhysicalManageService {
|
||||||
|
|
||||||
|
private final DiseasePhysicalService diseasePhysicalService;
|
||||||
|
|
||||||
|
private final PhysicalLocationManageService physicalToolManageService;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseasePhysicalResVo> queryListByDiseaseId(String diseaseId) {
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(diseaseId),"id不能为空");
|
||||||
|
List<DiseasePhysicalResVo> diseasePhysicalResVos = diseasePhysicalService.queryListByDiseaseId(diseaseId);
|
||||||
|
|
||||||
|
diseasePhysicalResVos.forEach(DiseasePhysicalResVo::populateOther);
|
||||||
|
return diseasePhysicalResVos;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DiseasePhysical savePhysical(DiseasePhysical diseasePhysical) {
|
||||||
|
|
||||||
|
assertDiseasePhysical(diseasePhysical);
|
||||||
|
|
||||||
|
diseasePhysicalService.save(diseasePhysical);
|
||||||
|
|
||||||
|
return diseasePhysical;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean deletePhysical(String id) {
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(id),"id不能为空");
|
||||||
|
|
||||||
|
return diseasePhysicalService.removeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean updatePhysical(DiseasePhysical diseasePhysical) {
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(diseasePhysical.getDiseaseId()),"疾病id不能为空");
|
||||||
|
|
||||||
|
return diseasePhysicalService.updateById(diseasePhysical);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean deleteByDiseaseId(String diseaseId) {
|
||||||
|
|
||||||
|
Assert.notEmpty(diseaseId,"疾病id不能为空");
|
||||||
|
return diseasePhysicalService.lambdaUpdate().eq(DiseasePhysical::getDiseaseId,diseaseId).remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseasePhysicalLocationNodeVo> queryTree(String diseaseId, String toolId) {
|
||||||
|
|
||||||
|
// 1. 查询体格检查位置树
|
||||||
|
List<PhysicalLocationNode> physicalLocationNodes = physicalToolManageService.queryTree();
|
||||||
|
if (CollectionUtil.isEmpty(physicalLocationNodes)){
|
||||||
|
return CollectionUtil.newArrayList();
|
||||||
|
}
|
||||||
|
|
||||||
|
PhysicalLocationNode physicalLocationNode = new PhysicalLocationNode();
|
||||||
|
physicalLocationNode.setChild(physicalLocationNodes);
|
||||||
|
DiseasePhysicalLocationNodeVo bean = BeanUtil.toBean(physicalLocationNode, DiseasePhysicalLocationNodeVo.class);
|
||||||
|
|
||||||
|
if (StrUtil.isEmpty(toolId)){
|
||||||
|
return bean.getChild();
|
||||||
|
}
|
||||||
|
// 2. 根据疾病id查询疾病体格检查项
|
||||||
|
List<DiseasePhysicalResVo> diseasePhysicalResVos = diseasePhysicalService.queryListByDiseaseId(diseaseId);
|
||||||
|
if (CollectionUtil.isEmpty(diseasePhysicalResVos)){
|
||||||
|
return bean.getChild();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3. 填充疾病体格检查树中的flag属性
|
||||||
|
List<String> locationIds = diseasePhysicalResVos.stream().filter(vo->toolId.equals(vo.getToolId()))
|
||||||
|
.map(DiseasePhysical::getLocationId).distinct().collect(Collectors.toList());
|
||||||
|
populateDiseasePhysicalLocationNodeFlag(bean,locationIds);
|
||||||
|
|
||||||
|
return bean.getChild();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void populateDiseasePhysicalLocationNodeFlag(DiseasePhysicalLocationNodeVo node,List<String> locationIds) {
|
||||||
|
if (StrUtil.isNotEmpty(node.getId())){
|
||||||
|
node.setFlag(locationIds.contains(node.getId()));
|
||||||
|
}
|
||||||
|
if (CollectionUtil.isNotEmpty(node.getChild())){
|
||||||
|
for (DiseasePhysicalLocationNodeVo childNode : node.getChild()) {
|
||||||
|
populateDiseasePhysicalLocationNodeFlag(childNode,locationIds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void assertDiseasePhysical(DiseasePhysical diseasePhysical){
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isNotEmpty(diseasePhysical.getDiseaseId()),"疾病id不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseasePhysical.getPrimarilyDiagnosisCriteriaFlag(),"初步诊断依据不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseasePhysical.getBasisConfirmFlag(),"证实诊断依据不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseasePhysical.getBasisIdentificationFlag(),"鉴别诊断依据不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseasePhysical.getFullCheckFlag(),"全面诊断不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseasePhysical.getDiagnosisAssessmentFlag(),"判断不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseasePhysical.getRequireCheckFlag(),"是否必查不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseasePhysical.getDiagnosisAssessmentFlag(),"判断不能为空");
|
||||||
|
|
||||||
|
Assert.notNull(diseasePhysical.getExpectedDiagnosisResult(),"预期诊断结果不能为空");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.manage.service.AskQuestionLibraryManageService;
|
||||||
|
import com.supervision.manage.service.DiseaseAncillaryManageService;
|
||||||
|
import com.supervision.manage.service.DiseaseQuestionManageService;
|
||||||
|
import com.supervision.model.DiseaseQuestion;
|
||||||
|
import com.supervision.service.AskTemplateQuestionLibraryService;
|
||||||
|
import com.supervision.service.DiseaseQuestionService;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryReqVo;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseQuestionResVo;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseaseQuestionManageServiceImpl implements DiseaseQuestionManageService {
|
||||||
|
|
||||||
|
private final DiseaseQuestionService diseaseQuestionService;
|
||||||
|
|
||||||
|
private final AskQuestionLibraryManageService askQuestionLibraryManageService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseaseQuestionResVo> queryPageByDiseaseId(String diseaseId) {
|
||||||
|
|
||||||
|
Assert.notEmpty(diseaseId,"diseaseId 不允许为空");
|
||||||
|
|
||||||
|
return diseaseQuestionService.queryPageByDiseaseId(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void batchSaveQuestion(List<DiseaseQuestion> diseaseQuestionList) {
|
||||||
|
|
||||||
|
Assert.notEmpty(diseaseQuestionList,"数据为空");
|
||||||
|
diseaseQuestionList.forEach(this::assertDiseaseQuestion);
|
||||||
|
Assert.isTrue(CollectionUtil.isEmpty(findListByDiseaseIdAndQuestionIdGroup(diseaseQuestionList)),"数据已存在");
|
||||||
|
|
||||||
|
diseaseQuestionService.saveBatch(diseaseQuestionList);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean deleteDiseaseQuestion(String id) {
|
||||||
|
|
||||||
|
Assert.notEmpty(id,"id不允许为空");
|
||||||
|
|
||||||
|
return diseaseQuestionService.removeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean deleteByDiseaseId(String diseaseId) {
|
||||||
|
Assert.notEmpty(diseaseId,"疾病id不允许为空");
|
||||||
|
|
||||||
|
return diseaseQuestionService.lambdaUpdate().eq(DiseaseQuestion::getDiseaseId, diseaseId).remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Page<AskQuestionLibraryResVo> queryQaLibPageList(Integer pageNum, Integer pageSize, AskQuestionLibraryReqVo askQuestionLibraryReqVo) {
|
||||||
|
|
||||||
|
return diseaseQuestionService.queryQaLibPageList(pageNum,pageSize,askQuestionLibraryReqVo);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private List<DiseaseQuestion> findListByDiseaseIdAndQuestionIdGroup(List<DiseaseQuestion> diseaseQuestionList){
|
||||||
|
|
||||||
|
if (CollectionUtil.isEmpty(diseaseQuestionList)){
|
||||||
|
return CollectionUtil.newArrayList();
|
||||||
|
}
|
||||||
|
|
||||||
|
LambdaQueryChainWrapper<DiseaseQuestion> query = diseaseQuestionService.lambdaQuery();
|
||||||
|
diseaseQuestionList.forEach(diseaseQuestion -> query
|
||||||
|
.or(i -> i.eq(DiseaseQuestion::getQuestionId, diseaseQuestion.getQuestionId())
|
||||||
|
.and(i1 -> i1.eq(DiseaseQuestion::getDiseaseId, diseaseQuestion.getDiseaseId()))));
|
||||||
|
|
||||||
|
return query.list();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void assertDiseaseQuestion(DiseaseQuestion diseaseQuestion){
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isEmpty(diseaseQuestion.getId()),"id需要为空");
|
||||||
|
|
||||||
|
Assert.notEmpty(diseaseQuestion.getDiseaseId(),"疾病id不能为空");
|
||||||
|
|
||||||
|
Assert.notEmpty(diseaseQuestion.getQuestionId(),"问题id不能为空");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,107 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.supervision.manage.service.ConfigTreatmentPlanManageService;
|
||||||
|
import com.supervision.manage.service.DiseaseTreatmentPlanManageService;
|
||||||
|
import com.supervision.model.DiseaseTreatmentPlan;
|
||||||
|
import com.supervision.service.DiseaseTreatmentPlanService;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanTreeNode;
|
||||||
|
import com.supervision.vo.manage.TreatmentPlanTreeNode;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class DiseaseTreatmentPlanManageServiceImpl implements DiseaseTreatmentPlanManageService {
|
||||||
|
|
||||||
|
private final DiseaseTreatmentPlanService diseaseTreatmentPlanService;
|
||||||
|
|
||||||
|
private final ConfigTreatmentPlanManageService configTreatmentPlanManageService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseaseTreatmentPlanResVo> queryListByDiseaseId(String diseaseId) {
|
||||||
|
|
||||||
|
Assert.notEmpty(diseaseId,"疾病id不能为空");
|
||||||
|
return diseaseTreatmentPlanService.queryListByDiseaseId(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DiseaseTreatmentPlan saveTreatmentPlan(DiseaseTreatmentPlan diseaseTreatmentPlan) {
|
||||||
|
|
||||||
|
assertDiseaseTreatmentPlan(diseaseTreatmentPlan);
|
||||||
|
|
||||||
|
diseaseTreatmentPlanService.save(diseaseTreatmentPlan);
|
||||||
|
|
||||||
|
return diseaseTreatmentPlan;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void batchSaveTreatmentPlan(List<DiseaseTreatmentPlan> diseaseTreatmentPlanList) {
|
||||||
|
Assert.notEmpty(diseaseTreatmentPlanList,"数据不能为空");
|
||||||
|
diseaseTreatmentPlanList.forEach(item->{
|
||||||
|
if (StrUtil.isEmpty(item.getTreatmentPlanId())){
|
||||||
|
item.setTreatmentPlanId(item.getPlanId());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
diseaseTreatmentPlanList.forEach(this::assertDiseaseTreatmentPlan);
|
||||||
|
|
||||||
|
diseaseTreatmentPlanService.saveBatch(diseaseTreatmentPlanList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean deleteDiseaseTreatmentPlan(String id) {
|
||||||
|
Assert.notEmpty(id,"id不能为空");
|
||||||
|
|
||||||
|
return diseaseTreatmentPlanService.removeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean deleteByDiseaseId(String diseaseId) {
|
||||||
|
Assert.notEmpty(diseaseId,"疾病id不能为空");
|
||||||
|
|
||||||
|
return diseaseTreatmentPlanService.lambdaUpdate().eq(DiseaseTreatmentPlan::getDiseaseId,diseaseId).remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseaseTreatmentPlanTreeNode> queryDiseaseTreatmentPlanTree(Integer disposalMethod, String diseaseId) {
|
||||||
|
|
||||||
|
// 1. 查询处置计划树
|
||||||
|
List<TreatmentPlanTreeNode> treatmentPlanTreeNodes = configTreatmentPlanManageService.queryTree(disposalMethod);
|
||||||
|
if (CollUtil.isEmpty(treatmentPlanTreeNodes)){
|
||||||
|
return CollectionUtil.newArrayList();
|
||||||
|
}
|
||||||
|
|
||||||
|
TreatmentPlanTreeNode treatmentPlanTreeNode = new TreatmentPlanTreeNode();
|
||||||
|
treatmentPlanTreeNode.setChild(treatmentPlanTreeNodes);
|
||||||
|
DiseaseTreatmentPlanTreeNode rootNode = new DiseaseTreatmentPlanTreeNode(treatmentPlanTreeNode);
|
||||||
|
|
||||||
|
// 2.根据疾病id查询疾病处置计划信息
|
||||||
|
List<DiseaseTreatmentPlanResVo> diseaseTreatmentPlanResVos = this.queryListByDiseaseId(diseaseId);
|
||||||
|
|
||||||
|
// 3. 初始化flag
|
||||||
|
if (CollUtil.isNotEmpty(diseaseTreatmentPlanResVos)){
|
||||||
|
rootNode.initFlag(diseaseTreatmentPlanResVos.stream().map(DiseaseTreatmentPlanResVo::getPlanId).collect(Collectors.toList()));
|
||||||
|
}
|
||||||
|
|
||||||
|
return rootNode.getChild();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void assertDiseaseTreatmentPlan(DiseaseTreatmentPlan diseaseTreatmentPlan){
|
||||||
|
|
||||||
|
Assert.isTrue(StrUtil.isEmpty(diseaseTreatmentPlan.getId()),"id需要为空");
|
||||||
|
|
||||||
|
Assert.notEmpty(diseaseTreatmentPlan.getDiseaseId(),"疾病id不能为空");
|
||||||
|
|
||||||
|
Assert.notEmpty(diseaseTreatmentPlan.getPlanId(),"处置计划id不能为空");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,258 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.exception.BusinessException;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecInfoVO;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecManageVO;
|
||||||
|
import com.supervision.manage.pojo.vo.MedicalRecQaVO;
|
||||||
|
import com.supervision.manage.service.DiseaseAncillaryManageService;
|
||||||
|
import com.supervision.manage.service.DiseasePhysicalManageService;
|
||||||
|
import com.supervision.manage.service.DiseaseTreatmentPlanManageService;
|
||||||
|
import com.supervision.model.*;
|
||||||
|
import com.supervision.service.*;
|
||||||
|
import com.supervision.vo.manage.DiseaseAncillaryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseasePhysicalResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
||||||
|
import com.supervision.vo.manage.MedicalRecPageResVO;
|
||||||
|
import com.supervision.manage.service.MedicalRecManageService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.function.Function;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class MedicalRecManageServiceImpl implements MedicalRecManageService {
|
||||||
|
|
||||||
|
private final DiseaseService diseaseService;
|
||||||
|
|
||||||
|
private final MedicalRecService medicalRecService;
|
||||||
|
|
||||||
|
private final AskPatientAnswerService askPatientAnswerService;
|
||||||
|
|
||||||
|
private final PatientService patientService;
|
||||||
|
|
||||||
|
private final AskTemplateQuestionLibraryService askTemplateQuestionLibraryService;
|
||||||
|
|
||||||
|
private final CommonDicService commonDicService;
|
||||||
|
|
||||||
|
private final DiseaseQuestionService diseaseQuestionService;
|
||||||
|
|
||||||
|
private final DiseaseAncillaryManageService diseaseAncillaryManageService;
|
||||||
|
|
||||||
|
private final DiseasePhysicalManageService diseasePhysicalManageService;
|
||||||
|
|
||||||
|
private final DiseaseTreatmentPlanManageService diseaseTreatmentPlanManageService;
|
||||||
|
|
||||||
|
public List<Disease> queryDiseaseListByDropList() {
|
||||||
|
// 注意,这里不支持查询复杂疾病,如果需要支持复杂疾病,这里需要单独进行改造
|
||||||
|
return diseaseService.lambdaQuery().eq(Disease::getDiseaseType, 0).list();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Disease> queryDiseaseListByCreat() {
|
||||||
|
// 注意,这里不支持查询复杂疾病,如果需要支持复杂疾病,这里需要单独进行改造
|
||||||
|
return diseaseService.lambdaQuery().eq(Disease::getDiseaseType, 0).list();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<MedicalRecPageResVO> queryMedicalRecManagePage(String selfDescKeyword, String gender, String diseaseId, Integer pageNum, Integer pageSize) {
|
||||||
|
// 注意,这里的diseaseId不支持查询复杂疾病,如果需要支持复杂疾病,这里需要单独进行改造
|
||||||
|
return medicalRecService.queryMedicalRecManagePage(selfDescKeyword, gender, diseaseId, pageNum, pageSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public void createMedicalRec(MedicalRecManageVO reqVO) {
|
||||||
|
// 首先新增病人
|
||||||
|
Patient patient = reqVO.getPatient();
|
||||||
|
patient.insert();
|
||||||
|
// 然后保存病历
|
||||||
|
MedicalRec medicalRec = BeanUtil.toBean(reqVO, MedicalRec.class);
|
||||||
|
medicalRec.setPatientId(patient.getId());
|
||||||
|
// 注意,这里新增的时候,目前只支持单个疾病,如果需要多个疾病,需要在这里改造,先新增出来一个疾病
|
||||||
|
medicalRec.setDiseaseId(reqVO.getDiseaseId());
|
||||||
|
medicalRec.insert();
|
||||||
|
// 这里生成一个新的编号(首先去数据库里面查询编号,然后用最大的编号+1)(可能存在并发修改导致编码重复问题,不是重点,等有问题再说)
|
||||||
|
medicalRecService.updateMedicalRecNo("QL", "男".equals(patient.getGender()) ? "M" : "F", medicalRec.getId());
|
||||||
|
// 然后保存病历对应的问题
|
||||||
|
List<MedicalRecQaVO> qaList = reqVO.getQaList();
|
||||||
|
for (MedicalRecQaVO medicalRecQaVO : qaList) {
|
||||||
|
if (StrUtil.isBlank(medicalRecQaVO.getLibraryQuestionId())) {
|
||||||
|
throw new BusinessException("问题ID不能为空");
|
||||||
|
}
|
||||||
|
AskPatientAnswer askPatientAnswer = new AskPatientAnswer();
|
||||||
|
askPatientAnswer.setLibraryQuestionId(medicalRecQaVO.getLibraryQuestionId());
|
||||||
|
askPatientAnswer.setAnswer(medicalRecQaVO.getMedicalRecAnswer());
|
||||||
|
askPatientAnswer.setMedicalId(medicalRec.getId());
|
||||||
|
askPatientAnswer.insert();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseaseAncillaryResVo> queryDiseaseAncillaryByCreat(String diseaseId) {
|
||||||
|
// 辅助检查
|
||||||
|
return diseaseAncillaryManageService.queryListByDiseaseId(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseasePhysicalResVo> queryDiseasePhysicalByCreat(String diseaseId) {
|
||||||
|
return diseasePhysicalManageService.queryListByDiseaseId(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseaseTreatmentPlanResVo> queryDiseaseTreatmentPlanByCreat(String diseaseId) {
|
||||||
|
return diseaseTreatmentPlanManageService.queryListByDiseaseId(diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MedicalRecQaVO> queryQuestionListByCreat(String diseaseId) {
|
||||||
|
// 去vp_disease_question获取
|
||||||
|
List<DiseaseQuestion> list = diseaseQuestionService.lambdaQuery().eq(DiseaseQuestion::getDiseaseId, diseaseId).list();
|
||||||
|
if (CollUtil.isEmpty(list)) {
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
// 获取问题
|
||||||
|
Set<String> libraryQuestionIdSet = list.stream().map(DiseaseQuestion::getQuestionId).collect(Collectors.toSet());
|
||||||
|
List<AskTemplateQuestionLibrary> askTemplateQuestionLibraryList = askTemplateQuestionLibraryService.listByIds(libraryQuestionIdSet);
|
||||||
|
Map<String, AskTemplateQuestionLibrary> askQuestionMap = askTemplateQuestionLibraryList.stream().collect(Collectors.toMap(AskTemplateQuestionLibrary::getId, Function.identity()));
|
||||||
|
// 获取字典
|
||||||
|
Set<Long> dictIdSet = askTemplateQuestionLibraryList.stream().map(AskTemplateQuestionLibrary::getDictId).collect(Collectors.toSet());
|
||||||
|
Map<Long, CommonDic> dictMap = commonDicService.listByIds(dictIdSet).stream().collect(Collectors.toMap(CommonDic::getId, Function.identity()));
|
||||||
|
List<MedicalRecQaVO> result = new ArrayList<>();
|
||||||
|
for (DiseaseQuestion diseaseQuestion : list) {
|
||||||
|
AskTemplateQuestionLibrary questionLibrary = askQuestionMap.get(diseaseQuestion.getQuestionId());
|
||||||
|
if (ObjectUtil.isNotEmpty(questionLibrary)) {
|
||||||
|
MedicalRecQaVO medicalRecQaVO = new MedicalRecQaVO();
|
||||||
|
medicalRecQaVO.setLibraryQuestionId(diseaseQuestion.getQuestionId());
|
||||||
|
// 问题
|
||||||
|
medicalRecQaVO.setQuestionList(questionLibrary.getQuestion());
|
||||||
|
// 类目
|
||||||
|
medicalRecQaVO.setDictId(questionLibrary.getDictId());
|
||||||
|
// 类目名称
|
||||||
|
medicalRecQaVO.setDictNamePath(dictMap.getOrDefault(questionLibrary.getDictId(), new CommonDic()).getNameZhPath());
|
||||||
|
// 默认回答
|
||||||
|
medicalRecQaVO.setDefaultAnswer(questionLibrary.getDefaultAnswer());
|
||||||
|
result.add(medicalRecQaVO);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void modifyMedicalRec(MedicalRecManageVO reqVO) {
|
||||||
|
// 首先修改病人
|
||||||
|
Patient patient = reqVO.getPatient();
|
||||||
|
if (StrUtil.isBlank(patient.getId())){
|
||||||
|
throw new BusinessException("病人ID不能为空");
|
||||||
|
}
|
||||||
|
patient.updateById();
|
||||||
|
// 病历不允许修改
|
||||||
|
MedicalRec medicalRec = Optional.ofNullable(medicalRecService.getById(reqVO.getId())).orElseThrow(() -> new BusinessException("未找到病历信息"));
|
||||||
|
if (!StrUtil.equals(medicalRec.getDiseaseId(), reqVO.getDiseaseId())) {
|
||||||
|
throw new BusinessException("修改病例时,不允许修改疾病");
|
||||||
|
}
|
||||||
|
medicalRec.updateById();
|
||||||
|
// 然后修改问答
|
||||||
|
// 首先找到数据库中的问答
|
||||||
|
List<AskPatientAnswer> existQAList = askPatientAnswerService.lambdaQuery().eq(AskPatientAnswer::getMedicalId, medicalRec.getId()).list();
|
||||||
|
Map<String, AskPatientAnswer> existQAMap = existQAList.stream().collect(Collectors.toMap(AskPatientAnswer::getId, Function.identity()));
|
||||||
|
|
||||||
|
for (MedicalRecQaVO medicalRecQaVO : reqVO.getQaList()) {
|
||||||
|
if (StrUtil.isBlank(medicalRecQaVO.getLibraryQuestionId())) {
|
||||||
|
throw new BusinessException("问题ID不能为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isNotBlank(medicalRecQaVO.getId())) {
|
||||||
|
// 存在的从Map中移除掉
|
||||||
|
AskPatientAnswer existAnswer = existQAMap.remove(medicalRecQaVO.getId());
|
||||||
|
// 然后进行更新
|
||||||
|
existAnswer.setAnswer(medicalRecQaVO.getMedicalRecAnswer());
|
||||||
|
existAnswer.updateById();
|
||||||
|
} else {
|
||||||
|
AskPatientAnswer askPatientAnswer = new AskPatientAnswer();
|
||||||
|
askPatientAnswer.setLibraryQuestionId(medicalRecQaVO.getLibraryQuestionId());
|
||||||
|
askPatientAnswer.setAnswer(medicalRecQaVO.getMedicalRecAnswer());
|
||||||
|
askPatientAnswer.setMedicalId(medicalRec.getId());
|
||||||
|
askPatientAnswer.insert();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 将删除的移除
|
||||||
|
askPatientAnswerService.removeByIds(existQAMap.values().stream().map(AskPatientAnswer::getId).collect(Collectors.toSet()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MedicalRecInfoVO queryMedicalRecInfo(String id) {
|
||||||
|
MedicalRec medicalRec = Optional.ofNullable(medicalRecService.getById(id)).orElseThrow(() -> new BusinessException("未找到病历"));
|
||||||
|
MedicalRecInfoVO medicalRecInfoVO = BeanUtil.toBean(medicalRec, MedicalRecInfoVO.class);
|
||||||
|
medicalRecInfoVO.setDiseaseName(diseaseService.getById(medicalRec.getDiseaseId()).getDiseaseName());
|
||||||
|
// 病人基本信息
|
||||||
|
medicalRecInfoVO.setPatient(patientService.getById(medicalRec.getPatientId()));
|
||||||
|
// 辅助检查
|
||||||
|
medicalRecInfoVO.setAncillaryList(diseaseAncillaryManageService.queryListByDiseaseId(medicalRec.getDiseaseId()));
|
||||||
|
// 体格检查
|
||||||
|
medicalRecInfoVO.setPhysicalList(diseasePhysicalManageService.queryListByDiseaseId(medicalRec.getDiseaseId()));
|
||||||
|
// 处置计划
|
||||||
|
medicalRecInfoVO.setTreatmentPlanList(diseaseTreatmentPlanManageService.queryListByDiseaseId(medicalRec.getDiseaseId()));
|
||||||
|
// 问答策略
|
||||||
|
medicalRecInfoVO.setQaList(queryMedicalRecQaInfo(id));
|
||||||
|
return medicalRecInfoVO;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询病例已经配置的的问答信息
|
||||||
|
*/
|
||||||
|
private List<MedicalRecQaVO> queryMedicalRecQaInfo(String medicalRecId) {
|
||||||
|
List<AskPatientAnswer> list = askPatientAnswerService.lambdaQuery().eq(AskPatientAnswer::getMedicalId, medicalRecId).list();
|
||||||
|
List<MedicalRecQaVO> medicalRecQaList = list.stream().map(e -> {
|
||||||
|
MedicalRecQaVO medicalRecQaVO = new MedicalRecQaVO();
|
||||||
|
medicalRecQaVO.setId(e.getId());
|
||||||
|
medicalRecQaVO.setLibraryQuestionId(e.getLibraryQuestionId());
|
||||||
|
|
||||||
|
// 病历的回答
|
||||||
|
medicalRecQaVO.setMedicalRecAnswer(e.getAnswer());
|
||||||
|
return medicalRecQaVO;
|
||||||
|
}).collect(Collectors.toList());
|
||||||
|
// 开始构建问题
|
||||||
|
if (CollUtil.isNotEmpty(medicalRecQaList)) {
|
||||||
|
// 获取问题
|
||||||
|
Set<String> libraryQuestionIdSet = medicalRecQaList.stream().map(MedicalRecQaVO::getLibraryQuestionId).collect(Collectors.toSet());
|
||||||
|
List<AskTemplateQuestionLibrary> askTemplateQuestionLibraryList = askTemplateQuestionLibraryService.listByIds(libraryQuestionIdSet);
|
||||||
|
Map<String, AskTemplateQuestionLibrary> askQuestionMap = askTemplateQuestionLibraryList.stream().collect(Collectors.toMap(AskTemplateQuestionLibrary::getId, Function.identity()));
|
||||||
|
// 获取字典
|
||||||
|
Set<Long> dictIdSet = askTemplateQuestionLibraryList.stream().map(AskTemplateQuestionLibrary::getDictId).collect(Collectors.toSet());
|
||||||
|
Map<Long, CommonDic> dictMap = commonDicService.listByIds(dictIdSet).stream().collect(Collectors.toMap(CommonDic::getId, Function.identity()));
|
||||||
|
|
||||||
|
for (MedicalRecQaVO medicalRecQaVO : medicalRecQaList) {
|
||||||
|
AskTemplateQuestionLibrary questionLibrary = askQuestionMap.get(medicalRecQaVO.getLibraryQuestionId());
|
||||||
|
if (ObjectUtil.isNotEmpty(questionLibrary)) {
|
||||||
|
// 问题
|
||||||
|
medicalRecQaVO.setQuestionList(questionLibrary.getQuestion());
|
||||||
|
// 类目
|
||||||
|
medicalRecQaVO.setDictId(questionLibrary.getDictId());
|
||||||
|
// 类目名称
|
||||||
|
medicalRecQaVO.setDictNamePath(dictMap.getOrDefault(questionLibrary.getDictId(), new CommonDic()).getNameZhPath());
|
||||||
|
// 默认回答
|
||||||
|
medicalRecQaVO.setDefaultAnswer(questionLibrary.getDefaultAnswer());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return medicalRecQaList;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteMedicalRec(String id) {
|
||||||
|
medicalRecService.removeById(id);
|
||||||
|
// 删除病历时,如果是复合疾病,需要将疾病也删除,现在没有做复合疾病,所以先不管
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.supervision.manage.service.PhysicalLocationManageService;
|
||||||
|
import com.supervision.model.ConfigPhysicalLocation;
|
||||||
|
import com.supervision.service.ConfigPhysicalLocationService;
|
||||||
|
import com.supervision.vo.manage.PhysicalLocationNode;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class PhysicalLocationManageServiceImpl implements PhysicalLocationManageService {
|
||||||
|
|
||||||
|
private final ConfigPhysicalLocationService configPhysicalLocationService;
|
||||||
|
@Override
|
||||||
|
public List<PhysicalLocationNode> queryTree() {
|
||||||
|
|
||||||
|
List<ConfigPhysicalLocation> list = configPhysicalLocationService.list();
|
||||||
|
if (CollUtil.isEmpty(list)) {
|
||||||
|
return CollectionUtil.newArrayList();
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, PhysicalLocationNode> map = list.stream().collect(
|
||||||
|
Collectors.toMap(ConfigPhysicalLocation::getId, p -> BeanUtil.toBean(p, PhysicalLocationNode.class)));
|
||||||
|
|
||||||
|
for (Map.Entry<String, PhysicalLocationNode> entry : map.entrySet()) {
|
||||||
|
PhysicalLocationNode value = entry.getValue();
|
||||||
|
if (StrUtil.isNotEmpty(value.getParentId())) {
|
||||||
|
PhysicalLocationNode physicalLocationNode = map.get(value.getParentId());
|
||||||
|
if (!Objects.isNull(physicalLocationNode)) {
|
||||||
|
List<PhysicalLocationNode> child = physicalLocationNode.getChild();
|
||||||
|
if (null == child) {
|
||||||
|
child = new ArrayList<>();
|
||||||
|
physicalLocationNode.setChild(child);
|
||||||
|
}
|
||||||
|
child.add(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return map.values().stream().filter(n -> StrUtil.isEmpty(n.getParentId())).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.manage.service.impl;
|
||||||
|
|
||||||
|
import com.supervision.manage.service.PhysicalToolManageService;
|
||||||
|
import com.supervision.service.ConfigPhysicalToolService;
|
||||||
|
import com.supervision.vo.ask.ConfigPhysicalToolResVO;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class PhysicalToolManageServiceImpl implements PhysicalToolManageService {
|
||||||
|
|
||||||
|
private final ConfigPhysicalToolService configPhysicalToolService;
|
||||||
|
@Override
|
||||||
|
public List<ConfigPhysicalToolResVO> queryPhysicalToolList() {
|
||||||
|
return configPhysicalToolService.queryPhysicalToolList();
|
||||||
|
}
|
||||||
|
}
|
@ -1 +0,0 @@
|
|||||||
|
|
@ -0,0 +1,3 @@
|
|||||||
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: dev
|
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration>
|
||||||
|
<include resource="org/springframework/boot/logging/logback/base.xml"/>
|
||||||
|
|
||||||
|
<logger name="org.springframework.web" level="INFO"/>
|
||||||
|
|
||||||
|
<!-- 开发环境 -->
|
||||||
|
<springProfile name="local">
|
||||||
|
<logger name="org.springframework.web" level="INFO"/>
|
||||||
|
<logger name="org.springboot.sample" level="INFO"/>
|
||||||
|
<logger name="com.supervision" level="DEBUG"/>
|
||||||
|
<logger name="org.springframework.scheduling" level="INFO"/>
|
||||||
|
</springProfile>
|
||||||
|
|
||||||
|
<!-- 测试环境,生产环境 -->
|
||||||
|
<springProfile name="dev,test,prod">
|
||||||
|
<logger name="org.springframework.web" level="INFO"/>
|
||||||
|
<logger name="org.springboot.sample" level="INFO"/>
|
||||||
|
<logger name="com.supervision" level="INFO"/>
|
||||||
|
<logger name="org.springframework.scheduling" level="INFO"/>
|
||||||
|
<root level="INFO">
|
||||||
|
<appender name="DAILY_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<!-- 服务器中当天的日志 -->
|
||||||
|
<file>/data/vp/log/virtual-patient-manage.log</file>
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<!-- 服务器归档日志 -->
|
||||||
|
<fileNamePattern>/data/vp/log/history/virtual-patient-manage-%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
</root>
|
||||||
|
</springProfile>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</configuration>
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.dto;
|
||||||
|
|
||||||
|
import com.supervision.model.CommonDic;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
public class CommonDictTreeDTO extends CommonDic {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 该节点下的子节点
|
||||||
|
*/
|
||||||
|
private List<CommonDictTreeDTO> childDictTreeList;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.CommonDic;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_common_dic(通用字典表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-11-23 10:52:22
|
||||||
|
* @Entity com.supervision.model.CommonDic
|
||||||
|
*/
|
||||||
|
public interface CommonDicMapper extends BaseMapper<CommonDic> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.ConfigDrug;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_config_drug(药品配置表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-12-07 16:42:57
|
||||||
|
* @Entity com.supervision.model.ConfigDrug
|
||||||
|
*/
|
||||||
|
public interface ConfigDrugMapper extends BaseMapper<ConfigDrug> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.ConfigTreatmentPlan;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_treatment_plan(处置计划表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-11-23 10:24:03
|
||||||
|
* @Entity com.supervision.model.ConfigTreatmentPlan
|
||||||
|
*/
|
||||||
|
public interface ConfigTreatmentPlanMapper extends BaseMapper<ConfigTreatmentPlan> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.DefaultItemIndicator;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_default_item_indicator(身体检查默认指标表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-11-23 10:13:01
|
||||||
|
* @Entity com.supervision.model.DefaultItemIndicator
|
||||||
|
*/
|
||||||
|
public interface DefaultItemIndicatorMapper extends BaseMapper<DefaultItemIndicator> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.DiagnosisPrimaryRelation;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author flevance
|
||||||
|
* @description 针对表【vp_diagnosis_primary_relation(初步诊断依据关系表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-12-07 10:28:30
|
||||||
|
* @Entity com.supervision.model.DiagnosisPrimaryRelation
|
||||||
|
*/
|
||||||
|
public interface DiagnosisPrimaryRelationMapper extends BaseMapper<DiagnosisPrimaryRelation> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
package com.supervision.mapper;
|
|
||||||
|
|
||||||
import com.supervision.model.DiagnosisResult;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author flevance
|
|
||||||
* @description 针对表【vp_diagnosis_result(诊断结果)】的数据库操作Mapper
|
|
||||||
* @createDate 2023-10-20 17:19:21
|
|
||||||
* @Entity com.supervision.model.DiagnosisResult
|
|
||||||
*/
|
|
||||||
public interface DiagnosisResultMapper extends BaseMapper<DiagnosisResult> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.supervision.model.DiseaseQuestion;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryReqVo;
|
||||||
|
import com.supervision.vo.manage.AskQuestionLibraryResVo;
|
||||||
|
import com.supervision.vo.manage.DiseaseQuestionResVo;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_disease_question_relation(疾病问题关联表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-11-23 14:06:54
|
||||||
|
* @Entity com.supervision.model.DiseaseQuestionRelation
|
||||||
|
*/
|
||||||
|
public interface DiseaseQuestionMapper extends BaseMapper<DiseaseQuestion> {
|
||||||
|
|
||||||
|
List<DiseaseQuestionResVo> queryPageByDiseaseId(@Param("diseaseId") String diseaseId);
|
||||||
|
|
||||||
|
Page<AskQuestionLibraryResVo> queryQaLibPageList(IPage<AskQuestionLibraryResVo> page,
|
||||||
|
@Param("askQuestionLibrary") AskQuestionLibraryReqVo askQuestionLibraryReqVo);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.DiseaseTreatmentPlanDrug;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_treatment_plan_drug(处置计划药物关联表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-12-07 11:34:05
|
||||||
|
* @Entity com.supervision.model.TreatmentPlanDrug
|
||||||
|
*/
|
||||||
|
public interface DiseaseTreatmentPlanDrugMapper extends BaseMapper<DiseaseTreatmentPlanDrug> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.DiseaseTreatmentPlan;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_disease_treatmen_relation(疾病处置计划关联表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-11-23 10:43:28
|
||||||
|
* @Entity com.supervision.model.VpDiseaseTreatmenRelation
|
||||||
|
*/
|
||||||
|
public interface DiseaseTreatmentPlanMapper extends BaseMapper<DiseaseTreatmentPlan> {
|
||||||
|
|
||||||
|
List<DiseaseTreatmentPlanResVo> queryListByDiseaseId(@Param("diseaseId") String diseaseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.ProcessEvaluation;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_process_evaluation(考核评估)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-11-23 10:50:14
|
||||||
|
* @Entity com.supervision.model.ProcessEvaluation
|
||||||
|
*/
|
||||||
|
public interface ProcessEvaluationMapper extends BaseMapper<ProcessEvaluation> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.ProcessMedical;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.supervision.vo.ask.ProcessMedicalResVo;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author flevance
|
||||||
|
* @description 针对表【vp_process_medical(问诊流程病历)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-11-23 14:32:44
|
||||||
|
* @Entity com.supervision.model.ProcessMedical
|
||||||
|
*/
|
||||||
|
public interface ProcessMedicalMapper extends BaseMapper<ProcessMedical> {
|
||||||
|
|
||||||
|
ProcessMedicalResVo findByProcessId(@Param("processId") String processId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.TreatmentPlanRecord;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_treatment_plan_record(处置计划记录表)】的数据库操作Mapper
|
||||||
|
* @createDate 2023-12-06 16:43:24
|
||||||
|
* @Entity com.supervision.model.TreatmentPlanRecord
|
||||||
|
*/
|
||||||
|
public interface TreatmentPlanRecordMapper extends BaseMapper<TreatmentPlanRecord> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,88 @@
|
|||||||
|
package com.supervision.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通用字典表
|
||||||
|
* @TableName vp_common_dic
|
||||||
|
*/
|
||||||
|
@TableName(value ="vp_common_dic")
|
||||||
|
@Data
|
||||||
|
public class CommonDic extends Model<CommonDic> implements Serializable {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段码值
|
||||||
|
*/
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 中文名
|
||||||
|
*/
|
||||||
|
private String nameZh;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 英文名
|
||||||
|
*/
|
||||||
|
private String nameEn;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组code
|
||||||
|
*/
|
||||||
|
private String groupCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级id
|
||||||
|
*/
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优先级,用来做排序等操作
|
||||||
|
*/
|
||||||
|
private Integer priority;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 中文路径
|
||||||
|
*/
|
||||||
|
private String nameZhPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 说明
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,79 @@
|
|||||||
|
package com.supervision.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.supervision.handler.StringListTypeHandler;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处置计划表
|
||||||
|
* @TableName vp_treatment_plan
|
||||||
|
*/
|
||||||
|
@TableName(value ="vp_config_treatment_plan")
|
||||||
|
@Data
|
||||||
|
public class ConfigTreatmentPlan implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty("处置计划id")
|
||||||
|
private String disposalPlanId;
|
||||||
|
|
||||||
|
@ApiModelProperty("处置计划")
|
||||||
|
private String disposalPlan;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("处置方式(0门诊 1住院)")
|
||||||
|
private Integer disposalMethod;
|
||||||
|
|
||||||
|
@ApiModelProperty("一级措施id")
|
||||||
|
private String firstMeasuresId;
|
||||||
|
|
||||||
|
@ApiModelProperty("一级措施")
|
||||||
|
private String firstMeasures;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("二级措施")
|
||||||
|
private String secondMeasures;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("推荐用药")
|
||||||
|
@TableField(typeHandler = StringListTypeHandler.class)
|
||||||
|
private List<String> recommendedMedication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 说明
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
package com.supervision.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import org.apache.ibatis.annotations.Insert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身体检查默认指标表
|
||||||
|
* @TableName vp_default_item_indicator
|
||||||
|
*/
|
||||||
|
@TableName(value ="vp_default_item_indicator")
|
||||||
|
@Data
|
||||||
|
public class DefaultItemIndicator implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工具id或项目id
|
||||||
|
*/
|
||||||
|
private String itemId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 位置id
|
||||||
|
*/
|
||||||
|
private Integer locationId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 性别 女/男
|
||||||
|
*/
|
||||||
|
private String gender;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 年龄范围
|
||||||
|
*/
|
||||||
|
private String ageRange;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue