Commit ae78cba2cb14433d5511b33cb096c95ec5061cac
1 parent
47f9b719e1
Exists in
master
and in
6 other branches
卫生信息数据共享与交换规范-基本信息,基本地址按文档修正
Showing 1 changed file with 12 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/cdfy/CdGwInterface.java
View file @
ae78cba
| ... | ... | @@ -139,22 +139,22 @@ |
| 139 | 139 | "SEX_CODE,BIRTH_DATE,ID_TYPE_CODE,ID_NO,EMPLOYER_NAME,TEL_NO,\n" + |
| 140 | 140 | "CONTACT_NAME,CONTACT_TEL_NO,NATIONALITY_CODE,ABO_CODE,RH_CODE,\n" + |
| 141 | 141 | "EDUCATION_CODE,OCCUPATION_CODE,MARRIAGE_CODE,DRUG_ALLERGY_MARK,OP_HISTORY_MARK,TRAUMA_HISTORY_MARK,\n" + |
| 142 | - "BLOOD_TRANSF_MARK,GENETIC_DISEASE_HISTORY,OPERATION_HISTORY,Sec_Type_Code,Employer_Tel_No,LAST_UPDATE_DTIME) \n" + | |
| 142 | + "BLOOD_TRANSF_MARK,GENETIC_DISEASE_HISTORY,OPERATION_HISTORY,Sec_Type_Code,Employer_Tel_No,DELETE_MARK) \n" + | |
| 143 | 143 | "values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; |
| 144 | 144 | |
| 145 | 145 | //地址信息语句,01:户籍地址DELETE_MARK,LAST_UPDATE_DTIME |
| 146 | 146 | String inAddressSql01 = "insert into BASEINFO_ADDRESS(ORG_CODE,PATIENT_ID,Address_Type_Code,Addr_Province,Addr_City,\n" + |
| 147 | - "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,LAST_UPDATE_DTIME) \n" + | |
| 147 | + "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,DELETE_MARK) \n" + | |
| 148 | 148 | "values(?,?,?,?,?,?,?,?,?,?,?)"; |
| 149 | 149 | |
| 150 | 150 | //地址信息语句,03:居住地址DELETE_MARK,LAST_UPDATE_DTIME |
| 151 | 151 | String inAddressSql03 = "insert into BASEINFO_ADDRESS(ORG_CODE,PATIENT_ID,Address_Type_Code,Addr_Province,Addr_City,\n" + |
| 152 | - "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,LAST_UPDATE_DTIME) \n" + | |
| 152 | + "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,DELETE_MARK) \n" + | |
| 153 | 153 | "values(?,?,?,?,?,?,?,?,?,?,?)"; |
| 154 | 154 | |
| 155 | 155 | //地址信息语句,07:产后居住地DELETE_MARK,LAST_UPDATE_DTIME |
| 156 | 156 | String inAddressSql07 = "insert into baseinfo_address(ORG_CODE,PATIENT_ID,Address_Type_Code,Addr_Province,Addr_City,\n" + |
| 157 | - "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,LAST_UPDATE_DTIME) \n" + | |
| 157 | + "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,DELETE_MARK) \n" + | |
| 158 | 158 | "values(?,?,?,?,?,?,?,?,?,?,?)"; |
| 159 | 159 | |
| 160 | 160 | |
| ... | ... | @@ -223,7 +223,8 @@ |
| 223 | 223 | ps.setString(26,null); |
| 224 | 224 | ps.setString(27,null); |
| 225 | 225 | //ps.setString(28,"0"); |
| 226 | - ps.setDate(28, new Date(patient.getModified().getTime())); | |
| 226 | +// ps.setDate(28, new Date(patient.getModified().getTime())); | |
| 227 | + ps.setString(28, patient.getYn().toString()); | |
| 227 | 228 | |
| 228 | 229 | int inResult = ps.executeUpdate(); |
| 229 | 230 | if (inResult > 0) { |
| ... | ... | @@ -239,7 +240,8 @@ |
| 239 | 240 | ps.setString(9,patient.getAddress()); |
| 240 | 241 | ps.setString(10,null); |
| 241 | 242 | //ps.setString(11,"0"); |
| 242 | - ps.setDate(11, new Date(patient.getModified().getTime())); | |
| 243 | +// ps.setDate(11, new Date(patient.getModified().getTime())); | |
| 244 | + ps.setString(11, patient.getYn().toString()); | |
| 243 | 245 | |
| 244 | 246 | int adress01 = ps.executeUpdate(); |
| 245 | 247 | if (adress01 > 0) { |
| ... | ... | @@ -255,7 +257,8 @@ |
| 255 | 257 | ps.setString(9,patient.getAddressRegister()); |
| 256 | 258 | ps.setString(10,null); |
| 257 | 259 | //ps.setString(11,"0"); |
| 258 | - ps.setDate(11, new Date(patient.getModified().getTime())); | |
| 260 | +// ps.setDate(11, new Date(patient.getModified().getTime())); | |
| 261 | + ps.setString(11, patient.getYn().toString()); | |
| 259 | 262 | |
| 260 | 263 | int adress03 = ps.executeUpdate(); |
| 261 | 264 | if (adress03 > 0) { |
| ... | ... | @@ -271,8 +274,8 @@ |
| 271 | 274 | ps.setString(9,patient.getAddressPostRest()); |
| 272 | 275 | ps.setString(10,null); |
| 273 | 276 | //ps.setString(11,"0"); |
| 274 | - ps.setDate(11, new Date(patient.getModified().getTime())); | |
| 275 | - | |
| 277 | +// ps.setDate(11, new Date(patient.getModified().getTime())); | |
| 278 | + ps.setString(11, patient.getYn().toString()); | |
| 276 | 279 | int adress07 = ps.executeUpdate(); |
| 277 | 280 | if (adress07 > 0) { |
| 278 | 281 | br.setErrorcode(ErrorCodeConstants.SUCCESS); |