|
@ -263,11 +263,25 @@ public class DsyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONArray findCardNo(String patient) throws Exception {
|
|
|
public JSONArray findCardNo(String patient,boolean demoFlag) throws Exception {
|
|
|
BasePatientDO patientDO = patientDao.getOne(patient);
|
|
|
if (patientDO==null){
|
|
|
throw new Exception("不存在该患者!");
|
|
|
}
|
|
|
if(demoFlag){
|
|
|
JSONArray rs =new JSONArray();
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("PAT_NO","P5616242-0");
|
|
|
jsonObject.put("CARD_NO","D40136791");
|
|
|
jsonObject.put("CARD_STAT","激活");
|
|
|
jsonObject.put("OP_DATE","2011-09-27 15:35:57");
|
|
|
jsonObject.put("CARD_TYPE","2");
|
|
|
jsonObject.put("CARD_TYPE_NAME","社保卡");
|
|
|
jsonObject.put("social_no","350211198411053024");
|
|
|
jsonObject.put("name","白海灵");
|
|
|
rs.add(jsonObject);
|
|
|
return rs;
|
|
|
}
|
|
|
patientMedicareCardDao.deleteByPatientId(patient);
|
|
|
JSONArray array = dsyyEntranceService.findCardNo(patientDO.getIdcard());
|
|
|
for (int i=0;i<array.size();i++){
|