commit 8b46d8b61b0513caa5f76443ea0c8f990bf6b936
Author: linjj <850658129@qq.com>
Date: Tue Feb 6 15:09:31 2024 +0800
初始化
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..01f60b2
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,199 @@
+
+
+
+ 4.0.0
+
+ his
+ his
+ 1.0-SNAPSHOT
+
+
+
+ junit
+ junit
+ 4.11
+
+
+ com.microsoft.sqlserver
+ sqljdbc6
+ 6.4.0
+
+
+ com.oracle
+ ojdbc14
+ 14.0.0
+
+
+ com.xdb
+ xdb
+ 1.0.0
+
+
+ com.oracle.ojdbc
+ xmlparserv2
+ 19.3.0.0
+
+
+
+ org.apache.cxf
+ cxf-rt-transports-http
+ 3.1.8
+
+
+ org.apache.cxf
+ cxf-rt-frontend-jaxws
+ 3.1.8
+
+
+
+ org.apache.cxf
+ cxf-rt-transports-http-jetty
+ 3.0.1
+
+
+ commons-net
+ commons-net
+ 1.4.1
+
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.6.4
+
+
+ commons-io
+ commons-io
+ 2.6
+
+
+ mysql
+ mysql-connector-java
+ 5.1.17
+
+
+
+ commons-dbutils
+ commons-dbutils
+ 1.6
+
+
+ com.mchange
+ c3p0
+ 0.9.5.2
+
+
+ log4j
+ log4j
+ 1.2.17
+
+
+
+ com.itextpdf
+ itextpdf
+ 5.5.13
+
+
+
+
+ org.bouncycastle
+ bcprov-jdk16
+ 1.46
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.3.2
+
+
+ commons-codec
+ commons-codec
+ 1.13
+
+
+ dom4j
+ dom4j
+ RELEASE
+ compile
+
+
+ dom4j
+ dom4j
+ 1.6.1
+
+
+
+ org.quartz-scheduler
+ quartz
+ 2.2.1
+
+
+ org.quartz-scheduler
+ quartz-jobs
+ 2.2.1
+
+
+
+ com.google.code.gson
+ gson
+ 2.8.9
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.4
+ true
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+ 8
+ 8
+
+
+
+ maven-assembly-plugin
+
+
+
+ com.xjgs.Application1
+
+
+
+ jar-with-dependencies
+
+
+
+
+
+ make-assemble
+ package
+
+ single
+
+
+
+
+
+
+
+ src/main/resources
+
+ **/*.xml
+ **/*.properties
+
+
+
+
+
diff --git a/src/main/java/com/xjgs/Application1.java b/src/main/java/com/xjgs/Application1.java
new file mode 100644
index 0000000..6a7e6d9
--- /dev/null
+++ b/src/main/java/com/xjgs/Application1.java
@@ -0,0 +1,67 @@
+package com.xjgs;
+
+import com.xjgs.service.HisJob;
+import com.xjgs.service.HisService;
+import com.xjgs.service.XmlParseToVO;
+import com.xjgs.util.Logger;
+import org.quartz.*;
+import org.quartz.impl.StdSchedulerFactory;
+
+import java.util.concurrent.ScheduledThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+
+public class Application1 {
+ private static Logger logger = new Logger();
+ static ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = null;
+ public static void main(String[] args) {
+ try {
+ new Application1().quartzHis();//同步电子病历与护理,每5分钟同步一次
+ } catch (InterruptedException e) {
+ logger.log(e.toString());
+ }
+ final HisService hisService = new HisService ();
+ final XmlParseToVO xmlParseToVO = new XmlParseToVO();//首页采集
+ scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(9);
+ scheduledThreadPoolExecutor.scheduleWithFixedDelay(() -> {
+ hisService.uploadHomePage();//同步基本信息
+ },0,5,TimeUnit.MINUTES);//每五分钟同步一次
+ scheduledThreadPoolExecutor.scheduleWithFixedDelay(() -> {
+ hisService.uploadIndex();//同步索引
+ },2,10, TimeUnit.MINUTES);//每20分钟同步一次
+ scheduledThreadPoolExecutor.scheduleWithFixedDelay(() -> {
+ xmlParseToVO.getId();//首页解析
+ },1,30,TimeUnit.SECONDS);//每30秒同步一次
+ scheduledThreadPoolExecutor.scheduleWithFixedDelay(() -> {
+ hisService.uploadUserInfo ();//用戶
+ },3,30,TimeUnit.MINUTES);
+ scheduledThreadPoolExecutor.scheduleWithFixedDelay(() -> {
+ hisService.uploadDeptInfo ();//科室
+ },4,10,TimeUnit.MINUTES);
+ scheduledThreadPoolExecutor.scheduleWithFixedDelay(() -> {
+ hisService.uploadDeath();//更新死亡字段
+ },5,10,TimeUnit.MINUTES);
+ scheduledThreadPoolExecutor.scheduleWithFixedDelay(() -> {
+ hisService.dropSzyh();//删除留观号
+ },6,6,TimeUnit.HOURS);
+ }
+ public void quartzHis() throws InterruptedException{
+ try {
+ //创建任务器:定义任务细节
+ JobDetail jobDetail = JobBuilder.newJob(HisJob.class).withIdentity("job1", "group1").build();
+ ScheduleBuilder scheduleBuilder = SimpleScheduleBuilder.simpleSchedule().withIntervalInSeconds(300).repeatForever();
+ //定义触发器
+ Trigger trigger=TriggerBuilder.newTrigger().withIdentity("simpleTrigger", "simpleTriggerGroup")
+ .withSchedule(scheduleBuilder).startNow().build();
+
+ //将任务和触发器注册到调度器中
+ SchedulerFactory sac = new StdSchedulerFactory();
+ Scheduler scheduler = sac.getScheduler();
+
+ scheduler.scheduleJob(jobDetail, trigger);
+ scheduler.start();
+ } catch (SchedulerException e) {
+ // TODO Auto-generated catch block
+ logger.log(e.toString());
+ }
+ }
+}
diff --git a/src/main/java/com/xjgs/dao/BaseDao.java b/src/main/java/com/xjgs/dao/BaseDao.java
new file mode 100644
index 0000000..0892c7b
--- /dev/null
+++ b/src/main/java/com/xjgs/dao/BaseDao.java
@@ -0,0 +1,92 @@
+ package com.xjgs.dao;
+
+ import java.sql.*;
+
+ public class BaseDao {
+ public Connection getConnection() {
+ String driver = "oracle.jdbc.driver.OracleDriver"; //����
+ String url = "jdbc:oracle:thin:@192.168.10.3:1521/orc1";
+ String uid = "pacs";
+ String pwd = "pacs";
+ Connection cn = null;
+ try {
+ Class.forName(driver);
+ cn = DriverManager.getConnection(url, uid, pwd);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ return cn;
+ }
+ private void closeAll(Connection conn, Statement stmt, ResultSet rs) {
+ if (rs != null) {
+ try {
+ rs.close();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ if (stmt != null) {
+ try {
+ stmt.close();
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+ if (conn != null) {
+ try {
+ conn.close();
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+
+ /*
+ * ִ����ɾ��SQL���
+ * */
+ public int executeUpdate(String sql, Object[] parms) throws Exception {
+ int result = 0;
+ try {
+ Connection conn = getConnection();
+ PreparedStatement pstmt = conn.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ pstmt.setObject(i + 1, parms[i]);
+ }
+
+ }
+
+ result = pstmt.executeUpdate();
+ closeAll(conn, pstmt, null);
+
+ return result;
+ } catch (Exception ex) {
+ throw new Exception(ex);
+ }
+ }
+
+ /*
+ * ִ�в�ѯ���
+ * */
+ public ResultSet executeQuery(String sql, Object[] parms) throws Exception{
+ ResultSet rs = null;
+ try {
+ Connection conn = getConnection();
+ PreparedStatement pstmt = conn.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ pstmt.setObject(i + 1, parms[i]);
+ }
+ }
+ rs = pstmt.executeQuery();
+ return rs;
+ } catch (Exception ex) {
+ throw new Exception(ex);
+ }
+ }
+ }
diff --git a/src/main/java/com/xjgs/dao/JDBCUtils.java b/src/main/java/com/xjgs/dao/JDBCUtils.java
new file mode 100644
index 0000000..55f8076
--- /dev/null
+++ b/src/main/java/com/xjgs/dao/JDBCUtils.java
@@ -0,0 +1,69 @@
+package com.xjgs.dao;
+
+import com.mchange.v2.c3p0.C3P0ProxyConnection;
+import com.mchange.v2.c3p0.ComboPooledDataSource;
+
+import javax.sql.DataSource;
+import java.lang.reflect.Method;
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+public class JDBCUtils {
+ //创建数据库连接池对象
+ private static ComboPooledDataSource comboPooledDataSource = new ComboPooledDataSource("his");
+
+ //获取连接的方法
+ public static Connection getConnection() throws SQLException {
+ return comboPooledDataSource.getConnection();
+ }
+
+ //提供数据库连接池对象的方法
+ public static DataSource getDataSource(){
+ return comboPooledDataSource;
+ }
+ //释放资源的方法
+ public static void release(ResultSet rs, Statement stmt, Connection conn) {
+
+ if (rs != null) {
+ try {
+ rs.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ rs = null;
+ }
+ release(stmt, conn);
+ }
+
+ public static void release(Statement stmt, Connection conn) {
+ if (stmt != null) {
+ try {
+ stmt.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ stmt = null;
+ }
+ if (conn != null) {
+ try {
+ conn.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ conn = null;
+ }
+ }
+ public static Connection getRawConnection(Connection conn) {
+ C3P0ProxyConnection cpCon = (C3P0ProxyConnection) conn;
+ Connection unwrappedCon = null;
+ try {
+ Method rawConnectionMethod = JDBCUtils.class.getMethod("getRawConnection", new Class[]{Connection.class});
+ unwrappedCon = (Connection) cpCon.rawConnectionOperation(rawConnectionMethod, null, new Object[]{C3P0ProxyConnection.RAW_CONNECTION});
+ } catch (Exception ex) {
+ //do something }
+ }
+ return conn;
+ }
+}
diff --git a/src/main/java/com/xjgs/dao/JDBCUtils1.java b/src/main/java/com/xjgs/dao/JDBCUtils1.java
new file mode 100644
index 0000000..53460c4
--- /dev/null
+++ b/src/main/java/com/xjgs/dao/JDBCUtils1.java
@@ -0,0 +1,56 @@
+package com.xjgs.dao;
+
+import com.mchange.v2.c3p0.ComboPooledDataSource;
+
+import javax.sql.DataSource;
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+public class JDBCUtils1 {
+ //创建数据库连接池对象
+ private static ComboPooledDataSource comboPooledDataSource = new ComboPooledDataSource("huli");
+
+ //获取连接的方法
+ public static Connection getConnection() throws SQLException {
+ return comboPooledDataSource.getConnection();
+ }
+
+ //提供数据库连接池对象的方法
+ public static DataSource getDataSource(){
+ return comboPooledDataSource;
+ }
+ //释放资源的方法
+ public static void release(ResultSet rs, Statement stmt, Connection conn) {
+
+ if (rs != null) {
+ try {
+ rs.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ rs = null;
+ }
+ release(stmt, conn);
+ }
+
+ public static void release(Statement stmt, Connection conn) {
+ if (stmt != null) {
+ try {
+ stmt.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ stmt = null;
+ }
+ if (conn != null) {
+ try {
+ conn.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ conn = null;
+ }
+ }
+}
diff --git a/src/main/java/com/xjgs/dao/JDBCUtils3.java b/src/main/java/com/xjgs/dao/JDBCUtils3.java
new file mode 100644
index 0000000..3191bf7
--- /dev/null
+++ b/src/main/java/com/xjgs/dao/JDBCUtils3.java
@@ -0,0 +1,56 @@
+package com.xjgs.dao;
+
+import com.mchange.v2.c3p0.ComboPooledDataSource;
+
+import javax.sql.DataSource;
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+public class JDBCUtils3 {
+ //创建数据库连接池对象
+ private static ComboPooledDataSource comboPooledDataSource = new ComboPooledDataSource("sql");
+
+ //获取连接的方法
+ public static Connection getConnection() throws SQLException {
+ return comboPooledDataSource.getConnection();
+ }
+
+ //提供数据库连接池对象的方法
+ public static DataSource getDataSource(){
+ return comboPooledDataSource;
+ }
+ //释放资源的方法
+ public static void release(ResultSet rs, Statement stmt, Connection conn) {
+
+ if (rs != null) {
+ try {
+ rs.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ rs = null;
+ }
+ release(stmt, conn);
+ }
+
+ public static void release(Statement stmt, Connection conn) {
+ if (stmt != null) {
+ try {
+ stmt.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ stmt = null;
+ }
+ if (conn != null) {
+ try {
+ conn.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ conn = null;
+ }
+ }
+}
diff --git a/src/main/java/com/xjgs/dao/JDBCUtils5.java b/src/main/java/com/xjgs/dao/JDBCUtils5.java
new file mode 100644
index 0000000..9a2f31c
--- /dev/null
+++ b/src/main/java/com/xjgs/dao/JDBCUtils5.java
@@ -0,0 +1,56 @@
+package com.xjgs.dao;
+
+import com.mchange.v2.c3p0.ComboPooledDataSource;
+
+import javax.sql.DataSource;
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+public class JDBCUtils5 {
+ //创建数据库连接池对象
+ private static ComboPooledDataSource comboPooledDataSource = new ComboPooledDataSource("mysql");
+
+ //获取连接的方法
+ public static Connection getConnection() throws SQLException {
+ return comboPooledDataSource.getConnection();
+ }
+
+ //提供数据库连接池对象的方法
+ public static DataSource getDataSource(){
+ return comboPooledDataSource;
+ }
+ //释放资源的方法
+ public static void release(ResultSet rs, Statement stmt, Connection conn) {
+
+ if (rs != null) {
+ try {
+ rs.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ rs = null;
+ }
+ release(stmt, conn);
+ }
+
+ public static void release(Statement stmt, Connection conn) {
+ if (stmt != null) {
+ try {
+ stmt.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ stmt = null;
+ }
+ if (conn != null) {
+ try {
+ conn.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ conn = null;
+ }
+ }
+}
diff --git a/src/main/java/com/xjgs/service/HisJob.java b/src/main/java/com/xjgs/service/HisJob.java
new file mode 100644
index 0000000..05ba284
--- /dev/null
+++ b/src/main/java/com/xjgs/service/HisJob.java
@@ -0,0 +1,13 @@
+package com.xjgs.service;
+
+import org.quartz.Job;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+
+public class HisJob implements Job {
+ @Override
+ public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
+ HisService hisService = new HisService();
+ hisService.hisInfo();
+ }
+}
diff --git a/src/main/java/com/xjgs/service/HisService.java b/src/main/java/com/xjgs/service/HisService.java
new file mode 100644
index 0000000..f677b39
--- /dev/null
+++ b/src/main/java/com/xjgs/service/HisService.java
@@ -0,0 +1,1410 @@
+package com.xjgs.service;
+
+import com.xjgs.dao.JDBCUtils;
+import com.xjgs.dao.JDBCUtils1;
+import com.xjgs.dao.JDBCUtils3;
+import com.xjgs.dao.JDBCUtils5;
+import com.xjgs.util.Logger;
+import com.xjgs.util.MD5;
+import com.xjgs.util.Base64;
+import com.xjgs.vo.*;
+import oracle.sql.BLOB;
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.dom4j.Document;
+import org.dom4j.DocumentException;
+import org.dom4j.Element;
+import org.dom4j.io.SAXReader;
+import org.junit.Test;
+
+import java.io.*;
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.text.SimpleDateFormat;
+import java.util.*;
+
+public class HisService {
+ private static Logger logger = new Logger();
+ //同步病人基本信息
+ @Test
+ public void uploadHomePage(){
+ SimpleDateFormat dateFormat = new SimpleDateFormat ("yyyy-MM-dd");
+ String format1 = dateFormat.format (new Date ());
+ String rootPath = System.getProperty ("user.dir");
+ rootPath = rootPath+"\\logs\\"+format1;
+ File f = new File (rootPath);
+ if(!f.isDirectory ()){
+ f.mkdirs ();
+ }
+ System.setProperty ("log.base",rootPath);
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ String format = sdf.format(new Date ());
+ List homeEntity = getHomeEntity();
+ List homeEntity1 = getHomeEntity1();
+ List archiveMasterList = getMasterId();
+ for(ArchiveMaster archiveMaster:homeEntity){
+ boolean flag = false;
+ for(ArchiveMaster archiveMaster1:archiveMasterList){
+ if(archiveMaster.getPatientId().equals(archiveMaster1.getPatientId())){
+ flag =true;
+ }
+ }
+ if(!flag){
+ writeHomeEntity(archiveMaster);
+ }
+ }
+ for(ArchiveMaster archiveMaster:homeEntity1){
+ boolean flag1 = false;
+ for(ArchiveMaster archiveMaster1:archiveMasterList){
+ if(archiveMaster.getPatientId().equals(archiveMaster1.getPatientId())){
+ flag1 =true;
+ }
+ }
+ if(!flag1){
+ writeHomeEntity(archiveMaster);
+ }
+ }
+ logger.log("病人基本已同步,同步时间:" + format);
+ }
+ public void uploadHomePageByPid(String patientId){
+ String sql = "select t.zyh as 住院号,t.jzh as 记账号,t.zycs as 住院次数,t.xm as 姓名,t.xb as 性别,t.ryrq as 入院日期,t.cyrq as 出院日期,t.sfzh as 身份证号,t.rybq as 入院科室,t.dqbq as 出院科室,t.rycw as 入院床位,hp.fdrname as 主管医生 " +
+ "from ndns.zl t left join hthis.p_doctor hp on t.dqys = hp.fdrid where t.jzh = ? order by t.jzh desc";
+ ArchiveMaster master = null;
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ Object[]parms = new Object[]{patientId};
+ try {
+ connection = JDBCUtils.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery();
+ while (resultSet.next()) {
+ master = new ArchiveMaster();
+ master.setInpNo(resultSet.getString("住院号").trim());
+ master.setPatientId(resultSet.getString("记账号").trim());
+ master.setVisitId(resultSet.getString("住院次数"));
+ master.setName(resultSet.getString("姓名"));
+ master.setSex(resultSet.getString("性别"));
+ master.setAdmissionDateTime(resultSet.getString("入院日期"));
+ master.setDischargeDateTime(resultSet.getString("出院日期"));
+ master.setIdNo(resultSet.getString("身份证号"));
+ master.setDeptAdmissionTo(resultSet.getString("入院科室"));
+ master.setDeptName(resultSet.getString("出院科室"));
+ master.setDoctorInCharge(resultSet.getString("主管医生"));
+ master.setBedId(resultSet.getString ("入院床位"));
+ if(!StringUtils.isNoneBlank (master.getDischargeDateTime ())){
+ master.setStatus("在院");
+ }else{
+ master.setStatus("归档中");
+ }
+ if ("2".equals(master.getSex())) {
+ master.setSex("女");
+ } else {
+ master.setSex("男");
+ }
+ writeHomeEntity(master);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ }
+ //取在院首页部分数据
+ List getHomeEntity() {
+ List archiveMasterList = new ArrayList ();
+ ArchiveMaster master = null;
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils.getConnection();
+ Object[] parms = null;
+ String sql = "select t.zyh as 住院号,t.jzh as 记账号,t.zycs as 住院次数,t.xm as 姓名,t.xb as 性别,t.ryrq as 入院日期,t.cyrq as 出院日期,t.sfzh as 身份证号,t.rybq as 入院科室,t.dqbq as 出院科室,t.RYCW as 入院床位, hp.fdrname as 主管医生 " +
+ "from ndns.zl t left join hthis.p_doctor hp on t.dqys = hp.fdrid where t.cyrq is null and t.ryrq between sysdate-20/1440 and sysdate and t.zyh not like 'S%' and t.zyh not like 'P%' order by t.jzh desc";
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()) {
+ master = new ArchiveMaster();
+ master.setInpNo(resultSet.getString("住院号").trim());
+ master.setPatientId(resultSet.getString("记账号").trim());
+ master.setVisitId(resultSet.getString("住院次数"));
+ master.setName(resultSet.getString("姓名"));
+ master.setSex(resultSet.getString("性别"));
+ master.setAdmissionDateTime(resultSet.getString("入院日期"));
+ master.setIdNo(resultSet.getString("身份证号"));
+ master.setDeptAdmissionTo(resultSet.getString("入院科室"));
+ master.setDeptName(resultSet.getString("出院科室"));
+ master.setDoctorInCharge(resultSet.getString("主管医生"));
+ master.setBedId (resultSet.getString ("入院床位"));
+ master.setStatus("在院");
+ if ("2".equals(master.getSex())) {
+ master.setSex("女");
+ } else {
+ master.setSex("男");
+ }
+ archiveMasterList.add(master);
+ }
+ } catch (Exception e) {
+
+ }
+ finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return archiveMasterList;
+ }
+
+ //取出院首页部分数据
+ List getHomeEntity1() {
+ List archiveMasterList = new ArrayList<>();
+ ArchiveMaster master = null;
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils.getConnection();
+ String sql = "select t.zyh as 住院号,t.jzh as 记账号,t.zycs as 住院次数,t.xm as 姓名,t.xb as 性别,\n" +
+ "t.ryrq as 入院日期,t.cyrq as 出院日期,t.sfzh as 身份证号,t.rybq as 入院科室,t.dqbq as 出院科室,t.RYCW as 入院床位,hp.fdrname as 主管医生 from\n" +
+ "ndns.zl t left join hthis.p_doctor hp on t.dqys = hp.fdrid where t.cyrq is not null and \n" +
+ "cyrq between sysdate-20/1440 and sysdate and t.zyh not like 'S%' and t.zyh not like 'P%'\n" +
+ "order by t.jzh desc";
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()) {
+ master = new ArchiveMaster();
+ master.setInpNo(resultSet.getString("住院号").trim());
+ master.setPatientId(resultSet.getString("记账号").trim());
+ master.setVisitId(resultSet.getString("住院次数"));
+ master.setName(resultSet.getString("姓名"));
+ master.setSex(resultSet.getString("性别"));
+ master.setAdmissionDateTime(resultSet.getString("入院日期"));
+ master.setDischargeDateTime(resultSet.getString("出院日期"));
+ master.setIdNo(resultSet.getString("身份证号"));
+ master.setDeptAdmissionTo(resultSet.getString("入院科室"));
+ master.setDeptName(resultSet.getString("出院科室"));
+ master.setDoctorInCharge(resultSet.getString("主管医生"));
+ master.setBedId (resultSet.getString ("入院床位"));
+ master.setStatus("归档中");
+ if ("2".equals(master.getSex())) {
+ master.setSex("女");
+ } else {
+ master.setSex("男");
+ }
+ archiveMasterList.add(master);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return archiveMasterList;
+ }
+ ListgetMasterId(){
+ String sql = "select patient_id from archive_master where ArchiveState <>'已归档'";
+ ArchiveMaster archiveMaster = null;
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ListarchiveMasterList = new ArrayList<>();
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ archiveMaster = new ArchiveMaster();
+ archiveMaster.setPatientId(resultSet.getString("patient_id"));
+ archiveMasterList.add(archiveMaster);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return archiveMasterList;
+ }
+ //新增首页数据
+ int writeHomeEntity(ArchiveMaster archiveMaster) {
+ String sql = "insert into archive_master(id,patient_id,inp_no,visit_id,name,sex,dept_name,discharge_date_time," +
+ "archivestate,admission_date_time,dept_admission_to,doctor_in_charge,id_no,bed_id)values(replace(newid(), '-', ''),?,?,?,?,?,?,?,?,?,?,?,?,?)";
+ Object[] parms = new Object[]{archiveMaster.getPatientId(), archiveMaster.getInpNo(), archiveMaster.getVisitId(), archiveMaster.getName(), archiveMaster.getSex(), archiveMaster.getDeptName(), archiveMaster.getDischargeDateTime(), archiveMaster.getStatus(), archiveMaster.getAdmissionDateTime(), archiveMaster.getDeptAdmissionTo(), archiveMaster.getDoctorInCharge(), archiveMaster.getIdNo(),archiveMaster.getBedId ()};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+ public List getPatientInfo(){
+ String sql = "select fpatno as 记账号,fpatfileno as 住院号,fpattimes as 住院次数,fpatname as 姓名,farchieve_dt as 最后更改时间 from pacs.V_emrpatient t \n" +
+ "where FARCHIEVE_DT between sysdate-6/1440 and sysdate order by farchieve_dt desc";
+ Listv_emrpatients = new ArrayList ();
+ V_emrpatient v_emrpatient = null;
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils.getConnection();
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ v_emrpatient = new V_emrpatient();
+ v_emrpatient.setFpatno(resultSet.getString("记账号"));
+ v_emrpatient.setFarchieve_dt(resultSet.getString("最后更改时间"));
+ v_emrpatients.add(v_emrpatient);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return v_emrpatients;
+ }
+ //电子病历采集
+ public void hisInfo(){
+ SimpleDateFormat dateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ String format = dateFormat1.format(new Date());
+ List masterList = hisInfoMasterId();
+ for(ArchiveMaster archiveMaster:masterList) {
+ uploadHisInfo(archiveMaster.getPatientId());
+ uploadEmrInfo(archiveMaster.getPatientId());
+ }
+ String format1 = dateFormat1.format(new Date());
+ logger.log("电子病历与护理已采集,采集时间,开始时间:"+format+"结束时间:"+format1+",共同步"+masterList.size()+"份病历");
+ }
+ //护理采集
+// @Test
+// public void hisInfo1(){
+// List masterList = hisInfoMasterId();
+// for(ArchiveMaster archiveMaster:masterList){
+// uploadEmrInfo(archiveMaster.getPatientId());
+// }
+// }
+ public List hisInfoMasterId(){
+ List patientInfo = getPatientInfo();
+ ListarchiveMasterList = new ArrayList<>();
+ for(V_emrpatient v_emrpatient:patientInfo){
+ ArchiveMaster masterIdByPa = getMasterIdByPa(v_emrpatient.getFpatno());
+ if(null != masterIdByPa.getId()){
+ List pdfPathByIdAndHis = getPdfPathByIdAndHis(masterIdByPa);
+ for (Archive_Detail archiveDetail:pdfPathByIdAndHis){
+ File file = new File(archiveDetail.getPdfPath().replace ("F:\\pdf","Z:"));
+ if(file.exists()){
+ file.delete();
+ }
+ }
+ redirectHisInfo(masterIdByPa);
+ archiveMasterList.add(masterIdByPa);
+ }else{
+ uploadHomePageByPid(v_emrpatient.getFpatno());
+ ArchiveMaster archiveMaster = getMasterIdByPa(v_emrpatient.getFpatno());
+ archiveMasterList.add(archiveMaster);
+ }
+ }
+ return archiveMasterList;
+ }
+ public ListgetPdfPathByIdAndHis(ArchiveMaster archiveMaster){
+ String sql = "select id,PDF_PATH from archive_detail where Source='his' and MasterID=?";
+ Object[]parms = new Object[]{archiveMaster.getId()};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ Listarchive_details = new ArrayList<>();
+ Archive_Detail archiveDetail = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ archiveDetail = new Archive_Detail();
+ archiveDetail.setId(resultSet.getString("id"));
+ archiveDetail.setPdfPath(resultSet.getString("PDF_PATH"));
+ archive_details.add(archiveDetail);
+ }
+ }catch (Exception e){
+ e.printStackTrace();
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return archive_details;
+ }
+ public int redirectHisInfo(ArchiveMaster archiveMaster){
+ String sql = "delete from archive_detail where MasterID = ? and Source = 'his'";
+ Object[]parms = new Object[]{archiveMaster.getId()};
+ int j = 0;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+ public ArchiveMaster getMasterIdByPa(String jzh){
+ String sql = "select ID,patient_id from archive_master where patient_id = ?";
+ Object[]parms = new Object[]{jzh};
+ ArchiveMaster archiveMaster = null;
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ archiveMaster = new ArchiveMaster();
+ archiveMaster.setId(resultSet.getString("ID"));
+ archiveMaster.setPatientId(resultSet.getString("patient_id"));
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return archiveMaster == null ? new ArchiveMaster():archiveMaster;
+ }
+ //取his数据
+ public void uploadHisInfo(String patientId) {
+// boolean flag = true;
+// List hisAssort = getAssortIdBySource ("his");
+// for(Archive_Detail archiveDetail:hisAssort){
+//
+// }
+ String temp = System.getProperty("user.dir")+"\\temp";
+ File fs = new File (temp);
+ if(!fs.isDirectory ()){
+ fs.mkdirs ();
+ }
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ String format = sdf.format(new Date());
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ FileOutputStream file = null;
+ InputStream in = null;
+ try {
+ connection = JDBCUtils.getConnection();
+ String sql = "select FFILE_ID,FPATNO as 记账号,fpattimes as 住院次数,FPATFILENO AS 住院号,FPATNAME AS 姓名,\n" +
+ "FENTRY_NO as 病例分类ID,FFILE_CONTENT AS 文件内容,FLOGLUDATE AS 最后修改时间,FREC_NAME AS 记录名称 from V_EMRPDFFILE \n" +
+ "where dbms_lob.getlength(FFILE_CONTENT)!=0 and FPATNO = ? order by frec_dt";
+ Object[] parms = new Object[]{patientId};
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery();
+ Archive_Detail archiveDetail = null;
+ while (resultSet.next()) {
+ archiveDetail = new Archive_Detail();
+ archiveDetail.setSubAssort(resultSet.getString ("FFILE_ID"));
+ String visit_id = resultSet.getString("住院次数");
+ archiveDetail.setMasterId(getMasterIdByPa(resultSet.getString ("记账号")).getId());
+ archiveDetail.setTitle(resultSet.getString("记录名称"));
+ BLOB blob = (BLOB) resultSet.getBlob("文件内容");
+ in = blob.getBinaryStream(); // 建立输出流
+ UUID uuid = UUID.randomUUID();//UUID唯一识别
+ String id = uuid.toString();
+ id = id.replace("-", "");
+ file = new FileOutputStream(temp+"\\"+id+".pdf");
+ int len = (int) blob.length();
+ byte[] buffer = new byte[len]; // 建立缓冲区
+ while ((len = in.read(buffer)) != -1) {
+ file.write(buffer, 0, len);
+ }
+ archiveDetail.setPdfPath(getXmlPath("path")+"\\his\\"+resultSet.getString ("记账号")+"\\"+ id + ".pdf");
+ File file1 = new File(getXmlPath("path")+"\\his\\"+resultSet.getString ("记账号"));
+ if(!file1.isDirectory ()){
+ file1.mkdirs();
+ }
+ if(null!=in){
+ in.close();
+ }
+ if(null!=file){
+ file.close();
+ }
+ if(new File(temp+"\\"+id+".pdf").exists()){
+ FileUtils.copyFile (new File (temp+"\\"+id+".pdf"),new File (archiveDetail.getPdfPath ()));
+ }
+ archiveDetail.setAssortId(getEmrAssort(resultSet.getString("病例分类ID")));
+ archiveDetail.setFlag("0");
+ archiveDetail.setSource("his");
+ archiveDetail.setUploadDateTime(new Date ());
+ File file2 =new File (archiveDetail.getPdfPath ());
+ if(file2.exists ()){
+ archiveDetail.setPdfPath(archiveDetail.getPdfPath().replace ("Z:","F:\\pdf"));
+ writeArchiveDetail(archiveDetail);
+ }
+ File file3 = new File (temp+"\\"+id+".pdf");
+ file3.delete ();
+ }
+ logger.log("电子病历已采集,时间" + format+",记账号:"+patientId);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }finally {
+ try {
+ if(null!=in){
+ in.close();
+ }
+ if(null!=file){
+ file.close();
+ }
+ } catch (IOException e) {
+ e.printStackTrace ();
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ }
+ }
+ public void uploadEmrInfo(String patientId) {
+ String temp = System.getProperty("user.dir")+"\\temp";
+ File fs = new File (temp);
+ if(!fs.isDirectory ()){
+ fs.mkdirs ();
+ }
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ String format = sdf.format(new Date());
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ FileOutputStream file = null;
+ InputStream in = null;
+ try {
+ connection = JDBCUtils1.getConnection();
+ String sql = "select FFILE_ID,FPATNO as 记账号,fpattimes as 住院次数,FPATFILENO AS 住院号,FPATNAME AS 姓名,FFILE_CONTENT AS 文件内容,FLOGLUDATE AS 最后修改时间,FREC_NAME AS 记录名称\n" +
+ "from V_EMRPDFFILE_NURSE where dbms_lob.getlength(FFILE_CONTENT)!=0 and FPATNO=? \n" +
+ "order by FLOGLUDATE";
+ Object[]parms = new Object[]{patientId};
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery();
+ Archive_Detail archiveDetail = null;
+ while (resultSet.next()) {
+ archiveDetail = new Archive_Detail();
+ archiveDetail.setSubAssort(resultSet.getString("FFILE_ID"));
+ String visit_id = resultSet.getString("住院次数");
+ archiveDetail.setMasterId(getMasterIdByPa(resultSet.getString ("记账号")).getId());
+ archiveDetail.setTitle(resultSet.getString("记录名称"));
+ BLOB blob = (BLOB) resultSet.getBlob("文件内容");
+ in = blob.getBinaryStream(); // 建立输出流
+ UUID uuid = UUID.randomUUID();//UUID唯一识别
+ String id = uuid.toString();
+ id = id.replace("-", "");
+ file = new FileOutputStream(temp+"\\"+id+".pdf");
+ int len = (int) blob.length();
+ byte[] buffer = new byte[len]; // 建立缓冲区
+ while ((len = in.read(buffer)) != -1) {
+ file.write(buffer, 0, len);
+ }
+ archiveDetail.setPdfPath(getXmlPath("path") +"\\his\\"+resultSet.getString ("记账号")+"\\"+id+".pdf");
+ File file1 = new File(getXmlPath("path") +"\\his\\"+resultSet.getString ("记账号"));
+ if(!file1.isDirectory ()){
+ file1.mkdirs();
+ }
+ if(null!=in){
+ in.close();
+ }
+ if(null!=file){
+ file.close();
+ }
+ if(new File(temp+"\\"+id+".pdf").exists()){
+ FileUtils.copyFile (new File (temp+"\\"+id+".pdf"),new File (archiveDetail.getPdfPath ()));
+ }
+ archiveDetail.setAssortId("C70E8C427A3648B79BE80798C08F4D12");
+ archiveDetail.setFlag("0");
+ archiveDetail.setSource("his");
+ archiveDetail.setUploadDateTime(new Date());
+ File file2 = new File (archiveDetail.getPdfPath ());
+ if(file2.exists ()){
+ archiveDetail.setPdfPath(archiveDetail.getPdfPath().replace ("Z:","F:\\pdf"));
+ writeArchiveDetail(archiveDetail);
+ }
+ File file3 = new File (temp+"\\"+id+".pdf");
+ file3.delete ();
+ }
+ logger.log("护理已采集,采集时间" + format+",记账号:"+patientId);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }finally {
+ try {
+ if(null!=file){
+ file.close();
+ }
+ if(null !=in){
+ in.close();
+ }
+ } catch (IOException e) {
+ e.printStackTrace ();
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ }
+ }
+ public String getEmrAssort(String fentryNo) {
+ Map map = new HashMap<>();
+ map.put("801", "DA342ED81CEE4A8EA827424626F3F521");
+ map.put("804", "15E7FE7803F545CB81390BC88E725240");
+ map.put("811", "C7C73CD034B440F6B33A79E382A5610F");
+ map.put("828", "AFB9FBE656D7492C80AEDE6E685A851A");
+ map.put("813", "7A9C621E3F4F4C9CA95292141C5E15E8");
+ map.put("845R", "C7C73CD034B440F6B33A79E382A5610F");
+ map.put("844", "C7C73CD034B440F6B33A79E382A5610F");
+ map.put("022", "85DAE73A87D047D28C222E878C78C670");
+ map.put("808", "15E7FE7803F545CB81390BC88E725240");
+ map.put("803R", "AFB9FBE656D7492C80AEDE6E685A851A");
+ map.put("833", "C7C73CD034B440F6B33A79E382A5610F");
+ map.put("843", "C7C73CD034B440F6B33A79E382A5610F");
+ map.put("846", "C7C73CD034B440F6B33A79E382A5610F");
+ map.put("020", "AC2C8F4A88884DC894630302C61C6A07");
+ map.put("021", "AC2C8F4A88884DC894630302C61C6A07");
+ map.put("802", "AFB9FBE656D7492C80AEDE6E685A851A");
+ map.put("805", "15E7FE7803F545CB81390BC88E725240");
+ map.put("810", "C7C73CD034B440F6B33A79E382A5610F");
+ map.put("832", "DE599D770E8347CCB5122BC357D96F35");
+ map.put("814", "DE599D770E83479CB5126BC357D96F35");
+ map.put("816", "DE599D770E8347CCB5122BC357D96F35");
+ map.put("818", "C70E8C427A3648B79BE80798C08F4D12");
+ map.put("806", "7A9C621E3F4F4C9CA95292141C5E15E8");
+ map.put("025", "0DB93797885746B18DAF6C0C936D2DCA");
+ map.put("847", "C7C73CD034B440F6B33A79E382A5610F");
+ map.put ("02D","D80ED429AEC24C389E444F3156F890B5");
+ if(!StringUtils.isNoneBlank (map.get(fentryNo))){
+ return "C7C73CD034B440F6B33A79E382A5610F";
+ }
+ return map.get(fentryNo);
+ }
+
+ //增加病例文件信息表记录
+ public int writeArchiveDetail(Archive_Detail archiveDetail) {
+ String sql = "insert into archive_detail(id,PDF_PATH,MasterID,UpLoadDateTime,AssortID,Source,SubAssort,Title,flag)values(replace(newid(), '-', '')," +
+ "?,?,?,?,?,?,?,?)";
+ Connection connection = null;
+ PreparedStatement statement = null;
+ Object[] parms = new Object[]{archiveDetail.getPdfPath(), archiveDetail.getMasterId(), archiveDetail.getUploadDateTime(), archiveDetail.getAssortId(), archiveDetail.getSource(), archiveDetail.getSubAssort(), archiveDetail.getTitle(), archiveDetail.getFlag()};
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ if(parms[i] instanceof Date) {
+ parms[i] = new java.sql.Timestamp(((Date) parms[i]).getTime());
+ }
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+ //同步科室数据
+ public void uploadDeptInfo() {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ String format = sdf.format(new Date());
+ List deptList = deptIndex();
+ for (Dept dept : deptList) {
+ boolean flag = false;
+ List deptList1 = getDeptInfo();
+ for (Dept dept1:deptList1) {
+ if (dept1.getDeptCode ().equals (dept.getDeptCode ())) {
+ flag = true;
+ updateDeptInfo(dept1);
+ }
+ }
+ if (!flag) {
+ writeDeptInfo(dept);
+ }
+ }
+ for(Dept dept:deptList){
+ boolean flag1 = false;
+ List deptList2 = powerIndex ();
+ for(Dept dept1:deptList2){
+ if(dept1.getDeptCode ().equals (dept.getDeptCode ())){
+ flag1 = true;
+ updatePower (dept);
+ }
+ }
+ if(!flag1){
+ insertPower (dept);
+ }
+ }
+ logger.log("权限科室与字典表科室已同步,同步时间:" + format);
+ }
+ public ListpowerIndex(){
+ String sql ="select dept_code from power_dept";
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ ListdeptList = new ArrayList<> ();
+ Dept dept = null;
+ try {
+ connection = JDBCUtils5.getConnection ();
+ statement = connection.prepareStatement (sql);
+ resultSet = statement.executeQuery ();
+ while (resultSet.next ()){
+ dept = new Dept ();
+ dept.setDeptCode (resultSet.getString ("dept_code"));
+ deptList.add (dept);
+ }
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils5.release (resultSet,statement,connection);
+ }
+ return deptList;
+ }
+ public int insertPower(Dept dept) {
+ int j = 0;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "insert into power_dept(dept_name,dict_id,effective" +
+ ",creater,create_date,updater,dept_code)values(?,?,?,?,?,?,?)";
+ Object[] parms = new Object[]{dept.getFdeptname (), 1, 1, "admin", dept.getFlogcdate (), "admin", dept.getDeptCode ()};
+ try {
+ connection = JDBCUtils5.getConnection ();
+ statement = connection.prepareStatement (sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject (i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate ();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ } finally {
+ JDBCUtils.release (null, statement, connection);
+ }
+ return j;
+ }
+ public int updatePower(Dept dept){
+ if (StringUtils.isBlank(dept.getFdeptname())){
+ return 0;
+ }
+ int j = 0;
+ String sql = "update power_dept set dept_name=? where dept_code=?";
+ Object[]parms= new Object[]{dept.getFdeptname (),dept.getDeptCode ()};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils5.getConnection ();
+ statement = connection.prepareStatement (sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject (i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate ();
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release (null,statement,connection);
+ }
+ return j ;
+ }
+
+ //查询his科室数据
+ public List getDeptInfo() {
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "select BQDM 病区代码,BQMC 病区名称,FSSJ from ndns.bq";
+ List deptList = new ArrayList();
+ Dept dept = null;
+ try {
+ connection = JDBCUtils.getConnection();
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()) {
+ dept = new Dept();
+ dept.setDeptCode(resultSet.getString("病区代码"));
+ dept.setFdeptname(resultSet.getString("病区名称"));
+ dept.setFlogcdate(resultSet.getString("FSSJ"));
+ deptList.add(dept);
+ }
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return deptList;
+ }
+
+ public ListdeptIndex(){
+ String sql = "select code from emr_dictionary where parent_id = 1";
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ ListdeptList = new ArrayList<> ();
+ Dept dept = null;
+ try {
+ connection = JDBCUtils3.getConnection ();
+ statement = connection.prepareStatement (sql);
+ resultSet = statement.executeQuery ();
+ while (resultSet.next ()){
+ dept = new Dept ();
+ dept.setDeptCode (resultSet.getString ("code"));
+ deptList.add (dept);
+ }
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release (resultSet,statement,connection);
+ }
+ return deptList;
+ }
+ public int updateDeptInfo(Dept dept) {
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "update emr_dictionary set Name =? where code=? and parent_id=1";
+ Object[] parms = new Object[]{dept.getFdeptname(),dept.getDeptCode ()};
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }
+ finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+
+ public int writeDeptInfo(Dept dept) {
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "insert into emr_dictionary(code,Name,parent_id,effective,creater,create_time)values(?,?,?,?,?,?)";
+ Object[] parms = new Object[]{dept.getDeptCode (), dept.getFdeptname(), 1, 1, "admin", dept.getFlogcdate()};
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+ //更新死亡字段
+ public void uploadDeath(){
+ SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss");
+ String format = sdf.format (new Date ());
+ Map archiveMasterMap = sqlDeath();
+ Map ycyMap = hisDeath();
+ for(Map.EntryycyEntry:ycyMap.entrySet()){
+ String key = ycyEntry.getKey();
+ for(Map.EntryarchiveMasterEntry:archiveMasterMap.entrySet()){
+ String key1 = archiveMasterEntry.getKey();
+ if(key.equals(key1)){
+ updateDeath(key);
+ }
+ }
+ }
+ }
+ //查询sql死亡字段
+ public MapsqlDeath(){
+ String sql = "select patient_id,DISCHARGE_DISPOSITION from archive_master ";
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ MaparchiveMasterMap = new HashMap<>();
+ ArchiveMaster archiveMaster = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ archiveMaster = new ArchiveMaster();
+ archiveMaster.setPatientId(resultSet.getString("patient_id"));
+ archiveMaster.setDischargeDisposition(resultSet.getString("DISCHARGE_DISPOSITION"));
+ archiveMasterMap.put(archiveMaster.getPatientId(),archiveMaster);
+ }
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return archiveMasterMap;
+ }
+ //查询his死亡字段
+ public MaphisDeath(){
+ String sql = "select JZH,CYQK from ndns.ycy where ( CYQK='4'or cyqk='5') and to_char(cyrq,'yyyy-mm-dd hh24:mi:ss')>='2019-12-24 00:00:00'";
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ MapycyMap = new HashMap<>();
+ Ycy ycy = null;
+ try {
+ connection = JDBCUtils.getConnection();
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ ycy = new Ycy();
+ ycy.setJzh(resultSet.getString("JZH"));
+ ycy.setCyqk(resultSet.getString("CYQK"));
+ ycyMap.put(ycy.getJzh(),ycy);
+ }
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return ycyMap;
+ }
+ //更新死亡字段
+ public int updateDeath(String patient_id){
+ String sql = "update archive_master set DISCHARGE_DISPOSITION=5 where patient_id=?";
+ Object[]parms = new Object[]{patient_id};
+ Connection con = null;
+ PreparedStatement statement = null;
+ int j = 0;
+ try {
+ con = JDBCUtils3.getConnection();
+ statement = con.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release(null,statement,con);
+ }
+ return j;
+ }
+ //删除留观号
+ public int dropSzyh(){
+ String sql = "delete from archive_master where inp_no like 'S%'";
+ Connection connection = null;
+ PreparedStatement statement = null;
+ int i = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ i = statement.executeUpdate();
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return i;
+ }
+ //更新索引数据
+ @Test
+ public void uploadIndex() {
+ SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-dd hh:mm:ss");
+ String format = sdf.format (new Date ());
+ Map stringZlMap = oraIndex ();
+ Map stringArchiveMasterMap = sqlIndex ();
+ for (Map.Entry entry : stringZlMap.entrySet ()) {
+ String key = entry.getKey ();
+ Zl value = entry.getValue ();
+ for (Map.Entry entry1 : stringArchiveMasterMap.entrySet ()) {
+ String key1 = entry1.getKey ();
+ ArchiveMaster value1 = entry1.getValue ();
+ if (key.equals (key1)) {
+ if (!StringUtils.isNoneBlank(value.getCyrq ())) {
+ updateIndex (value);
+ } else {
+ if(!StringUtils.isNoneBlank(value1.getDischargeDateTime ())){
+ updateIndex1 (value);
+ }else{
+ updateIndex2 (value);
+ }
+ }
+ }
+ }
+ }
+ logger.log ("索引数据已同步 同步时间:"+format);
+ }
+
+ //查询ora首页索引
+ public Map oraIndex() {
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "select t.zyh as 住院号,t.jzh as 记账号,t.zycs as 住院次数,t.xm as 姓名,t.ryrq as 入院日期,t.cyrq as 出院日期,t.rybq as 入院科室,t.dqbq as 出院科室,t.RYCW as 入院床位,hp.fdrname as 主管医生 from ndns.zl t left join hthis.p_doctor hp on t.dqys = hp.fdrid where t.cyrq>to_date('2019/12/24 00:00:00', 'YYYY/MM/DD HH24:MI:SS') order by t.jzh desc";
+ Map hashMap = new HashMap();
+ Zl zl = null;
+ try {
+ connection = JDBCUtils.getConnection();
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()) {
+ zl = new Zl();
+ zl.setZyh(resultSet.getString("住院号"));
+ zl.setJzh(resultSet.getString("记账号"));
+ zl.setZycs(resultSet.getString("住院次数"));
+ zl.setXm(resultSet.getString("姓名"));
+ zl.setRyrq(resultSet.getString("入院日期"));
+ zl.setCyrq(resultSet.getString("出院日期"));
+ zl.setRybq(resultSet.getString("入院科室"));
+ zl.setDqbq(resultSet.getString("出院科室"));
+ zl.setRycw (resultSet.getString ("入院床位"));
+ zl.setFdrname (resultSet.getString ("主管医生"));
+ hashMap.put(zl.getJzh(), zl);
+ }
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return hashMap;
+ }
+
+ //查询sql首页索引
+ public Map sqlIndex() {
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "select patient_id as 记账号,inp_no as 住院号,visit_id as 住院次数,name as 姓名,dept_name as 出院科室,discharge_date_time\n" +
+ " 出院日期,ArchiveState 状态,DOCTOR_IN_CHARGE as '主管医生',admission_date_time 入院日期,dept_admission_to 入院科室,bed_id 入院床位 from archive_master";
+ Object[] parms = null;
+ Map hashMap = new HashMap();
+ ArchiveMaster archiveMaster = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()) {
+ archiveMaster = new ArchiveMaster();
+ archiveMaster.setPatientId(resultSet.getString("记账号"));
+ archiveMaster.setInpNo(resultSet.getString("住院号"));
+ archiveMaster.setVisitId(resultSet.getString("住院次数"));
+ archiveMaster.setName(resultSet.getString("姓名"));
+ archiveMaster.setDeptName(resultSet.getString("出院科室"));
+ archiveMaster.setDischargeDateTime(resultSet.getString("出院日期"));
+ archiveMaster.setArchiveState(resultSet.getString ("状态"));
+ archiveMaster.setAdmissionDateTime(resultSet.getString("入院日期"));
+ archiveMaster.setDeptAdmissionTo(resultSet.getString ("入院科室"));
+ archiveMaster.setBedId (resultSet.getString ("入院床位"));
+ archiveMaster.setDoctorInCharge (resultSet.getString ("主管医生"));
+ hashMap.put(archiveMaster.getPatientId(), archiveMaster);
+ }
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return hashMap;
+ }
+
+ //更新索引
+ public int updateIndex(Zl zl) {
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "update archive_master set inp_no=?,visit_id=?,name=?,bed_id=?,dept_admission_to=?,dept_name=?,DOCTOR_IN_CHARGE=?,admission_date_time=?\n" +
+ "where patient_id=? and ArchiveState='在院'";
+ Object[] parms = new Object[]{zl.getZyh(),zl.getZycs(),zl.getXm(),zl.getRycw (),zl.getRybq (),zl.getDqbq (),zl.getFdrname (),zl.getRyrq(),zl.getJzh()};
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+ //更新索引
+ public int updateIndex1(Zl zl) {
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql="update archive_master set inp_no=?,visit_id=?,name=?,discharge_date_time=?,ArchiveState='归档中',bed_id=?,dept_admission_to=?,dept_name=?,DOCTOR_IN_CHARGE=?,admission_date_time=?\n" +
+ "where patient_id=? and ArchiveState='在院'";
+ Object[] parms = new Object[]{zl.getZyh(),zl.getZycs(),zl.getXm(),zl.getCyrq(),zl.getRycw (),zl.getRybq (),zl.getDqbq (),zl.getFdrname (),zl.getRyrq(),zl.getJzh()};
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+ public int updateIndex2(Zl zl) {
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "update archive_master set inp_no=?,visit_id=?,name=?,bed_id=?,dept_admission_to=?,dept_name=?,DOCTOR_IN_CHARGE=?,admission_date_time=?,discharge_date_time=?\n" +
+ "where patient_id=?";
+ Object[] parms = new Object[]{zl.getZyh(),zl.getZycs(),zl.getXm(),zl.getRycw (),zl.getRybq (),zl.getDqbq (),zl.getFdrname (),zl.getRyrq(),zl.getCyrq(),zl.getJzh()};
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+ @Test
+ public void uploadUserInfo() {
+ SimpleDateFormat format = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss");
+ String date = format.format (new Date ());
+ Listlist = new ArrayList<>();
+ Map integerEmployeeMap = queryEmployee();
+ Map integerEmployeeMap1 = queryEmployee();
+ Iterator> iterator2 = integerEmployeeMap.entrySet().iterator();
+ while (iterator2.hasNext()){
+ Map.Entry next = iterator2.next();
+ String key = next.getKey();
+ Employee value = next.getValue();
+ Iterator> iterator3 = integerEmployeeMap1.entrySet().iterator();
+ while (iterator3.hasNext()){
+ Map.Entry next1 = iterator3.next();
+ String key1 = next1.getKey();
+ Employee value1 = next1.getValue();
+ if(!key.equals(key1)&&value.getFempid().equals(value1.getFempid())){
+ list.add(key1);
+ iterator3.remove();
+ }
+ }
+ integerEmployeeMap1.remove(key);
+ }
+ for(String str:list){
+ integerEmployeeMap.remove(str);
+ }
+ Map integerEmployeeMap3 = queryEmployee();
+ Iterator> iterator = integerEmployeeMap.entrySet().iterator();
+ while (iterator.hasNext()){
+ Map.Entry next = iterator.next();
+ String index = next.getKey();
+ Employee value = next.getValue();
+ Iterator> iterator1 = integerEmployeeMap3.entrySet().iterator();
+ while (iterator1.hasNext()){
+ Map.Entry next1 = iterator1.next();
+ String index1 = next1.getKey();
+ Employee value1 = next1.getValue();
+ if(!index1.equals(index) && value.getFempid().equals(value1.getFempid())){
+ value.setFadmdeptid(value.getFadmdeptid()+","+value1.getFadmdeptid());
+ iterator1.remove();
+ }
+ }
+ }
+ List users = queryUser ();
+ for(Map.Entryentry:integerEmployeeMap.entrySet()){
+ boolean flag = true;
+ Employee value = entry.getValue();
+ for(User user:users){
+ if (user.getCode().equals(value.getFempid())) {
+ if((!user.getDepartmentId().equals("1315"))&&(StringUtils.isNoneBlank(user.getPassword()))) {
+ updateUser(value);
+ }
+ flag = false;
+ }
+ }
+ if(flag){
+ insertUser (value);
+ }
+ }
+// users.forEach(user->{
+// boolean flag = true;
+// for(Map.Entryentry:integerEmployeeMap.entrySet()){
+// Employee value = entry.getValue();
+// if(user.getCode().equals(value.getFempid())){
+// flag = false;
+// }
+// }
+// if(flag){
+// dropUser(user.getCode());
+// }
+// });
+ logger.log ("用户已同步,同步时间:"+date);
+ }
+
+ //查询ora用户
+ public Map queryEmployee() {
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ MapemployeeList = new HashMap<>();
+ try {
+ connection = JDBCUtils.getConnection();
+ Object[]parms = new Object[]{};
+ String sql = "select rownum,FEMPID as 工号,FEMPNAME as 姓名,FUSERPWD as 密码,FDEPTID as 查看科室,FSSID as 角色,FIP_DEPTID as 所属科室 from v_emrssuser";
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery();
+ Employee employee = null;
+ while (resultSet.next()) {
+ employee = new Employee();
+ employee.setId(String.valueOf(resultSet.getInt("rownum")));
+ employee.setFempid(resultSet.getString("工号"));
+ employee.setFempname(resultSet.getString("姓名"));
+ employee.setFuserpwd(resultSet.getString("密码"));
+ employee.setFadmdeptid(returnDeptId(resultSet.getString("查看科室")).getFdeptid());
+ if("YS".equals(resultSet.getString("角色"))){
+ employee.setFempcode("16");
+ }if("HS".equals(resultSet.getString("角色"))){
+ employee.setFempcode("17");
+ }
+ employee.setFipdeptid(returnDeptId(resultSet.getString("所属科室")).getFdeptid());
+ employeeList.put(employee.getId(),employee);
+ }
+ } catch (SQLException e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return employeeList;
+ }
+ public User getUserEntity(String name){
+ String sql = "select user_name from power_user where name=?";
+ Object[]parms = new Object[]{name};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ User user = new User ();
+ try {
+ connection = JDBCUtils5.getConnection ();
+ statement = connection.prepareStatement (sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery ();
+ while (resultSet.next ()){
+ user.setCode (resultSet.getString ("user_name"));
+ }
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release (resultSet,statement,connection);
+ }
+ return user;
+ }
+ public int updateUser(Employee employee){
+ String sql = "update power_user set remark=?,`name`=?,dept_id=? where user_name=?";
+ Connection connection = null;
+ PreparedStatement statement = null;
+ Object[]parms = new Object[]{employee.getFuserpwd (),employee.getFempname (),employee.getFadmdeptid(),employee.getFempid ()};
+ int j = 0;
+ try {
+ connection = JDBCUtils5.getConnection ();
+ statement = connection.prepareStatement (sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate ();
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release (null,statement,connection);
+ }
+ return j;
+ }
+ //查询sql用户
+ public ListqueryUser(){
+ Listusers = new ArrayList<> ();
+ User user = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ String sql = "select user_name,remark,dept_id,`name` from power_user";
+ try {
+ connection = JDBCUtils5.getConnection ();
+ statement = connection.prepareStatement (sql);
+ resultSet = statement.executeQuery ();
+ while (resultSet.next ()){
+ user = new User ();
+ user.setCode (resultSet.getString ("user_name"));
+ user.setName (resultSet.getString ("name"));
+ user.setPassword (resultSet.getString ("remark"));
+ user.setDepartmentId (resultSet.getString ("dept_id"));
+ users.add (user);
+ }
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release (resultSet,statement,connection);
+ }
+ return users;
+ }
+ public int dropUser(String userName){
+ String sql = "delete from power_user where user_name = ?";
+ Object[]parms = new Object[]{userName};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ int j = 0;
+ try {
+ connection = JDBCUtils5.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ }catch (Exception e){
+ logger.log(e.toString());
+ }
+ return j ;
+ }
+ public Dept returnDeptId(String deptId){
+ ResultSet resultSet = null;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "select dept_id from power_dept where dept_code = ?";
+ Object[]parms = new Object[]{deptId};
+ Dept dept = new Dept();
+ try {
+ connection = JDBCUtils5.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ dept.setFdeptid(resultSet.getString("dept_id"));
+ }
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return dept;
+ }
+ //新增sql用户
+ public int insertUser(Employee employee) {
+
+ Connection connection = null;
+ PreparedStatement statement = null;
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
+ String format = simpleDateFormat.format(new Date());
+ String sql = "insert into power_user(user_name,user_pwd,create_date,creater,dept_id,role_id,effective,`name`,remark)values(?,?,?,?,?,?,?,?,?)";
+ Object[] parms = new Object[]{employee.getFempid(),Base64.encode (MD5.KL ("123456")),format,"admin", employee.getFadmdeptid(),employee.getFempcode(), 1,employee.getFempname(),employee.getFuserpwd()};
+ int j = 0;
+ sql.getBytes();
+ try {
+ connection = JDBCUtils5.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+ public String getXmlPath(String elementName) {
+ Document doc = null;
+ try {
+ doc = new SAXReader ().read(this.getClass().getResourceAsStream("/localPath.xml"));
+ } catch (DocumentException e) {
+ logger.log(e.toString());
+ }
+ Element root = doc.getRootElement();
+ Iterator itr = root.elementIterator();
+ while(itr.hasNext()){
+ Element element = (Element)itr.next();
+ if(elementName.equals(element.getName())){
+ return element.getTextTrim();
+ }
+ }
+ return "";
+ }
+}
diff --git a/src/main/java/com/xjgs/service/XmlParseToVO.java b/src/main/java/com/xjgs/service/XmlParseToVO.java
new file mode 100644
index 0000000..1bbb8ed
--- /dev/null
+++ b/src/main/java/com/xjgs/service/XmlParseToVO.java
@@ -0,0 +1,836 @@
+package com.xjgs.service;
+
+import com.google.gson.Gson;
+import com.xjgs.dao.BaseDao;
+import com.xjgs.dao.JDBCUtils;
+import com.xjgs.dao.JDBCUtils3;
+import com.xjgs.util.Logger;
+import com.xjgs.vo.*;
+import com.xjgs.xmlParseVO.XmlFirstPage;
+import lombok.extern.slf4j.Slf4j;
+import oracle.jdbc.driver.OracleResultSet;
+import oracle.sql.OPAQUE;
+import oracle.xdb.XMLType;
+import org.apache.commons.lang3.StringUtils;
+import org.dom4j.Document;
+import org.dom4j.DocumentException;
+import org.dom4j.Element;
+import org.dom4j.io.SAXReader;
+import org.eclipse.jetty.util.ajax.JSON;
+import org.junit.Test;
+
+import java.io.*;
+import java.math.BigDecimal;
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.Iterator;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+@Slf4j
+public class XmlParseToVO {
+ private static Logger logger = new Logger();
+
+
+ @Test
+ public void getId(){
+ String sql = "select dept_name,patient_id from archive_master where archivestate='已归档' and patient_id not in(select patient_id from commomtable2)";
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ArchiveMaster archiveMaster = null;
+ ListarchiveMasterList = new ArrayList ();
+ ResultSet resultSet = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ archiveMaster = new ArchiveMaster();
+ archiveMaster.setPatientId(resultSet.getString("patient_id"));
+ archiveMaster.setDeptName (resultSet.getString ("dept_name"));
+ archiveMasterList.add(archiveMaster);
+ }
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ for(ArchiveMaster archiveMaster1:archiveMasterList){
+ if((!archiveMaster1.getDeptName ().equals ("13"))&&(!archiveMaster1.getDeptName ().equals ("17"))&&(!archiveMaster1.getDeptName ().equals ("1702"))){
+ getMasterRecord(archiveMaster1);
+ }else{
+ Zl (archiveMaster1);
+ }
+ }
+ }
+ public void Zl(ArchiveMaster archiveMaster1){
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat ("yyyy-MM-dd hh:mm:ss");
+ ArchiveMaster masterInfo = getMasterInfo (archiveMaster1);
+ CommomVo commomVo = new CommomVo ();
+ commomVo.setPatientId (getMasterId (masterInfo.getPatientId ()).getId ());
+ commomVo.setInpatientNo (masterInfo.getInpNo ());
+ commomVo.setAdmissId (masterInfo.getInpNo ());
+ commomVo.setName (masterInfo.getName ());
+ commomVo.setSex (masterInfo.getSex ());
+ if(StringUtils.isNoneBlank(masterInfo.getVisitId())){
+ commomVo.setAdmissTimes (Short.parseShort (masterInfo.getVisitId ()));
+ }
+ commomVo.setDisDept (masterInfo.getDeptName ());
+ try {
+ commomVo.setDisDate (simpleDateFormat.parse (masterInfo.getDischargeDateTime ()));
+ commomVo.setAdmissDate (simpleDateFormat.parse (masterInfo.getAdmissionDateTime ()));
+ commomVo.setAdmissDept (masterInfo.getDeptAdmissionTo ());
+ commomVo.setAttending (masterInfo.getDoctorInCharge ());
+ int i = insertArchive (commomVo);
+ int j =insertArchive1 (commomVo);
+ if(i==1 && j==1){
+ addCommom2 (masterInfo.getPatientId ());
+ }
+ } catch (Exception e) {
+ e.printStackTrace ();
+ }
+ }
+ public int insertArchive(CommomVo commomVo){
+ int j = 0;
+ String sql = "insert into commomtable(patient_id,inpatient_no,admiss_id,name,sex,dis_dept,dis_date,admiss_date,attending,is_oper,admiss_times)values(?,?,?,?,?,?,?,?,?,?,?)";
+ Object[]parms = new Object[]{commomVo.getPatientId (),commomVo.getInpatientNo (),commomVo.getAdmissId (),commomVo.getName (),commomVo.getSex (),commomVo.getDisDept (),
+ commomVo.getDisDate (),commomVo.getAdmissDate (),commomVo.getAttending (),"无",commomVo.getAdmissTimes ()};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils3.getConnection ();
+ statement = connection.prepareStatement (sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ if(parms[i] instanceof Date) {
+ parms[i] = new Timestamp(((Date) parms[i]).getTime());
+ }
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j=statement.executeUpdate ();
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release (null,statement,connection);
+ }
+ return j;
+ }
+ public int insertArchive1(CommomVo commomVo){
+ int j = 0;
+ String sql = "insert into commomtable1(patient_id,admiss_dept,is_medicine)values(?,?,?)";
+ Object[]parms = new Object[]{commomVo.getPatientId (),commomVo.getAdmissDept (),"无"};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils3.getConnection ();
+ statement = connection.prepareStatement (sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j=statement.executeUpdate ();
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release (null,statement,connection);
+ }
+ return j;
+ }
+ public ArchiveMaster getMasterInfo(ArchiveMaster archiveMaster){
+ String sql = "select am.patient_id,am.inp_no,am.visit_id,am.name,am.sex,ed.Name cyks,am.discharge_date_time,am.admission_date_time\n" +
+ ",ed1.Name ryks,am.DOCTOR_IN_CHARGE from \n" +
+ "archive_master am join emr_dictionary ed \n" +
+ "on am.dept_name = ed.code join \n" +
+ "emr_dictionary ed1 on am.dept_admission_to = ed1.code where am.patient_id = ? and ed.parent_id=1 and ed1.parent_id=1";
+ Object[]parms = new Object[]{archiveMaster.getPatientId ()};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ ArchiveMaster archiveMaster1 = new ArchiveMaster ();
+ try {
+ connection = JDBCUtils3.getConnection ();
+ statement = connection.prepareStatement (sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery ();
+ while (resultSet.next ()){
+ archiveMaster1.setPatientId (resultSet.getString ("patient_id"));
+ archiveMaster1.setInpNo (resultSet.getString ("inp_no"));
+ archiveMaster1.setVisitId (resultSet.getString ("visit_id"));
+ archiveMaster1.setName (resultSet.getString ("name"));
+ archiveMaster1.setSex (resultSet.getString ("sex"));
+ archiveMaster1.setDeptName (resultSet.getString ("cyks"));
+ archiveMaster1.setDischargeDateTime (resultSet.getString ("discharge_date_time"));
+ archiveMaster1.setAdmissionDateTime (resultSet.getString ("admission_date_time"));
+ archiveMaster1.setDeptAdmissionTo (resultSet.getString ("ryks"));
+ archiveMaster1.setDoctorInCharge (resultSet.getString ("DOCTOR_IN_CHARGE"));
+ }
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ }finally {
+ JDBCUtils.release (resultSet,statement,connection);
+ }
+ return archiveMaster1;
+ }
+ public void getMasterRecord(ArchiveMaster archiveMaster){
+ BaseDao baseDao = new BaseDao();//不能改为连接池,否则有类型转换错误
+ Connection connection = null;
+ PreparedStatement statement = null;
+ OracleResultSet resultSet = null;
+ String sql = "select t.fcontent 病案首页内容,t.fpatno 记账号 from ht.bl_tbs_record t where " +
+ "t.fentryno ='025' and t.fvalid ='1' and fpatno=?";
+ Object[]parms = new Object[]{archiveMaster.getPatientId ()};
+ MasterContentVO masterContentVO = new MasterContentVO ();
+ try {
+ connection = baseDao.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = (OracleResultSet)statement.executeQuery();
+ while (resultSet.next()){
+ OPAQUE opaque = resultSet.getOPAQUE("病案首页内容");
+ XMLType xml = XMLType.createXML(opaque);
+ masterContentVO.setContent(xml.getStringVal());
+ masterContentVO.setPatientId(resultSet.getString("记账号"));
+ }
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ converMasterRecord(masterContentVO,archiveMaster);
+ }
+ public void converMasterRecord(MasterContentVO masterRecord,ArchiveMaster archiveMaster){
+ CommomVo commomVo = new CommomVo();
+ XmlFirstPage xmlFirstPage = null;
+ try {
+ if(StringUtils.isNoneBlank (masterRecord.getContent ())){
+ xmlFirstPage = new XmlFirstPage(masterRecord.getContent());
+ TBasic tBasic = new TBasic();//病人基本信息表
+ tBasic.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());//master表id
+ tBasic.setPayType(xmlFirstPage.BasiInfor.MedTreatPayModeNew.getValText());//医疗付费方式
+ tBasic.setBaseMedicare(xmlFirstPage.BasiInfor.HealthNum.getValText());//健康卡号
+ if(StringUtils.isNoneBlank (xmlFirstPage.BasiInfor.TheNumOfInHos.getValText())){
+ tBasic.setAdmissTimes(Long.parseLong(xmlFirstPage.BasiInfor.TheNumOfInHos.getValText()));//住院次数
+ }
+ tBasic.setInpatientNo(xmlFirstPage.BasiInfor.ZYH.getValText());//病案号
+ tBasic.setName(xmlFirstPage.BasiInfor.NAME.getValText());//姓名
+ tBasic.setSex(xmlFirstPage.BasiInfor.SEXOption.getValText());//性别
+ log.info("时间格式"+xmlFirstPage.BasiInfor.BIRTHDATE.getValText());
+ tBasic.setBirthday(Timestamp.valueOf(xmlFirstPage.BasiInfor.BIRTHDATE.getValText()+" 00:00:00"));//出生日期
+ if(StringUtils.isNoneBlank(xmlFirstPage.BasiInfor.AGE.getValText())){
+ String regEx="[^0-9]";
+ Pattern compile = Pattern.compile(regEx);
+ Matcher matcher = compile.matcher(xmlFirstPage.BasiInfor.AGE.getValText());
+ if(StringUtils.isNoneBlank(matcher.replaceAll("").trim())){
+ tBasic.setAge(Short.parseShort(matcher.replaceAll("").trim()));//年龄
+ }
+ }
+ tBasic.setCountry(xmlFirstPage.BasiInfor.PatNATIVE.getValText());//国籍
+ tBasic.setNation(xmlFirstPage.BasiInfor.PatNATION.getValText());//民族
+ TBaby tBaby = new TBaby();//婴儿表
+ if(!"".equals(xmlFirstPage.BasiInfor.InfantWeight.getValText())){
+ tBaby.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());//
+ //tBaby.setAvoirdupois(Double.valueOf(xmlFirstPage.BasiInfor.InfantWeight.getValText()));//新生儿出生体重
+ //新生儿入院体重
+ addTbaby(tBaby);
+ }
+ tBasic.setBirthAddr(xmlFirstPage.BasiInfor.BIRTHPL.getValText());//出生地
+ //籍贯
+ tBasic.setIdCard(xmlFirstPage.BasiInfor.PatIDCARD.getValText());//身份证号
+ tBasic.setJob(xmlFirstPage.BasiInfor.JOB.getValText());//职业
+ tBasic.setMarriage(xmlFirstPage.BasiInfor.STATUOptionNEW.getValText());//婚姻
+ tBasic.setHomeAddr(xmlFirstPage.BasiInfor.NOWADDR.getValText());//现住址
+ tBasic.setHomeTel(xmlFirstPage.BasiInfor.NOWADDRTELE.getValText());//电话
+ tBasic.setHomeZip(xmlFirstPage.BasiInfor.NOWADDRPOST.getValText());//邮编
+ tBasic.setWorkAddr(xmlFirstPage.BasiInfor.DWNAME.getValText());//工作单位及地址
+ tBasic.setWorkTel(xmlFirstPage.BasiInfor.DWTELE.getValText());//单位电话
+ tBasic.setWorkZip(xmlFirstPage.BasiInfor.DWPOST.getValText());//邮编
+ tBasic.setLinkman(xmlFirstPage.BasiInfor.LXNAME.getValText());//联系人姓名
+ tBasic.setRelation(xmlFirstPage.BasiInfor.RELATE.getValText());//关系
+ tBasic.setRelAddr(xmlFirstPage.BasiInfor.LXADDR.getValText());//地址
+ tBasic.setRelTel(xmlFirstPage.BasiInfor.LXTELE.getValText());//联系人电话
+ TAdmissThing tAdmissThing = new TAdmissThing();//病人住院信息表
+ tAdmissThing.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tAdmissThing.setAdmissType(xmlFirstPage.BasiInfor.InHospWayOption.getValText());//入院途径
+ try {
+ tAdmissThing.setAdmissDate(Timestamp.valueOf(xmlFirstPage.BasiInfor.xmlRYDATE.RYDATEY.getValText() + "-" +
+ xmlFirstPage.BasiInfor.xmlRYDATE.RYDATEM.getValText() + "-" + xmlFirstPage.BasiInfor.xmlRYDATE.RYDATED.getValText()
+ + " " + xmlFirstPage.BasiInfor.xmlRYDATE.RYDATEH.getValText() + ":" + xmlFirstPage.BasiInfor.xmlRYDATE.RYDATEMin.getValText() + ":00"));//入院时间
+ }catch (Exception ex){
+
+ }
+ tAdmissThing.setAdmissDept(xmlFirstPage.BasiInfor.RYDEPT.getValText());//入院科别
+ tAdmissThing.setAdmissWard(xmlFirstPage.BasiInfor.RYBS.getValText());//入院病房
+ //转科时间
+ tAdmissThing.setChangeDept(xmlFirstPage.BasiInfor.FirstZKDpt.FirstZKDptName1.getValText());//转科
+ try {
+ tAdmissThing.setDisDate(Timestamp.valueOf(xmlFirstPage.BasiInfor.xmlCYDATE.CYDATEY.getValText() + "-" +
+ xmlFirstPage.BasiInfor.xmlCYDATE.CYDATEM.getValText() + "-" + xmlFirstPage.BasiInfor.xmlCYDATE.CYDATED.getValText()
+ + " " + xmlFirstPage.BasiInfor.xmlCYDATE.CYDATEH.getValText() + ":" + xmlFirstPage.BasiInfor.xmlCYDATE.CYDATEMin.getValText() + ":00"));//出院时间
+ }catch (Exception ex){
+
+ }
+ tAdmissThing.setDisDept(xmlFirstPage.BasiInfor.CYDEPT.getValText());//出院科别
+ tAdmissThing.setDisWard(xmlFirstPage.BasiInfor.CYBS.getValText());//出院病房
+ //实际住院天数
+ TDiag tDiag = new TDiag();//诊断表
+ int i = 1;
+ tDiag.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tDiag.setDiagNo(i);
+ tDiag.setDiagCode(xmlFirstPage.DiagInfor.MainDiag.ICD10.getValText());//疾病编码
+ tDiag.setDiagName(xmlFirstPage.DiagInfor.MainDiag.DiagName.getValText());//诊断名
+ tDiag.setDiagType("1");//入院病情
+ if("-1".equals(xmlFirstPage.DiagInfor.MainDiag.xmlInHospStat.InHospStatHav.getValText())){
+ tDiag.setDisThing("有");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.MainDiag.xmlInHospStat.InHospStatNotS.getValText())){
+ tDiag.setDisThing("临床未确定");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.MainDiag.xmlInHospStat.InHospStatNotC.getValText())){
+ tDiag.setDisThing("情况不明");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.MainDiag.xmlInHospStat.InHospStatNon.getValText())){
+ tDiag.setDisThing("无");
+ }
+ addTdiag(tDiag);
+ i++;
+ if(!"".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag1.DiagName.getValText())){
+ TDiag tDiag1 = new TDiag();
+ tDiag1.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tDiag1.setDiagNo(i);
+ tDiag1.setDiagCode(xmlFirstPage.DiagInfor.OthDiag.OthDiag1.ICD10.getValText());
+ tDiag1.setDiagName(xmlFirstPage.DiagInfor.OthDiag.OthDiag1.DiagName.getValText());
+ tDiag1.setDiagType("2");
+ if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag1.xmlInHospStat.InHospStatHav.getValText())){
+ tDiag1.setDisThing("有");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag1.xmlInHospStat.InHospStatNotS.getValText())){
+ tDiag1.setDisThing("临床未确定");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag1.xmlInHospStat.InHospStatNotC.getValText())){
+ tDiag1.setDisThing("情况不明");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag1.xmlInHospStat.InHospStatNon.getValText())){
+ tDiag1.setDisThing("无");
+ }
+ i++;
+ addTdiag(tDiag1);
+ }
+ if(!"".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag2.DiagName.getValText())){
+ TDiag tDiag2 = new TDiag();
+ tDiag2.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tDiag2.setDiagNo(i);
+ tDiag2.setDiagCode(xmlFirstPage.DiagInfor.OthDiag.OthDiag2.ICD10.getValText());
+ tDiag2.setDiagName(xmlFirstPage.DiagInfor.OthDiag.OthDiag2.DiagName.getValText());
+ tDiag2.setDiagType("2");
+ if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag2.xmlInHospStat.InHospStatHav.getValText())){
+ tDiag2.setDisThing("有");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag2.xmlInHospStat.InHospStatNotS.getValText())){
+ tDiag2.setDisThing("临床未确定");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag2.xmlInHospStat.InHospStatNotC.getValText())){
+ tDiag2.setDisThing("情况不明");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag2.xmlInHospStat.InHospStatNon.getValText())){
+ tDiag2.setDisThing("无");
+ }
+ i++;
+ addTdiag(tDiag2);
+ }
+ if(!"".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag3.DiagName.getValText())){
+ TDiag tDiag3 = new TDiag();
+ tDiag3.setDiagNo(i);
+ tDiag3.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tDiag3.setDiagCode(xmlFirstPage.DiagInfor.OthDiag.OthDiag3.ICD10.getValText());
+ tDiag3.setDiagName(xmlFirstPage.DiagInfor.OthDiag.OthDiag3.DiagName.getValText());
+ tDiag3.setDiagType("2");
+ if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag3.xmlInHospStat.InHospStatHav.getValText())){
+ tDiag3.setDisThing("有");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag3.xmlInHospStat.InHospStatNotS.getValText())){
+ tDiag3.setDisThing("临床未确定");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag3.xmlInHospStat.InHospStatNotC.getValText())){
+ tDiag3.setDisThing("情况不明");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag3.xmlInHospStat.InHospStatNon.getValText())){
+ tDiag3.setDisThing("无");
+ }
+ i++;
+ addTdiag(tDiag3);
+ }
+ if(!"".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag4.DiagName.getValText())){
+ TDiag tDiag4 = new TDiag();
+ tDiag4.setDiagNo(i);
+ tDiag4.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tDiag4.setDiagCode(xmlFirstPage.DiagInfor.OthDiag.OthDiag4.ICD10.getValText());
+ tDiag4.setDiagName(xmlFirstPage.DiagInfor.OthDiag.OthDiag4.DiagName.getValText());
+ tDiag4.setDiagType("2");
+ if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag4.xmlInHospStat.InHospStatHav.getValText())){
+ tDiag4.setDisThing("有");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag4.xmlInHospStat.InHospStatNotS.getValText())){
+ tDiag4.setDisThing("临床未确定");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag4.xmlInHospStat.InHospStatNotC.getValText())){
+ tDiag4.setDisThing("情况不明");
+ }else if("-1".equals(xmlFirstPage.DiagInfor.OthDiag.OthDiag4.xmlInHospStat.InHospStatNon.getValText())){
+ tDiag4.setDisThing("无");
+ }
+ i++;
+ addTdiag(tDiag4);
+ }
+ addTadmissthing(tAdmissThing);
+ try {
+ addTbasic(tBasic);
+ }catch (Exception ex){
+
+ }
+ int j = 1;
+
+ if(!"".equals(xmlFirstPage.SurgInfor.Operation1.ICD9_CM.getValText())){
+ TOperate tOperate = new TOperate(); //手术表
+ tOperate.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tOperate.setOperateNo(j);
+ tOperate.setOperateCode(xmlFirstPage.SurgInfor.Operation1.ICD9_CM.getValText());//手术及操作编码
+ tOperate.setOperName(xmlFirstPage.SurgInfor.Operation1.OperName.getValText());//手术及操作名称
+ tOperate.setOperateClass(xmlFirstPage.SurgInfor.Operation1.OperDegrOption.getValText());//手术级别
+ tOperate.setOperator(xmlFirstPage.SurgInfor.Operation1.OperDoct.MainOperator.getValText());//术者
+ tOperate.setAssistant1(xmlFirstPage.SurgInfor.Operation1.OperDoct.Assistant1.getValText());//I助
+ tOperate.setAssistant2(xmlFirstPage.SurgInfor.Operation1.OperDoct.Assistant2.getValText());//II助
+ tOperate.setAssistant3(xmlFirstPage.SurgInfor.Operation1.OperDoct.Assistant3.getValText());//III助
+ //tOperate.setCut(xmlFirstPage.SurgInfor.Operation1.);切口愈合等级
+ //择期手术
+ tOperate.setAnaesthesiaType(xmlFirstPage.SurgInfor.Operation1.MAZUI.getValText());//麻醉方式
+ tOperate.setAnaesthesiaName(xmlFirstPage.SurgInfor.Operation1.HocusDoct.getValText());//麻醉医师
+ addToperate(tOperate);
+ }
+ if(!"".equals(xmlFirstPage.SurgInfor.Operation2.ICD9_CM.getValText())){
+ TOperate tOperate = new TOperate(); //手术表
+ tOperate.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tOperate.setOperateNo(j);
+ tOperate.setOperateCode(xmlFirstPage.SurgInfor.Operation2.ICD9_CM.getValText());//手术及操作编码
+ tOperate.setOperName(xmlFirstPage.SurgInfor.Operation2.OperName.getValText());//手术及操作名称
+ tOperate.setOperateClass(xmlFirstPage.SurgInfor.Operation2.OperDegrOption.getValText());//手术级别
+ tOperate.setOperator(xmlFirstPage.SurgInfor.Operation2.OperDoct.MainOperator.getValText());//术者
+ tOperate.setAssistant1(xmlFirstPage.SurgInfor.Operation2.OperDoct.Assistant1.getValText());//I助
+ tOperate.setAssistant2(xmlFirstPage.SurgInfor.Operation2.OperDoct.Assistant2.getValText());//II助
+ tOperate.setAssistant3(xmlFirstPage.SurgInfor.Operation2.OperDoct.Assistant3.getValText());//III助
+ //tOperate.setCut(xmlFirstPage.SurgInfor.Operation1.);切口愈合等级
+ //择期手术
+ tOperate.setAnaesthesiaType(xmlFirstPage.SurgInfor.Operation2.MAZUI.getValText());//麻醉方式
+ tOperate.setAnaesthesiaType(xmlFirstPage.SurgInfor.Operation2.HocusDoct.getValText());//麻醉医师
+ addToperate(tOperate);
+ }
+ if(!"".equals(xmlFirstPage.SurgInfor.Operation3.ICD9_CM.getValText())){
+ TOperate tOperate = new TOperate(); //手术表
+ tOperate.setPatientId(getMasterId (xmlFirstPage.eprhead.PATNO.getValText()).getId ());
+ tOperate.setOperateNo(j);
+ tOperate.setOperateCode(xmlFirstPage.SurgInfor.Operation3.ICD9_CM.getValText());//手术及操作编码
+ tOperate.setOperName(xmlFirstPage.SurgInfor.Operation3.OperName.getValText());//手术及操作名称
+ tOperate.setOperateClass(xmlFirstPage.SurgInfor.Operation3.OperDegrOption.getValText());//手术级别
+ tOperate.setOperator(xmlFirstPage.SurgInfor.Operation3.OperDoct.MainOperator.getValText());//术者
+ tOperate.setAssistant1(xmlFirstPage.SurgInfor.Operation3.OperDoct.Assistant1.getValText());//I助
+ tOperate.setAssistant2(xmlFirstPage.SurgInfor.Operation3.OperDoct.Assistant2.getValText());//II助
+ tOperate.setAssistant3(xmlFirstPage.SurgInfor.Operation3.OperDoct.Assistant3.getValText());//III助
+ //tOperate.setCut(xmlFirstPage.SurgInfor.Operation1.);切口愈合等级
+ //择期手术
+ tOperate.setAnaesthesiaType(xmlFirstPage.SurgInfor.Operation3.MAZUI.getValText());//麻醉方式
+ tOperate.setAnaesthesiaType(xmlFirstPage.SurgInfor.Operation3.HocusDoct.getValText());//麻醉医师
+ addToperate(tOperate);
+ }
+
+ commomVo.setPatientId(tBasic.getPatientId());//主键 唯一
+ commomVo.setAdmissTimes((short) tBasic.getAdmissTimes());//住院次数
+ commomVo.setInpatientNo(tBasic.getInpatientNo());//病案号
+ commomVo.setName(tBasic.getName());//姓名
+ commomVo.setAdmissId(tBasic.getInpatientNo());//住院号
+ commomVo.setSex(tBasic.getSex());//性别
+ commomVo.setAge((short) tBasic.getAge());//年龄
+ commomVo.setAgeMonth(Short.parseShort(xmlFirstPage.BasiInfor.BIRTHDAY.BIRTHDAYM.getValText()));//年龄(月)
+
+ commomVo.setAgeDay(Short.parseShort(xmlFirstPage.BasiInfor.BIRTHDAY.BIRTHDAYD.getValText()));//年龄(天)
+ commomVo.setHomeAddr(tBasic.getHomeAddr());//现住地址
+ commomVo.setNameCym(xmlFirstPage.BasiInfor.NAME.getValText());//姓名简写
+ commomVo.setAdmissDate(tAdmissThing.getAdmissDate());//入院日期
+ commomVo.setDisDate(tAdmissThing.getDisDate());//出院日期
+ if(StringUtils.isNoneBlank (xmlFirstPage.BasiInfor.DAYS.getValText())){
+ commomVo.setAdmissDays(Integer.valueOf(xmlFirstPage.BasiInfor.DAYS.getValText().trim()));
+ }
+ if(!"".equals(xmlFirstPage.SurgInfor.Operation1.ICD9_CM.getValText().trim())) {
+ commomVo.setIsOper("有");
+ }else {
+ commomVo.setIsOper("无");
+ }
+ commomVo.setDisDept(tAdmissThing.getDisDept());//出院科别
+ commomVo.setAttending(xmlFirstPage.ThirClassExa.ZZDOCT.getValText());//主治医师
+ commomVo.setMainDiagName(tDiag.getDiagName());
+ commomVo.setMainDisThing(tDiag.getDisThing ());//主诊断转归情况
+ commomVo.setCountry(tBasic.getCountry());//国籍
+ commomVo.setBirthAddr(tBasic.getBirthAddr());//出生地
+ commomVo.setIdCard(tBasic.getIdCard());//身份证号
+ commomVo.setJob(tBasic.getJob());//职业
+ commomVo.setMarriage(tBasic.getMarriage());//婚况 转
+ commomVo.setHomeTel(tBasic.getHomeTel());//家庭电话
+ commomVo.setHomeZip(tBasic.getHomeZip());//家庭邮编
+ commomVo.setWorkAddr(tBasic.getWorkAddr());//工作单位及地址
+ commomVo.setWorkTel(tBasic.getWorkTel());//工作单位电话
+ commomVo.setHomeZip(tBasic.getHomeZip());//工作单位住址邮编
+ commomVo.setLinkman(tBasic.getLinkman());//联系人姓名
+ commomVo.setRelation(tBasic.getRelation());//联系人关系
+ commomVo.setRelAddr(tBasic.getRelAddr());//关系人住址
+ commomVo.setRelTel(tBasic.getRelTel());//关系人电话
+ commomVo.setPayType(tBasic.getPayType());//医疗付费方式
+ commomVo.setBirthday(tBasic.getBirthday());//出生日期
+ commomVo.setAvoirdupois(BigDecimal.valueOf(tBaby.getAvoirdupois()));//新生儿体重
+ commomVo.setAdmissType(tAdmissThing.getAdmissType());//入院途径
+ commomVo.setAdmissDept(tAdmissThing.getAdmissDept());//入院科别
+ commomVo.setAdmissWard(tAdmissThing.getAdmissWard());//入院病房
+ commomVo.setChangeDept(tAdmissThing.getChangeDept());//转院科别
+ commomVo.setDisWard(tAdmissThing.getDisWard());//出院病房
+ //插入zd_icd_code clinic_diag clinic_name
+ //commomVo.setClinicDiag(xmlFirstPage.BasiInfor.MZZDCode.getValText());
+ //commomVo.setClinicName(xmlFirstPage.BasiInfor.MZZD.getValText());
+ //commomVo.setAdmissThing(null);//入院病情
+ if("1".equals(xmlFirstPage.DiagInfor.GMYWIfOption.getValText())){
+ commomVo.setIsMedicine("无");
+ }else {
+ commomVo.setIsMedicine("有");
+ commomVo.setMedicine(xmlFirstPage.DiagInfor.GMYW.getValText());//过敏药物
+ }
+ commomVo.setEmitPathology(xmlFirstPage.DiagInfor.BODYOption.getValText());// 是否尸检 插/转
+ commomVo.setDeptDirector(xmlFirstPage.ThirClassExa.KZR.getValText());//科主任
+ commomVo.setDirector(xmlFirstPage.ThirClassExa.ZRDOCT.getValText());//主任医师
+ commomVo.setAdmissDoctor(xmlFirstPage.ThirClassExa.ZYDOCT.getValText());//住院医师
+ commomVo.setRefresher(xmlFirstPage.ThirClassExa.JXDOCT.getValText());//进修医师
+ commomVo.setPraxis(xmlFirstPage.ThirClassExa.SXDOCT.getValText());//实习医师
+ commomVo.setCoding(xmlFirstPage.ThirClassExa.BMY.getValText());//编码员
+ commomVo.setQuality(xmlFirstPage.ThirClassExa.QUALITYOption.getValText());//病案质量
+ commomVo.setControl(xmlFirstPage.ThirClassExa.ZKDOCT.getValText());//质控医师
+ commomVo.setNurses(xmlFirstPage.ThirClassExa.ZKNURSE.getValText());//质控护士
+ //Date parse3 = format.parse(xmlFirstPage.ThirClassExa.ZKRQ.ZKRQYear.getValText()+"-"
+ // +xmlFirstPage.ThirClassExa.ZKRQ.ZKRQMon.getValText()+"-"+xmlFirstPage.ThirClassExa.ZKRQ.ZKRQDay.getValText());
+ //commomVo.setQualityDate(parse3);//质检日期
+ commomVo.setBloodType(xmlFirstPage.DiagInfor.BLOODOptionNEW.getValText());//血型
+ commomVo.setRh(xmlFirstPage.DiagInfor.RHOptionNEW.getValText());//Rh
+ addCommom(commomVo);
+ addCommom1(commomVo);
+ addCommom2(xmlFirstPage.eprhead.PATNO.getValText());
+ }
+ } catch (Exception e) {
+ log.error(e.getMessage(),e);
+ }
+ }
+
+ //根据流水号得到masterId
+ public ArchiveMaster getMasterId(String patientId){
+ String sql ="select id from archive_master where patient_id=?";
+ Object[]parms = new Object[]{patientId};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ ResultSet resultSet = null;
+ ArchiveMaster archiveMaster = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ resultSet = statement.executeQuery();
+ while (resultSet.next()){
+ archiveMaster = new ArchiveMaster();
+ archiveMaster.setId(resultSet.getString("id"));
+ }
+ }catch (Exception ex){
+ logger.log(ex.toString());
+ } finally {
+ JDBCUtils.release(resultSet,statement,connection);
+ }
+ return archiveMaster;
+ }
+ //插入病人基本信息表
+ public int addTbasic(TBasic tBasic){
+ int j = 0;
+ Connection connection =null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ String sql = "INSERT INTO [t_basic]([patient_id],[base_medicare],[other_medicare]\n" +
+ ",[pay_type],[bed_no],[clinic_id],[admiss_id],[inpatient_no]\n" +
+ ",[admiss_times],[name],[sex],[birthday],[age],[age_month]\n" +
+ ",[age_day],[marriage],[job],[birth_addr],[nation],[country]\n" +
+ ",[id_card],[work_addr],[work_tel],[work_zip],[home_addr]\n" +
+ ",[home_tel],[home_zip],[linkman],[relation],[rel_addr]\n" +
+ ",[rel_tel],[m_addr],[ph],[gdh],[oper_code],[oper_name],[oper_date]\n" +
+ ",[scan_id],[mir_id],[top_unit],[persennl_type],[duty]\n" +
+ ",[service_system_indicator],[ident],[working_status],[rel_zip]\n" +
+ ",[patient_origin],[management_code],[name_py],[create_date]\n" +
+ ",[name_cym],[health_card],[birth_place_name],[native_place]\n" +
+ ",[FZYID])\n" +
+ "VALUES\n" +
+ "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);";
+ Object[]parms = new Object[]{
+ tBasic.getPatientId(),tBasic.getBaseMedicare(),tBasic.getOtherMedicare(),
+ tBasic.getPayType(),tBasic.getBedNo(),tBasic.getClinicId(),tBasic.getAdmissId(),
+ tBasic.getInpatientNo(),tBasic.getAdmissTimes(),tBasic.getName(),tBasic.getSex(),
+ tBasic.getBirthday(),tBasic.getAge(),tBasic.getAgeMonth(),tBasic.getAgeDay(),tBasic.getMarriage(),
+ tBasic.getJob(),tBasic.getBirthAddr(),tBasic.getNation(),tBasic.getCountry(),
+ tBasic.getIdCard(),tBasic.getWorkAddr(),tBasic.getWorkTel(),tBasic.getWorkZip(),
+ tBasic.getHomeAddr(),tBasic.getHomeTel(),tBasic.getHomeZip(),tBasic.getLinkman(),
+ tBasic.getRelation(),tBasic.getRelAddr(),tBasic.getRelTel(),tBasic.getMAddr(),
+ tBasic.getPh(),tBasic.getGdh(),tBasic.getOperCode(),tBasic.getOperName(),tBasic.getOperDate(),
+ tBasic.getScanId(),tBasic.getMirId(),tBasic.getTopUnit(),tBasic.getPersennlType(),
+ tBasic.getDuty(),tBasic.getServiceSystemIndicator(),tBasic.getIdent(),tBasic.getWorkingStatus(),
+ tBasic.getRelZip(),tBasic.getPatientOrigin(),tBasic.getManagementCode(),tBasic.getNamePy(),
+ tBasic.getCreateDate(),tBasic.getNameCym(),tBasic.getHealthCard(),tBasic.getBirthPlaceName(),
+ tBasic.getNativePlace(),tBasic.getFzyid()
+ };
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+
+ //插入诊断表
+ public int addTdiag(TDiag tDiag){
+ int j = 0;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ String sql = "INSERT INTO [t_diag]([patient_id],[diag_no],[diag_code],[diag_name],[diag_type],[dis_thing],[pathology_cut]\n" +
+ ",[X_ray],[oper_code],[oper_name],[oper_date],[singl],[create_date],[pat_adm_condition],[pid],[vid],[INHospStat])\n" +
+ "VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
+ Object[]parms = new Object[]{tDiag.getPatientId(),tDiag.getDiagNo(),tDiag.getDiagCode(),tDiag.getDiagName(),tDiag.getDiagType(),tDiag.getDisThing(),tDiag.getPathologyCut(),
+ tDiag.getXRay(),tDiag.getOperCode(),tDiag.getOperName(),tDiag.getOperDate(),tDiag.getSingl(),tDiag.getCreateDate(),tDiag.getPatAdmCondition(),tDiag.getPid(),tDiag.getVid(),tDiag.getInHospStat()};
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+
+ //插入手术表
+ public int addToperate(TOperate tOperate){
+ int j = 0;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "INSERT INTO [t_operate]([patient_id],[operate_no],[operate_code],[operate_name]\n" +
+ ",[operate_date],[operator],[assistant_1],[assistant_2],[assistant_3],[anaesthesia_type]\n" +
+ ",[cut],[anaesthesia_name],[oper_code],[oper_name],[oper_date],[operate_class],[OPERATION_SCALE]\n" +
+ ",[ChosSurg],[OperDegr])\n" +
+ "VALUES(replace(newid(), '-', ''),?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
+ Object[]parms = new Object[]{
+ tOperate.getOperateNo(),tOperate.getOperateCode(),tOperate.getOperateName(),
+ tOperate.getOperDate(),tOperate.getOperator(),tOperate.getAssistant1(),tOperate.getAssistant2(),tOperate.getAssistant3(),tOperate.getAnaesthesiaType(),
+ tOperate.getCut(),tOperate.getAnaesthesiaName(),tOperate.getOperCode(),tOperate.getOperName(),tOperate.getOperDate(),tOperate.getOperateClass(),tOperate.getOperationScale(),
+ tOperate.getChosSurg(),tOperate.getOperDegr()
+ };
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j=statement.executeUpdate();
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+
+ //插入婴儿表
+ public int addTbaby(TBaby tBaby){
+ int j = 0;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "INSERT INTO [t_baby]([patient_id],[fetation_times],[childbirth_times],[childbirth_time]\n" +
+ ",[childbirth_mothed],[sex],[head],[chest],[avoirdupois],[stature]\n" +
+ ",[diag_type],[diag_code],[diag_name],[father],[id_card],[work_addr]\n" +
+ ",[home_addr])\n" +
+ "VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
+ Object[]parms = new Object[]{tBaby.getPatientId(),tBaby.getFetationTimes(),tBaby.getChildbirthTimes(),tBaby.getChildbirthTime(),
+ tBaby.getChildbirthMothed(),tBaby.getSex(),tBaby.getHead(),tBaby.getChest(),tBaby.getAvoirdupois(),tBaby.getStature(),
+ tBaby.getDiagType(),tBaby.getDiagCode(),tBaby.getDiagName(),tBaby.getFather(),tBaby.getIdCard(),tBaby.getWorkAddr(),
+ tBaby.getHomeAddr()};
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+
+ //插入病人住院信息表
+ public int addTadmissthing(TAdmissThing tAdmissThing){
+ int j = 0;
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "INSERT INTO [t_admiss_thing]\n" +
+ "([patient_id],[admiss_date],[admiss_dept],[admiss_ward],[change_dept]\n" +
+ ",[change_ward],[dis_date],[dis_dept],[dis_ward],[clinic_diag],[clinic_name]\n" +
+ ",[admiss_thing],[admiss_diag],[admiss_name],[affirm_date],[diag_flag]\n" +
+ ",[clinic_doctor],[dis_type],[diag_mode],[other_diag],[admiss_type]\n" +
+ ",[clinic_date],[operator],[admiss_doctor],[dis_doctor],[clinic_diag_2]\n" +
+ ",[clinic_name_2],[admiss_diag_2],[admiss_name_2],[admiss_diag_3]\n" +
+ ",[admiss_name_3])\n" +
+ "VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);";
+ Object[]parms = new Object[]{tAdmissThing.getPatientId(),tAdmissThing.getAdmissDate(),tAdmissThing.getAdmissDept(),tAdmissThing.getAdmissWard(),
+ tAdmissThing.getChangeDept(),tAdmissThing.getChangeWard(),tAdmissThing.getDisDate(),tAdmissThing.getDisDept(),tAdmissThing.getDisWard(),tAdmissThing.getClinicDiag(),
+ tAdmissThing.getClinicName(),tAdmissThing.getAdmissThing(),tAdmissThing.getAdmissDiag(),tAdmissThing.getAdmissName(),tAdmissThing.getAffirmDate(),tAdmissThing.getDiagFlag(),
+ tAdmissThing.getClinicDoctor(),tAdmissThing.getDisType(),tAdmissThing.getDiagMode(),tAdmissThing.getOtherDiag(),tAdmissThing.getAdmissType(),tAdmissThing.getClinicDate(),tAdmissThing.getOperator(),
+ tAdmissThing.getAdmissDoctor(),tAdmissThing.getDisDoctor(),tAdmissThing.getClinicDiag2(),
+ tAdmissThing.getClinicName2(),tAdmissThing.getAdmissDiag2(),tAdmissThing.getAdmissName2(),tAdmissThing.getAdmissDiag3(),tAdmissThing.getAdmissName3()};
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j ;
+ }
+
+ //插入病人检查信息表
+ //int addTcheck
+
+ //插入费用表
+
+
+ //插入公共表
+ public int addCommom(CommomVo commomVo){
+ int j = 0;
+ String sql = "insert into commomtable\n" +
+ "(\n" +
+ "\tpatient_id,admiss_times,inpatient_no,name,admiss_id,sex,age,age_month,age_day,home_addr,name_cym,\n" +
+ "\tadmiss_date,dis_date,admiss_days,dis_dept,is_oper,attending,main_diag_name,main_dis_thing\n" +
+ ")\n" +
+ "values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
+ Object[]parms = new Object[]{
+ commomVo.getPatientId(),commomVo.getAdmissTimes(),commomVo.getInpatientNo(),commomVo.getName(),commomVo.getAdmissId(),commomVo.getSex(),commomVo.getAge(),
+ commomVo.getAgeMonth(),commomVo.getAgeDay(),commomVo.getHomeAddr(),commomVo.getNameCym(),
+ commomVo.getAdmissDate(),commomVo.getDisDate(),commomVo.getAdmissDays(),commomVo.getDisDept(),
+ commomVo.getIsOper(),commomVo.getAttending(),commomVo.getMainDiagName(),commomVo.getMainDisThing()
+ };
+ Connection connection = null;
+ PreparedStatement statement = null;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j ;
+ }
+
+ public int addCommom1(CommomVo commomVo){
+ Connection connection = null;
+ PreparedStatement statement = null;
+ String sql = "insert into commomtable1\n" +
+ "(\n" +
+ "\tpatient_id,country,birth_addr,id_card,job,marriage,home_tel,home_zip,work_addr,\n" +
+ "\twork_tel,work_zip,linkman,relation,rel_addr,rel_tel,pay_type,birthday,avoirdupois,\n" +
+ "\tadmiss_type,admiss_dept,admiss_ward,change_dept,dis_ward,clinic_diag,clinic_name,\n" +
+ "\tadmiss_thing,medicine,is_medicine,emit_pathology,dept_director,director,admiss_doctor,\n" +
+ "\trefresher,praxis,coding,quality,control,nurses,quality_date,blood_type,RH\n" +
+ ")\n" +
+ "values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
+ Object[]parms = new Object[]{commomVo.getPatientId(),commomVo.getCountry(),commomVo.getBirthAddr(),commomVo.getIdCard(),commomVo.getJob(),
+ commomVo.getMarriage(),commomVo.getHomeTel(),commomVo.getHomeZip(),commomVo.getWorkAddr(),
+ commomVo.getWorkTel(),commomVo.getWorkZip(),commomVo.getLinkman(),commomVo.getRelation(),commomVo.getRelAddr(),commomVo.getRelTel(),
+ commomVo.getPayType(),commomVo.getBirthday(),commomVo.getAvoirdupois(),commomVo.getAdmissType(),commomVo.getAdmissDept(),
+ commomVo.getAdmissWard(),commomVo.getChangeDept(),commomVo.getDisWard(),commomVo.getClinicDiag(),commomVo.getClinicName(),
+ commomVo.getAdmissThing(),commomVo.getMedicine(),commomVo.getIsMedicine(),commomVo.getEmitPathology(),commomVo.getDeptDirector(),commomVo.getDirector(),commomVo.getAdmissDoctor(),
+ commomVo.getRefresher(),commomVo.getPraxis(),commomVo.getCoding(),commomVo.getQuality(),commomVo.getControl(),commomVo.getNurses(),commomVo.getQualityDate(),commomVo.getBloodType(),commomVo.getRh()};
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ } catch (Exception e) {
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j ;
+ }
+
+ public int addCommom2(String patientId){
+ String sql = "insert into commomtable2(patient_id)VALUES(?)";
+ Object[]parms = new Object[]{patientId};
+ Connection connection = null;
+ PreparedStatement statement = null;
+ int j = 0;
+ try {
+ connection = JDBCUtils3.getConnection();
+ statement = connection.prepareStatement(sql);
+ if (parms != null && parms.length > 0) {
+ for (int i = 0; i < parms.length; i++) {
+ statement.setObject(i + 1, parms[i]);
+ }
+ }
+ j = statement.executeUpdate();
+ }catch (Exception e){
+ logger.log(e.toString());
+ }finally {
+ JDBCUtils.release(null,statement,connection);
+ }
+ return j;
+ }
+}
+
+
diff --git a/src/main/java/com/xjgs/util/Base64.java b/src/main/java/com/xjgs/util/Base64.java
new file mode 100644
index 0000000..d317a77
--- /dev/null
+++ b/src/main/java/com/xjgs/util/Base64.java
@@ -0,0 +1,77 @@
+/**
+ *
+ */
+package com.xjgs.util;
+
+import sun.misc.BASE64Decoder;
+import sun.misc.BASE64Encoder;
+
+import java.io.IOException;
+
+//import org.apache.commons.codec.binary.Base64;
+
+/**
+ * Title:Base64
+ * Description:
+ * Company:
+ * @author hu
+ * @date
+ */
+public class Base64 {
+ //需加密内容
+ private static String src="security base64";
+
+ //jdk实现
+ public static void jdkBase64(String src){
+ try {
+ //不建议使用
+ BASE64Encoder encoder=new BASE64Encoder();
+ String encode=encoder.encode(src.getBytes());
+ System.out.println("encode:"+encode);
+
+ BASE64Decoder decoder=new BASE64Decoder();
+ System.out.println("decode:"+new String(decoder.decodeBuffer(encode)));
+ } catch (IOException e) {
+ // TODO 自动生成的 catch 块
+ e.printStackTrace();
+ }
+ }
+ //commons Codec实现
+ public static void commonsCodecBase64(String src){
+ byte[] encodeByts=org.apache.commons.codec.binary.Base64.encodeBase64(src.getBytes());
+ System.out.println("encode:"+new String(encodeByts));
+
+ byte[] decodeByts=org.apache.commons.codec.binary.Base64.decodeBase64(encodeByts);
+ System.out.println("decode:"+new String(decodeByts));
+ }
+
+ //Bouncy Castle实现
+ public static void bouncyCastleBase64(String src){
+ byte[] encodeByts=org.bouncycastle.util.encoders.Base64.encode(src.getBytes());
+ System.out.println("encode:"+new String(encodeByts));
+
+ byte[] decodeByts=org.bouncycastle.util.encoders.Base64.decode(encodeByts);
+ System.out.println("decode:"+new String(decodeByts));
+ }
+
+
+ public static String encode(String src) {
+ byte[] encodeByts = org.apache.commons.codec.binary.Base64.encodeBase64(src.getBytes());
+ return new String(encodeByts);
+ }
+
+ public static String decode(String src) {
+ byte[] decodeByts = org.apache.commons.codec.binary.Base64.decodeBase64(src.getBytes());
+ return new String(decodeByts);
+ }
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ jdkBase64(src);
+ commonsCodecBase64(src);
+ bouncyCastleBase64(src);
+ }
+
+}
diff --git a/src/main/java/com/xjgs/util/Logger.java b/src/main/java/com/xjgs/util/Logger.java
new file mode 100644
index 0000000..8e42786
--- /dev/null
+++ b/src/main/java/com/xjgs/util/Logger.java
@@ -0,0 +1,38 @@
+package com.xjgs.util;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+public class Logger {
+ public void log(String info) {
+ SimpleDateFormat dateFormat = new SimpleDateFormat ("yyyy-MM-dd");
+ String format = dateFormat.format (new Date());
+ File file = new File (System.getProperty("user.dir")+"\\logs\\"+format);
+ if(!file.isDirectory ()){
+ file.mkdirs ();
+ }
+ OutputStream out = null;
+ try {
+ out = getOutputStream(file.getAbsolutePath ()+"\\log.log");
+ out.write(info.getBytes("utf-8"));
+ out.write("\r\n".getBytes());
+ out.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+ public OutputStream getOutputStream(String localpath) throws IOException {
+ File file = new File(localpath);
+ if (!file.exists()) {
+ file.createNewFile();
+ return new FileOutputStream(file);
+ } else {
+ return new FileOutputStream(file, true);
+ }
+ }
+}
diff --git a/src/main/java/com/xjgs/util/MD5.java b/src/main/java/com/xjgs/util/MD5.java
new file mode 100644
index 0000000..d779574
--- /dev/null
+++ b/src/main/java/com/xjgs/util/MD5.java
@@ -0,0 +1,76 @@
+/**
+ *
+ */
+package com.xjgs.util;
+
+import java.security.MessageDigest;
+
+/**
+ * Title:MD5
+ * Description:
+ * Company:
+ * @author hu
+ * @date
+ */
+public class MD5 {
+ // MD5加码。32位
+ public static String MD5(String inStr) {
+ MessageDigest md5 = null;
+ try {
+ md5 = MessageDigest.getInstance("MD5");
+ } catch (Exception e) {
+ System.out.println(e.toString());
+ e.printStackTrace();
+ return "";
+ }
+ char[] charArray = inStr.toCharArray();
+ byte[] byteArray = new byte[charArray.length];
+
+ for (int i = 0; i < charArray.length; i++)
+ byteArray[i] = (byte) charArray[i];
+
+ byte[] md5Bytes = md5.digest(byteArray);
+
+ StringBuffer hexValue = new StringBuffer();
+
+ for (int i = 0; i < md5Bytes.length; i++) {
+ int val = ((int) md5Bytes[i]) & 0xff;
+ if (val < 16)
+ hexValue.append("0");
+ hexValue.append(Integer.toHexString(val));
+ }
+
+ return hexValue.toString();
+ }
+
+ // 可逆的加密算法
+ public static String KL(String inStr) {
+ // String s = new String(inStr);
+ char[] a = inStr.toCharArray();
+ for (int i = 0; i < a.length; i++) {
+ a[i] = (char) (a[i] ^ 't');
+ }
+ String s = new String(a);
+ return s;
+ }
+
+ // 加密后解密
+ public static String JM(String inStr) {
+ char[] a = inStr.toCharArray();
+ for (int i = 0; i < a.length; i++) {
+ a[i] = (char) (a[i] ^ 't');
+ }
+ String k = new String(a);
+ return k;
+ }
+
+ // 测试主函数
+ public static void main(String args[]) {
+ String s = new String("a");
+ System.out.println("原始:" + s);
+ System.out.println("MD5后:" + MD5(s));
+ System.out.println("MD5后再加密:" + KL(MD5(s)));
+ System.out.println("解密为MD5后的:" + JM(KL(MD5(s))));
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/ArchiveMaster.java b/src/main/java/com/xjgs/vo/ArchiveMaster.java
new file mode 100644
index 0000000..1ca7a58
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/ArchiveMaster.java
@@ -0,0 +1,219 @@
+package com.xjgs.vo;
+
+
+/**
+ * 病人基本信息类
+ * */
+public class ArchiveMaster {
+
+ private String id;
+ private String patientId;
+ private String inpNo;
+ private String visitId;
+ private String name;
+ private String sex;
+ private String deptName;
+ private String dischargeDateTime;
+ private String archiveState;
+ private String admissionDateTime;
+ private String deptAdmissionTo;
+ private String checkDoctor;
+ private String checkDatetime;
+ private String checkedDoctor;
+ private String checkedDatetime;
+ private String lockInfo;
+ private String doctorInCharge;
+ private String idNo;
+ private String dischargeDisposition;
+ private String deptCodeLend;
+ private String status;
+ private String bedId;
+
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id == null ? null:id.trim();
+ }
+
+
+ public String getPatientId() {
+ return patientId;
+ }
+
+ public void setPatientId(String patientId) {
+ this.patientId = patientId == null ? null : patientId.trim();
+ }
+
+
+ public String getInpNo() {
+ return inpNo;
+ }
+
+ public void setInpNo(String inpNo) {
+ this.inpNo = inpNo == null ? null : inpNo.trim();
+ }
+
+
+ public String getVisitId() {
+ return visitId;
+ }
+
+ public void setVisitId(String visitId) {
+ this.visitId = visitId == null ? "1" : visitId.trim();
+ }
+
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+
+ public String getSex() {
+ return sex;
+ }
+
+ public void setSex(String sex) {
+ this.sex = sex == null ? null : sex.trim();
+ }
+
+
+ public String getDeptName() {
+ return deptName;
+ }
+
+ public void setDeptName(String deptName) {
+ this.deptName = deptName == null ? null : deptName.trim();
+ }
+
+ public String getArchiveState() {
+ return archiveState;
+ }
+
+ public void setArchiveState(String archiveState) {
+ this.archiveState = archiveState == null ? null : archiveState.trim();
+ }
+
+ public String getDeptAdmissionTo() {
+ return deptAdmissionTo;
+ }
+
+ public void setDeptAdmissionTo(String deptAdmissionTo) {
+ this.deptAdmissionTo = deptAdmissionTo == null ? null : deptAdmissionTo.trim();
+ }
+
+
+ public String getCheckDoctor() {
+ return checkDoctor;
+ }
+
+ public void setCheckDoctor(String checkDoctor) {
+ this.checkDoctor = checkDoctor == null ? null : checkDoctor.trim();
+ }
+
+ public String getCheckedDoctor() {
+ return checkedDoctor;
+ }
+
+ public void setCheckedDoctor(String checkedDoctor) {
+ this.checkedDoctor = checkedDoctor == null ? null : checkedDoctor.trim();
+ }
+
+ public String getLockInfo() {
+ return lockInfo;
+ }
+
+ public void setLockInfo(String lockInfo) {
+ this.lockInfo = lockInfo == null ? null : lockInfo.trim();
+ }
+
+
+ public String getDoctorInCharge() {
+ return doctorInCharge;
+ }
+
+ public void setDoctorInCharge(String doctorInCharge) {
+ this.doctorInCharge = doctorInCharge == null ? null : doctorInCharge.trim();
+ }
+
+
+ public String getIdNo() {
+ return idNo;
+ }
+
+ public void setIdNo(String idNo) {
+ this.idNo = idNo == null ? null : idNo.trim();
+ }
+
+
+ public String getDischargeDisposition() {
+ return dischargeDisposition;
+ }
+
+ public void setDischargeDisposition(String dischargeDisposition) {
+ this.dischargeDisposition = dischargeDisposition == null ? null : dischargeDisposition.trim();
+ }
+
+
+ public String getDeptCodeLend() {
+ return deptCodeLend;
+ }
+
+ public void setDeptCodeLend(String deptCodeLend) {
+ this.deptCodeLend = deptCodeLend == null ? null : deptCodeLend.trim();
+ }
+
+ public String getDischargeDateTime() {
+ return dischargeDateTime;
+ }
+
+ public void setDischargeDateTime(String dischargeDateTime) {
+ this.dischargeDateTime = dischargeDateTime == null ? null:dischargeDateTime.trim();
+ }
+
+ public String getAdmissionDateTime() {
+ return admissionDateTime;
+ }
+
+ public void setAdmissionDateTime(String admissionDateTime) {
+ this.admissionDateTime = admissionDateTime == null ? null : admissionDateTime.trim();
+ }
+
+ public String getCheckDatetime() {
+ return checkDatetime;
+ }
+
+ public void setCheckDatetime(String checkDatetime) {
+ this.checkDatetime = checkDatetime == null ? null : checkDatetime.trim();
+ }
+
+ public String getCheckedDatetime() {
+ return checkedDatetime;
+ }
+
+ public void setCheckedDatetime(String checkedDatetime) {
+ this.checkedDatetime = checkedDatetime == null ? null : checkedDatetime.trim();
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status == null ? null :status.trim();
+ }
+
+ public String getBedId() {
+ return bedId;
+ }
+
+ public void setBedId(String bedId) {
+ this.bedId = bedId == null ? null : bedId.trim ();
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/Archive_Detail.java b/src/main/java/com/xjgs/vo/Archive_Detail.java
new file mode 100644
index 0000000..1188459
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/Archive_Detail.java
@@ -0,0 +1,112 @@
+package com.xjgs.vo;
+
+import java.util.Date;
+
+/**
+ * 病历文件类
+ * */
+public class Archive_Detail {
+ private String id;
+ private String pdfPath;
+ private String masterId;
+ private Date uploadDateTime;
+ private String assortId;
+ private String source;
+ private String subAssort;
+ private String title;
+ private String flag;
+ private String sys;
+ public Archive_Detail(){}
+ public Archive_Detail(String id, String pdfPath, String masterId, Date uploadDateTime, String assortId, String source, String subAssort, String title, String flag, String sys) {
+ this.id = id;
+ this.pdfPath = pdfPath;
+ this.masterId = masterId;
+ this.uploadDateTime = uploadDateTime;
+ this.assortId = assortId;
+ this.source = source;
+ this.subAssort = subAssort;
+ this.title = title;
+ this.flag = flag;
+ this.sys = sys;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id == null ? null : id.trim();
+ }
+
+ public String getPdfPath() {
+ return pdfPath;
+ }
+
+ public void setPdfPath(String pdfPath) {
+ this.pdfPath = pdfPath == null ? null : pdfPath.trim();
+ }
+
+ public String getMasterId() {
+ return masterId;
+ }
+
+ public void setMasterId(String masterId) {
+ this.masterId = masterId == null ? null : masterId.trim();
+ }
+
+ public String getAssortId() {
+ return assortId;
+ }
+
+ public void setAssortId(String assortId) {
+ this.assortId = assortId == null ? null : assortId.trim();
+ }
+
+ public String getSource() {
+ return source;
+ }
+
+ public void setSource(String source) {
+ this.source = source == null ? null : source.trim();
+ }
+
+ public String getSubAssort() {
+ return subAssort;
+ }
+
+ public void setSubAssort(String subAssort) {
+ this.subAssort = subAssort == null ? null : subAssort.trim();
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title == null ? null : title.trim();
+ }
+
+ public String getFlag() {
+ return flag;
+ }
+
+ public void setFlag(String flag) {
+ this.flag = flag == null ? null : flag.trim();
+ }
+
+ public String getSys() {
+ return sys;
+ }
+
+ public void setSys(String sys) {
+ this.sys = sys == null ? null : sys.trim();
+ }
+
+ public Date getUploadDateTime() {
+ return uploadDateTime;
+ }
+
+ public void setUploadDateTime(Date uploadDateTime) {
+ this.uploadDateTime = uploadDateTime;
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/CommomVo.java b/src/main/java/com/xjgs/vo/CommomVo.java
new file mode 100644
index 0000000..0f9f868
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/CommomVo.java
@@ -0,0 +1,439 @@
+package com.xjgs.vo;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class CommomVo {
+ private String patientId;
+ private Short admissTimes;
+ private String inpatientNo;
+ private String name;
+ private String admissId;
+ private String sex;
+ private Short age;
+ private Short ageMonth;
+ private Short ageDay;
+ private String homeAddr;
+ private String nameCym;
+ private Date admissDate;
+ private Date disDate;
+ private Integer admissDays;
+ private String disDept;
+ private String isOper;
+ private String attending;
+ private String mainDiagName;
+ private String mainDisThing;
+ private String country;
+ private String birthAddr;
+ private String idCard;
+ private String job;
+ private String marriage;
+ private String homeTel;
+ private String homeZip;
+ private String workAddr;
+ private String workTel;
+ private String workZip;
+ private String linkman;
+ private String relation;
+ private String relAddr;
+ private String relTel;
+ private String payType;
+ private Date birthday;
+ private BigDecimal avoirdupois;
+ private String admissType;
+ private String admissDept;
+ private String admissWard;
+ private String changeDept;
+ private String disWard;
+ private String clinicDiag;
+ private String clinicName;
+ private String admissThing;
+ private String medicine;
+ private String isMedicine;
+ private String emitPathology;
+ private String deptDirector;
+ private String director;
+ private String admissDoctor;
+ private String refresher;
+ private String praxis;
+ private String coding;
+ private String quality;
+ private String control;
+ private String nurses;
+ private Date qualityDate;
+ private String bloodType;
+ private String rh;
+ public String getPatientId() {
+ return patientId;
+ }
+ public void setPatientId(String patientId) {
+ this.patientId = patientId == null ? null :
+ patientId.trim();
+ }
+ public String getCountry() {
+ return country;
+ }
+ public void setCountry(String country) {
+ this.country = country == null ? null : country.trim();
+ }
+ public String getBirthAddr() {
+ return birthAddr;
+ }
+ public void setBirthAddr(String birthAddr) {
+ this.birthAddr = birthAddr == null ? null :
+ birthAddr.trim();
+ }
+ public String getIdCard() {
+ return idCard;
+ }
+ public void setIdCard(String idCard) {
+ this.idCard = idCard == null ? null : idCard.trim();
+ }
+ public String getJob() {
+ return job;
+ }
+ public void setJob(String job) {
+ this.job = job == null ? null : job.trim();
+ }
+ public String getMarriage() {
+ return marriage;
+ }
+ public void setMarriage(String marriage) {
+ this.marriage = marriage == null ? null : marriage.trim();
+ }
+ public String getHomeTel() {
+ return homeTel;
+ }
+ public void setHomeTel(String homeTel) {
+ this.homeTel = homeTel == null ? null : homeTel.trim();
+ }
+ public String getHomeZip() {
+ return homeZip;
+ }
+ public void setHomeZip(String homeZip) {
+ this.homeZip = homeZip == null ? null : homeZip.trim();
+ }
+ public String getWorkAddr() {
+ return workAddr;
+ }
+ public void setWorkAddr(String workAddr) {
+ this.workAddr = workAddr == null ? null : workAddr.trim();
+ }
+ public String getWorkTel() {
+ return workTel;
+ }
+ public void setWorkTel(String workTel) {
+ this.workTel = workTel == null ? null : workTel.trim();
+ }
+ public String getWorkZip() {
+ return workZip;
+ }
+ public void setWorkZip(String workZip) {
+ this.workZip = workZip == null ? null : workZip.trim();
+ }
+ public String getLinkman() {
+ return linkman;
+ }
+ public void setLinkman(String linkman) {
+ this.linkman = linkman == null ? null : linkman.trim();
+ }
+ public String getRelation() {
+ return relation;
+ }
+ public void setRelation(String relation) {
+ this.relation = relation == null ? null : relation.trim();
+ }
+ public String getRelAddr() {
+ return relAddr;
+ }
+ public void setRelAddr(String relAddr) {
+ this.relAddr = relAddr == null ? null : relAddr.trim();
+ }
+ public String getRelTel() {
+ return relTel;
+ }
+ public void setRelTel(String relTel) {
+ this.relTel = relTel == null ? null : relTel.trim();
+ }
+ public String getPayType() {
+ return payType;
+ }
+ public void setPayType(String payType) {
+ this.payType = payType == null ? null : payType.trim();
+ }
+ public Date getBirthday() {
+ return birthday;
+ }
+ public void setBirthday(Date birthday) {
+ this.birthday = birthday;
+ }
+ public BigDecimal getAvoirdupois() {
+ return avoirdupois;
+ }
+ public void setAvoirdupois(BigDecimal avoirdupois) {
+ this.avoirdupois = avoirdupois;
+ }
+ public String getAdmissType() {
+ return admissType;
+ }
+ public void setAdmissType(String admissType) {
+ this.admissType = admissType == null ? null :
+ admissType.trim();
+ }
+ public String getAdmissDept() {
+ return admissDept;
+ }
+ public void setAdmissDept(String admissDept) {
+ this.admissDept = admissDept == null ? null :
+ admissDept.trim();
+ }
+ public String getAdmissWard() {
+ return admissWard;
+ }
+ public void setAdmissWard(String admissWard) {
+ this.admissWard = admissWard == null ? null :
+ admissWard.trim();
+ }
+ public String getChangeDept() {
+ return changeDept;
+ }
+ public void setChangeDept(String changeDept) {
+ this.changeDept = changeDept == null ? null :
+ changeDept.trim();
+ }
+ public String getDisWard() {
+ return disWard;
+ }
+ public void setDisWard(String disWard) {
+ this.disWard = disWard == null ? null : disWard.trim();
+ }
+ public String getClinicDiag() {
+ return clinicDiag;
+ }
+ public void setClinicDiag(String clinicDiag) {
+ this.clinicDiag = clinicDiag == null ? null :
+ clinicDiag.trim();
+ }
+ public String getClinicName() {
+ return clinicName;
+ }
+ public void setClinicName(String clinicName) {
+ this.clinicName = clinicName == null ? null :
+ clinicName.trim();
+ }
+ public String getAdmissThing() {
+ return admissThing;
+ }
+ public void setAdmissThing(String admissThing) {
+ this.admissThing = admissThing == null ? null :
+ admissThing.trim();
+ }
+ public String getMedicine() {
+ return medicine;
+ }
+ public void setMedicine(String medicine) {
+ this.medicine = medicine == null ? null : medicine.trim();
+ }
+ public String getIsMedicine() {
+ return isMedicine;
+ }
+ public void setIsMedicine(String isMedicine) {
+ this.isMedicine = isMedicine == null ? null :
+ isMedicine.trim();
+ }
+ public String getEmitPathology() {
+ return emitPathology;
+ }
+ public void setEmitPathology(String emitPathology) {
+ this.emitPathology = emitPathology == null ? null :
+ emitPathology.trim();
+ }
+ public String getDeptDirector() {
+ return deptDirector;
+ }
+ public void setDeptDirector(String deptDirector) {
+ this.deptDirector = deptDirector == null ? null :
+ deptDirector.trim();
+ }
+ public String getDirector() {
+ return director;
+ }
+ public void setDirector(String director) {
+ this.director = director == null ? null : director.trim();
+ }
+ public String getAdmissDoctor() {
+ return admissDoctor;
+ }
+ public void setAdmissDoctor(String admissDoctor) {
+ this.admissDoctor = admissDoctor == null ? null :
+ admissDoctor.trim();
+ }
+ public String getRefresher() {
+ return refresher;
+ }
+ public void setRefresher(String refresher) {
+ this.refresher = refresher == null ? null :
+ refresher.trim();
+ }
+ public String getPraxis() {
+ return praxis;
+ }
+ public void setPraxis(String praxis) {
+ this.praxis = praxis == null ? null : praxis.trim();
+ }
+ public String getCoding() {
+ return coding;
+ }
+ public void setCoding(String coding) {
+ this.coding = coding == null ? null : coding.trim();
+ }
+ public String getQuality() {
+ return quality;
+ }
+ public void setQuality(String quality) {
+ this.quality = quality == null ? null : quality.trim();
+ }
+ public String getControl() {
+ return control;
+ }
+ public void setControl(String control) {
+ this.control = control == null ? null : control.trim();
+ }
+ public String getNurses() {
+ return nurses;
+ }
+ public void setNurses(String nurses) {
+ this.nurses = nurses == null ? null : nurses.trim();
+ }
+ public Date getQualityDate() {
+ return qualityDate;
+ }
+ public void setQualityDate(Date qualityDate) {
+ this.qualityDate = qualityDate;
+ }
+ public String getBloodType() {
+ return bloodType;
+ }
+ public void setBloodType(String bloodType) {
+ this.bloodType = bloodType == null ? null :
+ bloodType.trim();
+ }
+ public String getRh() {
+ return rh;
+ }
+ public void setRh(String rh) {
+ this.rh = rh == null ? null : rh.trim();
+ }
+ public Short getAdmissTimes() {
+ return admissTimes;
+ }
+ public void setAdmissTimes(Short admissTimes) {
+ this.admissTimes = admissTimes;
+ }
+ public String getInpatientNo() {
+ return inpatientNo;
+ }
+ public void setInpatientNo(String inpatientNo) {
+ this.inpatientNo = inpatientNo == null ? null :
+ inpatientNo.trim();
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+ public String getAdmissId() {
+ return admissId;
+ }
+ public void setAdmissId(String admissId) {
+ this.admissId = admissId == null ? null : admissId.trim();
+ }
+ public String getSex() {
+ return sex;
+ }
+ public void setSex(String sex) {
+ this.sex = sex == null ? null : sex.trim();
+ }
+ public Short getAge() {
+ return age;
+ }
+ public void setAge(Short age) {
+ this.age = age;
+ }
+ public Short getAgeMonth() {
+ return ageMonth;
+ }
+ public void setAgeMonth(Short ageMonth) {
+ this.ageMonth = ageMonth;
+ }
+ public Short getAgeDay() {
+ return ageDay;
+ }
+ public void setAgeDay(Short ageDay) {
+ this.ageDay = ageDay;
+ }
+ public String getHomeAddr() {
+ return homeAddr;
+ }
+ public void setHomeAddr(String homeAddr) {
+ this.homeAddr = homeAddr == null ? null : homeAddr.trim();
+ }
+ public String getNameCym() {
+ return nameCym;
+ }
+ public void setNameCym(String nameCym) {
+ this.nameCym = nameCym == null ? null : nameCym.trim();
+ }
+ public Date getAdmissDate() {
+ return admissDate;
+ }
+ public void setAdmissDate(Date admissDate) {
+ this.admissDate = admissDate;
+ }
+ public Date getDisDate() {
+ return disDate;
+ }
+ public void setDisDate(Date disDate) {
+ this.disDate = disDate;
+ }
+ public Integer getAdmissDays() {
+ return admissDays;
+ }
+ public void setAdmissDays(Integer admissDays) {
+ this.admissDays = admissDays;
+ }
+ public String getDisDept() {
+ return disDept;
+ }
+ public void setDisDept(String disDept) {
+ this.disDept = disDept == null ? null : disDept.trim();
+ }
+ public String getIsOper() {
+ return isOper;
+ }
+ public void setIsOper(String isOper) {
+ this.isOper = isOper == null ? null : isOper.trim();
+ }
+ public String getAttending() {
+ return attending;
+ }
+ public void setAttending(String attending) {
+ this.attending = attending == null ? null :
+ attending.trim();
+ }
+ public String getMainDiagName() {
+ return mainDiagName;
+ }
+ public void setMainDiagName(String mainDiagName) {
+ this.mainDiagName = mainDiagName == null ? null :
+ mainDiagName.trim();
+ }
+ public String getMainDisThing() {
+ return mainDisThing;
+ }
+ public void setMainDisThing(String mainDisThing) {
+ this.mainDisThing = mainDisThing == null ? null :
+ mainDisThing.trim();
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/Dept.java b/src/main/java/com/xjgs/vo/Dept.java
new file mode 100644
index 0000000..f2f9ef5
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/Dept.java
@@ -0,0 +1,43 @@
+package com.xjgs.vo;
+
+/**
+ * 科室类
+ * */
+public class Dept {
+ private String fdeptid;
+ private String fdeptname;
+ private String flogcdate;
+ private String deptCode;
+
+ public String getFdeptid() {
+ return fdeptid;
+ }
+
+ public void setFdeptid(String fdeptid) {
+ this.fdeptid = fdeptid;
+ }
+
+ public String getFdeptname() {
+ return fdeptname;
+ }
+
+ public void setFdeptname(String fdeptname) {
+ this.fdeptname = fdeptname;
+ }
+
+ public String getFlogcdate() {
+ return flogcdate;
+ }
+
+ public void setFlogcdate(String flogcdate) {
+ this.flogcdate = flogcdate;
+ }
+
+ public String getDeptCode() {
+ return deptCode;
+ }
+
+ public void setDeptCode(String deptCode) {
+ this.deptCode = deptCode;
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/Employee.java b/src/main/java/com/xjgs/vo/Employee.java
new file mode 100644
index 0000000..e1e13dc
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/Employee.java
@@ -0,0 +1,79 @@
+package com.xjgs.vo;
+
+/**
+ * 用户类
+ * */
+public class Employee {
+ private String id;
+ private String fempid;
+ private String fempcode;
+ private String fempname;
+ private String fuserpwd;
+ private String flogcdate;
+ private String fadmdeptid;
+ private String fipdeptid;
+
+ public String getFempid() {
+ return fempid;
+ }
+
+ public void setFempid(String fempid) {
+ this.fempid = fempid;
+ }
+
+ public String getFempcode() {
+ return fempcode;
+ }
+
+ public void setFempcode(String fempcode) {
+ this.fempcode = fempcode;
+ }
+
+ public String getFempname() {
+ return fempname;
+ }
+
+ public void setFempname(String fempname) {
+ this.fempname = fempname;
+ }
+
+ public String getFuserpwd() {
+ return fuserpwd;
+ }
+
+ public void setFuserpwd(String fuserpwd) {
+ this.fuserpwd = fuserpwd;
+ }
+
+ public String getFlogcdate() {
+ return flogcdate;
+ }
+
+ public void setFlogcdate(String flogcdate) {
+ this.flogcdate = flogcdate;
+ }
+
+ public String getFadmdeptid() {
+ return fadmdeptid;
+ }
+
+ public void setFadmdeptid(String fadmdeptid) {
+ this.fadmdeptid = fadmdeptid;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getFipdeptid() {
+ return fipdeptid;
+ }
+
+ public void setFipdeptid(String fipdeptid) {
+ this.fipdeptid = fipdeptid;
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/EmrDictionary.java b/src/main/java/com/xjgs/vo/EmrDictionary.java
new file mode 100644
index 0000000..980d130
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/EmrDictionary.java
@@ -0,0 +1,190 @@
+package com.xjgs.vo;
+
+
+/**
+ * 字典类
+ * */
+public class EmrDictionary {
+
+ private long id;
+ private String typeCode;
+ private String typeName;
+ private String code;
+ private String name;
+ private String pyCode;
+ private String wbCode;
+ private String zipCode;
+ private String gbCode;
+ private long flag;
+ private String cComment;
+ private long parentId;
+ private long effective;
+ private String updater;
+ private String updateTime;
+ private String creater;
+ private String createTime;
+ private String remark;
+
+
+ public long getId() {
+ return id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+
+ public String getTypeCode() {
+ return typeCode;
+ }
+
+ public void setTypeCode(String typeCode) {
+ this.typeCode = typeCode;
+ }
+
+
+ public String getTypeName() {
+ return typeName;
+ }
+
+ public void setTypeName(String typeName) {
+ this.typeName = typeName;
+ }
+
+
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+
+ public String getPyCode() {
+ return pyCode;
+ }
+
+ public void setPyCode(String pyCode) {
+ this.pyCode = pyCode;
+ }
+
+
+ public String getWbCode() {
+ return wbCode;
+ }
+
+ public void setWbCode(String wbCode) {
+ this.wbCode = wbCode;
+ }
+
+
+ public String getZipCode() {
+ return zipCode;
+ }
+
+ public void setZipCode(String zipCode) {
+ this.zipCode = zipCode;
+ }
+
+
+ public String getGbCode() {
+ return gbCode;
+ }
+
+ public void setGbCode(String gbCode) {
+ this.gbCode = gbCode;
+ }
+
+
+ public long getFlag() {
+ return flag;
+ }
+
+ public void setFlag(long flag) {
+ this.flag = flag;
+ }
+
+
+ public String getCComment() {
+ return cComment;
+ }
+
+ public void setCComment(String cComment) {
+ this.cComment = cComment;
+ }
+
+
+ public long getParentId() {
+ return parentId;
+ }
+
+ public void setParentId(long parentId) {
+ this.parentId = parentId;
+ }
+
+
+ public long getEffective() {
+ return effective;
+ }
+
+ public void setEffective(long effective) {
+ this.effective = effective;
+ }
+
+
+ public String getUpdater() {
+ return updater;
+ }
+
+ public void setUpdater(String updater) {
+ this.updater = updater;
+ }
+
+
+ public String getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(String updateTime) {
+ this.updateTime = updateTime;
+ }
+
+
+ public String getCreater() {
+ return creater;
+ }
+
+ public void setCreater(String creater) {
+ this.creater = creater;
+ }
+
+
+ public String getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(String createTime) {
+ this.createTime = createTime;
+ }
+
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/MasterContentVO.java b/src/main/java/com/xjgs/vo/MasterContentVO.java
new file mode 100644
index 0000000..5c77f6e
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/MasterContentVO.java
@@ -0,0 +1,22 @@
+package com.xjgs.vo;
+
+public class MasterContentVO {
+ private String content;
+ private String patientId;
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getPatientId() {
+ return patientId;
+ }
+
+ public void setPatientId(String patientId) {
+ this.patientId = patientId;
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/PowerDept.java b/src/main/java/com/xjgs/vo/PowerDept.java
new file mode 100644
index 0000000..c9289fe
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/PowerDept.java
@@ -0,0 +1,109 @@
+package com.xjgs.vo;
+
+/**
+ * 权限系统部门类
+ * */
+public class PowerDept {
+
+ private long deptId;
+ private String deptName;
+ private long dictId;
+ private long effective;
+ private String createDate;
+ private String creater;
+ private String updateDate;
+ private String updater;
+ private String remark;
+ private String deptCode;
+
+
+ public long getDeptId() {
+ return deptId;
+ }
+
+ public void setDeptId(long deptId) {
+ this.deptId = deptId;
+ }
+
+
+ public String getDeptName() {
+ return deptName;
+ }
+
+ public void setDeptName(String deptName) {
+ this.deptName = deptName;
+ }
+
+
+ public long getDictId() {
+ return dictId;
+ }
+
+ public void setDictId(long dictId) {
+ this.dictId = dictId;
+ }
+
+
+ public long getEffective() {
+ return effective;
+ }
+
+ public void setEffective(long effective) {
+ this.effective = effective;
+ }
+
+
+ public String getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(String createDate) {
+ this.createDate = createDate;
+ }
+
+
+ public String getCreater() {
+ return creater;
+ }
+
+ public void setCreater(String creater) {
+ this.creater = creater;
+ }
+
+
+ public String getUpdateDate() {
+ return updateDate;
+ }
+
+ public void setUpdateDate(String updateDate) {
+ this.updateDate = updateDate;
+ }
+
+
+ public String getUpdater() {
+ return updater;
+ }
+
+ public void setUpdater(String updater) {
+ this.updater = updater;
+ }
+
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+
+ public String getDeptCode() {
+ return deptCode;
+ }
+
+ public void setDeptCode(String deptCode) {
+ this.deptCode = deptCode;
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/TAdmissThing.java b/src/main/java/com/xjgs/vo/TAdmissThing.java
new file mode 100644
index 0000000..f672b12
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/TAdmissThing.java
@@ -0,0 +1,830 @@
+package com.xjgs.vo;
+
+
+/**
+ * 病人住院信息表
+ * */
+public class TAdmissThing {
+
+ private String patientId;
+ private java.sql.Timestamp admissDate;
+ private String admissDept;
+ private String admissWard;
+ private String changeDept;
+ private String changeWard;
+ private java.sql.Timestamp disDate;
+ private String disDept;
+ private String disWard;
+ private String clinicDiag;
+ private String clinicName;
+ private String admissThing;
+ private String admissDiag;
+ private String admissName;
+ private java.sql.Timestamp affirmDate;
+ private String diagFlag;
+ private String clinicDoctor;
+ private String disType;
+ private String diagMode;
+ private String otherDiag;
+ private String admissType;
+ private java.sql.Timestamp clinicDate;
+ private String operator;
+ private String admissDoctor;
+ private String disDoctor;
+ private String clinicDiag2;
+ private String clinicName2;
+ private String admissDiag2;
+ private String admissName2;
+ private String admissDiag3;
+ private String admissName3;
+ private String clinicHerbDiag;
+ private String clinicHerbName;
+ private String admissHerbDiag;
+ private String admissHerbName;
+ private java.sql.Timestamp changeDate;
+ private String modeSelf;
+ private String outDiag;
+ private String clinicIdentDiag;
+ private String clinicIdentName;
+ private String admissIdentDiag;
+ private String admissIdentName;
+ private long weightBabyBorn;
+ private long weightBabyAdmit;
+ private String chargeNurse;
+ private String dischargeDisp;
+ private String dischargeDispTo;
+ private String hospitalAgainPlan;
+ private String hospitalAgainPurpose;
+ private long comaTimeDay;
+ private long comaTimeHour;
+ private long comaTimeMin;
+ private long comaTimeHospitalDay;
+ private long comaTimeHospitalHour;
+ private long comaTimeHospitalMin;
+ private String intensiveCare;
+ private long intensiveCareTimeDay;
+ private long intensiveCareTimeHour;
+ private String singleDiseaseMgr;
+ private String clinicPathMgr;
+ private String drgsMgr;
+ private String useAntibiotic;
+ private String bacterialCulture;
+ private String notifiableDiseases;
+ private String tumourStage;
+ private String tumourStageT;
+ private String tumourStageN;
+ private String tumourStageM;
+ private long apgarScore;
+ private String nowLivingCode;
+ private String nowLivingPlace;
+ private String leantypeRecover;
+ private String inHosStatus;
+ private String breathingMachineTime;
+ private String transferInHospital;
+ private String transFlag;
+ private String admissionWardCode;
+ private String wardDischargeFrom;
+ private String transferedDept;
+ private String patAdmCondition;
+ private long finDays;
+ private String lyfs;
+
+
+ public String getPatientId() {
+ return patientId;
+ }
+
+ public void setPatientId(String patientId) {
+ this.patientId = patientId;
+ }
+
+
+ public java.sql.Timestamp getAdmissDate() {
+ return admissDate;
+ }
+
+ public void setAdmissDate(java.sql.Timestamp admissDate) {
+ this.admissDate = admissDate;
+ }
+
+
+ public String getAdmissDept() {
+ return admissDept;
+ }
+
+ public void setAdmissDept(String admissDept) {
+ this.admissDept = admissDept;
+ }
+
+
+ public String getAdmissWard() {
+ return admissWard;
+ }
+
+ public void setAdmissWard(String admissWard) {
+ this.admissWard = admissWard;
+ }
+
+
+ public String getChangeDept() {
+ return changeDept;
+ }
+
+ public void setChangeDept(String changeDept) {
+ this.changeDept = changeDept;
+ }
+
+
+ public String getChangeWard() {
+ return changeWard;
+ }
+
+ public void setChangeWard(String changeWard) {
+ this.changeWard = changeWard;
+ }
+
+
+ public java.sql.Timestamp getDisDate() {
+ return disDate;
+ }
+
+ public void setDisDate(java.sql.Timestamp disDate) {
+ this.disDate = disDate;
+ }
+
+
+ public String getDisDept() {
+ return disDept;
+ }
+
+ public void setDisDept(String disDept) {
+ this.disDept = disDept;
+ }
+
+
+ public String getDisWard() {
+ return disWard;
+ }
+
+ public void setDisWard(String disWard) {
+ this.disWard = disWard;
+ }
+
+
+ public String getClinicDiag() {
+ return clinicDiag;
+ }
+
+ public void setClinicDiag(String clinicDiag) {
+ this.clinicDiag = clinicDiag;
+ }
+
+
+ public String getClinicName() {
+ return clinicName;
+ }
+
+ public void setClinicName(String clinicName) {
+ this.clinicName = clinicName;
+ }
+
+
+ public String getAdmissThing() {
+ return admissThing;
+ }
+
+ public void setAdmissThing(String admissThing) {
+ this.admissThing = admissThing;
+ }
+
+
+ public String getAdmissDiag() {
+ return admissDiag;
+ }
+
+ public void setAdmissDiag(String admissDiag) {
+ this.admissDiag = admissDiag;
+ }
+
+
+ public String getAdmissName() {
+ return admissName;
+ }
+
+ public void setAdmissName(String admissName) {
+ this.admissName = admissName;
+ }
+
+
+ public java.sql.Timestamp getAffirmDate() {
+ return affirmDate;
+ }
+
+ public void setAffirmDate(java.sql.Timestamp affirmDate) {
+ this.affirmDate = affirmDate;
+ }
+
+
+ public String getDiagFlag() {
+ return diagFlag;
+ }
+
+ public void setDiagFlag(String diagFlag) {
+ this.diagFlag = diagFlag;
+ }
+
+
+ public String getClinicDoctor() {
+ return clinicDoctor;
+ }
+
+ public void setClinicDoctor(String clinicDoctor) {
+ this.clinicDoctor = clinicDoctor;
+ }
+
+
+ public String getDisType() {
+ return disType;
+ }
+
+ public void setDisType(String disType) {
+ this.disType = disType;
+ }
+
+
+ public String getDiagMode() {
+ return diagMode;
+ }
+
+ public void setDiagMode(String diagMode) {
+ this.diagMode = diagMode;
+ }
+
+
+ public String getOtherDiag() {
+ return otherDiag;
+ }
+
+ public void setOtherDiag(String otherDiag) {
+ this.otherDiag = otherDiag;
+ }
+
+
+ public String getAdmissType() {
+ return admissType;
+ }
+
+ public void setAdmissType(String admissType) {
+ this.admissType = admissType;
+ }
+
+
+ public java.sql.Timestamp getClinicDate() {
+ return clinicDate;
+ }
+
+ public void setClinicDate(java.sql.Timestamp clinicDate) {
+ this.clinicDate = clinicDate;
+ }
+
+
+ public String getOperator() {
+ return operator;
+ }
+
+ public void setOperator(String operator) {
+ this.operator = operator;
+ }
+
+
+ public String getAdmissDoctor() {
+ return admissDoctor;
+ }
+
+ public void setAdmissDoctor(String admissDoctor) {
+ this.admissDoctor = admissDoctor;
+ }
+
+
+ public String getDisDoctor() {
+ return disDoctor;
+ }
+
+ public void setDisDoctor(String disDoctor) {
+ this.disDoctor = disDoctor;
+ }
+
+
+ public String getClinicDiag2() {
+ return clinicDiag2;
+ }
+
+ public void setClinicDiag2(String clinicDiag2) {
+ this.clinicDiag2 = clinicDiag2;
+ }
+
+
+ public String getClinicName2() {
+ return clinicName2;
+ }
+
+ public void setClinicName2(String clinicName2) {
+ this.clinicName2 = clinicName2;
+ }
+
+
+ public String getAdmissDiag2() {
+ return admissDiag2;
+ }
+
+ public void setAdmissDiag2(String admissDiag2) {
+ this.admissDiag2 = admissDiag2;
+ }
+
+
+ public String getAdmissName2() {
+ return admissName2;
+ }
+
+ public void setAdmissName2(String admissName2) {
+ this.admissName2 = admissName2;
+ }
+
+
+ public String getAdmissDiag3() {
+ return admissDiag3;
+ }
+
+ public void setAdmissDiag3(String admissDiag3) {
+ this.admissDiag3 = admissDiag3;
+ }
+
+
+ public String getAdmissName3() {
+ return admissName3;
+ }
+
+ public void setAdmissName3(String admissName3) {
+ this.admissName3 = admissName3;
+ }
+
+
+ public String getClinicHerbDiag() {
+ return clinicHerbDiag;
+ }
+
+ public void setClinicHerbDiag(String clinicHerbDiag) {
+ this.clinicHerbDiag = clinicHerbDiag;
+ }
+
+
+ public String getClinicHerbName() {
+ return clinicHerbName;
+ }
+
+ public void setClinicHerbName(String clinicHerbName) {
+ this.clinicHerbName = clinicHerbName;
+ }
+
+
+ public String getAdmissHerbDiag() {
+ return admissHerbDiag;
+ }
+
+ public void setAdmissHerbDiag(String admissHerbDiag) {
+ this.admissHerbDiag = admissHerbDiag;
+ }
+
+
+ public String getAdmissHerbName() {
+ return admissHerbName;
+ }
+
+ public void setAdmissHerbName(String admissHerbName) {
+ this.admissHerbName = admissHerbName;
+ }
+
+
+ public java.sql.Timestamp getChangeDate() {
+ return changeDate;
+ }
+
+ public void setChangeDate(java.sql.Timestamp changeDate) {
+ this.changeDate = changeDate;
+ }
+
+
+ public String getModeSelf() {
+ return modeSelf;
+ }
+
+ public void setModeSelf(String modeSelf) {
+ this.modeSelf = modeSelf;
+ }
+
+
+ public String getOutDiag() {
+ return outDiag;
+ }
+
+ public void setOutDiag(String outDiag) {
+ this.outDiag = outDiag;
+ }
+
+
+ public String getClinicIdentDiag() {
+ return clinicIdentDiag;
+ }
+
+ public void setClinicIdentDiag(String clinicIdentDiag) {
+ this.clinicIdentDiag = clinicIdentDiag;
+ }
+
+
+ public String getClinicIdentName() {
+ return clinicIdentName;
+ }
+
+ public void setClinicIdentName(String clinicIdentName) {
+ this.clinicIdentName = clinicIdentName;
+ }
+
+
+ public String getAdmissIdentDiag() {
+ return admissIdentDiag;
+ }
+
+ public void setAdmissIdentDiag(String admissIdentDiag) {
+ this.admissIdentDiag = admissIdentDiag;
+ }
+
+
+ public String getAdmissIdentName() {
+ return admissIdentName;
+ }
+
+ public void setAdmissIdentName(String admissIdentName) {
+ this.admissIdentName = admissIdentName;
+ }
+
+
+ public long getWeightBabyBorn() {
+ return weightBabyBorn;
+ }
+
+ public void setWeightBabyBorn(long weightBabyBorn) {
+ this.weightBabyBorn = weightBabyBorn;
+ }
+
+
+ public long getWeightBabyAdmit() {
+ return weightBabyAdmit;
+ }
+
+ public void setWeightBabyAdmit(long weightBabyAdmit) {
+ this.weightBabyAdmit = weightBabyAdmit;
+ }
+
+
+ public String getChargeNurse() {
+ return chargeNurse;
+ }
+
+ public void setChargeNurse(String chargeNurse) {
+ this.chargeNurse = chargeNurse;
+ }
+
+
+ public String getDischargeDisp() {
+ return dischargeDisp;
+ }
+
+ public void setDischargeDisp(String dischargeDisp) {
+ this.dischargeDisp = dischargeDisp;
+ }
+
+
+ public String getDischargeDispTo() {
+ return dischargeDispTo;
+ }
+
+ public void setDischargeDispTo(String dischargeDispTo) {
+ this.dischargeDispTo = dischargeDispTo;
+ }
+
+
+ public String getHospitalAgainPlan() {
+ return hospitalAgainPlan;
+ }
+
+ public void setHospitalAgainPlan(String hospitalAgainPlan) {
+ this.hospitalAgainPlan = hospitalAgainPlan;
+ }
+
+
+ public String getHospitalAgainPurpose() {
+ return hospitalAgainPurpose;
+ }
+
+ public void setHospitalAgainPurpose(String hospitalAgainPurpose) {
+ this.hospitalAgainPurpose = hospitalAgainPurpose;
+ }
+
+
+ public long getComaTimeDay() {
+ return comaTimeDay;
+ }
+
+ public void setComaTimeDay(long comaTimeDay) {
+ this.comaTimeDay = comaTimeDay;
+ }
+
+
+ public long getComaTimeHour() {
+ return comaTimeHour;
+ }
+
+ public void setComaTimeHour(long comaTimeHour) {
+ this.comaTimeHour = comaTimeHour;
+ }
+
+
+ public long getComaTimeMin() {
+ return comaTimeMin;
+ }
+
+ public void setComaTimeMin(long comaTimeMin) {
+ this.comaTimeMin = comaTimeMin;
+ }
+
+
+ public long getComaTimeHospitalDay() {
+ return comaTimeHospitalDay;
+ }
+
+ public void setComaTimeHospitalDay(long comaTimeHospitalDay) {
+ this.comaTimeHospitalDay = comaTimeHospitalDay;
+ }
+
+
+ public long getComaTimeHospitalHour() {
+ return comaTimeHospitalHour;
+ }
+
+ public void setComaTimeHospitalHour(long comaTimeHospitalHour) {
+ this.comaTimeHospitalHour = comaTimeHospitalHour;
+ }
+
+
+ public long getComaTimeHospitalMin() {
+ return comaTimeHospitalMin;
+ }
+
+ public void setComaTimeHospitalMin(long comaTimeHospitalMin) {
+ this.comaTimeHospitalMin = comaTimeHospitalMin;
+ }
+
+
+ public String getIntensiveCare() {
+ return intensiveCare;
+ }
+
+ public void setIntensiveCare(String intensiveCare) {
+ this.intensiveCare = intensiveCare;
+ }
+
+
+ public long getIntensiveCareTimeDay() {
+ return intensiveCareTimeDay;
+ }
+
+ public void setIntensiveCareTimeDay(long intensiveCareTimeDay) {
+ this.intensiveCareTimeDay = intensiveCareTimeDay;
+ }
+
+
+ public long getIntensiveCareTimeHour() {
+ return intensiveCareTimeHour;
+ }
+
+ public void setIntensiveCareTimeHour(long intensiveCareTimeHour) {
+ this.intensiveCareTimeHour = intensiveCareTimeHour;
+ }
+
+
+ public String getSingleDiseaseMgr() {
+ return singleDiseaseMgr;
+ }
+
+ public void setSingleDiseaseMgr(String singleDiseaseMgr) {
+ this.singleDiseaseMgr = singleDiseaseMgr;
+ }
+
+
+ public String getClinicPathMgr() {
+ return clinicPathMgr;
+ }
+
+ public void setClinicPathMgr(String clinicPathMgr) {
+ this.clinicPathMgr = clinicPathMgr;
+ }
+
+
+ public String getDrgsMgr() {
+ return drgsMgr;
+ }
+
+ public void setDrgsMgr(String drgsMgr) {
+ this.drgsMgr = drgsMgr;
+ }
+
+
+ public String getUseAntibiotic() {
+ return useAntibiotic;
+ }
+
+ public void setUseAntibiotic(String useAntibiotic) {
+ this.useAntibiotic = useAntibiotic;
+ }
+
+
+ public String getBacterialCulture() {
+ return bacterialCulture;
+ }
+
+ public void setBacterialCulture(String bacterialCulture) {
+ this.bacterialCulture = bacterialCulture;
+ }
+
+
+ public String getNotifiableDiseases() {
+ return notifiableDiseases;
+ }
+
+ public void setNotifiableDiseases(String notifiableDiseases) {
+ this.notifiableDiseases = notifiableDiseases;
+ }
+
+
+ public String getTumourStage() {
+ return tumourStage;
+ }
+
+ public void setTumourStage(String tumourStage) {
+ this.tumourStage = tumourStage;
+ }
+
+
+ public String getTumourStageT() {
+ return tumourStageT;
+ }
+
+ public void setTumourStageT(String tumourStageT) {
+ this.tumourStageT = tumourStageT;
+ }
+
+
+ public String getTumourStageN() {
+ return tumourStageN;
+ }
+
+ public void setTumourStageN(String tumourStageN) {
+ this.tumourStageN = tumourStageN;
+ }
+
+
+ public String getTumourStageM() {
+ return tumourStageM;
+ }
+
+ public void setTumourStageM(String tumourStageM) {
+ this.tumourStageM = tumourStageM;
+ }
+
+
+ public long getApgarScore() {
+ return apgarScore;
+ }
+
+ public void setApgarScore(long apgarScore) {
+ this.apgarScore = apgarScore;
+ }
+
+
+ public String getNowLivingCode() {
+ return nowLivingCode;
+ }
+
+ public void setNowLivingCode(String nowLivingCode) {
+ this.nowLivingCode = nowLivingCode;
+ }
+
+
+ public String getNowLivingPlace() {
+ return nowLivingPlace;
+ }
+
+ public void setNowLivingPlace(String nowLivingPlace) {
+ this.nowLivingPlace = nowLivingPlace;
+ }
+
+
+ public String getLeantypeRecover() {
+ return leantypeRecover;
+ }
+
+ public void setLeantypeRecover(String leantypeRecover) {
+ this.leantypeRecover = leantypeRecover;
+ }
+
+
+ public String getInHosStatus() {
+ return inHosStatus;
+ }
+
+ public void setInHosStatus(String inHosStatus) {
+ this.inHosStatus = inHosStatus;
+ }
+
+
+ public String getBreathingMachineTime() {
+ return breathingMachineTime;
+ }
+
+ public void setBreathingMachineTime(String breathingMachineTime) {
+ this.breathingMachineTime = breathingMachineTime;
+ }
+
+
+ public String getTransferInHospital() {
+ return transferInHospital;
+ }
+
+ public void setTransferInHospital(String transferInHospital) {
+ this.transferInHospital = transferInHospital;
+ }
+
+
+ public String getTransFlag() {
+ return transFlag;
+ }
+
+ public void setTransFlag(String transFlag) {
+ this.transFlag = transFlag;
+ }
+
+
+ public String getAdmissionWardCode() {
+ return admissionWardCode;
+ }
+
+ public void setAdmissionWardCode(String admissionWardCode) {
+ this.admissionWardCode = admissionWardCode;
+ }
+
+
+ public String getWardDischargeFrom() {
+ return wardDischargeFrom;
+ }
+
+ public void setWardDischargeFrom(String wardDischargeFrom) {
+ this.wardDischargeFrom = wardDischargeFrom;
+ }
+
+
+ public String getTransferedDept() {
+ return transferedDept;
+ }
+
+ public void setTransferedDept(String transferedDept) {
+ this.transferedDept = transferedDept;
+ }
+
+
+ public String getPatAdmCondition() {
+ return patAdmCondition;
+ }
+
+ public void setPatAdmCondition(String patAdmCondition) {
+ this.patAdmCondition = patAdmCondition;
+ }
+
+
+ public long getFinDays() {
+ return finDays;
+ }
+
+ public void setFinDays(long finDays) {
+ this.finDays = finDays;
+ }
+
+
+ public String getLyfs() {
+ return lyfs;
+ }
+
+ public void setLyfs(String lyfs) {
+ this.lyfs = lyfs;
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/TBaby.java b/src/main/java/com/xjgs/vo/TBaby.java
new file mode 100644
index 0000000..31be567
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/TBaby.java
@@ -0,0 +1,180 @@
+package com.xjgs.vo;
+
+
+/**
+ * 婴儿表
+ * */
+public class TBaby {
+
+ private String patientId;
+ private long fetationTimes;
+ private long childbirthTimes;
+ private java.sql.Timestamp childbirthTime;
+ private String childbirthMothed;
+ private String sex;
+ private double head;
+ private double chest;
+ private double avoirdupois;
+ private double stature;
+ private String diagType;
+ private String diagCode;
+ private String diagName;
+ private String father;
+ private String idCard;
+ private String workAddr;
+ private String homeAddr;
+
+
+ public String getPatientId() {
+ return patientId;
+ }
+
+ public void setPatientId(String patientId) {
+ this.patientId = patientId;
+ }
+
+
+ public long getFetationTimes() {
+ return fetationTimes;
+ }
+
+ public void setFetationTimes(long fetationTimes) {
+ this.fetationTimes = fetationTimes;
+ }
+
+
+ public long getChildbirthTimes() {
+ return childbirthTimes;
+ }
+
+ public void setChildbirthTimes(long childbirthTimes) {
+ this.childbirthTimes = childbirthTimes;
+ }
+
+
+ public java.sql.Timestamp getChildbirthTime() {
+ return childbirthTime;
+ }
+
+ public void setChildbirthTime(java.sql.Timestamp childbirthTime) {
+ this.childbirthTime = childbirthTime;
+ }
+
+
+ public String getChildbirthMothed() {
+ return childbirthMothed;
+ }
+
+ public void setChildbirthMothed(String childbirthMothed) {
+ this.childbirthMothed = childbirthMothed;
+ }
+
+
+ public String getSex() {
+ return sex;
+ }
+
+ public void setSex(String sex) {
+ this.sex = sex;
+ }
+
+
+ public double getHead() {
+ return head;
+ }
+
+ public void setHead(double head) {
+ this.head = head;
+ }
+
+
+ public double getChest() {
+ return chest;
+ }
+
+ public void setChest(double chest) {
+ this.chest = chest;
+ }
+
+
+ public double getAvoirdupois() {
+ return avoirdupois;
+ }
+
+ public void setAvoirdupois(double avoirdupois) {
+ this.avoirdupois = avoirdupois;
+ }
+
+
+ public double getStature() {
+ return stature;
+ }
+
+ public void setStature(double stature) {
+ this.stature = stature;
+ }
+
+
+ public String getDiagType() {
+ return diagType;
+ }
+
+ public void setDiagType(String diagType) {
+ this.diagType = diagType;
+ }
+
+
+ public String getDiagCode() {
+ return diagCode;
+ }
+
+ public void setDiagCode(String diagCode) {
+ this.diagCode = diagCode;
+ }
+
+
+ public String getDiagName() {
+ return diagName;
+ }
+
+ public void setDiagName(String diagName) {
+ this.diagName = diagName;
+ }
+
+
+ public String getFather() {
+ return father;
+ }
+
+ public void setFather(String father) {
+ this.father = father;
+ }
+
+
+ public String getIdCard() {
+ return idCard;
+ }
+
+ public void setIdCard(String idCard) {
+ this.idCard = idCard;
+ }
+
+
+ public String getWorkAddr() {
+ return workAddr;
+ }
+
+ public void setWorkAddr(String workAddr) {
+ this.workAddr = workAddr;
+ }
+
+
+ public String getHomeAddr() {
+ return homeAddr;
+ }
+
+ public void setHomeAddr(String homeAddr) {
+ this.homeAddr = homeAddr;
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/TBasic.java b/src/main/java/com/xjgs/vo/TBasic.java
new file mode 100644
index 0000000..cd05921
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/TBasic.java
@@ -0,0 +1,560 @@
+package com.xjgs.vo;
+
+
+/**
+ * 病人基本信息表
+ * */
+public class TBasic {
+
+ private String patientId;
+ private String baseMedicare;
+ private String otherMedicare;
+ private String payType;
+ private String bedNo;
+ private String clinicId;
+ private String admissId;
+ private String inpatientNo;
+ private long admissTimes;
+ private String name;
+ private String sex;
+ private java.sql.Timestamp birthday;
+ private long age;
+ private long ageMonth;
+ private long ageDay;
+ private String marriage;
+ private String job;
+ private String birthAddr;
+ private String nation;
+ private String country;
+ private String idCard;
+ private String workAddr;
+ private String workTel;
+ private String workZip;
+ private String homeAddr;
+ private String homeTel;
+ private String homeZip;
+ private String linkman;
+ private String relation;
+ private String relAddr;
+ private String relTel;
+ private String mAddr;
+ private String ph;
+ private String gdh;
+ private String operCode;
+ private String operName;
+ private java.sql.Timestamp operDate;
+ private String scanId;
+ private long mirId;
+ private String topUnit;
+ private String persennlType;
+ private String duty;
+ private String serviceSystemIndicator;
+ private String ident;
+ private String workingStatus;
+ private String relZip;
+ private String patientOrigin;
+ private String managementCode;
+ private String namePy;
+ private java.sql.Timestamp createDate;
+ private String nameCym;
+ private String healthCard;
+ private String birthPlaceName;
+ private String nativePlace;
+ private String fzyid;
+
+
+ public String getPatientId() {
+ return patientId;
+ }
+
+ public void setPatientId(String patientId) {
+ this.patientId = patientId;
+ }
+
+
+ public String getBaseMedicare() {
+ return baseMedicare;
+ }
+
+ public void setBaseMedicare(String baseMedicare) {
+ this.baseMedicare = baseMedicare;
+ }
+
+
+ public String getOtherMedicare() {
+ return otherMedicare;
+ }
+
+ public void setOtherMedicare(String otherMedicare) {
+ this.otherMedicare = otherMedicare;
+ }
+
+
+ public String getPayType() {
+ return payType;
+ }
+
+ public void setPayType(String payType) {
+ this.payType = payType;
+ }
+
+
+ public String getBedNo() {
+ return bedNo;
+ }
+
+ public void setBedNo(String bedNo) {
+ this.bedNo = bedNo;
+ }
+
+
+ public String getClinicId() {
+ return clinicId;
+ }
+
+ public void setClinicId(String clinicId) {
+ this.clinicId = clinicId;
+ }
+
+
+ public String getAdmissId() {
+ return admissId;
+ }
+
+ public void setAdmissId(String admissId) {
+ this.admissId = admissId;
+ }
+
+
+ public String getInpatientNo() {
+ return inpatientNo;
+ }
+
+ public void setInpatientNo(String inpatientNo) {
+ this.inpatientNo = inpatientNo;
+ }
+
+
+ public long getAdmissTimes() {
+ return admissTimes;
+ }
+
+ public void setAdmissTimes(long admissTimes) {
+ this.admissTimes = admissTimes;
+ }
+
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+
+ public String getSex() {
+ return sex;
+ }
+
+ public void setSex(String sex) {
+ this.sex = sex;
+ }
+
+
+ public java.sql.Timestamp getBirthday() {
+ return birthday;
+ }
+
+ public void setBirthday(java.sql.Timestamp birthday) {
+ this.birthday = birthday;
+ }
+
+
+ public long getAge() {
+ return age;
+ }
+
+ public void setAge(long age) {
+ this.age = age;
+ }
+
+
+ public long getAgeMonth() {
+ return ageMonth;
+ }
+
+ public void setAgeMonth(long ageMonth) {
+ this.ageMonth = ageMonth;
+ }
+
+
+ public long getAgeDay() {
+ return ageDay;
+ }
+
+ public void setAgeDay(long ageDay) {
+ this.ageDay = ageDay;
+ }
+
+
+ public String getMarriage() {
+ return marriage;
+ }
+
+ public void setMarriage(String marriage) {
+ this.marriage = marriage;
+ }
+
+
+ public String getJob() {
+ return job;
+ }
+
+ public void setJob(String job) {
+ this.job = job;
+ }
+
+
+ public String getBirthAddr() {
+ return birthAddr;
+ }
+
+ public void setBirthAddr(String birthAddr) {
+ this.birthAddr = birthAddr;
+ }
+
+
+ public String getNation() {
+ return nation;
+ }
+
+ public void setNation(String nation) {
+ this.nation = nation;
+ }
+
+
+ public String getCountry() {
+ return country;
+ }
+
+ public void setCountry(String country) {
+ this.country = country;
+ }
+
+
+ public String getIdCard() {
+ return idCard;
+ }
+
+ public void setIdCard(String idCard) {
+ this.idCard = idCard;
+ }
+
+
+ public String getWorkAddr() {
+ return workAddr;
+ }
+
+ public void setWorkAddr(String workAddr) {
+ this.workAddr = workAddr;
+ }
+
+
+ public String getWorkTel() {
+ return workTel;
+ }
+
+ public void setWorkTel(String workTel) {
+ this.workTel = workTel;
+ }
+
+
+ public String getWorkZip() {
+ return workZip;
+ }
+
+ public void setWorkZip(String workZip) {
+ this.workZip = workZip;
+ }
+
+
+ public String getHomeAddr() {
+ return homeAddr;
+ }
+
+ public void setHomeAddr(String homeAddr) {
+ this.homeAddr = homeAddr;
+ }
+
+
+ public String getHomeTel() {
+ return homeTel;
+ }
+
+ public void setHomeTel(String homeTel) {
+ this.homeTel = homeTel;
+ }
+
+
+ public String getHomeZip() {
+ return homeZip;
+ }
+
+ public void setHomeZip(String homeZip) {
+ this.homeZip = homeZip;
+ }
+
+
+ public String getLinkman() {
+ return linkman;
+ }
+
+ public void setLinkman(String linkman) {
+ this.linkman = linkman;
+ }
+
+
+ public String getRelation() {
+ return relation;
+ }
+
+ public void setRelation(String relation) {
+ this.relation = relation;
+ }
+
+
+ public String getRelAddr() {
+ return relAddr;
+ }
+
+ public void setRelAddr(String relAddr) {
+ this.relAddr = relAddr;
+ }
+
+
+ public String getRelTel() {
+ return relTel;
+ }
+
+ public void setRelTel(String relTel) {
+ this.relTel = relTel;
+ }
+
+
+ public String getMAddr() {
+ return mAddr;
+ }
+
+ public void setMAddr(String mAddr) {
+ this.mAddr = mAddr;
+ }
+
+
+ public String getPh() {
+ return ph;
+ }
+
+ public void setPh(String ph) {
+ this.ph = ph;
+ }
+
+
+ public String getGdh() {
+ return gdh;
+ }
+
+ public void setGdh(String gdh) {
+ this.gdh = gdh;
+ }
+
+
+ public String getOperCode() {
+ return operCode;
+ }
+
+ public void setOperCode(String operCode) {
+ this.operCode = operCode;
+ }
+
+
+ public String getOperName() {
+ return operName;
+ }
+
+ public void setOperName(String operName) {
+ this.operName = operName;
+ }
+
+
+ public java.sql.Timestamp getOperDate() {
+ return operDate;
+ }
+
+ public void setOperDate(java.sql.Timestamp operDate) {
+ this.operDate = operDate;
+ }
+
+
+ public String getScanId() {
+ return scanId;
+ }
+
+ public void setScanId(String scanId) {
+ this.scanId = scanId;
+ }
+
+
+ public long getMirId() {
+ return mirId;
+ }
+
+ public void setMirId(long mirId) {
+ this.mirId = mirId;
+ }
+
+
+ public String getTopUnit() {
+ return topUnit;
+ }
+
+ public void setTopUnit(String topUnit) {
+ this.topUnit = topUnit;
+ }
+
+
+ public String getPersennlType() {
+ return persennlType;
+ }
+
+ public void setPersennlType(String persennlType) {
+ this.persennlType = persennlType;
+ }
+
+
+ public String getDuty() {
+ return duty;
+ }
+
+ public void setDuty(String duty) {
+ this.duty = duty;
+ }
+
+
+ public String getServiceSystemIndicator() {
+ return serviceSystemIndicator;
+ }
+
+ public void setServiceSystemIndicator(String serviceSystemIndicator) {
+ this.serviceSystemIndicator = serviceSystemIndicator;
+ }
+
+
+ public String getIdent() {
+ return ident;
+ }
+
+ public void setIdent(String ident) {
+ this.ident = ident;
+ }
+
+
+ public String getWorkingStatus() {
+ return workingStatus;
+ }
+
+ public void setWorkingStatus(String workingStatus) {
+ this.workingStatus = workingStatus;
+ }
+
+
+ public String getRelZip() {
+ return relZip;
+ }
+
+ public void setRelZip(String relZip) {
+ this.relZip = relZip;
+ }
+
+
+ public String getPatientOrigin() {
+ return patientOrigin;
+ }
+
+ public void setPatientOrigin(String patientOrigin) {
+ this.patientOrigin = patientOrigin;
+ }
+
+
+ public String getManagementCode() {
+ return managementCode;
+ }
+
+ public void setManagementCode(String managementCode) {
+ this.managementCode = managementCode;
+ }
+
+
+ public String getNamePy() {
+ return namePy;
+ }
+
+ public void setNamePy(String namePy) {
+ this.namePy = namePy;
+ }
+
+
+ public java.sql.Timestamp getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(java.sql.Timestamp createDate) {
+ this.createDate = createDate;
+ }
+
+
+ public String getNameCym() {
+ return nameCym;
+ }
+
+ public void setNameCym(String nameCym) {
+ this.nameCym = nameCym;
+ }
+
+
+ public String getHealthCard() {
+ return healthCard;
+ }
+
+ public void setHealthCard(String healthCard) {
+ this.healthCard = healthCard;
+ }
+
+
+ public String getBirthPlaceName() {
+ return birthPlaceName;
+ }
+
+ public void setBirthPlaceName(String birthPlaceName) {
+ this.birthPlaceName = birthPlaceName;
+ }
+
+
+ public String getNativePlace() {
+ return nativePlace;
+ }
+
+ public void setNativePlace(String nativePlace) {
+ this.nativePlace = nativePlace;
+ }
+
+
+ public String getFzyid() {
+ return fzyid;
+ }
+
+ public void setFzyid(String fzyid) {
+ this.fzyid = fzyid;
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/TCheck.java b/src/main/java/com/xjgs/vo/TCheck.java
new file mode 100644
index 0000000..1f0fddf
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/TCheck.java
@@ -0,0 +1,440 @@
+package com.xjgs.vo;
+
+
+/**
+ * 病人检查信息表
+ * */
+public class TCheck {
+
+ private String patientId;
+ private String medicine;
+ private String hbsag;
+ private String hcvAb;
+ private String hivAb;
+ private String clinicDis;
+ private String admissDis;
+ private String opbeOpafter;
+ private String clinicPathology;
+ private String emitPathology;
+ private long savlage;
+ private long succeed;
+ private String deptDirector;
+ private String director;
+ private String attending;
+ private String admissDoctor;
+ private String refresher;
+ private String graduate;
+ private String praxis;
+ private String coding;
+ private String quality;
+ private String control;
+ private String nurses;
+ private java.sql.Timestamp editDate;
+ private String memo;
+ private String savlageType;
+ private String operateClass;
+ private String operateProcess;
+ private String emitOperate;
+ private String clinicDisHerb;
+ private String admissDisHerb;
+ private String singleFlag;
+ private String criticalStatus;
+ private String emergencyStatus;
+ private String difficultyStatus;
+ private String trimmer;
+ private java.sql.Timestamp qualityDate;
+ private String clinicalPathwayOption;
+ private String comCliPatIf;
+ private String heterIf;
+ private String pathNum;
+ private String zrNurse;
+ private java.sql.Timestamp zkrq;
+
+
+ public String getPatientId() {
+ return patientId;
+ }
+
+ public void setPatientId(String patientId) {
+ this.patientId = patientId;
+ }
+
+
+ public String getMedicine() {
+ return medicine;
+ }
+
+ public void setMedicine(String medicine) {
+ this.medicine = medicine;
+ }
+
+
+ public String getHbsag() {
+ return hbsag;
+ }
+
+ public void setHbsag(String hbsag) {
+ this.hbsag = hbsag;
+ }
+
+
+ public String getHcvAb() {
+ return hcvAb;
+ }
+
+ public void setHcvAb(String hcvAb) {
+ this.hcvAb = hcvAb;
+ }
+
+
+ public String getHivAb() {
+ return hivAb;
+ }
+
+ public void setHivAb(String hivAb) {
+ this.hivAb = hivAb;
+ }
+
+
+ public String getClinicDis() {
+ return clinicDis;
+ }
+
+ public void setClinicDis(String clinicDis) {
+ this.clinicDis = clinicDis;
+ }
+
+
+ public String getAdmissDis() {
+ return admissDis;
+ }
+
+ public void setAdmissDis(String admissDis) {
+ this.admissDis = admissDis;
+ }
+
+
+ public String getOpbeOpafter() {
+ return opbeOpafter;
+ }
+
+ public void setOpbeOpafter(String opbeOpafter) {
+ this.opbeOpafter = opbeOpafter;
+ }
+
+
+ public String getClinicPathology() {
+ return clinicPathology;
+ }
+
+ public void setClinicPathology(String clinicPathology) {
+ this.clinicPathology = clinicPathology;
+ }
+
+
+ public String getEmitPathology() {
+ return emitPathology;
+ }
+
+ public void setEmitPathology(String emitPathology) {
+ this.emitPathology = emitPathology;
+ }
+
+
+ public long getSavlage() {
+ return savlage;
+ }
+
+ public void setSavlage(long savlage) {
+ this.savlage = savlage;
+ }
+
+
+ public long getSucceed() {
+ return succeed;
+ }
+
+ public void setSucceed(long succeed) {
+ this.succeed = succeed;
+ }
+
+
+ public String getDeptDirector() {
+ return deptDirector;
+ }
+
+ public void setDeptDirector(String deptDirector) {
+ this.deptDirector = deptDirector;
+ }
+
+
+ public String getDirector() {
+ return director;
+ }
+
+ public void setDirector(String director) {
+ this.director = director;
+ }
+
+
+ public String getAttending() {
+ return attending;
+ }
+
+ public void setAttending(String attending) {
+ this.attending = attending;
+ }
+
+
+ public String getAdmissDoctor() {
+ return admissDoctor;
+ }
+
+ public void setAdmissDoctor(String admissDoctor) {
+ this.admissDoctor = admissDoctor;
+ }
+
+
+ public String getRefresher() {
+ return refresher;
+ }
+
+ public void setRefresher(String refresher) {
+ this.refresher = refresher;
+ }
+
+
+ public String getGraduate() {
+ return graduate;
+ }
+
+ public void setGraduate(String graduate) {
+ this.graduate = graduate;
+ }
+
+
+ public String getPraxis() {
+ return praxis;
+ }
+
+ public void setPraxis(String praxis) {
+ this.praxis = praxis;
+ }
+
+
+ public String getCoding() {
+ return coding;
+ }
+
+ public void setCoding(String coding) {
+ this.coding = coding;
+ }
+
+
+ public String getQuality() {
+ return quality;
+ }
+
+ public void setQuality(String quality) {
+ this.quality = quality;
+ }
+
+
+ public String getControl() {
+ return control;
+ }
+
+ public void setControl(String control) {
+ this.control = control;
+ }
+
+
+ public String getNurses() {
+ return nurses;
+ }
+
+ public void setNurses(String nurses) {
+ this.nurses = nurses;
+ }
+
+
+ public java.sql.Timestamp getEditDate() {
+ return editDate;
+ }
+
+ public void setEditDate(java.sql.Timestamp editDate) {
+ this.editDate = editDate;
+ }
+
+
+ public String getMemo() {
+ return memo;
+ }
+
+ public void setMemo(String memo) {
+ this.memo = memo;
+ }
+
+
+ public String getSavlageType() {
+ return savlageType;
+ }
+
+ public void setSavlageType(String savlageType) {
+ this.savlageType = savlageType;
+ }
+
+
+ public String getOperateClass() {
+ return operateClass;
+ }
+
+ public void setOperateClass(String operateClass) {
+ this.operateClass = operateClass;
+ }
+
+
+ public String getOperateProcess() {
+ return operateProcess;
+ }
+
+ public void setOperateProcess(String operateProcess) {
+ this.operateProcess = operateProcess;
+ }
+
+
+ public String getEmitOperate() {
+ return emitOperate;
+ }
+
+ public void setEmitOperate(String emitOperate) {
+ this.emitOperate = emitOperate;
+ }
+
+
+ public String getClinicDisHerb() {
+ return clinicDisHerb;
+ }
+
+ public void setClinicDisHerb(String clinicDisHerb) {
+ this.clinicDisHerb = clinicDisHerb;
+ }
+
+
+ public String getAdmissDisHerb() {
+ return admissDisHerb;
+ }
+
+ public void setAdmissDisHerb(String admissDisHerb) {
+ this.admissDisHerb = admissDisHerb;
+ }
+
+
+ public String getSingleFlag() {
+ return singleFlag;
+ }
+
+ public void setSingleFlag(String singleFlag) {
+ this.singleFlag = singleFlag;
+ }
+
+
+ public String getCriticalStatus() {
+ return criticalStatus;
+ }
+
+ public void setCriticalStatus(String criticalStatus) {
+ this.criticalStatus = criticalStatus;
+ }
+
+
+ public String getEmergencyStatus() {
+ return emergencyStatus;
+ }
+
+ public void setEmergencyStatus(String emergencyStatus) {
+ this.emergencyStatus = emergencyStatus;
+ }
+
+
+ public String getDifficultyStatus() {
+ return difficultyStatus;
+ }
+
+ public void setDifficultyStatus(String difficultyStatus) {
+ this.difficultyStatus = difficultyStatus;
+ }
+
+
+ public String getTrimmer() {
+ return trimmer;
+ }
+
+ public void setTrimmer(String trimmer) {
+ this.trimmer = trimmer;
+ }
+
+
+ public java.sql.Timestamp getQualityDate() {
+ return qualityDate;
+ }
+
+ public void setQualityDate(java.sql.Timestamp qualityDate) {
+ this.qualityDate = qualityDate;
+ }
+
+
+ public String getClinicalPathwayOption() {
+ return clinicalPathwayOption;
+ }
+
+ public void setClinicalPathwayOption(String clinicalPathwayOption) {
+ this.clinicalPathwayOption = clinicalPathwayOption;
+ }
+
+
+ public String getComCliPatIf() {
+ return comCliPatIf;
+ }
+
+ public void setComCliPatIf(String comCliPatIf) {
+ this.comCliPatIf = comCliPatIf;
+ }
+
+
+ public String getHeterIf() {
+ return heterIf;
+ }
+
+ public void setHeterIf(String heterIf) {
+ this.heterIf = heterIf;
+ }
+
+
+ public String getPathNum() {
+ return pathNum;
+ }
+
+ public void setPathNum(String pathNum) {
+ this.pathNum = pathNum;
+ }
+
+
+ public String getZrNurse() {
+ return zrNurse;
+ }
+
+ public void setZrNurse(String zrNurse) {
+ this.zrNurse = zrNurse;
+ }
+
+
+ public java.sql.Timestamp getZkrq() {
+ return zkrq;
+ }
+
+ public void setZkrq(java.sql.Timestamp zkrq) {
+ this.zkrq = zkrq;
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/TDiag.java b/src/main/java/com/xjgs/vo/TDiag.java
new file mode 100644
index 0000000..0944e3f
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/TDiag.java
@@ -0,0 +1,179 @@
+package com.xjgs.vo;
+
+/**
+ * 病人诊断信息表
+ * */
+public class TDiag {
+
+ private String patientId;
+ private long diagNo;
+ private String diagCode;
+ private String diagName;
+ private String diagType;
+ private String disThing;
+ private String pathologyCut;
+ private String xRay;
+ private String operCode;
+ private String operName;
+ private java.sql.Timestamp operDate;
+ private String singl;
+ private java.sql.Timestamp createDate;
+ private String patAdmCondition;
+ private String pid;
+ private String vid;
+ private String inHospStat;
+
+
+ public String getPatientId() {
+ return patientId;
+ }
+
+ public void setPatientId(String patientId) {
+ this.patientId = patientId;
+ }
+
+
+ public long getDiagNo() {
+ return diagNo;
+ }
+
+ public void setDiagNo(long diagNo) {
+ this.diagNo = diagNo;
+ }
+
+
+ public String getDiagCode() {
+ return diagCode;
+ }
+
+ public void setDiagCode(String diagCode) {
+ this.diagCode = diagCode;
+ }
+
+
+ public String getDiagName() {
+ return diagName;
+ }
+
+ public void setDiagName(String diagName) {
+ this.diagName = diagName;
+ }
+
+
+ public String getDiagType() {
+ return diagType;
+ }
+
+ public void setDiagType(String diagType) {
+ this.diagType = diagType;
+ }
+
+
+ public String getDisThing() {
+ return disThing;
+ }
+
+ public void setDisThing(String disThing) {
+ this.disThing = disThing;
+ }
+
+
+ public String getPathologyCut() {
+ return pathologyCut;
+ }
+
+ public void setPathologyCut(String pathologyCut) {
+ this.pathologyCut = pathologyCut;
+ }
+
+
+ public String getXRay() {
+ return xRay;
+ }
+
+ public void setXRay(String xRay) {
+ this.xRay = xRay;
+ }
+
+
+ public String getOperCode() {
+ return operCode;
+ }
+
+ public void setOperCode(String operCode) {
+ this.operCode = operCode;
+ }
+
+
+ public String getOperName() {
+ return operName;
+ }
+
+ public void setOperName(String operName) {
+ this.operName = operName;
+ }
+
+
+ public java.sql.Timestamp getOperDate() {
+ return operDate;
+ }
+
+ public void setOperDate(java.sql.Timestamp operDate) {
+ this.operDate = operDate;
+ }
+
+
+ public String getSingl() {
+ return singl;
+ }
+
+ public void setSingl(String singl) {
+ this.singl = singl;
+ }
+
+
+ public java.sql.Timestamp getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(java.sql.Timestamp createDate) {
+ this.createDate = createDate;
+ }
+
+
+ public String getPatAdmCondition() {
+ return patAdmCondition;
+ }
+
+ public void setPatAdmCondition(String patAdmCondition) {
+ this.patAdmCondition = patAdmCondition;
+ }
+
+
+ public String getPid() {
+ return pid;
+ }
+
+ public void setPid(String pid) {
+ this.pid = pid;
+ }
+
+
+ public String getVid() {
+ return vid;
+ }
+
+ public void setVid(String vid) {
+ this.vid = vid;
+ }
+
+
+ public String getInHospStat() {
+ return inHospStat;
+ }
+
+ public void setInHospStat(String inHospStat) {
+ this.inHospStat = inHospStat;
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/TOperate.java b/src/main/java/com/xjgs/vo/TOperate.java
new file mode 100644
index 0000000..ca75b9c
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/TOperate.java
@@ -0,0 +1,200 @@
+package com.xjgs.vo;
+
+
+/**
+ * 病人手术信息表
+ * */
+public class TOperate {
+
+ private String patientId;
+ private long operateNo;
+ private String operateCode;
+ private String operateName;
+ private java.sql.Timestamp operateDate;
+ private String operator;
+ private String assistant1;
+ private String assistant2;
+ private String assistant3;
+ private String anaesthesiaType;
+ private String cut;
+ private String anaesthesiaName;
+ private String operCode;
+ private String operName;
+ private java.sql.Timestamp operDate;
+ private String operateClass;
+ private String operationScale;
+ private String chosSurg;
+ private String operDegr;
+
+
+ public String getPatientId() {
+ return patientId;
+ }
+
+ public void setPatientId(String patientId) {
+ this.patientId = patientId;
+ }
+
+
+ public long getOperateNo() {
+ return operateNo;
+ }
+
+ public void setOperateNo(long operateNo) {
+ this.operateNo = operateNo;
+ }
+
+
+ public String getOperateCode() {
+ return operateCode;
+ }
+
+ public void setOperateCode(String operateCode) {
+ this.operateCode = operateCode.trim ();
+ }
+
+
+ public String getOperateName() {
+ return operateName;
+ }
+
+ public void setOperateName(String operateName) {
+ this.operateName = operateName.trim ();
+ }
+
+
+ public java.sql.Timestamp getOperateDate() {
+ return operateDate;
+ }
+
+ public void setOperateDate(java.sql.Timestamp operateDate) {
+ this.operateDate = operateDate;
+ }
+
+
+ public String getOperator() {
+ return operator;
+ }
+
+ public void setOperator(String operator) {
+ this.operator = operator.trim ();
+ }
+
+
+ public String getAssistant1() {
+ return assistant1;
+ }
+
+ public void setAssistant1(String assistant1) {
+ this.assistant1 = assistant1.trim ();
+ }
+
+
+ public String getAssistant2() {
+ return assistant2;
+ }
+
+ public void setAssistant2(String assistant2) {
+ this.assistant2 = assistant2.trim ();
+ }
+
+
+ public String getAssistant3() {
+ return assistant3;
+ }
+
+ public void setAssistant3(String assistant3) {
+ this.assistant3 = assistant3.trim ();
+ }
+
+
+ public String getAnaesthesiaType() {
+ return anaesthesiaType;
+ }
+
+ public void setAnaesthesiaType(String anaesthesiaType) {
+ this.anaesthesiaType = anaesthesiaType.trim ();
+ }
+
+
+ public String getCut() {
+ return cut;
+ }
+
+ public void setCut(String cut) {
+ this.cut = cut.trim ();
+ }
+
+
+ public String getAnaesthesiaName() {
+ return anaesthesiaName;
+ }
+
+ public void setAnaesthesiaName(String anaesthesiaName) {
+ this.anaesthesiaName = anaesthesiaName.trim ();
+ }
+
+
+ public String getOperCode() {
+ return operCode;
+ }
+
+ public void setOperCode(String operCode) {
+ this.operCode = operCode.trim ();
+ }
+
+
+ public String getOperName() {
+ return operName;
+ }
+
+ public void setOperName(String operName) {
+ this.operName = operName.trim ();
+ }
+
+
+ public java.sql.Timestamp getOperDate() {
+ return operDate;
+ }
+
+ public void setOperDate(java.sql.Timestamp operDate) {
+ this.operDate = operDate;
+ }
+
+
+ public String getOperateClass() {
+ return operateClass;
+ }
+
+ public void setOperateClass(String operateClass) {
+ this.operateClass = operateClass.trim ();
+ }
+
+
+ public String getOperationScale() {
+ return operationScale;
+ }
+
+ public void setOperationScale(String operationScale) {
+ this.operationScale = operationScale.trim ();
+ }
+
+
+ public String getChosSurg() {
+ return chosSurg;
+ }
+
+ public void setChosSurg(String chosSurg) {
+ this.chosSurg = chosSurg.trim ();
+ }
+
+
+ public String getOperDegr() {
+ return operDegr;
+ }
+
+ public void setOperDegr(String operDegr) {
+ this.operDegr = operDegr.trim ();
+ }
+
+}
diff --git a/src/main/java/com/xjgs/vo/User.java b/src/main/java/com/xjgs/vo/User.java
new file mode 100644
index 0000000..278f4cd
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/User.java
@@ -0,0 +1,70 @@
+package com.xjgs.vo;
+
+/**
+ * 权限系统用户表
+ * */
+public class User {
+ private String id;
+ private String code;
+ private String name;
+ private String password;
+ private String createDate;
+ private String departmentId;
+ private String remark;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(String createDate) {
+ this.createDate = createDate;
+ }
+
+ public String getDepartmentId() {
+ return departmentId;
+ }
+
+ public void setDepartmentId(String departmentId) {
+ this.departmentId = departmentId;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/V_emrpatient.java b/src/main/java/com/xjgs/vo/V_emrpatient.java
new file mode 100644
index 0000000..5b3bafa
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/V_emrpatient.java
@@ -0,0 +1,52 @@
+package com.xjgs.vo;
+
+/**
+ * his病人视图表
+ * */
+public class V_emrpatient {
+ private String fpatno;
+ private String fpatfileno;
+ private String fpattimes;
+ private String fpatname;
+ private String farchieve_dt;
+
+ public String getFpatno() {
+ return fpatno;
+ }
+
+ public void setFpatno(String fpatno) {
+ this.fpatno = fpatno;
+ }
+
+ public String getFpattimes() {
+ return fpattimes;
+ }
+
+ public void setFpattimes(String fpattimes) {
+ this.fpattimes = fpattimes;
+ }
+
+ public String getFpatname() {
+ return fpatname;
+ }
+
+ public void setFpatname(String fpatname) {
+ this.fpatname = fpatname;
+ }
+
+ public String getFarchieve_dt() {
+ return farchieve_dt;
+ }
+
+ public void setFarchieve_dt(String farchieve_dt) {
+ this.farchieve_dt = farchieve_dt;
+ }
+
+ public String getFpatfileno() {
+ return fpatfileno;
+ }
+
+ public void setFpatfileno(String fpatfileno) {
+ this.fpatfileno = fpatfileno;
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/Ycy.java b/src/main/java/com/xjgs/vo/Ycy.java
new file mode 100644
index 0000000..4d2dafc
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/Ycy.java
@@ -0,0 +1,22 @@
+package com.xjgs.vo;
+
+public class Ycy {
+ private String Jzh;
+ private String Cyqk;
+
+ public String getJzh() {
+ return Jzh;
+ }
+
+ public void setJzh(String jzh) {
+ Jzh = jzh.trim();
+ }
+
+ public String getCyqk() {
+ return Cyqk;
+ }
+
+ public void setCyqk(String cyqk) {
+ Cyqk = cyqk.trim();
+ }
+}
diff --git a/src/main/java/com/xjgs/vo/Zl.java b/src/main/java/com/xjgs/vo/Zl.java
new file mode 100644
index 0000000..1c0d26a
--- /dev/null
+++ b/src/main/java/com/xjgs/vo/Zl.java
@@ -0,0 +1,115 @@
+package com.xjgs.vo;
+
+/**
+ * his病人基本信息表
+ * */
+public class Zl {
+ private String zyh;
+ private String jzh;
+ private String zycs;
+ private String xm;
+ private String xb;
+ private String dqbq;
+ private String cyrq;
+ private String ryrq;
+ private String rybq;
+ private String fdrname;
+ private String sfzh;
+ private String rycw;
+
+ public String getZyh() {
+ return zyh;
+ }
+
+ public void setZyh(String zyh) {
+ this.zyh = zyh;
+ }
+
+ public String getZycs() {
+ return zycs;
+ }
+
+ public void setZycs(String zycs) {
+ this.zycs = zycs == null ? "1":zycs.trim();
+ }
+
+ public String getXm() {
+ return xm;
+ }
+
+ public void setXm(String xm) {
+ this.xm = xm;
+ }
+
+ public String getXb() {
+ return xb;
+ }
+
+ public void setXb(String xb) {
+ this.xb = xb;
+ }
+
+ public String getDqbq() {
+ return dqbq;
+ }
+
+ public void setDqbq(String dqbq) {
+ this.dqbq = dqbq;
+ }
+
+ public String getCyrq() {
+ return cyrq;
+ }
+
+ public void setCyrq(String cyrq) {
+ this.cyrq = cyrq;
+ }
+
+ public String getRyrq() {
+ return ryrq;
+ }
+
+ public void setRyrq(String ryrq) {
+ this.ryrq = ryrq;
+ }
+
+ public String getRybq() {
+ return rybq;
+ }
+
+ public void setRybq(String rybq) {
+ this.rybq = rybq;
+ }
+
+ public String getFdrname() {
+ return fdrname;
+ }
+
+ public void setFdrname(String fdrname) {
+ this.fdrname = fdrname;
+ }
+
+ public String getSfzh() {
+ return sfzh;
+ }
+
+ public void setSfzh(String sfzh) {
+ this.sfzh = sfzh;
+ }
+
+ public String getJzh() {
+ return jzh;
+ }
+
+ public void setJzh(String jzh) {
+ this.jzh = jzh;
+ }
+
+ public String getRycw() {
+ return rycw;
+ }
+
+ public void setRycw(String rycw) {
+ this.rycw = rycw == null ? null : rycw.trim ();
+ }
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/BIRTHDAY.java b/src/main/java/com/xjgs/xmlParseVO/BIRTHDAY.java
new file mode 100644
index 0000000..5fdad55
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/BIRTHDAY.java
@@ -0,0 +1,20 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class BIRTHDAY {
+ public BIRTHDAY(){
+
+ }
+ public BIRTHDAY(Element el){
+ if(el == null){
+ return;
+ }
+ this.BIRTHDAYY = new xmlBase(el.element("BIRTHDAYY"));
+ this.BIRTHDAYM = new xmlBase(el.element("BIRTHDAYM"));
+ this.BIRTHDAYD = new xmlBase(el.element("BIRTHDAYD"));
+ }
+ public xmlBase BIRTHDAYY;
+ public xmlBase BIRTHDAYM;
+ public xmlBase BIRTHDAYD;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/XmlFirstPage.java b/src/main/java/com/xjgs/xmlParseVO/XmlFirstPage.java
new file mode 100644
index 0000000..529aa79
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/XmlFirstPage.java
@@ -0,0 +1,67 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Document;
+import org.dom4j.DocumentException;
+import org.dom4j.Element;
+import org.dom4j.io.SAXReader;
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.io.UnsupportedEncodingException;
+
+public class XmlFirstPage {
+
+
+ public XmlFirstPage()
+ {
+ this.CaseCaption = new xmlBase();
+ this.BasiInfor = new xmlBasiInfor();
+ this.DiagInfor = new xmlDiagInfor();
+ this.ThirClassExa = new xmlThirClassExa();
+ this.SurgInfor = new xmlSurgInfor();
+ this.InfantCard = new xmlInfantCard();
+ this.TumTreatTab = new xmlTumTreatTab();
+ this.ExpenInfo= new xmlExpenInfo();
+ this.eprhead = new xmleprhead();
+ this.signatorys = new xmlsignatorys();
+ this.master = new xmlmaster();
+ this.Diags = new xmlDiags();
+ }
+
+ public XmlFirstPage(String xmlStr) throws UnsupportedEncodingException, DocumentException {
+ SAXReader saxreader=new SAXReader();
+ String xlStr=xmlStr;
+ InputStream is = new ByteArrayInputStream(xlStr.getBytes("UTF-8"));
+ Document doc =saxreader.read(is);
+ Element root = doc.getRootElement();
+
+
+ this.CaseCaption = new xmlBase(root.element("CaseCaption"));
+ this.BasiInfor = new xmlBasiInfor(root.element("BasiInfor"));
+ this.DiagInfor = new xmlDiagInfor(root.element("DiagInfor"));
+ this.ThirClassExa = new xmlThirClassExa(root.element("ThirClassExa"));
+ this.SurgInfor = new xmlSurgInfor(root.element("SurgInfor"));
+ this.InfantCard = new xmlInfantCard(root.element("InfantCard"));
+ this.TumTreatTab = new xmlTumTreatTab(root.element("TumTreatTab"));
+ this.ExpenInfo= new xmlExpenInfo(root.element("ExpenInfo"));
+ this.eprhead = new xmleprhead(root.element("eprhead"));
+ this.signatorys = new xmlsignatorys(root.element("signatorys"));
+ this.master = new xmlmaster(root.element("master"));
+ this.Diags = new xmlDiags(root.element("Diags"));
+ }
+
+
+ //属性
+ public xmlBase CaseCaption;
+ public xmlBasiInfor BasiInfor;
+ public xmlDiagInfor DiagInfor;
+ public xmlThirClassExa ThirClassExa;
+ public xmlSurgInfor SurgInfor;
+ public xmlInfantCard InfantCard;
+ public xmlTumTreatTab TumTreatTab;
+ public xmlExpenInfo ExpenInfo;
+ public xmleprhead eprhead;
+ public xmlsignatorys signatorys;
+ public xmlmaster master;
+ public xmlDiags Diags;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlBase.java b/src/main/java/com/xjgs/xmlParseVO/xmlBase.java
new file mode 100644
index 0000000..2241bb3
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlBase.java
@@ -0,0 +1,47 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlBase {
+ public xmlBase()
+ {
+
+ }
+ public xmlBase(String valueText)
+ {
+ InnText = valueText;
+
+ }
+ public xmlBase(Element xl)
+ {
+ if(xl == null)
+ {
+ return;
+ }
+ InnText = xl.getText();
+ }
+
+
+
+ public String InnText;
+
+
+
+ public String getValText()
+ {
+ if(InnText== null || InnText.isEmpty() || InnText.equals("-"))
+ {
+ return "";
+ }
+ int pos1 = InnText.indexOf("-->");
+ if(pos1 ==-1)
+ {
+ return InnText;
+ }
+ String tmpV = InnText.substring(pos1+1);
+ return tmpV;
+ }
+
+
+
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlBasiInfor.java b/src/main/java/com/xjgs/xmlParseVO/xmlBasiInfor.java
new file mode 100644
index 0000000..6f8e3c3
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlBasiInfor.java
@@ -0,0 +1,181 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlBasiInfor {
+
+ public xmlBasiInfor()
+ {
+
+ }
+
+ public xmlBasiInfor(Element el)
+ {
+
+ if(el ==null)
+ {
+ return;
+ }
+
+ this.HosInsuID = new xmlBase(el.element("HosInsuID"));
+ this.MedTreatPayMode = new xmlBase(el.element("MedTreatPayMode"));
+ this.PayModeOption = new xmlBase(el.element("PayModeOption"));
+ this.TheNumOfInHos = new xmlBase(el.element("TheNumOfInHos"));
+ this.ZYH = new xmlBase(el.element("ZYH"));
+ this.NAME = new xmlBase(el.element("NAME"));
+ this.PatSEX = new xmlBase(el.element("PatSEX"));
+ this.SEXOption = new xmlBase(el.element("SEXOption"));
+ this.BIRTHDAY = new BIRTHDAY(el.element("BIRTHDAY"));
+ this.AGE = new xmlBase(el.element("AGE"));
+ this.STATU = new xmlBase(el.element("STATU"));
+ this.STATUOptionNEW = new xmlBase(el.element("STATUOptionNEW"));
+ this.JOB = new xmlBase(el.element("JOB"));
+ this.BIRTHPL = new xmlBase(el.element("BIRTHPL"));
+ this.PatNATION = new xmlBase(el.element("PatNATION"));
+ this.PatNATIVE = new xmlBase(el.element("PatNATIVE"));
+ this.PatIDCARD = new xmlBase(el.element("PatIDCARD"));
+ this.DWNAME = new xmlBase(el.element("DWNAME"));
+ this.DWADDR = new xmlBase(el.element("DWADDR"));
+ this.DWTELE = new xmlBase(el.element("DWTELE"));
+ this.DWPOST = new xmlBase(el.element("DWPOST"));
+ this.HKADDR = new xmlBase(el.element("HKADDR"));
+ this.HKPOST = new xmlBase(el.element("HKPOST"));
+ this.LXNAME = new xmlBase(el.element("LXNAME"));
+ this.RELATE = new xmlBase(el.element("RELATE"));
+ this.LXADDR = new xmlBase(el.element("LXADDRUnion"));
+ this.LXTELE = new xmlBase(el.element("LXTELE"));
+ this.xmlRYDATE = new xmlRYDATE(el.element("RYDATE"));
+ this.RYTIME = new xmlBase(el.element("RYTIME"));
+ this.RYDEPT = new xmlBase(el.element("RYDEPT"));
+ this.RYBS = new xmlBase(el.element("RYBS"));
+ this.FirstZKDpt = new xmlFirstZKDpt(el.element("FirstZKDpt"));
+ this.xmlCYDATE = new xmlCYDATE(el.element("CYDATE"));
+ this.BodyTempOutHosTime = new xmlBase(el.element("BodyTempOutHosTime"));
+ this.CYTIME = new xmlBase(el.element("CYTIME"));
+ this.CYDEPT = new xmlBase(el.element("CYDEPT"));
+ this.CYBS = new xmlBase(el.element("CYBS"));
+ this.DAYS = new xmlBase(el.element("DAYS"));
+ this.MZZD = new xmlBase(el.element("MZZD"));
+ this.MZDOCT = new xmlBase(el.element("MZDOCT"));
+ this.RYINFO = new xmlBase(el.element("RYINFO"));
+ this.RYINFOOption = new xmlBase(el.element("RYINFOOption"));
+ this.RYZD = new xmlBase(el.element("RYZD"));
+ this.QZDATE = new xmlBase(el.element("QZDATE"));
+ this.BODY = new xmlBase(el.element("BODY"));
+ this.BODYOption = new xmlBase(el.element("BODYOption"));
+ this.ISOPFIRST = new xmlBase(el.element("ISOPFIRST"));
+ this.ISZLFIRST = new xmlBase(el.element("ISZLFIRST"));
+ this.ISJCFIRST = new xmlBase(el.element("ISJCFIRST"));
+ this.ISZDFIRST = new xmlBase(el.element("ISZDFIRST"));
+ this.CrbRepCard = new xmlBase(el.element("CrbRepCard"));
+ this.CrbRepCardOption = new xmlBase(el.element("CrbRepCardOption"));
+ this.SZ = new xmlBase(el.element("SZ"));
+ this.SZOption = new xmlBase(el.element("SZOption"));
+ this.SZQX = new xmlSZQX(el.element("SZQX"));
+ this.SAMPLE = new xmlBase(el.element("SAMPLE"));
+ this.SAMPLEOption = new xmlBase(el.element("SAMPLEOption"));
+ this.BLOOD = new xmlBase(el.element("BLOOD"));
+ this.BLOODOption = new xmlBase(el.element("BLOODOption"));
+ this.RH = new xmlBase(el.element("RH"));
+ this.RHOption = new xmlBase(el.element("RHOption"));
+ this.SXFY = new xmlBase(el.element("SXFY"));
+ this.SXFYOption = new xmlBase(el.element("SXFYOption"));
+ this.SXIf = new xmlBase(el.element("SXIf"));
+ this.SXIfOption = new xmlBase(el.element("SXIfOption"));
+ this.SXType = new xmlSXType(el.element("SXType"));
+ this.YJConsNum = new xmlBase(el.element("YJConsNum"));
+ this.YCConsNum = new xmlBase(el.element("YCConsNum"));
+ this.NurGrade = new xmlNurGrade(el.element("NurGrade"));
+ this.NOWADDRUnion = new xmlBase(el.element("NOWADDRUnion"));
+ this.NOWADDRTELE = new xmlBase(el.element("NOWADDRTELE"));
+ this.NOWADDRPOST = new xmlBase(el.element("NOWADDRPOST"));
+ this.BIRTHDATE = new xmlBase(el.element("BIRTHDATE"));
+ this.InfantWeight = new xmlBase(el.element("InfantWeight"));
+ this.InHospWeight = new xmlBase(el.element("InHospWeight"));
+ this.InHospWayOption = new xmlBase(el.element("InHospWayOption"));
+ this.MZZDCode = new xmlBase(el.element("MZZDCode"));
+ this.NOWADDR = new xmlBase(el.element("NOWADDR"));
+ this.MedTreatPayModeNew = new xmlBase(el.element("MedTreatPayModeNew"));
+ this.HealthNum = new xmlBase(el.element("HealthNum"));
+ }
+ public xmlBase HealthNum;
+ public xmlBase MedTreatPayModeNew;
+ public xmlBase NOWADDR;
+ public xmlBase MZZDCode;
+ public xmlBase InHospWayOption;
+ public xmlBase InfantWeight;
+ public xmlBase InHospWeight;
+ public xmlBase BIRTHDATE;
+ public xmlBase NOWADDRTELE;
+ public xmlBase NOWADDRPOST;
+ public xmlBase NOWADDRUnion;
+ public xmlBase HosInsuID;
+ public xmlBase MedTreatPayMode;
+ public xmlBase PayModeOption;
+ public xmlBase TheNumOfInHos;
+ public xmlBase ZYH;
+ public xmlBase NAME;
+ public xmlBase PatSEX;
+ public xmlBase SEXOption;
+ public BIRTHDAY BIRTHDAY;
+ public xmlBase AGE;
+ public xmlBase STATU;
+ public xmlBase STATUOptionNEW;
+ public xmlBase JOB;
+ public xmlBase BIRTHPL;
+ public xmlBase PatNATION;
+ public xmlBase PatNATIVE;
+ public xmlBase PatIDCARD;
+ public xmlBase DWNAME;
+ public xmlBase DWADDR;
+ public xmlBase DWTELE;
+ public xmlBase DWPOST;
+ public xmlBase HKADDR;
+ public xmlBase HKPOST;
+ public xmlBase LXNAME;
+ public xmlBase RELATE;
+ public xmlBase LXADDR;
+ public xmlBase LXTELE;
+ public xmlRYDATE xmlRYDATE;
+ public xmlBase RYTIME;
+ public xmlBase RYDEPT;
+ public xmlBase RYBS;
+ public xmlFirstZKDpt FirstZKDpt;
+ public xmlCYDATE xmlCYDATE;
+ public xmlBase BodyTempOutHosTime;
+ public xmlBase CYTIME;
+ public xmlBase CYDEPT;
+ public xmlBase CYBS;
+ public xmlBase DAYS;
+ public xmlBase MZZD;
+ public xmlBase MZDOCT;
+ public xmlBase RYINFO;
+ public xmlBase RYINFOOption;
+ public xmlBase RYZD;
+ public xmlBase QZDATE;
+ public xmlBase BODY;
+ public xmlBase BODYOption;
+ public xmlBase ISOPFIRST;
+ public xmlBase ISZLFIRST;
+ public xmlBase ISJCFIRST;
+ public xmlBase ISZDFIRST;
+ public xmlBase CrbRepCard;
+ public xmlBase CrbRepCardOption;
+ public xmlBase SZ;
+ public xmlBase SZOption;
+ public xmlSZQX SZQX;
+ public xmlBase SAMPLE;
+ public xmlBase SAMPLEOption;
+ public xmlBase BLOOD;
+ public xmlBase BLOODOption;
+ public xmlBase RH;
+ public xmlBase RHOption;
+ public xmlBase SXFY;
+ public xmlBase SXFYOption;
+ public xmlBase SXIf;
+ public xmlBase SXIfOption;
+ public xmlSXType SXType;
+ public xmlBase YJConsNum;
+ public xmlBase YCConsNum;
+ public xmlNurGrade NurGrade;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlCYDATE.java b/src/main/java/com/xjgs/xmlParseVO/xmlCYDATE.java
new file mode 100644
index 0000000..dfe97bd
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlCYDATE.java
@@ -0,0 +1,24 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlCYDATE {
+ public xmlCYDATE(){
+
+ }
+ public xmlCYDATE(Element el){
+ if(null == el){
+ return;
+ }
+ this.CYDATEY = new xmlBase(el.element("CYDATEY"));
+ this.CYDATEM = new xmlBase(el.element("CYDATEM"));
+ this.CYDATED = new xmlBase(el.element("CYDATED"));
+ this.CYDATEH = new xmlBase(el.element("CYDATEH"));
+ this.CYDATEMin = new xmlBase(el.element("CYDATEMin"));
+ }
+ public xmlBase CYDATEY;
+ public xmlBase CYDATEM;
+ public xmlBase CYDATED;
+ public xmlBase CYDATEH;
+ public xmlBase CYDATEMin;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlChemTreat.java b/src/main/java/com/xjgs/xmlParseVO/xmlChemTreat.java
new file mode 100644
index 0000000..dfe952a
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlChemTreat.java
@@ -0,0 +1,38 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlChemTreat {
+
+public xmlChemTreat()
+{
+
+}
+
+
+public xmlChemTreat(Element el)
+{
+
+ if(el ==null)
+ {
+ return;
+ }
+ this.Hlfs = new xmlBase(el.element("Hlfs"));
+ this.HlfsOth = new xmlBase(el.element("HlfsOth"));
+ this.Hlff = new xmlBase(el.element("Hlff"));
+ this.HlffOth = new xmlBase(el.element("HlffOth"));
+ this.Hl1 = new xmlHlBase(el.element("Hl1"));
+ this.Hl2 = new xmlHlBase(el.element("Hl2"));
+ this.Hl3 = new xmlHlBase(el.element("Hl3"));
+}
+
+
+
+ public xmlBase Hlfs;
+ public xmlBase HlfsOth;
+ public xmlBase Hlff;
+ public xmlBase HlffOth;
+ public xmlHlBase Hl1;
+ public xmlHlBase Hl2;
+ public xmlHlBase Hl3;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlDiagAccordStat.java b/src/main/java/com/xjgs/xmlParseVO/xmlDiagAccordStat.java
new file mode 100644
index 0000000..b31dc05
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlDiagAccordStat.java
@@ -0,0 +1,39 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlDiagAccordStat {
+
+ public xmlDiagAccordStat()
+ {
+
+ }
+ public xmlDiagAccordStat(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.MZACCO = new xmlBase(el.element("MZACCO"));
+ this.MZACCOOption = new xmlBase(el.element("MZACCOOption"));
+ this.RYACCO = new xmlBase(el.element("RYACCO"));
+ this.RYACCOOption = new xmlBase(el.element("RYACCOOption"));
+ this.OPACCO = new xmlBase(el.element("OPACCO"));
+ this.OPACCOOption = new xmlBase(el.element("OPACCOOption"));
+ this.ClinPathAccoIf = new xmlBase(el.element("ClinPathAccoIf"));
+ this.ClinPathOption = new xmlBase(el.element("ClinPathOption"));
+ this.RadiPathAccoIf = new xmlBase(el.element("RadiPathAccoIf"));
+ this.RadiPathOption = new xmlBase(el.element("RadiPathOption"));
+ }
+
+ public xmlBase MZACCO;
+ public xmlBase MZACCOOption;
+ public xmlBase RYACCO;
+ public xmlBase RYACCOOption;
+ public xmlBase OPACCO;
+ public xmlBase OPACCOOption;
+ public xmlBase ClinPathAccoIf;
+ public xmlBase ClinPathOption;
+ public xmlBase RadiPathAccoIf;
+ public xmlBase RadiPathOption;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlDiagBase.java b/src/main/java/com/xjgs/xmlParseVO/xmlDiagBase.java
new file mode 100644
index 0000000..d2f2ccb
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlDiagBase.java
@@ -0,0 +1,63 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Attribute;
+import org.dom4j.Element;
+
+public class xmlDiagBase {
+
+
+ public xmlDiagBase(){}
+
+ public xmlDiagBase(Element el)
+ {
+ if(el==null)
+ {
+ return;
+ }
+
+ Attribute tb = el.attribute("num");
+ if(tb !=null)
+ {
+ this.num = tb.getValue();
+ }
+
+ this.FPATNO = new xmlBase(el.element("FPATNO"));
+ this.FDIAGCLASS = new xmlBase(el.element("FDIAGCLASS"));
+ this.FDIAGLEVEL = new xmlBase(el.element("FDIAGLEVEL"));
+ this.FICDNO = new xmlBase(el.element("FICDNO"));
+ this.FDIAGNAME = new xmlBase(el.element("FDIAGNAME"));
+ this.FDIAGDATE = new xmlBase(el.element("FDIAGDATE"));
+ this.FSIGNATURE = new xmlBase(el.element("FSIGNATURE"));
+ this.FCLASSNO = new xmlBase(el.element("FCLASSNO"));
+ this.FNUM = new xmlBase(el.element("FNUM"));
+ this.FIFSURE = new xmlBase(el.element("FIFSURE"));
+ this.FDATE = new xmlBase(el.element("FDATE"));
+ this.FOUTCOMPLEX = new xmlBase(el.element("FOUTCOMPLEX"));
+ this.FEMPNO = new xmlBase(el.element("FEMPNO"));
+ this.FEMPNAME = new xmlBase(el.element("FEMPNAME"));
+ this.FGRPNO = new xmlBase(el.element("FGRPNO"));
+
+
+
+ }
+
+
+
+ public String num;
+
+ public xmlBase FPATNO;
+ public xmlBase FDIAGCLASS;
+ public xmlBase FDIAGLEVEL;
+ public xmlBase FICDNO;
+ public xmlBase FDIAGNAME;
+ public xmlBase FDIAGDATE;
+ public xmlBase FSIGNATURE;
+ public xmlBase FCLASSNO;
+ public xmlBase FNUM;
+ public xmlBase FIFSURE;
+ public xmlBase FDATE;
+ public xmlBase FOUTCOMPLEX;
+ public xmlBase FEMPNO;
+ public xmlBase FEMPNAME;
+ public xmlBase FGRPNO;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlDiagInfor.java b/src/main/java/com/xjgs/xmlParseVO/xmlDiagInfor.java
new file mode 100644
index 0000000..c67a795
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlDiagInfor.java
@@ -0,0 +1,62 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlDiagInfor {
+
+ public xmlDiagInfor()
+ {
+
+ }
+
+ public xmlDiagInfor(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+
+ this.MainDiag = new xmlMainDiag(el.element("MainDiag"));
+ this.OthDiag = new xmlOthDiag(el.element("OthDiag"));
+ this.YNGRName = new xmlYNGRName(el.element("YNGRName"));
+ this.PathDiag = new xmlBase(el.element("PathDiag"));
+ this.TraToxExtFactor = new xmlBase(el.element("TraToxExtFactor"));
+ this.GMYW = new xmlBase(el.element("GMYW"));
+ this.HBsAg = new xmlBase(el.element("HBsAg"));
+ this.HBsAgOption = new xmlBase(el.element("HBsAgOption"));
+ this.HCV_Ab = new xmlBase(el.element("HCV_Ab"));
+ this.HCV_AbOption = new xmlBase(el.element("HCV_AbOption"));
+ this.HIV_Ab = new xmlBase(el.element("HIV_Ab"));
+ this.HIV_AbOption = new xmlBase(el.element("HIV_AbOption"));
+ this.DiagAccordStat = new xmlDiagAccordStat(el.element("DiagAccordStat"));
+ this.QJTIMES = new xmlBase(el.element("QJTIMES"));
+ this.SUCTIMES = new xmlBase(el.element("SUCTIMES"));
+ this.CaseType = new xmlBase(el.element("CaseType"));
+ this.BODYOption = new xmlBase(el.element("BODYOption"));
+ this.BLOODOptionNEW = new xmlBase(el.element("BLOODOptionNEW"));
+ this.RHOptionNEW = new xmlBase(el.element("RHOptionNEW"));
+ this.GMYWIfOption = new xmlBase(el.element("GMYWIfOption"));
+ }
+
+
+ public xmlBase RHOptionNEW;
+ public xmlBase BLOODOptionNEW;
+ public xmlMainDiag MainDiag;
+ public xmlOthDiag OthDiag;
+ public xmlYNGRName YNGRName;
+ public xmlBase PathDiag;
+ public xmlBase TraToxExtFactor;
+ public xmlBase GMYW;
+ public xmlBase GMYWIfOption;
+ public xmlBase HBsAg;
+ public xmlBase HBsAgOption;
+ public xmlBase HCV_Ab;
+ public xmlBase HCV_AbOption;
+ public xmlBase HIV_Ab;
+ public xmlBase HIV_AbOption;
+ public xmlDiagAccordStat DiagAccordStat;
+ public xmlBase QJTIMES;
+ public xmlBase SUCTIMES;
+ public xmlBase CaseType;
+ public xmlBase BODYOption;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlDiags.java b/src/main/java/com/xjgs/xmlParseVO/xmlDiags.java
new file mode 100644
index 0000000..f2b69f6
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlDiags.java
@@ -0,0 +1,38 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class xmlDiags {
+
+ public xmlDiags()
+ {
+ Diags = new ArrayList();
+ }
+
+ public xmlDiags(Element el)
+ {
+ Diags = new ArrayList();
+ if(el == null)
+ {
+ return;
+ }
+ List eList=el.elements("Diag");
+
+ if(eList.size()==0)
+ {
+ return;
+ }
+
+ for (int i = 0; i< eList.size()-1;i++)
+ {
+ Element tmpI = (Element) eList.get(i);
+ xmlDiagBase tmpObj = new xmlDiagBase(tmpI);
+ Diags.add(tmpObj);
+ }
+ }
+
+ public List Diags;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlDiveDos.java b/src/main/java/com/xjgs/xmlParseVO/xmlDiveDos.java
new file mode 100644
index 0000000..527ee02
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlDiveDos.java
@@ -0,0 +1,36 @@
+package com.xjgs.xmlParseVO;
+
+
+import org.dom4j.Element;
+
+public class xmlDiveDos {
+
+
+
+ public xmlDiveDos()
+ {
+
+ }
+
+
+ public xmlDiveDos(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.zgy = new xmlBase(el.element("zgy"));
+ this.zcs = new xmlBase(el.element("zcs"));
+ this.Zts = new xmlBase(el.element("Zts"));
+ this.zrq1 = new xmlqrq1(el.element("zrq1"));
+ this.zrq2 = new xmlqrq2(el.element("zrq2"));
+
+ }
+
+
+ public xmlBase zgy;
+ public xmlBase zcs;
+ public xmlBase Zts;
+ public xmlqrq1 zrq1;
+ public xmlqrq2 zrq2;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlExpenInfo.java b/src/main/java/com/xjgs/xmlParseVO/xmlExpenInfo.java
new file mode 100644
index 0000000..e09320f
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlExpenInfo.java
@@ -0,0 +1,61 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlExpenInfo {
+
+
+ public xmlExpenInfo()
+ {}
+
+ public xmlExpenInfo(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.SUM1 = new xmlBase(el.element("SUM1"));
+ this.CWF = new xmlBase(el.element("CWF"));
+ this.HLF = new xmlBase(el.element("HLF"));
+ this.XYF = new xmlBase(el.element("XYF"));
+ this.ZCHF = new xmlBase(el.element("ZCHF"));
+ this.ZCYF = new xmlBase(el.element("ZCYF"));
+ this.FSF = new xmlBase(el.element("FSF"));
+ this.HYF = new xmlBase(el.element("HYF"));
+ this.SYF = new xmlBase(el.element("SYF"));
+ this.SXF = new xmlBase(el.element("SXF"));
+ this.ZLF = new xmlBase(el.element("ZLF"));
+ this.SSF = new xmlBase(el.element("SSF"));
+ this.JSF = new xmlBase(el.element("JSF"));
+ this.JCF = new xmlBase(el.element("JCF"));
+ this.MZF = new xmlBase(el.element("MZF"));
+ this.YEF = new xmlBase(el.element("YEF"));
+ this.PCF = new xmlBase(el.element("PCF"));
+ this.QTF1 = new xmlBase(el.element("QTF1"));
+ this.QTF2 = new xmlBase(el.element("QTF2"));
+ this.QTF3 = new xmlBase(el.element("QTF3"));
+
+ }
+
+
+ public xmlBase SUM1;
+ public xmlBase CWF;
+ public xmlBase HLF;
+ public xmlBase XYF;
+ public xmlBase ZCHF;
+ public xmlBase ZCYF;
+ public xmlBase FSF;
+ public xmlBase HYF;
+ public xmlBase SYF;
+ public xmlBase SXF;
+ public xmlBase ZLF;
+ public xmlBase SSF;
+ public xmlBase JSF;
+ public xmlBase JCF;
+ public xmlBase MZF;
+ public xmlBase YEF;
+ public xmlBase PCF;
+ public xmlBase QTF1;
+ public xmlBase QTF2;
+ public xmlBase QTF3;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlFirstZKDpt.java b/src/main/java/com/xjgs/xmlParseVO/xmlFirstZKDpt.java
new file mode 100644
index 0000000..52b4fbe
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlFirstZKDpt.java
@@ -0,0 +1,38 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlFirstZKDpt {
+ public xmlFirstZKDpt(){
+
+ }
+ public xmlFirstZKDpt(Element element){
+ if(element == null){
+ return;
+ }
+ this.FirstZKDptY1 = new xmlBase(element.element("FirstZKDptY1"));
+ this.FirstZKDptM1 = new xmlBase(element.element("FirstZKDptM1"));
+ this.FirstZKDptH1 = new xmlBase(element.element("FirstZKDptH1"));
+ this.FirstZKDptName1 = new xmlBase(element.element("FirstZKDptName1"));
+ this.FirstZKDptY2 = new xmlBase(element.element("FirstZKDptY2"));
+ this.FirstZKDptM2 = new xmlBase(element.element("FirstZKDptM2"));
+ this.FirstZKDptH2 = new xmlBase(element.element("FirstZKDptH2"));
+ this.FirstZKDptName2 = new xmlBase(element.element("FirstZKDptName2"));
+ this.FirstZKDptY3 = new xmlBase(element.element("FirstZKDptY3"));
+ this.FirstZKDptM3 = new xmlBase(element.element("FirstZKDptM3"));
+ this.FirstZKDptH3 = new xmlBase(element.element("FirstZKDptH3"));
+ this.FirstZKDptName3 = new xmlBase(element.element("FirstZKDptName3"));
+ }
+ public xmlBase FirstZKDptY1;
+ public xmlBase FirstZKDptM1;
+ public xmlBase FirstZKDptH1;
+ public xmlBase FirstZKDptName1;
+ public xmlBase FirstZKDptY2;
+ public xmlBase FirstZKDptM2;
+ public xmlBase FirstZKDptH2;
+ public xmlBase FirstZKDptName2;
+ public xmlBase FirstZKDptY3;
+ public xmlBase FirstZKDptM3;
+ public xmlBase FirstZKDptH3;
+ public xmlBase FirstZKDptName3;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlHlBase.java b/src/main/java/com/xjgs/xmlParseVO/xmlHlBase.java
new file mode 100644
index 0000000..0bfe688
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlHlBase.java
@@ -0,0 +1,31 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlHlBase {
+
+
+
+ public xmlHlBase()
+ {
+
+ }
+
+ public xmlHlBase(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.hldate = new xmlBase(el.element("hldate"));
+ this.hldrug = new xmlBase(el.element("hldrug"));
+ this.hlproc = new xmlBase(el.element("hlproc"));
+ this.Hljg = new xmlBase(el.element("Hljg"));
+ }
+
+
+ public xmlBase hldate;
+ public xmlBase hldrug;
+ public xmlBase hlproc;
+ public xmlBase Hljg;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlInHospStat.java b/src/main/java/com/xjgs/xmlParseVO/xmlInHospStat.java
new file mode 100644
index 0000000..2acde65
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlInHospStat.java
@@ -0,0 +1,22 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlInHospStat {
+ public xmlInHospStat(){
+
+ }
+ public xmlInHospStat(Element element){
+ if(element == null){
+ return;
+ }
+ this.InHospStatHav = new xmlBase(element.element("InHospStatHav"));
+ this.InHospStatNotS = new xmlBase(element.element("InHospStatNotS"));
+ this.InHospStatNotC = new xmlBase(element.element("InHospStatNotC"));
+ this.InHospStatNon = new xmlBase(element.element("InHospStatNon"));
+ }
+ public xmlBase InHospStatHav;
+ public xmlBase InHospStatNotS;
+ public xmlBase InHospStatNotC;
+ public xmlBase InHospStatNon;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlInciHealClass.java b/src/main/java/com/xjgs/xmlParseVO/xmlInciHealClass.java
new file mode 100644
index 0000000..f7af045
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlInciHealClass.java
@@ -0,0 +1,23 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlInciHealClass {
+
+ public xmlInciHealClass()
+ {
+
+ }
+ public xmlInciHealClass(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.QIEKOU = new xmlBase(el.element("QIEKOU"));
+ this.YUHE = new xmlBase(el.element("YUHE"));
+ }
+
+ public xmlBase QIEKOU;
+ public xmlBase YUHE;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlInfantBase.java b/src/main/java/com/xjgs/xmlParseVO/xmlInfantBase.java
new file mode 100644
index 0000000..dd7282c
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlInfantBase.java
@@ -0,0 +1,46 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlInfantBase {
+
+
+
+ public xmlInfantBase()
+ {
+
+ }
+
+ public xmlInfantBase(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.SeqNum = new xmlBase(el.element("SeqNum"));
+ this.InfantSex = new xmlBase(el.element("InfantSex"));
+ this.DelivResult = new xmlBase(el.element("DelivResult"));
+ this.InfantWeight = new xmlBase(el.element("InfantWeight"));
+ this.InfantLapTo = new xmlBase(el.element("InfantLapTo"));
+ this.Breath = new xmlBase(el.element("Breath"));
+ this.HosInfNum = new xmlBase(el.element("HosInfNum"));
+ this.MainHosInfName = new xmlBase(el.element("MainHosInfName"));
+ this.ICD_10 = new xmlBase(el.element("ICD_10"));
+ this.BABYQJ = new xmlBase(el.element("BABYQJ"));
+ this.BABYSUC = new xmlBase(el.element("BABYSUC"));
+
+ }
+
+
+ public xmlBase SeqNum;
+ public xmlBase InfantSex;
+ public xmlBase DelivResult;
+ public xmlBase InfantWeight;
+ public xmlBase InfantLapTo;
+ public xmlBase Breath;
+ public xmlBase HosInfNum;
+ public xmlBase MainHosInfName;
+ public xmlBase ICD_10;
+ public xmlBase BABYQJ;
+ public xmlBase BABYSUC;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlInfantCard.java b/src/main/java/com/xjgs/xmlParseVO/xmlInfantCard.java
new file mode 100644
index 0000000..7e01993
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlInfantCard.java
@@ -0,0 +1,34 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlInfantCard {
+
+ public xmlInfantCard()
+ {
+
+ }
+
+ public xmlInfantCard(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.Infant1 = new xmlInfantBase(el.element("Infant1"));
+ this.Infant2 = new xmlInfantBase(el.element("Infant2"));
+ this.Infant3 = new xmlInfantBase(el.element("Infant3"));
+ this.Infant4 = new xmlInfantBase(el.element("Infant4"));
+ this.Infant5 = new xmlInfantBase(el.element("Infant5"));
+ this.Infant6 = new xmlInfantBase(el.element("Infant6"));
+ }
+
+
+ public xmlInfantBase Infant1;
+ public xmlInfantBase Infant2;
+ public xmlInfantBase Infant3;
+ public xmlInfantBase Infant4;
+ public xmlInfantBase Infant5;
+ public xmlInfantBase Infant6;
+
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlIrraTreat.java b/src/main/java/com/xjgs/xmlParseVO/xmlIrraTreat.java
new file mode 100644
index 0000000..a1df1fd
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlIrraTreat.java
@@ -0,0 +1,34 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlIrraTreat {
+
+
+ public xmlIrraTreat()
+ {
+
+ }
+
+ public xmlIrraTreat(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.flfs = new xmlBase(el.element("flfs"));
+ this.flcs = new xmlBase(el.element("flcs"));
+ this.flzz = new xmlBase(el.element("flzz"));
+ this.PrimDos = new xmlPrimDos(el.element("PrimDos"));
+ this.RegLymDos = new xmlRegLymDos(el.element("RegLymDos"));
+ this.DiveDos = new xmlDiveDos(el.element("DiveDos"));
+ }
+
+
+ public xmlBase flfs;
+ public xmlBase flcs;
+ public xmlBase flzz;
+ public xmlPrimDos PrimDos;
+ public xmlRegLymDos RegLymDos;
+ public xmlDiveDos DiveDos;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlMainDiag.java b/src/main/java/com/xjgs/xmlParseVO/xmlMainDiag.java
new file mode 100644
index 0000000..052708d
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlMainDiag.java
@@ -0,0 +1,25 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlMainDiag extends xmlOthDiagBase {
+ public xmlMainDiag()
+ {
+
+ }
+ public xmlMainDiag(Element el) {
+ if(el ==null){
+ return;
+ }
+ this.DiagName = new xmlBase(el.element("DiagName"));
+ this.xmlInHospStat = new xmlInHospStat(el.element("InHospStat"));
+ this.ICD10 = new xmlBase(el.element("ICD10"));
+ this.ComplicationIf = new xmlBase(el.element("ComplicationIf"));
+ this.HosInfIf = new xmlBase(el.element("HosInfIf"));
+ }
+ public xmlBase DiagName;
+ public xmlInHospStat xmlInHospStat;
+ public xmlBase ICD10;
+ public xmlBase ComplicationIf;
+ public xmlBase HosInfIf;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlNurGrade.java b/src/main/java/com/xjgs/xmlParseVO/xmlNurGrade.java
new file mode 100644
index 0000000..22d631c
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlNurGrade.java
@@ -0,0 +1,30 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlNurGrade {
+
+
+ public xmlNurGrade(Element el)
+ {
+
+ if(el ==null)
+ {
+ return;
+ }
+ this.SpeNurHour = new xmlBase(el.element("SpeNurHour"));
+ this.FirClassdDay = new xmlBase(el.element("FirClassdDay"));
+ this.SecClassDay = new xmlBase(el.element("SecClassDay"));
+ this.ThirdClassDay = new xmlBase(el.element("ThirdClassDay"));
+ this.ZZJHHour = new xmlBase(el.element("ZZJHHour"));
+ this.SpecNurHour = new xmlBase(el.element("SpecNurHour"));
+ }
+
+
+ public xmlBase SpeNurHour;
+ public xmlBase FirClassdDay;
+ public xmlBase SecClassDay;
+ public xmlBase ThirdClassDay;
+ public xmlBase ZZJHHour;
+ public xmlBase SpecNurHour;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlOperDoct.java b/src/main/java/com/xjgs/xmlParseVO/xmlOperDoct.java
new file mode 100644
index 0000000..cc47b66
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlOperDoct.java
@@ -0,0 +1,29 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlOperDoct {
+
+
+ public xmlOperDoct()
+ {
+
+ }
+ public xmlOperDoct(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.MainOperator = new xmlBase(el.element("MainOperator"));
+ this.Assistant1 = new xmlBase(el.element("Assistant1"));
+ this.Assistant2 = new xmlBase(el.element("Assistant2"));
+ this.Assistant3 = new xmlBase(el.element("Assistant3"));
+ }
+
+
+ public xmlBase MainOperator;
+ public xmlBase Assistant1;
+ public xmlBase Assistant2;
+ public xmlBase Assistant3;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlOperationBase.java b/src/main/java/com/xjgs/xmlParseVO/xmlOperationBase.java
new file mode 100644
index 0000000..0dd7042
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlOperationBase.java
@@ -0,0 +1,35 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlOperationBase {
+ public xmlOperationBase()
+ {
+
+ }
+
+ public xmlOperationBase(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.ICD9_CM = new xmlBase(el.element("ICD9_CM"));
+ this.OPDATE = new xmlBase(el.element("OPDATE"));
+ this.OperName = new xmlBase(el.element("OperName"));
+ this.OperDoct = new xmlOperDoct(el.element("OperDoct"));
+ this.MAZUI = new xmlBase(el.element("MAZUI"));
+ this.InciHealClass = new xmlInciHealClass(el.element("InciHealClass"));
+ this.HocusDoct = new xmlBase(el.element("HocusDoct"));
+ this.OperDegrOption = new xmlBase(el.element("OperDegrOption"));
+ }
+
+ public xmlBase ICD9_CM;
+ public xmlBase OPDATE;
+ public xmlBase OperName;
+ public xmlOperDoct OperDoct;
+ public xmlBase MAZUI;
+ public xmlInciHealClass InciHealClass;
+ public xmlBase HocusDoct;
+ public xmlBase OperDegrOption;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlOthDiag.java b/src/main/java/com/xjgs/xmlParseVO/xmlOthDiag.java
new file mode 100644
index 0000000..964f062
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlOthDiag.java
@@ -0,0 +1,38 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlOthDiag {
+
+ public xmlOthDiag()
+ {
+
+ }
+ public xmlOthDiag(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.OthDiag1 = new xmlOthDiagBase(el.element("OthDiag1"));
+ this.OthDiag2 = new xmlOthDiagBase(el.element("OthDiag2"));
+ this.OthDiag3 = new xmlOthDiagBase(el.element("OthDiag3"));
+ this.OthDiag4 = new xmlOthDiagBase(el.element("OthDiag4"));
+ this.OthDiag5 = new xmlOthDiagBase(el.element("OthDiag5"));
+ this.OthDiag6 = new xmlOthDiagBase(el.element("OthDiag6"));
+ this.OthDiag7 = new xmlOthDiagBase(el.element("OthDiag7"));
+ this.OthDiag8 = new xmlOthDiagBase(el.element("OthDiag8"));
+ this.OthDiag9 = new xmlOthDiagBase(el.element("OthDiag9"));
+ }
+
+
+ public xmlOthDiagBase OthDiag1;
+ public xmlOthDiagBase OthDiag2;
+ public xmlOthDiagBase OthDiag3;
+ public xmlOthDiagBase OthDiag4;
+ public xmlOthDiagBase OthDiag5;
+ public xmlOthDiagBase OthDiag6;
+ public xmlOthDiagBase OthDiag7;
+ public xmlOthDiagBase OthDiag8;
+ public xmlOthDiagBase OthDiag9;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlOthDiagBase.java b/src/main/java/com/xjgs/xmlParseVO/xmlOthDiagBase.java
new file mode 100644
index 0000000..38ef378
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlOthDiagBase.java
@@ -0,0 +1,36 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlOthDiagBase {
+
+
+ public xmlOthDiagBase()
+ {
+
+ }
+ public xmlOthDiagBase(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.DiagName = new xmlBase(el.element("DiagName"));
+ this.HealIf = new xmlBase(el.element("HealIf"));
+ this.MendIf = new xmlBase(el.element("MendIf"));
+ this.NotHealIf = new xmlBase(el.element("NotHealIf"));
+ this.DeathIf = new xmlBase(el.element("DeathIf"));
+ this.OthIf = new xmlBase(el.element("OthIf"));
+ this.ICD10 = new xmlBase(el.element("ICD10"));
+ this.xmlInHospStat = new xmlInHospStat(el.element("InHospStat"));
+ }
+ public xmlInHospStat xmlInHospStat;
+ public xmlBase DiagName;
+ public xmlBase HealIf;
+ public xmlBase MendIf;
+ public xmlBase NotHealIf;
+ public xmlBase DeathIf;
+ public xmlBase OthIf;
+ public xmlBase ICD10;
+
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlPrimDos.java b/src/main/java/com/xjgs/xmlParseVO/xmlPrimDos.java
new file mode 100644
index 0000000..516f13e
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlPrimDos.java
@@ -0,0 +1,32 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlPrimDos {
+
+
+ public xmlPrimDos()
+ {
+
+ }
+
+ public xmlPrimDos(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.ygy = new xmlBase(el.element("ygy"));
+ this.ycs = new xmlBase(el.element("ycs"));
+ this.yts = new xmlBase(el.element("yts"));
+ this.yrq1 = new xmlyrq1(el.element("yrq1"));
+ this.yrq2 = new xmlyrq2(el.element("yrq2"));
+ }
+
+
+ public xmlBase ygy;
+ public xmlBase ycs;
+ public xmlBase yts;
+ public xmlyrq1 yrq1;
+ public xmlyrq2 yrq2;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlRYDATE.java b/src/main/java/com/xjgs/xmlParseVO/xmlRYDATE.java
new file mode 100644
index 0000000..ef5e15c
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlRYDATE.java
@@ -0,0 +1,24 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlRYDATE {
+ public xmlRYDATE(){
+
+ }
+ public xmlRYDATE(Element el){
+ if(null == el){
+ return;
+ }
+ this.RYDATEY = new xmlBase(el.element("RYDATEY"));
+ this.RYDATEM = new xmlBase(el.element("RYDATEM"));
+ this.RYDATED = new xmlBase(el.element("RYDATED"));
+ this.RYDATEH = new xmlBase(el.element("RYDATEH"));
+ this.RYDATEMin = new xmlBase(el.element("RYDATEMin"));
+ }
+ public xmlBase RYDATEY;
+ public xmlBase RYDATEM;
+ public xmlBase RYDATED;
+ public xmlBase RYDATEH;
+ public xmlBase RYDATEMin;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlRegLymDos.java b/src/main/java/com/xjgs/xmlParseVO/xmlRegLymDos.java
new file mode 100644
index 0000000..e38248c
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlRegLymDos.java
@@ -0,0 +1,33 @@
+package com.xjgs.xmlParseVO;
+
+
+import org.dom4j.Element;
+
+public class xmlRegLymDos {
+
+
+ public xmlRegLymDos()
+ {
+
+ }
+
+ public xmlRegLymDos(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.qgy = new xmlBase(el.element("qgy"));
+ this.qcs = new xmlBase(el.element("qcs"));
+ this.qts = new xmlBase(el.element("qts"));
+ this.qrq1 = new xmlqrq1(el.element("qrq1"));
+ this.qrq2 = new xmlqrq2(el.element("qrq2"));
+ }
+
+
+ public xmlBase qgy;
+ public xmlBase qcs;
+ public xmlBase qts;
+ public xmlqrq1 qrq1;
+ public xmlqrq2 qrq2;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlSXType.java b/src/main/java/com/xjgs/xmlParseVO/xmlSXType.java
new file mode 100644
index 0000000..6c28544
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlSXType.java
@@ -0,0 +1,38 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlSXType {
+
+ public xmlSXType()
+ {
+
+ }
+
+ public xmlSXType(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ Element e1 = el.element("RBC");
+ Element e2 = el.element("PlatNum");
+ Element e3 = el.element("PlasmNum");
+ Element e4 = el.element("WholBloodNum");
+ Element e5 = el.element("SXOthNum");
+
+ this.RBC = new xmlBase(e1.getText());
+ this.PlatNum = new xmlBase(e2.getText());
+ this.PlasmNum = new xmlBase(e3.getText());
+ this.WholBloodNum = new xmlBase(e4.getText());
+ this.SXOthNum = new xmlBase(e5.getText());
+ }
+
+
+
+ public xmlBase RBC;
+ public xmlBase PlatNum;
+ public xmlBase PlasmNum;
+ public xmlBase WholBloodNum;
+ public xmlBase SXOthNum;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlSZQX.java b/src/main/java/com/xjgs/xmlParseVO/xmlSZQX.java
new file mode 100644
index 0000000..50178f1
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlSZQX.java
@@ -0,0 +1,31 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlSZQX {
+
+ public xmlSZQX()
+ {
+
+ }
+ public xmlSZQX(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ Element e1 = el.element("SZQXWeek");
+ Element e2 = el.element("SZQXMon");
+ Element e3 = el.element("SZQXYear");
+
+ this.SZQXWeek = new xmlBase(e1.getText());
+ this.SZQXMon = new xmlBase(e2.getText());
+ this.SZQXYear = new xmlBase(e3.getText());
+ }
+
+
+ public xmlBase SZQXWeek;
+ public xmlBase SZQXMon;
+ public xmlBase SZQXYear;
+
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlSurgInfor.java b/src/main/java/com/xjgs/xmlParseVO/xmlSurgInfor.java
new file mode 100644
index 0000000..a5f4f37
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlSurgInfor.java
@@ -0,0 +1,33 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlSurgInfor {
+
+ public xmlSurgInfor()
+ {
+
+ }
+
+ public xmlSurgInfor(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.Operation1 = new xmlOperationBase(el.element("Operation1"));
+ this.Operation2 = new xmlOperationBase(el.element("Operation2"));
+ this.Operation3 = new xmlOperationBase(el.element("Operation3"));
+ this.Operation4 = new xmlOperationBase(el.element("Operation4"));
+ this.Operation5 = new xmlOperationBase(el.element("Operation5"));
+ this.Operation6 = new xmlOperationBase(el.element("Operation6"));
+ }
+
+
+ public xmlOperationBase Operation1;
+ public xmlOperationBase Operation2;
+ public xmlOperationBase Operation3;
+ public xmlOperationBase Operation4;
+ public xmlOperationBase Operation5;
+ public xmlOperationBase Operation6;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlThirClassExa.java b/src/main/java/com/xjgs/xmlParseVO/xmlThirClassExa.java
new file mode 100644
index 0000000..9337a3b
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlThirClassExa.java
@@ -0,0 +1,48 @@
+package com.xjgs.xmlParseVO;
+
+
+import org.dom4j.Element;
+
+public class xmlThirClassExa {
+
+ public xmlThirClassExa()
+ {
+
+ }
+ public xmlThirClassExa(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.KZR = new xmlBase(el.element("KZR"));
+ this.KZR = new xmlBase(el.element("KZR"));
+ this.ZRDOCT = new xmlBase(el.element("ZRDOCT"));
+ this.ZZDOCT = new xmlBase(el.element("ZZDOCT"));
+ this.ZYDOCT = new xmlBase(el.element("ZYDOCT"));
+ this.JXDOCT = new xmlBase(el.element("JXDOCT"));
+ this.YSXDOCT = new xmlBase(el.element("YSXDOCT"));
+ this.SXDOCT = new xmlBase(el.element("SXDOCT"));
+ this.BMY = new xmlBase(el.element("BMY"));
+ this.QUALITY = new xmlBase(el.element("QUALITY"));
+ this.QUALITYOption = new xmlBase(el.element("QUALITYOption"));
+ this.ZKDOCT = new xmlBase(el.element("ZKDOCT"));
+ this.ZKNURSE = new xmlBase(el.element("ZKNURSE"));
+ this.ZKRQ = new xmlZKRQ(el.element("ZKRQ"));
+ }
+
+
+ public xmlBase KZR;
+ public xmlBase ZRDOCT;
+ public xmlBase ZZDOCT;
+ public xmlBase ZYDOCT;
+ public xmlBase JXDOCT;
+ public xmlBase YSXDOCT;
+ public xmlBase SXDOCT;
+ public xmlBase BMY;
+ public xmlBase QUALITY;
+ public xmlBase QUALITYOption;
+ public xmlBase ZKDOCT;
+ public xmlBase ZKNURSE;
+ public xmlZKRQ ZKRQ;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlTumTreatTab.java b/src/main/java/com/xjgs/xmlParseVO/xmlTumTreatTab.java
new file mode 100644
index 0000000..a1f126c
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlTumTreatTab.java
@@ -0,0 +1,26 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlTumTreatTab {
+
+
+
+ public xmlTumTreatTab()
+ {
+
+ }
+
+ public xmlTumTreatTab(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.IrraTreat= new xmlIrraTreat(el.element("IrraTreat"));
+ this.ChemTreat= new xmlChemTreat(el.element("ChemTreat"));
+ }
+
+ public xmlIrraTreat IrraTreat;
+ public xmlChemTreat ChemTreat;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlYNGRName.java b/src/main/java/com/xjgs/xmlParseVO/xmlYNGRName.java
new file mode 100644
index 0000000..6abe4f5
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlYNGRName.java
@@ -0,0 +1,18 @@
+package com.xjgs.xmlParseVO;
+
+
+import org.dom4j.Element;
+
+public class xmlYNGRName extends xmlOthDiagBase {
+
+ public xmlYNGRName()
+ {
+
+ }
+
+ public xmlYNGRName(Element el)
+ {
+ super(el);
+ }
+
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlZKRQ.java b/src/main/java/com/xjgs/xmlParseVO/xmlZKRQ.java
new file mode 100644
index 0000000..4aa5b77
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlZKRQ.java
@@ -0,0 +1,27 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlZKRQ {
+ public xmlZKRQ()
+ {
+
+ }
+
+ public xmlZKRQ(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.ZKRQYear = new xmlBase(el.element("ZKRQYear"));
+ this.ZKRQMon = new xmlBase(el.element("ZKRQMon"));
+ this.ZKRQDay = new xmlBase(el.element("ZKRQDay"));
+ }
+
+
+
+ public xmlBase ZKRQYear;
+ public xmlBase ZKRQMon;
+ public xmlBase ZKRQDay;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmleprhead.java b/src/main/java/com/xjgs/xmlParseVO/xmleprhead.java
new file mode 100644
index 0000000..d55d008
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmleprhead.java
@@ -0,0 +1,108 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmleprhead {
+
+ public xmleprhead(){}
+
+ public xmleprhead(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.PATNO = new xmlBase(el.element("PATNO"));
+ this.PATFILENO = new xmlBase(el.element("PATFILENO"));
+ this.INFSEQUE = new xmlBase(el.element("INFSEQUE"));
+ this.FDPTNO = new xmlBase(el.element("FDPTNO"));
+ this.PATNAME = new xmlBase(el.element("PATNAME"));
+ this.DPTNAME = new xmlBase(el.element("DPTNAME"));
+ this.FSEXNO = new xmlBase(el.element("FSEXNO"));
+ this.SEX = new xmlBase(el.element("SEX"));
+ this.FBIRTHDAY = new xmlBase(el.element("FBIRTHDAY"));
+ this.AGEBYDAY = new xmlBase(el.element("AGEBYDAY"));
+ this.NATION = new xmlBase(el.element("NATION"));
+ this.MARRIAGE = new xmlBase(el.element("MARRIAGE"));
+ this.PROFESSION = new xmlBase(el.element("PROFESSION"));
+ this.COUNTRY = new xmlBase(el.element("COUNTRY"));
+ this.IDCARD = new xmlBase(el.element("IDCARD"));
+ this.NATIVE = new xmlBase(el.element("NATIVE"));
+ this.DATEIN = new xmlBase(el.element("DATEIN"));
+ this.DATEOUT = new xmlBase(el.element("DATEOUT"));
+ this.DATEZYBQIN = new xmlBase(el.element("DATEZYBQIN"));
+ this.HSTRRECTIME = new xmlBase(el.element("HSTRRECTIME"));
+ this.HOMEADDR = new xmlBase(el.element("HOMEADDR"));
+ this.HOMEPOSTCODE = new xmlBase(el.element("HOMEPOSTCODE"));
+ this.HOMETEL = new xmlBase(el.element("HOMETEL"));
+ this.BEDNO = new xmlBase(el.element("BEDNO"));
+ this.FPATSTATUS = new xmlBase(el.element("FPATSTATUS"));
+ this.FITEMNOTEND = new xmlBase(el.element("FITEMNOTEND"));
+ this.FITEMNOFOOD = new xmlBase(el.element("FITEMNOFOOD"));
+ this.WORKUNIT = new xmlBase(el.element("WORKUNIT"));
+ this.WORKPOSTCODE = new xmlBase(el.element("WORKPOSTCODE"));
+ this.CONTACT = new xmlBase(el.element("CONTACT"));
+ this.RELATION = new xmlBase(el.element("RELATION"));
+ this.CONTACTADDR = new xmlBase(el.element("CONTACTADDR"));
+ this.CONTACTTEL = new xmlBase(el.element("CONTACTTEL"));
+ this.CONTACTPC = new xmlBase(el.element("CONTACTPC"));
+ this.SICKEDDATE = new xmlBase(el.element("SICKEDDATE"));
+ this.FIRSTVISIT = new xmlBase(el.element("FIRSTVISIT"));
+ this.DIAGDATE = new xmlBase(el.element("DIAGDATE"));
+ this.FEMPNODRCURR = new xmlBase(el.element("FEMPNODRCURR"));
+ this.FDRCURNAME = new xmlBase(el.element("FDRCURNAME"));
+ this.SICKDURATION = new xmlBase(el.element("SICKDURATION"));
+ this.CONDIN = new xmlBase(el.element("CONDIN"));
+ this.CLINICDIAG = new xmlBase(el.element("CLINICDIAG"));
+ this.DIAGNOSETIME = new xmlBase(el.element("DIAGNOSETIME"));
+ this.CHARGETYPE = new xmlBase(el.element("CHARGETYPE"));
+ this.CURRENTTIME = new xmlBase(el.element("CURRENTTIME"));
+
+ }
+
+ public xmlBase PATNO;
+ public xmlBase PATFILENO;
+ public xmlBase INFSEQUE;
+ public xmlBase FDPTNO;
+ public xmlBase PATNAME;
+ public xmlBase DPTNAME;
+ public xmlBase FSEXNO;
+ public xmlBase SEX;
+ public xmlBase FBIRTHDAY;
+ public xmlBase AGEBYDAY;
+ public xmlBase NATION;
+ public xmlBase MARRIAGE;
+ public xmlBase PROFESSION;
+ public xmlBase COUNTRY;
+ public xmlBase IDCARD;
+ public xmlBase NATIVE;
+ public xmlBase DATEIN;
+ public xmlBase DATEOUT;
+ public xmlBase DATEZYBQIN;
+ public xmlBase HSTRRECTIME;
+ public xmlBase HOMEADDR;
+ public xmlBase HOMEPOSTCODE;
+ public xmlBase HOMETEL;
+ public xmlBase BEDNO;
+ public xmlBase FPATSTATUS;
+ public xmlBase FITEMNOTEND;
+ public xmlBase FITEMNOFOOD;
+ public xmlBase WORKUNIT;
+ public xmlBase WORKPOSTCODE;
+ public xmlBase CONTACT;
+ public xmlBase RELATION;
+ public xmlBase CONTACTADDR;
+ public xmlBase CONTACTTEL;
+ public xmlBase CONTACTPC;
+ public xmlBase SICKEDDATE;
+ public xmlBase FIRSTVISIT;
+ public xmlBase DIAGDATE;
+ public xmlBase FEMPNODRCURR;
+ public xmlBase FDRCURNAME;
+ public xmlBase SICKDURATION;
+ public xmlBase CONDIN;
+ public xmlBase CLINICDIAG;
+ public xmlBase DIAGNOSETIME;
+ public xmlBase CHARGETYPE;
+ public xmlBase CURRENTTIME;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlmaster.java b/src/main/java/com/xjgs/xmlParseVO/xmlmaster.java
new file mode 100644
index 0000000..daf820f
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlmaster.java
@@ -0,0 +1,47 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlmaster {
+
+ public xmlmaster(){}
+
+ public xmlmaster(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.FPATNO = new xmlBase(el.element("FPATNO"));
+ this.FDPTNO = new xmlBase(el.element("FDPTNO"));
+ this.FBEDNO = new xmlBase(el.element("FBEDNO"));
+ this.FENTRYNO = new xmlBase(el.element("FENTRYNO"));
+ this.FRECNUM = new xmlBase(el.element("FRECNUM"));
+ this.FTITLE = new xmlBase(el.element("FTITLE"));
+ this.FSTART = new xmlBase(el.element("FSTART"));
+ this.FDATE = new xmlBase(el.element("FDATE"));
+ this.FXSLBROWSE = new xmlBase(el.element("FXSLBROWSE"));
+ this.FXSLMODIFY = new xmlBase(el.element("FXSLMODIFY"));
+ this.FSIGNNO = new xmlBase(el.element("FSIGNNO"));
+ this.FEMPNODEL = new xmlBase(el.element("FEMPNODEL"));
+ this.FDATEDEL = new xmlBase(el.element("FDATEDEL"));
+ this.FVALID = new xmlBase(el.element("FVALID"));
+
+ }
+
+
+ public xmlBase FPATNO;
+ public xmlBase FDPTNO;
+ public xmlBase FBEDNO;
+ public xmlBase FENTRYNO;
+ public xmlBase FRECNUM;
+ public xmlBase FTITLE;
+ public xmlBase FSTART;
+ public xmlBase FDATE;
+ public xmlBase FXSLBROWSE;
+ public xmlBase FXSLMODIFY;
+ public xmlBase FSIGNNO;
+ public xmlBase FEMPNODEL;
+ public xmlBase FDATEDEL;
+ public xmlBase FVALID;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlqrq1.java b/src/main/java/com/xjgs/xmlParseVO/xmlqrq1.java
new file mode 100644
index 0000000..b563644
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlqrq1.java
@@ -0,0 +1,29 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlqrq1 {
+
+ public xmlqrq1()
+ {
+
+ }
+
+ public xmlqrq1(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.qrq1Year = new xmlBase(el.element("qrq1Year"));
+ this.qrq1Mon = new xmlBase(el.element("qrq1Mon"));
+ this.qrq1Day = new xmlBase(el.element("qrq1Day"));
+ }
+
+
+
+
+ public xmlBase qrq1Year;
+ public xmlBase qrq1Mon;
+ public xmlBase qrq1Day;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlqrq2.java b/src/main/java/com/xjgs/xmlParseVO/xmlqrq2.java
new file mode 100644
index 0000000..3ab3a68
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlqrq2.java
@@ -0,0 +1,32 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlqrq2 {
+
+
+ public xmlqrq2()
+ {
+
+ }
+
+ public xmlqrq2(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.qrq2Year = new xmlBase(el.element("qrq2Year"));
+ this.qrq2Mon = new xmlBase(el.element("qrq2Mon"));
+ this.qrq2Day = new xmlBase(el.element("qrq2Day"));
+ }
+
+
+
+
+ public xmlBase qrq2Year;
+ public xmlBase qrq2Mon;
+ public xmlBase qrq2Day;
+
+
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlsignatoryBase.java b/src/main/java/com/xjgs/xmlParseVO/xmlsignatoryBase.java
new file mode 100644
index 0000000..2b88e85
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlsignatoryBase.java
@@ -0,0 +1,47 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Attribute;
+import org.dom4j.Element;
+
+public class xmlsignatoryBase {
+
+
+ public xmlsignatoryBase()
+ {
+
+ }
+
+ public xmlsignatoryBase(Element el)
+ {
+ if(el==null)
+ {
+ return;
+ }
+
+ Attribute tb = el.attribute("num");
+ if(tb !=null)
+ {
+ this.num = tb.getValue();
+ }
+ this.FZCNAME = new xmlBase(el.element("FZCNAME"));
+ this.FEMPNO = new xmlBase(el.element("FEMPNO"));
+ this.FEMPNAME = new xmlBase(el.element("FEMPNAME"));
+ this.FSIGNSEQ = new xmlBase(el.element("FSIGNSEQ"));
+ this.FSIGNTIME = new xmlBase(el.element("FSIGNTIME"));
+ this.FSIGNLEVEL = new xmlBase(el.element("FSIGNLEVEL"));
+ this.FDEALCAT = new xmlBase(el.element("FDEALCAT"));
+ this.FTIMES = new xmlBase(el.element("FTIMES"));
+ }
+
+
+
+ public String num;
+ public xmlBase FZCNAME;
+ public xmlBase FEMPNO;
+ public xmlBase FEMPNAME;
+ public xmlBase FSIGNSEQ;
+ public xmlBase FSIGNTIME;
+ public xmlBase FSIGNLEVEL;
+ public xmlBase FDEALCAT;
+ public xmlBase FTIMES;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlsignatorys.java b/src/main/java/com/xjgs/xmlParseVO/xmlsignatorys.java
new file mode 100644
index 0000000..e2aabe4
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlsignatorys.java
@@ -0,0 +1,45 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class xmlsignatorys {
+
+
+ public xmlsignatorys()
+ {
+ signatorys = new ArrayList();
+ }
+
+ public xmlsignatorys(Element el)
+ {
+ signatorys = new ArrayList();
+
+
+ if(el ==null)
+ {
+ return;
+ }
+
+
+ List eList=el.elements("signatory");
+
+ if(eList.size()==0)
+ {
+ return;
+ }
+
+ for (int i = 0; i< eList.size()-1;i++)
+ {
+ Element tmpI = (Element) eList.get(i);
+ xmlsignatoryBase tmpObj = new xmlsignatoryBase(tmpI);
+ signatorys.add(tmpObj);
+ }
+ }
+
+
+
+ public ArrayList signatorys;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlyrq1.java b/src/main/java/com/xjgs/xmlParseVO/xmlyrq1.java
new file mode 100644
index 0000000..bed18ef
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlyrq1.java
@@ -0,0 +1,26 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlyrq1 {
+
+ public xmlyrq1()
+ {
+
+ }
+
+ public xmlyrq1(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.yrq1Year = new xmlBase(el.element("yrq1Year"));
+ this.yrq1Mon = new xmlBase(el.element("yrq1Mon"));
+ this.yrq1Day = new xmlBase(el.element("yrq1Day"));
+ }
+
+ public xmlBase yrq1Year;
+ public xmlBase yrq1Mon;
+ public xmlBase yrq1Day;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlyrq2.java b/src/main/java/com/xjgs/xmlParseVO/xmlyrq2.java
new file mode 100644
index 0000000..c35cf2a
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlyrq2.java
@@ -0,0 +1,26 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlyrq2 {
+
+ public xmlyrq2()
+ {
+
+ }
+
+ public xmlyrq2(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.yrq2Year = new xmlBase(el.element("yrq2Year"));
+ this.yrq2Mon = new xmlBase(el.element("yrq2Mon"));
+ this.yrq2Day = new xmlBase(el.element("yrq2Day"));
+ }
+
+ public xmlBase yrq2Year;
+ public xmlBase yrq2Mon;
+ public xmlBase yrq2Day;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlzrq1.java b/src/main/java/com/xjgs/xmlParseVO/xmlzrq1.java
new file mode 100644
index 0000000..fb316cc
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlzrq1.java
@@ -0,0 +1,28 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlzrq1 {
+
+
+
+ public xmlzrq1()
+ {
+
+ }
+
+ public xmlzrq1(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.zrq1Year = new xmlBase(el.element("zrq1Year"));
+ this.zrq1Mon = new xmlBase(el.element("zrq1Mon"));
+ this.zrq1Day = new xmlBase(el.element("zrq1Day"));
+ }
+
+ public xmlBase zrq1Year;
+ public xmlBase zrq1Mon;
+ public xmlBase zrq1Day;
+}
diff --git a/src/main/java/com/xjgs/xmlParseVO/xmlzrq2.java b/src/main/java/com/xjgs/xmlParseVO/xmlzrq2.java
new file mode 100644
index 0000000..5981ccc
--- /dev/null
+++ b/src/main/java/com/xjgs/xmlParseVO/xmlzrq2.java
@@ -0,0 +1,27 @@
+package com.xjgs.xmlParseVO;
+
+import org.dom4j.Element;
+
+public class xmlzrq2 {
+
+
+ public xmlzrq2()
+ {
+
+ }
+
+ public xmlzrq2(Element el)
+ {
+ if(el ==null)
+ {
+ return;
+ }
+ this.zrq2Year = new xmlBase(el.element("zrq2Year"));
+ this.zrq2Mon = new xmlBase(el.element("zrq2Mon"));
+ this.zrq2Day = new xmlBase(el.element("zrq2Day"));
+ }
+
+ public xmlBase zrq2Year;
+ public xmlBase zrq2Mon;
+ public xmlBase zrq2Day;
+}
diff --git a/src/main/resources/c3p0-config.xml b/src/main/resources/c3p0-config.xml
new file mode 100644
index 0000000..4ad634f
--- /dev/null
+++ b/src/main/resources/c3p0-config.xml
@@ -0,0 +1,45 @@
+
+
+
+
+ 10
+ 0
+ 60
+ 10
+ 200
+
+
+
+
+ oracle.jdbc.driver.OracleDriver
+ jdbc:oracle:thin:@192.168.10.6:1521/orc1
+ pacs
+ pacs
+
+
+
+ oracle.jdbc.driver.OracleDriver
+ jdbc:oracle:thin:@192.168.10.126:1521/k3cloud
+ kdclouduser
+ kdclouduser
+
+
+
+ com.microsoft.sqlserver.jdbc.SQLServerDriver
+ jdbc:sqlserver://10.36.116.108:1433;databaseName=emr_record
+ sa
+ xjgs+docus911
+
+
+
+ com.mysql.jdbc.Driver
+ jdbc:mysql://10.36.116.108:3306/power?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true&failOverReadOnly=false
+ root
+ docus@702
+ 5
+ 0
+ 30
+ 5
+ 200
+
+
\ No newline at end of file
diff --git a/src/main/resources/localPath.xml b/src/main/resources/localPath.xml
new file mode 100644
index 0000000..0a46a59
--- /dev/null
+++ b/src/main/resources/localPath.xml
@@ -0,0 +1,5 @@
+
+
+ Z:
+ D:\JSWorking\SignedPictures\
+
diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties
new file mode 100644
index 0000000..bb2c197
--- /dev/null
+++ b/src/main/resources/log4j.properties
@@ -0,0 +1,18 @@
+#设置日志的级别,定义日志信息的输出目的
+log4j.rootLogger=DEBUG, CA ,RFA
+#定义CA的输出目的地为控制台
+log4j.appender.CA=org.apache.log4j.ConsoleAppender
+#布局为 PatternLayout 可以灵活地指定布局模式。
+log4j.appender.CA.layout=org.apache.log4j.PatternLayout
+#设置输出格式
+log4j.appender.CA.layout.ConversionPattern=%-d{yyyy-MM-dd HH\:mm\:ss} [%c]-[%p] %m%n
+#定义R的输出目的地为文件,并且文件大小到达指定尺寸的时候产生一个新的文件
+log4j.appender.RFA=org.apache.log4j.RollingFileAppender
+#设置输出的文件地址
+log4j.appender.RFA.File=${log.base}\\info.log
+#设置文件大小为100 kb 文件到达100时,产生一个新文件,
+#MaxBackupIndex 最大记录的文件数为1 超过删除较早的。
+log4j.appender.RFA.MaxFileSize=30720KB log4j.appender.RFA.MaxBackupIndex=1
+#以下和上面一样
+log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
+log4j.appender.RFA.layout.ConversionPattern=%p %t %c - %m%n
\ No newline at end of file
diff --git a/src/main/resources/quartz.properties b/src/main/resources/quartz.properties
new file mode 100644
index 0000000..422905f
--- /dev/null
+++ b/src/main/resources/quartz.properties
@@ -0,0 +1,6 @@
+org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
+org.quartz.threadPool.threadCount=15
+org.quartz.threadPool.threadPriority=5
+org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true
+org.quartz.jobStore.misfireThreshold=6000000
+org.quartz.jobStore.class=org.quartz.simpl.RAMJobStore
\ No newline at end of file