Jelajahi Sumber

更新报告同步程序

刘韬 5 tahun lalu
induk
melakukan
561473e5b7

+ 0 - 5
DataFusion/src/com/zskk/control/ViewController.java

@@ -11,11 +11,6 @@ import com.alibaba.fastjson.JSON;
 import com.jfinal.core.Controller;
 import com.jfinal.plugin.activerecord.Db;
 import com.jfinal.plugin.activerecord.Record;
-import com.zskk.model.Doctors;
-import com.zskk.model.Exams;
-import com.zskk.model.PatientInfos;
-import com.zskk.model.Report;
-import com.zskk.model.Studies;
 import okhttp3.FormBody;
 import okhttp3.MediaType;
 import okhttp3.OkHttpClient;

+ 0 - 11
DataFusion/src/com/zskk/model/Doctors.java

@@ -1,11 +0,0 @@
-package com.zskk.model;
-
-import com.zskk.model.base.BaseDoctors;
-
-/**
- * Generated by JFinal.
- */
-@SuppressWarnings("serial")
-public class Doctors extends BaseDoctors<Doctors> {
-	public static final Doctors dao = new Doctors().dao();
-}

+ 0 - 11
DataFusion/src/com/zskk/model/Exams.java

@@ -1,11 +0,0 @@
-package com.zskk.model;
-
-import com.zskk.model.base.BaseExams;
-
-/**
- * Generated by JFinal.
- */
-@SuppressWarnings("serial")
-public class Exams extends BaseExams<Exams> {
-	public static final Exams dao = new Exams().dao();
-}

+ 0 - 11
DataFusion/src/com/zskk/model/PatientInfos.java

@@ -1,11 +0,0 @@
-package com.zskk.model;
-
-import com.zskk.model.base.BasePatientInfos;
-
-/**
- * Generated by JFinal.
- */
-@SuppressWarnings("serial")
-public class PatientInfos extends BasePatientInfos<PatientInfos> {
-	public static final PatientInfos dao = new PatientInfos().dao();
-}

+ 0 - 11
DataFusion/src/com/zskk/model/Report.java

@@ -1,11 +0,0 @@
-package com.zskk.model;
-
-import com.zskk.model.base.BaseReport;
-
-/**
- * Generated by JFinal.
- */
-@SuppressWarnings("serial")
-public class Report extends BaseReport<Report> {
-	public static final Report dao = new Report().dao();
-}

+ 0 - 143
DataFusion/src/com/zskk/model/_DataDictionary.txt

@@ -1,143 +0,0 @@
-Table: doctors
-----------------+---------------+------+-----+---------+---------
- Field          | Type          | Null | Key | Default | Remarks 
-----------------+---------------+------+-----+---------+---------
- id             | VARCHAR(32)   | NO   | PRI |         |         
- username       | VARCHAR(100)  | NO   |     |         | 用户名     
- password       | VARCHAR(200)  | NO   |     |         | 密码      
- realname       | VARCHAR(200)  | YES  |     |         | 真实姓名    
- email          | VARCHAR(200)  | YES  |     |         | email   
- login_time     | DATETIME(19)  | YES  |     |         | 登录时间    
- createdAt      | DATETIME(19)  | YES  |     |         | 创建时间    
- updatedAt      | DATETIME(19)  | YES  |     |         | 修改时间    
- token          | VARCHAR(255)  | YES  |     |         | 每次登陆产生新的Session标识
- phone          | VARCHAR(20)   | YES  |     |         | 电话      
- remark         | VARCHAR(1000) | YES  |     |         | 备注      
- doctor_title   | VARCHAR(255)  | YES  |     |         | 职称      
- status         | VARCHAR(50)   | YES  |     |         |         
- attachment     | VARCHAR(2000) | YES  |     |         | 附件      
- institution_id | VARCHAR(50)   | YES  |     |         | 医疗机构ID  
- department_id  | VARCHAR(50)   | YES  |     |         | 主要科室ID  
- doctor_role    | VARCHAR(20)   | YES  |     |         | 1.本地医生2.远程医生(可多选)
- login_failure  | INT(10)       | YES  |     |         | 登录失败次数  
- is_report      | VARCHAR(10)   | YES  |     |         | 是否能写报告  
-----------------+---------------+------+-----+---------+---------
-
-Table: exams
--------------------+---------------+------+-----+---------+---------
- Field             | Type          | Null | Key | Default | Remarks 
--------------------+---------------+------+-----+---------+---------
- id                | VARCHAR(32)   | NO   | PRI |         |         
- dept_id           | VARCHAR(100)  | YES  |     |         | 检查科室(执行科室)
- patient_id        | VARCHAR(100)  | YES  |     |         | 患者id    
- patient_num       | VARCHAR(200)  | YES  |     |         | 病历号     
- accession_num     | VARCHAR(100)  | YES  |     |         | 科室检查号   
- exam_datetime     | VARCHAR(20)   | YES  |     |         | 检查日期    
- exam_class        | VARCHAR(200)  | YES  |     |         | 检查类型    
- exam_sub_class    | VARCHAR(200)  | YES  |     |         | 检查子类    
- exam_project      | VARCHAR(200)  | YES  |     |         | 检查项目    
- device            | VARCHAR(200)  | YES  |     |         | 检查设备    
- body_part         | VARCHAR(200)  | YES  |     |         | 检查部位    
- exam_method       | VARCHAR(200)  | YES  |     |         | 检查方法    
- hopitalized_no    | VARCHAR(200)  | YES  |     |         | 住院号     
- bed_no            | VARCHAR(200)  | YES  |     |         | 床位号     
- clin_dept_id      | VARCHAR(50)   | YES  |     |         | 送诊科室id  
- technician        | VARCHAR(200)  | YES  |     |         | 技师      
- charge            | VARCHAR(200)  | YES  |     |         | 检查费用    
- cost              | VARCHAR(200)  | YES  |     |         | 实际费用    
- clin_doctors      | VARCHAR(200)  | YES  |     |         | 送诊医生    
- phone             | VARCHAR(20)   | YES  |     |         | 联系方式    
- institution_id    | VARCHAR(200)  | YES  |     |         | 医院id    
- study_id          | VARCHAR(50)   | YES  |     |         | studyuid(studykey)
- illness_desc      | TEXT(65535)   | YES  |     |         | 主诉      
- phys_sign         | VARCHAR(200)  | YES  |     |         | 体征      
- clin_diag         | VARCHAR(1000) | YES  |     |         | 临床诊断    
- clin_symp         | VARCHAR(4000) | YES  |     |         | 临床症状    
- patient_source    | VARCHAR(20)   | YES  |     |         | 病人来源 1门诊 2住院 3外来
- req_datetime      | DATETIME(19)  | YES  |     |         | 申请时间    
- req_doctor        | VARCHAR(50)   | YES  |     |         | 申请医生(医生id)
- remark            | TEXT(65535)   | YES  |     |         | 其他说明    
- register          | VARCHAR(50)   | YES  |     |         | 登记人员( 医生id)
- register_datetime | DATETIME(19)  | YES  |     |         | 注册登记时间  
- exam_status       | TINYINT(3)    | YES  |     | 1       | 1、登记 2、开始检查3、检查完毕 4、申请 5、驳回 6、接收、7、初步报告 8、审核报告 9、确认、
- status            | VARCHAR(20)   | YES  |     | 1       | 记录状态 0禁用 1正常
- pay_status        | VARCHAR(10)   | YES  |     | 0       | 支付状态    
- is_remote         | VARCHAR(10)   | YES  |     |         | 远程诊断是被接受 0,未接受  1,已接受
- urgent            | VARCHAR(10)   | NO   |     | 0       | 是否急诊 0否  1是
- film_type         | VARCHAR(20)   | YES  |     | 0       | 0 未定义  1传统胶片  2电子胶片
- anamnesis         | VARCHAR(255)  | YES  |     |         |         
- family_ill        | VARCHAR(255)  | YES  |     |         |         
- createdAt         | DATETIME(19)  | YES  |     |         |         
- updatedAt         | DATETIME(19)  | YES  |     |         |         
- delivery_doctor   | VARCHAR(100)  | YES  |     |         | 送诊医生    
- exam_report       | VARCHAR(10)   | YES  |     |         | 检查结果    
--------------------+---------------+------+-----+---------+---------
-
-Table: patient_infos
------------------+---------------+------+-----+---------+---------
- Field           | Type          | Null | Key | Default | Remarks 
------------------+---------------+------+-----+---------+---------
- id              | VARCHAR(32)   | NO   | PRI |         |         
- name            | VARCHAR(100)  | YES  |     |         | 患者姓名    
- sex             | VARCHAR(10)   | YES  |     |         | 性别      
- card_num        | VARCHAR(100)  | YES  |     |         | 身份证号    
- phone           | VARCHAR(20)   | YES  |     |         | 手机号     
- ctime           | DATETIME(19)  | YES  |     |         | 创建时间    
- birthday        | VARCHAR(20)   | YES  |     |         | 生日      
- age             | VARCHAR(10)   | YES  |     |         | 年龄      
- card_type       | VARCHAR(30)   | YES  |     |         | 证件类型    
- nationality     | VARCHAR(50)   | YES  |     |         | 国籍      
- nation          | VARCHAR(30)   | YES  |     |         | 民族      
- marry           | VARCHAR(10)   | YES  |     |         | 婚否      
- professional    | VARCHAR(100)  | YES  |     |         | 职业      
- address         | VARCHAR(255)  | YES  |     |         | 联系地址    
- temp_patient_id | VARCHAR(50)   | YES  |     |         | 检查临时患者id(从dicom影像中解析)
- status          | VARCHAR(10)   | YES  |     |         |         
- institution_id  | VARCHAR(200)  | YES  |     |         | 所属医院    
- anamnesis       | VARCHAR(2000) | YES  |     |         | 疾病史     
- family_ill      | VARCHAR(2000) | YES  |     |         | 家族史     
- createdAt       | DATETIME(19)  | YES  |     |         |         
- updatedAt       | DATETIME(19)  | YES  |     |         |         
------------------+---------------+------+-----+---------+---------
-
-Table: report
--------------------+---------------+------+-----+---------+---------
- Field             | Type          | Null | Key | Default | Remarks 
--------------------+---------------+------+-----+---------+---------
- id                | VARCHAR(32)   | NO   | PRI |         | 报告id    
- report_datetime   | DATETIME(19)  | YES  |     |         | 报告时间    
- description       | TEXT(65535)   | YES  |     |         | 检查所见    
- impression        | TEXT(65535)   | YES  |     |         | 意见建议    
- img_url           | VARCHAR(1500) | YES  |     |         | 缩略图地址   
- exam_id           | VARCHAR(255)  | YES  |     |         | 检查表id   
- createdAt         | DATETIME(19)  | YES  |     |         |         
- report_doctor_id  | VARCHAR(255)  | YES  |     |         | 报告医生id  
- review_doctor_id  | VARCHAR(255)  | YES  |     |         | 审核医生id  
- qr_code           | VARCHAR(255)  | YES  |     |         | 二维码     
- report_result     | VARCHAR(255)  | YES  |     |         | 报告结果(阴阳性) 1阴性 2阳性
- review_datetime   | DATETIME(19)  | YES  |     |         | 审核时间    
- confirm_doctor_id | VARCHAR(50)   | YES  |     |         | 确认医生    
- confirm_datetime  | DATETIME(19)  | YES  |     |         | 确认时间    
--------------------+---------------+------+-----+---------+---------
-
-Table: studies
-------------------+--------------+------+-----+---------+---------
- Field            | Type         | Null | Key | Default | Remarks 
-------------------+--------------+------+-----+---------+---------
- id               | VARCHAR(32)  | NO   | PRI |         |         
- studyuid         | VARCHAR(200) | NO   | PRI |         |         
- patient_id       | VARCHAR(50)  | YES  |     |         | 患者id    
- studyid          | VARCHAR(50)  | YES  |     |         |         
- accession_num    | VARCHAR(255) | YES  |     |         | 科室检查号   
- studydate        | VARCHAR(255) | YES  |     |         |         
- ctime            | DATETIME(19) | YES  |     |         |         
- utime            | DATETIME(19) | YES  |     |         |         
- modality         | VARCHAR(255) | YES  |     |         |         
- status           | INT(10)      | YES  |     |         |         
- patient_age      | VARCHAR(20)  | YES  |     |         |         
- institution_name | VARCHAR(50)  | YES  |     |         | 机构名称    
- institution_id   | VARCHAR(200) | YES  |     |         |         
- createdAt        | DATETIME(19) | YES  |     |         |         
- updatedAt        | DATETIME(19) | YES  |     |         |         
-------------------+--------------+------+-----+---------+---------
-

+ 0 - 27
DataFusion/src/com/zskk/model/_MappingKit.java

@@ -1,27 +0,0 @@
-package com.zskk.model;
-
-import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
-
-/**
- * Generated by JFinal, do not modify this file.
- * <pre>
- * Example:
- * public void configPlugin(Plugins me) {
- *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
- *     _MappingKit.mapping(arp);
- *     me.add(arp);
- * }
- * </pre>
- */
-public class _MappingKit {
-	
-	public static void mapping(ActiveRecordPlugin arp) {
-		arp.addMapping("doctors", "id", Doctors.class);
-		arp.addMapping("exams", "id", Exams.class);
-		arp.addMapping("patient_infos", "id", PatientInfos.class);
-		arp.addMapping("report", "id", Report.class);
-		// Composite Primary Key order: id,studyuid
-		arp.addMapping("studies", "id", Studies.class);
-	}
-}
-

+ 0 - 183
DataFusion/src/com/zskk/model/base/BaseDoctors.java

@@ -1,183 +0,0 @@
-package com.zskk.model.base;
-
-import com.jfinal.plugin.activerecord.Model;
-import com.jfinal.plugin.activerecord.IBean;
-
-/**
- * Generated by JFinal, do not modify this file.
- */
-@SuppressWarnings({"serial", "unchecked"})
-public abstract class BaseDoctors<M extends BaseDoctors<M>> extends Model<M> implements IBean {
-
-	public M setId(java.lang.String id) {
-		set("id", id);
-		return (M)this;
-	}
-	
-	public java.lang.String getId() {
-		return getStr("id");
-	}
-
-	public M setUsername(java.lang.String username) {
-		set("username", username);
-		return (M)this;
-	}
-	
-	public java.lang.String getUsername() {
-		return getStr("username");
-	}
-
-	public M setPassword(java.lang.String password) {
-		set("password", password);
-		return (M)this;
-	}
-	
-	public java.lang.String getPassword() {
-		return getStr("password");
-	}
-
-	public M setRealname(java.lang.String realname) {
-		set("realname", realname);
-		return (M)this;
-	}
-	
-	public java.lang.String getRealname() {
-		return getStr("realname");
-	}
-
-	public M setEmail(java.lang.String email) {
-		set("email", email);
-		return (M)this;
-	}
-	
-	public java.lang.String getEmail() {
-		return getStr("email");
-	}
-
-	public M setLoginTime(java.util.Date loginTime) {
-		set("login_time", loginTime);
-		return (M)this;
-	}
-	
-	public java.util.Date getLoginTime() {
-		return get("login_time");
-	}
-
-	public M setCreatedAt(java.util.Date createdAt) {
-		set("createdAt", createdAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getCreatedAt() {
-		return get("createdAt");
-	}
-
-	public M setUpdatedAt(java.util.Date updatedAt) {
-		set("updatedAt", updatedAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getUpdatedAt() {
-		return get("updatedAt");
-	}
-
-	public M setToken(java.lang.String token) {
-		set("token", token);
-		return (M)this;
-	}
-	
-	public java.lang.String getToken() {
-		return getStr("token");
-	}
-
-	public M setPhone(java.lang.String phone) {
-		set("phone", phone);
-		return (M)this;
-	}
-	
-	public java.lang.String getPhone() {
-		return getStr("phone");
-	}
-
-	public M setRemark(java.lang.String remark) {
-		set("remark", remark);
-		return (M)this;
-	}
-	
-	public java.lang.String getRemark() {
-		return getStr("remark");
-	}
-
-	public M setDoctorTitle(java.lang.String doctorTitle) {
-		set("doctor_title", doctorTitle);
-		return (M)this;
-	}
-	
-	public java.lang.String getDoctorTitle() {
-		return getStr("doctor_title");
-	}
-
-	public M setStatus(java.lang.String status) {
-		set("status", status);
-		return (M)this;
-	}
-	
-	public java.lang.String getStatus() {
-		return getStr("status");
-	}
-
-	public M setAttachment(java.lang.String attachment) {
-		set("attachment", attachment);
-		return (M)this;
-	}
-	
-	public java.lang.String getAttachment() {
-		return getStr("attachment");
-	}
-
-	public M setInstitutionId(java.lang.String institutionId) {
-		set("institution_id", institutionId);
-		return (M)this;
-	}
-	
-	public java.lang.String getInstitutionId() {
-		return getStr("institution_id");
-	}
-
-	public M setDepartmentId(java.lang.String departmentId) {
-		set("department_id", departmentId);
-		return (M)this;
-	}
-	
-	public java.lang.String getDepartmentId() {
-		return getStr("department_id");
-	}
-
-	public M setDoctorRole(java.lang.String doctorRole) {
-		set("doctor_role", doctorRole);
-		return (M)this;
-	}
-	
-	public java.lang.String getDoctorRole() {
-		return getStr("doctor_role");
-	}
-
-	public M setLoginFailure(java.lang.Integer loginFailure) {
-		set("login_failure", loginFailure);
-		return (M)this;
-	}
-	
-	public java.lang.Integer getLoginFailure() {
-		return getInt("login_failure");
-	}
-
-	public M setIsReport(java.lang.String isReport) {
-		set("is_report", isReport);
-		return (M)this;
-	}
-	
-	public java.lang.String getIsReport() {
-		return getStr("is_report");
-	}
-
-}

+ 0 - 408
DataFusion/src/com/zskk/model/base/BaseExams.java

@@ -1,408 +0,0 @@
-package com.zskk.model.base;
-
-import com.jfinal.plugin.activerecord.Model;
-import com.jfinal.plugin.activerecord.IBean;
-
-/**
- * Generated by JFinal, do not modify this file.
- */
-@SuppressWarnings({"serial", "unchecked"})
-public abstract class BaseExams<M extends BaseExams<M>> extends Model<M> implements IBean {
-
-	public M setId(java.lang.String id) {
-		set("id", id);
-		return (M)this;
-	}
-	
-	public java.lang.String getId() {
-		return getStr("id");
-	}
-
-	public M setDeptId(java.lang.String deptId) {
-		set("dept_id", deptId);
-		return (M)this;
-	}
-	
-	public java.lang.String getDeptId() {
-		return getStr("dept_id");
-	}
-
-	public M setPatientId(java.lang.String patientId) {
-		set("patient_id", patientId);
-		return (M)this;
-	}
-	
-	public java.lang.String getPatientId() {
-		return getStr("patient_id");
-	}
-
-	public M setPatientNum(java.lang.String patientNum) {
-		set("patient_num", patientNum);
-		return (M)this;
-	}
-	
-	public java.lang.String getPatientNum() {
-		return getStr("patient_num");
-	}
-
-	public M setAccessionNum(java.lang.String accessionNum) {
-		set("accession_num", accessionNum);
-		return (M)this;
-	}
-	
-	public java.lang.String getAccessionNum() {
-		return getStr("accession_num");
-	}
-
-	public M setExamDatetime(java.lang.String examDatetime) {
-		set("exam_datetime", examDatetime);
-		return (M)this;
-	}
-	
-	public java.lang.String getExamDatetime() {
-		return getStr("exam_datetime");
-	}
-
-	public M setExamClass(java.lang.String examClass) {
-		set("exam_class", examClass);
-		return (M)this;
-	}
-	
-	public java.lang.String getExamClass() {
-		return getStr("exam_class");
-	}
-
-	public M setExamSubClass(java.lang.String examSubClass) {
-		set("exam_sub_class", examSubClass);
-		return (M)this;
-	}
-	
-	public java.lang.String getExamSubClass() {
-		return getStr("exam_sub_class");
-	}
-
-	public M setExamProject(java.lang.String examProject) {
-		set("exam_project", examProject);
-		return (M)this;
-	}
-	
-	public java.lang.String getExamProject() {
-		return getStr("exam_project");
-	}
-
-	public M setDevice(java.lang.String device) {
-		set("device", device);
-		return (M)this;
-	}
-	
-	public java.lang.String getDevice() {
-		return getStr("device");
-	}
-
-	public M setBodyPart(java.lang.String bodyPart) {
-		set("body_part", bodyPart);
-		return (M)this;
-	}
-	
-	public java.lang.String getBodyPart() {
-		return getStr("body_part");
-	}
-
-	public M setExamMethod(java.lang.String examMethod) {
-		set("exam_method", examMethod);
-		return (M)this;
-	}
-	
-	public java.lang.String getExamMethod() {
-		return getStr("exam_method");
-	}
-
-	public M setHopitalizedNo(java.lang.String hopitalizedNo) {
-		set("hopitalized_no", hopitalizedNo);
-		return (M)this;
-	}
-	
-	public java.lang.String getHopitalizedNo() {
-		return getStr("hopitalized_no");
-	}
-
-	public M setBedNo(java.lang.String bedNo) {
-		set("bed_no", bedNo);
-		return (M)this;
-	}
-	
-	public java.lang.String getBedNo() {
-		return getStr("bed_no");
-	}
-
-	public M setClinDeptId(java.lang.String clinDeptId) {
-		set("clin_dept_id", clinDeptId);
-		return (M)this;
-	}
-	
-	public java.lang.String getClinDeptId() {
-		return getStr("clin_dept_id");
-	}
-
-	public M setTechnician(java.lang.String technician) {
-		set("technician", technician);
-		return (M)this;
-	}
-	
-	public java.lang.String getTechnician() {
-		return getStr("technician");
-	}
-
-	public M setCharge(java.lang.String charge) {
-		set("charge", charge);
-		return (M)this;
-	}
-	
-	public java.lang.String getCharge() {
-		return getStr("charge");
-	}
-
-	public M setCost(java.lang.String cost) {
-		set("cost", cost);
-		return (M)this;
-	}
-	
-	public java.lang.String getCost() {
-		return getStr("cost");
-	}
-
-	public M setClinDoctors(java.lang.String clinDoctors) {
-		set("clin_doctors", clinDoctors);
-		return (M)this;
-	}
-	
-	public java.lang.String getClinDoctors() {
-		return getStr("clin_doctors");
-	}
-
-	public M setPhone(java.lang.String phone) {
-		set("phone", phone);
-		return (M)this;
-	}
-	
-	public java.lang.String getPhone() {
-		return getStr("phone");
-	}
-
-	public M setInstitutionId(java.lang.String institutionId) {
-		set("institution_id", institutionId);
-		return (M)this;
-	}
-	
-	public java.lang.String getInstitutionId() {
-		return getStr("institution_id");
-	}
-
-	public M setStudyId(java.lang.String studyId) {
-		set("study_id", studyId);
-		return (M)this;
-	}
-	
-	public java.lang.String getStudyId() {
-		return getStr("study_id");
-	}
-
-	public M setIllnessDesc(java.lang.String illnessDesc) {
-		set("illness_desc", illnessDesc);
-		return (M)this;
-	}
-	
-	public java.lang.String getIllnessDesc() {
-		return getStr("illness_desc");
-	}
-
-	public M setPhysSign(java.lang.String physSign) {
-		set("phys_sign", physSign);
-		return (M)this;
-	}
-	
-	public java.lang.String getPhysSign() {
-		return getStr("phys_sign");
-	}
-
-	public M setClinDiag(java.lang.String clinDiag) {
-		set("clin_diag", clinDiag);
-		return (M)this;
-	}
-	
-	public java.lang.String getClinDiag() {
-		return getStr("clin_diag");
-	}
-
-	public M setClinSymp(java.lang.String clinSymp) {
-		set("clin_symp", clinSymp);
-		return (M)this;
-	}
-	
-	public java.lang.String getClinSymp() {
-		return getStr("clin_symp");
-	}
-
-	public M setPatientSource(java.lang.String patientSource) {
-		set("patient_source", patientSource);
-		return (M)this;
-	}
-	
-	public java.lang.String getPatientSource() {
-		return getStr("patient_source");
-	}
-
-	public M setReqDatetime(java.util.Date reqDatetime) {
-		set("req_datetime", reqDatetime);
-		return (M)this;
-	}
-	
-	public java.util.Date getReqDatetime() {
-		return get("req_datetime");
-	}
-
-	public M setReqDoctor(java.lang.String reqDoctor) {
-		set("req_doctor", reqDoctor);
-		return (M)this;
-	}
-	
-	public java.lang.String getReqDoctor() {
-		return getStr("req_doctor");
-	}
-
-	public M setRemark(java.lang.String remark) {
-		set("remark", remark);
-		return (M)this;
-	}
-	
-	public java.lang.String getRemark() {
-		return getStr("remark");
-	}
-
-	public M setRegister(java.lang.String register) {
-		set("register", register);
-		return (M)this;
-	}
-	
-	public java.lang.String getRegister() {
-		return getStr("register");
-	}
-
-	public M setRegisterDatetime(java.util.Date registerDatetime) {
-		set("register_datetime", registerDatetime);
-		return (M)this;
-	}
-	
-	public java.util.Date getRegisterDatetime() {
-		return get("register_datetime");
-	}
-
-	public M setExamStatus(java.lang.Integer examStatus) {
-		set("exam_status", examStatus);
-		return (M)this;
-	}
-	
-	public java.lang.Integer getExamStatus() {
-		return getInt("exam_status");
-	}
-
-	public M setStatus(java.lang.String status) {
-		set("status", status);
-		return (M)this;
-	}
-	
-	public java.lang.String getStatus() {
-		return getStr("status");
-	}
-
-	public M setPayStatus(java.lang.String payStatus) {
-		set("pay_status", payStatus);
-		return (M)this;
-	}
-	
-	public java.lang.String getPayStatus() {
-		return getStr("pay_status");
-	}
-
-	public M setIsRemote(java.lang.String isRemote) {
-		set("is_remote", isRemote);
-		return (M)this;
-	}
-	
-	public java.lang.String getIsRemote() {
-		return getStr("is_remote");
-	}
-
-	public M setUrgent(java.lang.String urgent) {
-		set("urgent", urgent);
-		return (M)this;
-	}
-	
-	public java.lang.String getUrgent() {
-		return getStr("urgent");
-	}
-
-	public M setFilmType(java.lang.String filmType) {
-		set("film_type", filmType);
-		return (M)this;
-	}
-	
-	public java.lang.String getFilmType() {
-		return getStr("film_type");
-	}
-
-	public M setAnamnesis(java.lang.String anamnesis) {
-		set("anamnesis", anamnesis);
-		return (M)this;
-	}
-	
-	public java.lang.String getAnamnesis() {
-		return getStr("anamnesis");
-	}
-
-	public M setFamilyIll(java.lang.String familyIll) {
-		set("family_ill", familyIll);
-		return (M)this;
-	}
-	
-	public java.lang.String getFamilyIll() {
-		return getStr("family_ill");
-	}
-
-	public M setCreatedAt(java.util.Date createdAt) {
-		set("createdAt", createdAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getCreatedAt() {
-		return get("createdAt");
-	}
-
-	public M setUpdatedAt(java.util.Date updatedAt) {
-		set("updatedAt", updatedAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getUpdatedAt() {
-		return get("updatedAt");
-	}
-
-	public M setDeliveryDoctor(java.lang.String deliveryDoctor) {
-		set("delivery_doctor", deliveryDoctor);
-		return (M)this;
-	}
-	
-	public java.lang.String getDeliveryDoctor() {
-		return getStr("delivery_doctor");
-	}
-
-	public M setExamReport(java.lang.String examReport) {
-		set("exam_report", examReport);
-		return (M)this;
-	}
-	
-	public java.lang.String getExamReport() {
-		return getStr("exam_report");
-	}
-
-}

+ 0 - 201
DataFusion/src/com/zskk/model/base/BasePatientInfos.java

@@ -1,201 +0,0 @@
-package com.zskk.model.base;
-
-import com.jfinal.plugin.activerecord.Model;
-import com.jfinal.plugin.activerecord.IBean;
-
-/**
- * Generated by JFinal, do not modify this file.
- */
-@SuppressWarnings({"serial", "unchecked"})
-public abstract class BasePatientInfos<M extends BasePatientInfos<M>> extends Model<M> implements IBean {
-
-	public M setId(java.lang.String id) {
-		set("id", id);
-		return (M)this;
-	}
-	
-	public java.lang.String getId() {
-		return getStr("id");
-	}
-
-	public M setName(java.lang.String name) {
-		set("name", name);
-		return (M)this;
-	}
-	
-	public java.lang.String getName() {
-		return getStr("name");
-	}
-
-	public M setSex(java.lang.String sex) {
-		set("sex", sex);
-		return (M)this;
-	}
-	
-	public java.lang.String getSex() {
-		return getStr("sex");
-	}
-
-	public M setCardNum(java.lang.String cardNum) {
-		set("card_num", cardNum);
-		return (M)this;
-	}
-	
-	public java.lang.String getCardNum() {
-		return getStr("card_num");
-	}
-
-	public M setPhone(java.lang.String phone) {
-		set("phone", phone);
-		return (M)this;
-	}
-	
-	public java.lang.String getPhone() {
-		return getStr("phone");
-	}
-
-	public M setCtime(java.util.Date ctime) {
-		set("ctime", ctime);
-		return (M)this;
-	}
-	
-	public java.util.Date getCtime() {
-		return get("ctime");
-	}
-
-	public M setBirthday(java.lang.String birthday) {
-		set("birthday", birthday);
-		return (M)this;
-	}
-	
-	public java.lang.String getBirthday() {
-		return getStr("birthday");
-	}
-
-	public M setAge(java.lang.String age) {
-		set("age", age);
-		return (M)this;
-	}
-	
-	public java.lang.String getAge() {
-		return getStr("age");
-	}
-
-	public M setCardType(java.lang.String cardType) {
-		set("card_type", cardType);
-		return (M)this;
-	}
-	
-	public java.lang.String getCardType() {
-		return getStr("card_type");
-	}
-
-	public M setNationality(java.lang.String nationality) {
-		set("nationality", nationality);
-		return (M)this;
-	}
-	
-	public java.lang.String getNationality() {
-		return getStr("nationality");
-	}
-
-	public M setNation(java.lang.String nation) {
-		set("nation", nation);
-		return (M)this;
-	}
-	
-	public java.lang.String getNation() {
-		return getStr("nation");
-	}
-
-	public M setMarry(java.lang.String marry) {
-		set("marry", marry);
-		return (M)this;
-	}
-	
-	public java.lang.String getMarry() {
-		return getStr("marry");
-	}
-
-	public M setProfessional(java.lang.String professional) {
-		set("professional", professional);
-		return (M)this;
-	}
-	
-	public java.lang.String getProfessional() {
-		return getStr("professional");
-	}
-
-	public M setAddress(java.lang.String address) {
-		set("address", address);
-		return (M)this;
-	}
-	
-	public java.lang.String getAddress() {
-		return getStr("address");
-	}
-
-	public M setTempPatientId(java.lang.String tempPatientId) {
-		set("temp_patient_id", tempPatientId);
-		return (M)this;
-	}
-	
-	public java.lang.String getTempPatientId() {
-		return getStr("temp_patient_id");
-	}
-
-	public M setStatus(java.lang.String status) {
-		set("status", status);
-		return (M)this;
-	}
-	
-	public java.lang.String getStatus() {
-		return getStr("status");
-	}
-
-	public M setInstitutionId(java.lang.String institutionId) {
-		set("institution_id", institutionId);
-		return (M)this;
-	}
-	
-	public java.lang.String getInstitutionId() {
-		return getStr("institution_id");
-	}
-
-	public M setAnamnesis(java.lang.String anamnesis) {
-		set("anamnesis", anamnesis);
-		return (M)this;
-	}
-	
-	public java.lang.String getAnamnesis() {
-		return getStr("anamnesis");
-	}
-
-	public M setFamilyIll(java.lang.String familyIll) {
-		set("family_ill", familyIll);
-		return (M)this;
-	}
-	
-	public java.lang.String getFamilyIll() {
-		return getStr("family_ill");
-	}
-
-	public M setCreatedAt(java.util.Date createdAt) {
-		set("createdAt", createdAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getCreatedAt() {
-		return get("createdAt");
-	}
-
-	public M setUpdatedAt(java.util.Date updatedAt) {
-		set("updatedAt", updatedAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getUpdatedAt() {
-		return get("updatedAt");
-	}
-
-}

+ 0 - 138
DataFusion/src/com/zskk/model/base/BaseReport.java

@@ -1,138 +0,0 @@
-package com.zskk.model.base;
-
-import com.jfinal.plugin.activerecord.Model;
-import com.jfinal.plugin.activerecord.IBean;
-
-/**
- * Generated by JFinal, do not modify this file.
- */
-@SuppressWarnings({"serial", "unchecked"})
-public abstract class BaseReport<M extends BaseReport<M>> extends Model<M> implements IBean {
-
-	public M setId(java.lang.String id) {
-		set("id", id);
-		return (M)this;
-	}
-	
-	public java.lang.String getId() {
-		return getStr("id");
-	}
-
-	public M setReportDatetime(java.util.Date reportDatetime) {
-		set("report_datetime", reportDatetime);
-		return (M)this;
-	}
-	
-	public java.util.Date getReportDatetime() {
-		return get("report_datetime");
-	}
-
-	public M setDescription(java.lang.String description) {
-		set("description", description);
-		return (M)this;
-	}
-	
-	public java.lang.String getDescription() {
-		return getStr("description");
-	}
-
-	public M setImpression(java.lang.String impression) {
-		set("impression", impression);
-		return (M)this;
-	}
-	
-	public java.lang.String getImpression() {
-		return getStr("impression");
-	}
-
-	public M setImgUrl(java.lang.String imgUrl) {
-		set("img_url", imgUrl);
-		return (M)this;
-	}
-	
-	public java.lang.String getImgUrl() {
-		return getStr("img_url");
-	}
-
-	public M setExamId(java.lang.String examId) {
-		set("exam_id", examId);
-		return (M)this;
-	}
-	
-	public java.lang.String getExamId() {
-		return getStr("exam_id");
-	}
-
-	public M setCreatedAt(java.util.Date createdAt) {
-		set("createdAt", createdAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getCreatedAt() {
-		return get("createdAt");
-	}
-
-	public M setReportDoctorId(java.lang.String reportDoctorId) {
-		set("report_doctor_id", reportDoctorId);
-		return (M)this;
-	}
-	
-	public java.lang.String getReportDoctorId() {
-		return getStr("report_doctor_id");
-	}
-
-	public M setReviewDoctorId(java.lang.String reviewDoctorId) {
-		set("review_doctor_id", reviewDoctorId);
-		return (M)this;
-	}
-	
-	public java.lang.String getReviewDoctorId() {
-		return getStr("review_doctor_id");
-	}
-
-	public M setQrCode(java.lang.String qrCode) {
-		set("qr_code", qrCode);
-		return (M)this;
-	}
-	
-	public java.lang.String getQrCode() {
-		return getStr("qr_code");
-	}
-
-	public M setReportResult(java.lang.String reportResult) {
-		set("report_result", reportResult);
-		return (M)this;
-	}
-	
-	public java.lang.String getReportResult() {
-		return getStr("report_result");
-	}
-
-	public M setReviewDatetime(java.util.Date reviewDatetime) {
-		set("review_datetime", reviewDatetime);
-		return (M)this;
-	}
-	
-	public java.util.Date getReviewDatetime() {
-		return get("review_datetime");
-	}
-
-	public M setConfirmDoctorId(java.lang.String confirmDoctorId) {
-		set("confirm_doctor_id", confirmDoctorId);
-		return (M)this;
-	}
-	
-	public java.lang.String getConfirmDoctorId() {
-		return getStr("confirm_doctor_id");
-	}
-
-	public M setConfirmDatetime(java.util.Date confirmDatetime) {
-		set("confirm_datetime", confirmDatetime);
-		return (M)this;
-	}
-	
-	public java.util.Date getConfirmDatetime() {
-		return get("confirm_datetime");
-	}
-
-}

+ 0 - 147
DataFusion/src/com/zskk/model/base/BaseStudies.java

@@ -1,147 +0,0 @@
-package com.zskk.model.base;
-
-import com.jfinal.plugin.activerecord.Model;
-import com.jfinal.plugin.activerecord.IBean;
-
-/**
- * Generated by JFinal, do not modify this file.
- */
-@SuppressWarnings({"serial", "unchecked"})
-public abstract class BaseStudies<M extends BaseStudies<M>> extends Model<M> implements IBean {
-
-	public M setId(java.lang.String id) {
-		set("id", id);
-		return (M)this;
-	}
-	
-	public java.lang.String getId() {
-		return getStr("id");
-	}
-
-	public M setStudyuid(java.lang.String studyuid) {
-		set("studyuid", studyuid);
-		return (M)this;
-	}
-	
-	public java.lang.String getStudyuid() {
-		return getStr("studyuid");
-	}
-
-	public M setPatientId(java.lang.String patientId) {
-		set("patient_id", patientId);
-		return (M)this;
-	}
-	
-	public java.lang.String getPatientId() {
-		return getStr("patient_id");
-	}
-
-	public M setStudyid(java.lang.String studyid) {
-		set("studyid", studyid);
-		return (M)this;
-	}
-	
-	public java.lang.String getStudyid() {
-		return getStr("studyid");
-	}
-
-	public M setAccessionNum(java.lang.String accessionNum) {
-		set("accession_num", accessionNum);
-		return (M)this;
-	}
-	
-	public java.lang.String getAccessionNum() {
-		return getStr("accession_num");
-	}
-
-	public M setStudydate(java.lang.String studydate) {
-		set("studydate", studydate);
-		return (M)this;
-	}
-	
-	public java.lang.String getStudydate() {
-		return getStr("studydate");
-	}
-
-	public M setCtime(java.util.Date ctime) {
-		set("ctime", ctime);
-		return (M)this;
-	}
-	
-	public java.util.Date getCtime() {
-		return get("ctime");
-	}
-
-	public M setUtime(java.util.Date utime) {
-		set("utime", utime);
-		return (M)this;
-	}
-	
-	public java.util.Date getUtime() {
-		return get("utime");
-	}
-
-	public M setModality(java.lang.String modality) {
-		set("modality", modality);
-		return (M)this;
-	}
-	
-	public java.lang.String getModality() {
-		return getStr("modality");
-	}
-
-	public M setStatus(java.lang.Integer status) {
-		set("status", status);
-		return (M)this;
-	}
-	
-	public java.lang.Integer getStatus() {
-		return getInt("status");
-	}
-
-	public M setPatientAge(java.lang.String patientAge) {
-		set("patient_age", patientAge);
-		return (M)this;
-	}
-	
-	public java.lang.String getPatientAge() {
-		return getStr("patient_age");
-	}
-
-	public M setInstitutionName(java.lang.String institutionName) {
-		set("institution_name", institutionName);
-		return (M)this;
-	}
-	
-	public java.lang.String getInstitutionName() {
-		return getStr("institution_name");
-	}
-
-	public M setInstitutionId(java.lang.String institutionId) {
-		set("institution_id", institutionId);
-		return (M)this;
-	}
-	
-	public java.lang.String getInstitutionId() {
-		return getStr("institution_id");
-	}
-
-	public M setCreatedAt(java.util.Date createdAt) {
-		set("createdAt", createdAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getCreatedAt() {
-		return get("createdAt");
-	}
-
-	public M setUpdatedAt(java.util.Date updatedAt) {
-		set("updatedAt", updatedAt);
-		return (M)this;
-	}
-	
-	public java.util.Date getUpdatedAt() {
-		return get("updatedAt");
-	}
-
-}

+ 0 - 76
DataFusion/src/com/zskk/service/WeixinService.java

@@ -1,76 +0,0 @@
-package com.zskk.service;
-
-import org.apache.commons.io.IOUtils;
-import org.apache.http.client.methods.CloseableHttpResponse;
-import org.apache.http.client.methods.HttpGet;
-import org.apache.http.impl.client.CloseableHttpClient;
-import org.apache.http.impl.client.HttpClients;
-import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
-import com.zskk.service.ServiceFactory;
-
-
-public class WeixinService {
-	static {
-//		PropKit.use("config.txt");
-//		ServiceFactory.init();
-//		DruidPlugin plugin = new DruidPlugin(PropKit.get("jdbcUrl"), PropKit.get("user"), PropKit.get("password").trim());
-//		ActiveRecordPlugin arp = new ActiveRecordPlugin(plugin); 		
-//		_MappingKit.mapping(arp);
-//		plugin.start();
-//		arp.start();
-
-	}
-	private static final PoolingHttpClientConnectionManager POOL_CM = new PoolingHttpClientConnectionManager();
-
-	private static final String CAHR_CODE = "UTF-8";
-
-	// 获取访问TOKEN
-	private static final String WEIXIN_QRCODE = "http://wechat.pacsonline.cn/wx_patient/api/unifyGetWxQrcode?reportId=%s";
-
-	/*
-	 * 获取用户信息
-	 */
-	public void requestWeixinQrcode(String reportid) {
-		
-		String url=String.format(WEIXIN_QRCODE, reportid);
-		
-		String content = doGet(url);
-	}
-	
-	private String doGet(String url) {
-		StringBuilder apiLog = new StringBuilder();
-		apiLog.append(url).append("\t").append("params:").append("");
-		CloseableHttpClient client = HttpClients.custom().setConnectionManager(POOL_CM).build();
-		String content = null; // 返回内容
-		try {
-			HttpGet get = new HttpGet(url);
-
-			CloseableHttpResponse response = null;
-			try {
-				response = client.execute(get);
-				int code = response.getStatusLine().getStatusCode();
-				if (code == 200) {
-					content = IOUtils.toString(response.getEntity().getContent(), CAHR_CODE);
-				} else {
-					content = "{\"40013\":" + code + "}";
-				}
-			} finally {
-				if (response != null) {
-					response.close();
-				}
-			}
-		} catch (Exception e) {
-//			LogUtil.netEaseError(e.getMessage(), e);
-			content = "{\"40013\":1000}";
-		}
-		// 记录日志
-		apiLog.append("\t").append("result:").append(content);
-//		LogUtil.netEaseDebug(apiLog.toString());
-
-		return content;
-	}
-	public static void main(String[] args) {
-		WeixinService weixinService = ServiceFactory.getService(WeixinService.class);
-		weixinService.requestWeixinQrcode("xs");
-	}
-}

+ 0 - 57
DataFusion/src/com/zskk/tools/_JFinalDemoGenerator.java

@@ -1,57 +0,0 @@
-package com.zskk.tools;
-
-import javax.sql.DataSource;
-import com.jfinal.kit.PathKit;
-import com.jfinal.kit.PropKit;
-import com.jfinal.plugin.activerecord.generator.Generator;
-import com.jfinal.plugin.druid.DruidPlugin;
-import com.zskk.config.ZskkConfig;
-
-/**
- * 本 demo 仅表达最为粗浅的 jfinal 用法,更为有价值的实用的企业级用法
- * 详见 JFinal 俱乐部: http://jfinal.com/club
- * 
- * 在数据库表有任何变动时,运行一下 main 方法,极速响应变化进行代码重构
- */
-public class _JFinalDemoGenerator {
-	
-	public static DataSource getDataSource() {
-		PropKit.use("config.properties");
-		DruidPlugin druidPlugin = ZskkConfig.createZskkDruidPlugin();
-		druidPlugin.start();
-		return druidPlugin.getDataSource();
-	}
-	
-	public static void main(String[] args) {
-		// base model 所使用的包名
-		String baseModelPackageName = "com.zskk.model.base";
-		// base model 文件保存路径
-		String baseModelOutputDir = PathKit.getWebRootPath() + "/../src/com/zskk/model/base";
-		
-		// model 所使用的包名 (MappingKit 默认使用的包名)
-		String modelPackageName = "com.zskk.model";
-		// model 文件保存路径 (MappingKit 与 DataDictionary 文件默认保存路径)
-		String modelOutputDir = baseModelOutputDir + "/..";
-		
-		// 创建生成器
-		Generator generator = new Generator(getDataSource(), baseModelPackageName, baseModelOutputDir, modelPackageName, modelOutputDir);
-		// 设置是否生成链式 setter 方法
-		generator.setGenerateChainSetter(false);
-		// 添加不需要生成的表名
-		generator.addExcludedTable("bodypart","constant","department","device","doctor_class","dr_cla_permission","exam_class","exam_project","exam_subclass","images","institution","manager","menu","messages","operating","remote_application","report_record","series","sys_logs","sys_menus","templates");
-		// 设置是否在 Model 中生成 dao 对象
-		generator.setGenerateDaoInModel(true);
-		// 设置是否生成链式 setter 方法
-		generator.setGenerateChainSetter(true);
-		// 设置是否生成字典文件
-		generator.setGenerateDataDictionary(true);
-		// 设置需要被移除的表名前缀用于生成modelName。例如表名 "osc_user",移除前缀 "osc_"后生成的model名为 "User"而非 OscUser
-		generator.setRemovedTableNamePrefixes("t_");
-		// 生成
-		generator.generate();
-	}
-}
-
-
-
-