Commit 3afedf05b492451f48a70d63724134c11510d873
1 parent
73d691747e
Exists in
master
and in
8 other branches
add risk enum color
Showing 14 changed files with 683 additions and 14 deletions
- platform-mommyData/pom.xml
- platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/LisCheckInfo.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/LisCheckResult.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/PregPatientinfo.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/v1/ConnTools.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/v1/README.TXT
- platform-operate-api/src/main/java/com/lyms/hospitalapi/v2/ConnTools.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/v2/HisService.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/v2/README.TXT
- platform-operate-api/src/main/java/com/lyms/hospitalapi/v2/XinlePregPatientinfo.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
- platform-operate-api/src/main/resources/config.properties
- platform-operate-api/src/main/resources/spring/applicationContext.xml
- pom.xml
platform-mommyData/pom.xml
View file @
3afedf0
... | ... | @@ -16,11 +16,6 @@ |
16 | 16 | <artifactId>platform-common</artifactId> |
17 | 17 | <version>1.0.1</version> |
18 | 18 | </dependency> |
19 | - <dependency> | |
20 | - <groupId>com.oracle</groupId> | |
21 | - <artifactId>ojdbc14</artifactId> | |
22 | - <version>11.2.0.1.0</version> | |
23 | - </dependency> | |
24 | 19 | </dependencies> |
25 | 20 | <build> |
26 | 21 | <plugins> |
platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/LisCheckInfo.java
View file @
3afedf0
1 | +package com.lyms.hospitalapi.pojo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +/** | |
6 | + * Created by Administrator on 2016/9/9 0009. | |
7 | + * 字段名称 字段类型 字段描述 | |
8 | + P_APPLICATIONNUM VARCHAR2 申请号 | |
9 | + P_CARD VARCHAR2 卡号 | |
10 | + P_BEDNUN VARCHAR2 床位代码 | |
11 | + P_CHECKDEPARTNAME VARCHAR2 检查科室名称 | |
12 | + P_ENDEMICNAME VARCHAR2 病区名称 | |
13 | + P_AGE VARCHAR2 年龄 | |
14 | + P_NAME VARCHAR2 患者姓名 | |
15 | + P_SEX VARCHAR2 性别 数字或者汉字均可,0,女;1,男 | |
16 | + P_ADMISSIONNUM VARCHAR2 住院号 | |
17 | + P_REPORTTYPENAME VARCHAR2 报告类别名称 | |
18 | + P_REPORTISSUETIME date 报告发布时间 | |
19 | + P_APPLATIONTIME date 申请时间 | |
20 | + P_REPORTTIME date 报告时间 | |
21 | + P_CHECKTIME date 检查时间 | |
22 | + P_APPLATIONDOCNAME VARCHAR2 申请医生名称 | |
23 | + STATUS NUMBER 1:申请中,2:检查中,3:诊断完成 | |
24 | + MODIFIED DATE 最后修改时间 | |
25 | + */ | |
26 | +public class LisCheckInfo { | |
27 | + | |
28 | + private String P_APPLICATIONNUM; | |
29 | + private String P_CARD; | |
30 | + private String P_BEDNUN; | |
31 | + private String P_CHECKDEPARTNAME; | |
32 | + private String P_ENDEMICNAME; | |
33 | + private String P_AGE; | |
34 | + private String P_NAME; | |
35 | + private String P_SEX; | |
36 | + private String P_ADMISSIONNUM; | |
37 | + private String P_REPORTTYPENAME; | |
38 | + private String P_APPLATIONDOCNAME; | |
39 | + private Date P_REPORTISSUETIME; | |
40 | + private Date P_APPLATIONTIME; | |
41 | + private Date P_REPORTTIME; | |
42 | + private Date P_CHECKTIME; | |
43 | + private Date MODIFIED; | |
44 | + private Integer STATUS; | |
45 | + | |
46 | + public String getP_APPLICATIONNUM() { | |
47 | + return P_APPLICATIONNUM; | |
48 | + } | |
49 | + | |
50 | + public void setP_APPLICATIONNUM(String p_APPLICATIONNUM) { | |
51 | + P_APPLICATIONNUM = p_APPLICATIONNUM; | |
52 | + } | |
53 | + | |
54 | + public String getP_CARD() { | |
55 | + return P_CARD; | |
56 | + } | |
57 | + | |
58 | + public void setP_CARD(String p_CARD) { | |
59 | + P_CARD = p_CARD; | |
60 | + } | |
61 | + | |
62 | + public String getP_BEDNUN() { | |
63 | + return P_BEDNUN; | |
64 | + } | |
65 | + | |
66 | + public void setP_BEDNUN(String p_BEDNUN) { | |
67 | + P_BEDNUN = p_BEDNUN; | |
68 | + } | |
69 | + | |
70 | + public String getP_CHECKDEPARTNAME() { | |
71 | + return P_CHECKDEPARTNAME; | |
72 | + } | |
73 | + | |
74 | + public void setP_CHECKDEPARTNAME(String p_CHECKDEPARTNAME) { | |
75 | + P_CHECKDEPARTNAME = p_CHECKDEPARTNAME; | |
76 | + } | |
77 | + | |
78 | + public String getP_ENDEMICNAME() { | |
79 | + return P_ENDEMICNAME; | |
80 | + } | |
81 | + | |
82 | + public void setP_ENDEMICNAME(String p_ENDEMICNAME) { | |
83 | + P_ENDEMICNAME = p_ENDEMICNAME; | |
84 | + } | |
85 | + | |
86 | + public String getP_AGE() { | |
87 | + return P_AGE; | |
88 | + } | |
89 | + | |
90 | + public void setP_AGE(String p_AGE) { | |
91 | + P_AGE = p_AGE; | |
92 | + } | |
93 | + | |
94 | + public String getP_NAME() { | |
95 | + return P_NAME; | |
96 | + } | |
97 | + | |
98 | + public void setP_NAME(String p_NAME) { | |
99 | + P_NAME = p_NAME; | |
100 | + } | |
101 | + | |
102 | + public String getP_SEX() { | |
103 | + return P_SEX; | |
104 | + } | |
105 | + | |
106 | + public void setP_SEX(String p_SEX) { | |
107 | + P_SEX = p_SEX; | |
108 | + } | |
109 | + | |
110 | + public String getP_ADMISSIONNUM() { | |
111 | + return P_ADMISSIONNUM; | |
112 | + } | |
113 | + | |
114 | + public void setP_ADMISSIONNUM(String p_ADMISSIONNUM) { | |
115 | + P_ADMISSIONNUM = p_ADMISSIONNUM; | |
116 | + } | |
117 | + | |
118 | + public String getP_REPORTTYPENAME() { | |
119 | + return P_REPORTTYPENAME; | |
120 | + } | |
121 | + | |
122 | + public void setP_REPORTTYPENAME(String p_REPORTTYPENAME) { | |
123 | + P_REPORTTYPENAME = p_REPORTTYPENAME; | |
124 | + } | |
125 | + | |
126 | + public String getP_APPLATIONDOCNAME() { | |
127 | + return P_APPLATIONDOCNAME; | |
128 | + } | |
129 | + | |
130 | + public void setP_APPLATIONDOCNAME(String p_APPLATIONDOCNAME) { | |
131 | + P_APPLATIONDOCNAME = p_APPLATIONDOCNAME; | |
132 | + } | |
133 | + | |
134 | + public Date getP_REPORTISSUETIME() { | |
135 | + return P_REPORTISSUETIME; | |
136 | + } | |
137 | + | |
138 | + public void setP_REPORTISSUETIME(Date p_REPORTISSUETIME) { | |
139 | + P_REPORTISSUETIME = p_REPORTISSUETIME; | |
140 | + } | |
141 | + | |
142 | + public Date getP_APPLATIONTIME() { | |
143 | + return P_APPLATIONTIME; | |
144 | + } | |
145 | + | |
146 | + public void setP_APPLATIONTIME(Date p_APPLATIONTIME) { | |
147 | + P_APPLATIONTIME = p_APPLATIONTIME; | |
148 | + } | |
149 | + | |
150 | + public Date getP_REPORTTIME() { | |
151 | + return P_REPORTTIME; | |
152 | + } | |
153 | + | |
154 | + public void setP_REPORTTIME(Date p_REPORTTIME) { | |
155 | + P_REPORTTIME = p_REPORTTIME; | |
156 | + } | |
157 | + | |
158 | + public Date getP_CHECKTIME() { | |
159 | + return P_CHECKTIME; | |
160 | + } | |
161 | + | |
162 | + public void setP_CHECKTIME(Date p_CHECKTIME) { | |
163 | + P_CHECKTIME = p_CHECKTIME; | |
164 | + } | |
165 | + | |
166 | + public Date getMODIFIED() { | |
167 | + return MODIFIED; | |
168 | + } | |
169 | + | |
170 | + public void setMODIFIED(Date MODIFIED) { | |
171 | + this.MODIFIED = MODIFIED; | |
172 | + } | |
173 | + | |
174 | + public Integer getSTATUS() { | |
175 | + return STATUS; | |
176 | + } | |
177 | + | |
178 | + public void setSTATUS(Integer STATUS) { | |
179 | + this.STATUS = STATUS; | |
180 | + } | |
181 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/LisCheckResult.java
View file @
3afedf0
1 | +package com.lyms.hospitalapi.pojo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +/** | |
6 | + * Created by Administrator on 2016/9/9 0009. | |
7 | + * 字段名称 字段类型 字段描述 | |
8 | + P_APPLICATIONNUM VARCHAR2 申请单号,与化验列表的申请单号关联 | |
9 | + P_HIGHANDLOWMARK VARCHAR2 高低标志 | |
10 | + P_ITEMCODE VARCHAR2 项目代码 | |
11 | + P_ITEMNAME VARCHAR2 项目名称 | |
12 | + P_REFERENCEVALUE VARCHAR2 参考值 | |
13 | + P_FIGURERESULT VARCHAR2 数字结果 | |
14 | + P_CODERESULT VARCHAR2 字符结果 | |
15 | + P_REPORTTIME date 报告时间 | |
16 | + P_RESULTTYPE VARCHAR2 结果类型 | |
17 | + P_ITEMRESULT VARCHAR2 项目结果 | |
18 | + P_UNIT VARCHAR2 单位 | |
19 | + P_PRINTORDER number 打印顺序 | |
20 | + P_PRINTGROUP number 打印分组 | |
21 | + */ | |
22 | +public class LisCheckResult { | |
23 | + | |
24 | + private String P_APPLICATIONNUM; | |
25 | + private String P_HIGHANDLOWMARK; | |
26 | + private String P_ITEMCODE; | |
27 | + private String P_ITEMNAME; | |
28 | + private String P_REFERENCEVALUE; | |
29 | + private String P_FIGURERESULT; | |
30 | + private String P_RESULTTYPE; | |
31 | + private String P_ITEMRESULT; | |
32 | + private String P_UNIT; | |
33 | + private String P_CODERESULT; | |
34 | + private Date P_REPORTTIME; | |
35 | + private Integer P_PRINTORDER; | |
36 | + private Integer P_PRINTGROUP; | |
37 | + | |
38 | + public String getP_APPLICATIONNUM() { | |
39 | + return P_APPLICATIONNUM; | |
40 | + } | |
41 | + | |
42 | + public void setP_APPLICATIONNUM(String p_APPLICATIONNUM) { | |
43 | + P_APPLICATIONNUM = p_APPLICATIONNUM; | |
44 | + } | |
45 | + | |
46 | + public String getP_HIGHANDLOWMARK() { | |
47 | + return P_HIGHANDLOWMARK; | |
48 | + } | |
49 | + | |
50 | + public void setP_HIGHANDLOWMARK(String p_HIGHANDLOWMARK) { | |
51 | + P_HIGHANDLOWMARK = p_HIGHANDLOWMARK; | |
52 | + } | |
53 | + | |
54 | + public String getP_ITEMCODE() { | |
55 | + return P_ITEMCODE; | |
56 | + } | |
57 | + | |
58 | + public void setP_ITEMCODE(String p_ITEMCODE) { | |
59 | + P_ITEMCODE = p_ITEMCODE; | |
60 | + } | |
61 | + | |
62 | + public String getP_ITEMNAME() { | |
63 | + return P_ITEMNAME; | |
64 | + } | |
65 | + | |
66 | + public void setP_ITEMNAME(String p_ITEMNAME) { | |
67 | + P_ITEMNAME = p_ITEMNAME; | |
68 | + } | |
69 | + | |
70 | + public String getP_REFERENCEVALUE() { | |
71 | + return P_REFERENCEVALUE; | |
72 | + } | |
73 | + | |
74 | + public void setP_REFERENCEVALUE(String p_REFERENCEVALUE) { | |
75 | + P_REFERENCEVALUE = p_REFERENCEVALUE; | |
76 | + } | |
77 | + | |
78 | + public String getP_FIGURERESULT() { | |
79 | + return P_FIGURERESULT; | |
80 | + } | |
81 | + | |
82 | + public void setP_FIGURERESULT(String p_FIGURERESULT) { | |
83 | + P_FIGURERESULT = p_FIGURERESULT; | |
84 | + } | |
85 | + | |
86 | + public String getP_RESULTTYPE() { | |
87 | + return P_RESULTTYPE; | |
88 | + } | |
89 | + | |
90 | + public void setP_RESULTTYPE(String p_RESULTTYPE) { | |
91 | + P_RESULTTYPE = p_RESULTTYPE; | |
92 | + } | |
93 | + | |
94 | + public String getP_ITEMRESULT() { | |
95 | + return P_ITEMRESULT; | |
96 | + } | |
97 | + | |
98 | + public void setP_ITEMRESULT(String p_ITEMRESULT) { | |
99 | + P_ITEMRESULT = p_ITEMRESULT; | |
100 | + } | |
101 | + | |
102 | + public String getP_UNIT() { | |
103 | + return P_UNIT; | |
104 | + } | |
105 | + | |
106 | + public void setP_UNIT(String p_UNIT) { | |
107 | + P_UNIT = p_UNIT; | |
108 | + } | |
109 | + | |
110 | + public String getP_CODERESULT() { | |
111 | + return P_CODERESULT; | |
112 | + } | |
113 | + | |
114 | + public void setP_CODERESULT(String p_CODERESULT) { | |
115 | + P_CODERESULT = p_CODERESULT; | |
116 | + } | |
117 | + | |
118 | + public Date getP_REPORTTIME() { | |
119 | + return P_REPORTTIME; | |
120 | + } | |
121 | + | |
122 | + public void setP_REPORTTIME(Date p_REPORTTIME) { | |
123 | + P_REPORTTIME = p_REPORTTIME; | |
124 | + } | |
125 | + | |
126 | + public Integer getP_PRINTORDER() { | |
127 | + return P_PRINTORDER; | |
128 | + } | |
129 | + | |
130 | + public void setP_PRINTORDER(Integer p_PRINTORDER) { | |
131 | + P_PRINTORDER = p_PRINTORDER; | |
132 | + } | |
133 | + | |
134 | + public Integer getP_PRINTGROUP() { | |
135 | + return P_PRINTGROUP; | |
136 | + } | |
137 | + | |
138 | + public void setP_PRINTGROUP(Integer p_PRINTGROUP) { | |
139 | + P_PRINTGROUP = p_PRINTGROUP; | |
140 | + } | |
141 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/PregPatientinfo.java
View file @
3afedf0
1 | +package com.lyms.hospitalapi.pojo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +/** | |
6 | + * Created by Administrator on 2016/9/9 0009. | |
7 | + * P_ID VARCHAR2 病人ID | |
8 | + P_NAME VARCHAR2 病人姓名 | |
9 | + P_SEX NUMBER/VARCHAR2 性别,数字或者汉字均可,0,女;1,男 | |
10 | + P_BIRTHDAY DATE 出生日期 | |
11 | + P_CARDNO VARCHAR2 卡号 | |
12 | + P_BHNUM VARCHAR2 住院号或挂号号 | |
13 | + P_HUSBANDNAME VARCHAR2 联系人姓名 | |
14 | + P_MOBILEPHONE VARCHAR2 手机号 | |
15 | + P_IDNUM VARCHAR2 身份证号 | |
16 | + CREATED DATE 建档时间 | |
17 | + */ | |
18 | +public class PregPatientinfo { | |
19 | + | |
20 | + private String P_ID; | |
21 | + private String P_NAME; | |
22 | + private String P_SEX; | |
23 | + private String P_CARDNO; | |
24 | + private String P_BHNUM; | |
25 | + private String P_HUSBANDNAME; | |
26 | + private String P_MOBILEPHONE; | |
27 | + private String P_IDNUM; | |
28 | + private Date P_BIRTHDAY; | |
29 | + private Date CREATED; | |
30 | + | |
31 | + public String getP_ID() { | |
32 | + return P_ID; | |
33 | + } | |
34 | + | |
35 | + public void setP_ID(String p_ID) { | |
36 | + P_ID = p_ID; | |
37 | + } | |
38 | + | |
39 | + public String getP_NAME() { | |
40 | + return P_NAME; | |
41 | + } | |
42 | + | |
43 | + public void setP_NAME(String p_NAME) { | |
44 | + P_NAME = p_NAME; | |
45 | + } | |
46 | + | |
47 | + public String getP_SEX() { | |
48 | + return P_SEX; | |
49 | + } | |
50 | + | |
51 | + public void setP_SEX(String p_SEX) { | |
52 | + P_SEX = p_SEX; | |
53 | + } | |
54 | + | |
55 | + public String getP_CARDNO() { | |
56 | + return P_CARDNO; | |
57 | + } | |
58 | + | |
59 | + public void setP_CARDNO(String p_CARDNO) { | |
60 | + P_CARDNO = p_CARDNO; | |
61 | + } | |
62 | + | |
63 | + public String getP_BHNUM() { | |
64 | + return P_BHNUM; | |
65 | + } | |
66 | + | |
67 | + public void setP_BHNUM(String p_BHNUM) { | |
68 | + P_BHNUM = p_BHNUM; | |
69 | + } | |
70 | + | |
71 | + public String getP_HUSBANDNAME() { | |
72 | + return P_HUSBANDNAME; | |
73 | + } | |
74 | + | |
75 | + public void setP_HUSBANDNAME(String p_HUSBANDNAME) { | |
76 | + P_HUSBANDNAME = p_HUSBANDNAME; | |
77 | + } | |
78 | + | |
79 | + public String getP_MOBILEPHONE() { | |
80 | + return P_MOBILEPHONE; | |
81 | + } | |
82 | + | |
83 | + public void setP_MOBILEPHONE(String p_MOBILEPHONE) { | |
84 | + P_MOBILEPHONE = p_MOBILEPHONE; | |
85 | + } | |
86 | + | |
87 | + public String getP_IDNUM() { | |
88 | + return P_IDNUM; | |
89 | + } | |
90 | + | |
91 | + public void setP_IDNUM(String p_IDNUM) { | |
92 | + P_IDNUM = p_IDNUM; | |
93 | + } | |
94 | + | |
95 | + public Date getP_BIRTHDAY() { | |
96 | + return P_BIRTHDAY; | |
97 | + } | |
98 | + | |
99 | + public void setP_BIRTHDAY(Date p_BIRTHDAY) { | |
100 | + P_BIRTHDAY = p_BIRTHDAY; | |
101 | + } | |
102 | + | |
103 | + public Date getCREATED() { | |
104 | + return CREATED; | |
105 | + } | |
106 | + | |
107 | + public void setCREATED(Date CREATED) { | |
108 | + this.CREATED = CREATED; | |
109 | + } | |
110 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/v1/ConnTools.java
View file @
3afedf0
1 | +package com.lyms.hospitalapi.v1; | |
2 | + | |
3 | +import java.sql.Connection; | |
4 | +import java.sql.DriverManager; | |
5 | +import java.sql.SQLException; | |
6 | + | |
7 | +/** | |
8 | + * Created by Administrator on 2016/9/9 0009. | |
9 | + */ | |
10 | +public class ConnTools { | |
11 | + private static String dirverClassName = "com.mysql.jdbc.Driver"; | |
12 | + private static String url = "jdbc:mysql://192.168.104.101:3306/testdb?useUnicode=true&characterEncoding=utf8"; | |
13 | + private static String user = "root"; | |
14 | + private static String password = "leizhimin"; | |
15 | + | |
16 | + public static Connection makeConnection() { | |
17 | + Connection conn = null; | |
18 | + try { | |
19 | + Class.forName(dirverClassName); | |
20 | + } catch (ClassNotFoundException e) { | |
21 | + e.printStackTrace(); | |
22 | + } | |
23 | + try { | |
24 | + conn = DriverManager.getConnection(url, user, password); | |
25 | + } catch (SQLException e) { | |
26 | + e.printStackTrace(); | |
27 | + } | |
28 | + return conn; | |
29 | + } | |
30 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/v1/README.TXT
View file @
3afedf0
platform-operate-api/src/main/java/com/lyms/hospitalapi/v2/ConnTools.java
View file @
3afedf0
1 | +package com.lyms.hospitalapi.v2; | |
2 | + | |
3 | +import java.sql.Connection; | |
4 | +import java.sql.DriverManager; | |
5 | +import java.sql.SQLException; | |
6 | + | |
7 | +/** | |
8 | + * Created by Administrator on 2016/9/9 0009. | |
9 | + */ | |
10 | +public class ConnTools { | |
11 | + private static String hisDirverClassName = "com.mysql.jdbc.Driver"; | |
12 | + private static String hisUrl = "jdbc:oracle:thin:@192.190.10.11:1521:xlsyy"; | |
13 | + private static String hisUser = "mmbb"; | |
14 | + private static String hisPassword = "mmbb"; | |
15 | + | |
16 | + public static Connection makeHisConnection() { | |
17 | + Connection conn = null; | |
18 | + try { | |
19 | + Class.forName(hisDirverClassName); | |
20 | + } catch (ClassNotFoundException e) { | |
21 | + e.printStackTrace(); | |
22 | + } | |
23 | + try { | |
24 | + conn = DriverManager.getConnection(hisUrl, hisUser, hisPassword); | |
25 | + } catch (SQLException e) { | |
26 | + e.printStackTrace(); | |
27 | + } | |
28 | + return conn; | |
29 | + } | |
30 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/v2/HisService.java
View file @
3afedf0
1 | +package com.lyms.hospitalapi.v2; | |
2 | + | |
3 | +import com.lyms.platform.common.utils.DateUtil; | |
4 | +import org.apache.commons.dbutils.QueryRunner; | |
5 | +import org.apache.commons.dbutils.handlers.BeanListHandler; | |
6 | +import org.apache.commons.lang.StringUtils; | |
7 | +import org.springframework.stereotype.Service; | |
8 | + | |
9 | +import java.sql.SQLException; | |
10 | +import java.util.ArrayList; | |
11 | +import java.util.HashMap; | |
12 | +import java.util.List; | |
13 | +import java.util.Map; | |
14 | + | |
15 | +/** | |
16 | + * Created by Administrator on 2016/9/9 0009. | |
17 | + */ | |
18 | +@Service("hisServiceV2") | |
19 | +public class HisService { | |
20 | + | |
21 | + public Map<String,Object> getPatientInfo(String cardNo){ | |
22 | + Map<String,Object> map = new HashMap<>(); | |
23 | + if (StringUtils.isNotBlank(cardNo)) { | |
24 | + QueryRunner queryRunner = new QueryRunner(); | |
25 | + try { | |
26 | + List<XinlePregPatientinfo> list = queryRunner.query(ConnTools.makeHisConnection(), "select * from v_preg_patientinfo where IC_CARD_ID = '"+cardNo+"'", new BeanListHandler<XinlePregPatientinfo>(XinlePregPatientinfo.class)); | |
27 | + if (list.size() > 0) { | |
28 | + XinlePregPatientinfo info = list.get(0); | |
29 | + map.put("sickType", info.getSICKTYPE()); | |
30 | + map.put("sickId", info.getSICK_ID()); | |
31 | + map.put("sex", info.getSEX()); | |
32 | + map.put("name", info.getNAME()); | |
33 | + map.put("cardNo", info.getIC_CARD_ID()); | |
34 | + map.put("birth", DateUtil.getyyyy_MM_dd(info.getBIRTHDATE())); | |
35 | + } | |
36 | + } catch (SQLException e) { | |
37 | + e.printStackTrace(); | |
38 | + } | |
39 | + } | |
40 | + return map; | |
41 | + } | |
42 | + | |
43 | + public List<Map<String,Object>> getPatientInfoList(String cardNo){ | |
44 | + List<Map<String,Object>> result = new ArrayList<>(); | |
45 | + if (StringUtils.isNotBlank(cardNo)) { | |
46 | + QueryRunner queryRunner = new QueryRunner(); | |
47 | + try { | |
48 | + List<XinlePregPatientinfo> list = queryRunner.query(ConnTools.makeHisConnection(), "select * from v_preg_patientinfo where IC_CARD_ID = '"+cardNo+"'", new BeanListHandler<XinlePregPatientinfo>(XinlePregPatientinfo.class)); | |
49 | + if (list.size() > 0) { | |
50 | + for (XinlePregPatientinfo info:list) { | |
51 | + Map<String,Object> map = new HashMap<>(); | |
52 | + map.put("sickType", info.getSICKTYPE()); | |
53 | + map.put("sickId", info.getSICK_ID()); | |
54 | + map.put("sex", info.getSEX()); | |
55 | + map.put("name", info.getNAME()); | |
56 | + map.put("cardNo", info.getIC_CARD_ID()); | |
57 | + map.put("birth", DateUtil.getyyyy_MM_dd(info.getBIRTHDATE())); | |
58 | + result.add(map); | |
59 | + } | |
60 | + } | |
61 | + } catch (SQLException e) { | |
62 | + e.printStackTrace(); | |
63 | + } | |
64 | + } | |
65 | + return result; | |
66 | + } | |
67 | + | |
68 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/v2/README.TXT
View file @
3afedf0
platform-operate-api/src/main/java/com/lyms/hospitalapi/v2/XinlePregPatientinfo.java
View file @
3afedf0
1 | +package com.lyms.hospitalapi.v2; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +/** | |
6 | + * Created by Administrator on 2016/9/9 0009. | |
7 | + */ | |
8 | +public class XinlePregPatientinfo { | |
9 | + | |
10 | + private String SICKTYPE; | |
11 | + private String SICK_ID; | |
12 | + private String NAME; | |
13 | + private String SEX; | |
14 | + private String IC_CARD_ID; | |
15 | + private String NULLAH_NUMBER; | |
16 | + private String ASSOCIATION_NAME; | |
17 | + private String ASSOCIATION_PHONE; | |
18 | + private Date BIRTHDATE; | |
19 | + | |
20 | + public String getSICKTYPE() { | |
21 | + return SICKTYPE; | |
22 | + } | |
23 | + | |
24 | + public void setSICKTYPE(String SICKTYPE) { | |
25 | + this.SICKTYPE = SICKTYPE; | |
26 | + } | |
27 | + | |
28 | + public String getSICK_ID() { | |
29 | + return SICK_ID; | |
30 | + } | |
31 | + | |
32 | + public void setSICK_ID(String SICK_ID) { | |
33 | + this.SICK_ID = SICK_ID; | |
34 | + } | |
35 | + | |
36 | + public String getNAME() { | |
37 | + return NAME; | |
38 | + } | |
39 | + | |
40 | + public void setNAME(String NAME) { | |
41 | + this.NAME = NAME; | |
42 | + } | |
43 | + | |
44 | + public String getSEX() { | |
45 | + return SEX; | |
46 | + } | |
47 | + | |
48 | + public void setSEX(String SEX) { | |
49 | + this.SEX = SEX; | |
50 | + } | |
51 | + | |
52 | + public String getIC_CARD_ID() { | |
53 | + return IC_CARD_ID; | |
54 | + } | |
55 | + | |
56 | + public void setIC_CARD_ID(String IC_CARD_ID) { | |
57 | + this.IC_CARD_ID = IC_CARD_ID; | |
58 | + } | |
59 | + | |
60 | + public String getNULLAH_NUMBER() { | |
61 | + return NULLAH_NUMBER; | |
62 | + } | |
63 | + | |
64 | + public void setNULLAH_NUMBER(String NULLAH_NUMBER) { | |
65 | + this.NULLAH_NUMBER = NULLAH_NUMBER; | |
66 | + } | |
67 | + | |
68 | + public String getASSOCIATION_NAME() { | |
69 | + return ASSOCIATION_NAME; | |
70 | + } | |
71 | + | |
72 | + public void setASSOCIATION_NAME(String ASSOCIATION_NAME) { | |
73 | + this.ASSOCIATION_NAME = ASSOCIATION_NAME; | |
74 | + } | |
75 | + | |
76 | + public String getASSOCIATION_PHONE() { | |
77 | + return ASSOCIATION_PHONE; | |
78 | + } | |
79 | + | |
80 | + public void setASSOCIATION_PHONE(String ASSOCIATION_PHONE) { | |
81 | + this.ASSOCIATION_PHONE = ASSOCIATION_PHONE; | |
82 | + } | |
83 | + | |
84 | + public Date getBIRTHDATE() { | |
85 | + return BIRTHDATE; | |
86 | + } | |
87 | + | |
88 | + public void setBIRTHDATE(Date BIRTHDATE) { | |
89 | + this.BIRTHDATE = BIRTHDATE; | |
90 | + } | |
91 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
3afedf0
1 | 1 | package com.lyms.platform.operate.web.facade; |
2 | 2 | |
3 | +import com.lyms.hospitalapi.v2.HisService; | |
3 | 4 | import com.lyms.platform.biz.dal.IPersonDao; |
4 | 5 | import com.lyms.platform.biz.service.*; |
5 | 6 | import com.lyms.platform.common.enums.*; |
6 | 7 | import com.lyms.platform.common.result.BaseListResponse; |
7 | 8 | import com.lyms.platform.common.result.BaseResponse; |
8 | -import com.lyms.platform.common.utils.JsonUtil; | |
9 | -import com.lyms.platform.common.utils.StringUtils; | |
10 | -import com.lyms.platform.common.utils.SystemConfig; | |
9 | +import com.lyms.platform.common.utils.*; | |
11 | 10 | import com.lyms.platform.operate.web.request.BookbuildingQueryRequest; |
12 | 11 | import com.lyms.platform.operate.web.request.MessageListRequest; |
13 | 12 | import com.lyms.platform.operate.web.request.MessageRequest; |
... | ... | @@ -30,7 +29,6 @@ |
30 | 29 | |
31 | 30 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
32 | 31 | import com.lyms.platform.common.result.BaseObjectResponse; |
33 | -import com.lyms.platform.common.utils.DateUtil; | |
34 | 32 | import com.lyms.platform.operate.web.request.YunBookbuildingAddRequest; |
35 | 33 | |
36 | 34 | import java.util.*; |
... | ... | @@ -41,6 +39,8 @@ |
41 | 39 | @Component |
42 | 40 | public class BookbuildingFacade { |
43 | 41 | |
42 | + public static final String HIS_VERSION = PropertiesUtils.getPropertyValue("his_version"); | |
43 | + | |
44 | 44 | @Autowired |
45 | 45 | private YunBookbuildingService yunBookbuildingService; |
46 | 46 | |
... | ... | @@ -79,6 +79,9 @@ |
79 | 79 | @Autowired |
80 | 80 | private SmsConfigFacade smsConfigFacade; |
81 | 81 | |
82 | + @Autowired | |
83 | + private HisService hisServiceV2; | |
84 | + | |
82 | 85 | /** |
83 | 86 | * 添加孕妇建档 |
84 | 87 | * @param yunRequest |
85 | 88 | |
... | ... | @@ -607,10 +610,8 @@ |
607 | 610 | * @return |
608 | 611 | */ |
609 | 612 | public BaseListResponse queryPregnantBuildRecord(BookbuildingQueryRequest bookbuildingQueryRequest) { |
610 | - | |
611 | - | |
612 | 613 | List<Patients> patients = new ArrayList<>(); |
613 | - | |
614 | + Map<String,List> typeMap = new HashMap<>(); | |
614 | 615 | PatientsQuery patientsQuery = new PatientsQuery(); |
615 | 616 | patientsQuery.setYn(YnEnums.YES.getId()); |
616 | 617 | patientsQuery.setBuildType(1); |
... | ... | @@ -633,6 +634,12 @@ |
633 | 634 | patientsQuery.setCardNo(patientsVc.get(0).getCardNo()); |
634 | 635 | patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery,"bookbuildingDate", Sort.Direction.DESC); |
635 | 636 | } |
637 | + // 如果为空,初次建档,根据就诊卡号从HIS库取患者信息 | |
638 | + else { | |
639 | + if ("2".equals(HIS_VERSION)) { | |
640 | + typeMap.put("hisPatient", hisServiceV2.getPatientInfoList(bookbuildingQueryRequest.getVcCardNo())); | |
641 | + } | |
642 | + } | |
636 | 643 | } |
637 | 644 | |
638 | 645 | //历史建档记录 |
... | ... | @@ -661,8 +668,6 @@ |
661 | 668 | } |
662 | 669 | |
663 | 670 | |
664 | - | |
665 | - Map<String,List> typeMap = new HashMap<>(); | |
666 | 671 | |
667 | 672 | //证件类型 |
668 | 673 | List<BasicConfigResult> pcerteTypeResult = basicConfigFacade.getBaseicConfigByParentId(SystemConfig.CERTE_TYPE_ID); |
platform-operate-api/src/main/resources/config.properties
View file @
3afedf0
platform-operate-api/src/main/resources/spring/applicationContext.xml
View file @
3afedf0
... | ... | @@ -10,6 +10,8 @@ |
10 | 10 | |
11 | 11 | <!-- 配置要扫描的包 --> |
12 | 12 | <context:component-scan base-package="com.lyms.platform.biz.service"/> |
13 | + <context:component-scan base-package="com.lyms.hospitalapi.v1"/> | |
14 | + <context:component-scan base-package="com.lyms.hospitalapi.v2"/> | |
13 | 15 | <!-- 配置要扫描的包 --> |
14 | 16 | <context:component-scan base-package="com.lyms.platform.biz.dal.impl"/> |
15 | 17 | <context:component-scan base-package="com.lyms.platform.operate.web.facade"/> |
pom.xml
View file @
3afedf0
... | ... | @@ -514,6 +514,16 @@ |
514 | 514 | <artifactId>velocity-tools</artifactId> |
515 | 515 | <version>2.0</version> |
516 | 516 | </dependency> |
517 | + <dependency> | |
518 | + <groupId>com.oracle</groupId> | |
519 | + <artifactId>ojdbc14</artifactId> | |
520 | + <version>11.2.0.1.0</version> | |
521 | + </dependency> | |
522 | + <dependency> | |
523 | + <groupId>commons-dbutils</groupId> | |
524 | + <artifactId>commons-dbutils</artifactId> | |
525 | + <version>1.6</version> | |
526 | + </dependency> | |
517 | 527 | </dependencies> |
518 | 528 | </project> |