|
@ -3201,18 +3201,19 @@ public class EntranceService {
|
|
ylzMedicalRelationDO.setMedicalState(Integer.parseInt(outpatientDO.getMedicalState()));
|
|
ylzMedicalRelationDO.setMedicalState(Integer.parseInt(outpatientDO.getMedicalState()));
|
|
}
|
|
}
|
|
ylzMedicalRelationDO = ylzMedicailRelationDao.save(ylzMedicalRelationDO);
|
|
ylzMedicalRelationDO = ylzMedicailRelationDao.save(ylzMedicalRelationDO);
|
|
if (resultJSON.get("zdlist")!=null){
|
|
|
|
Object json = new JSONTokener(resultJSON.getString("zdlist")).nextValue();
|
|
|
|
|
|
if (resultJSON.get("zdlists")!=null){
|
|
|
|
Object json = new JSONTokener(resultJSON.getString("zdlists")).nextValue();
|
|
if(json instanceof net.sf.json.JSONObject){
|
|
if(json instanceof net.sf.json.JSONObject){
|
|
net.sf.json.JSONObject icdJSON = (net.sf.json.JSONObject)json;
|
|
net.sf.json.JSONObject icdJSON = (net.sf.json.JSONObject)json;
|
|
|
|
net.sf.json.JSONObject icdJson = icdJSON.getJSONObject("zdlist");
|
|
YlzMedicalIcdDO ylzMedicalIcdDO = new YlzMedicalIcdDO();
|
|
YlzMedicalIcdDO ylzMedicalIcdDO = new YlzMedicalIcdDO();
|
|
ylzMedicalIcdDO.setMedicalId(ylzMedicalRelationDO.getId());
|
|
ylzMedicalIcdDO.setMedicalId(ylzMedicalRelationDO.getId());
|
|
ylzMedicalIcdDO.setDel(1);
|
|
ylzMedicalIcdDO.setDel(1);
|
|
ylzMedicalIcdDO.setCreateTime(new Date());
|
|
ylzMedicalIcdDO.setCreateTime(new Date());
|
|
ylzMedicalIcdDO.setDiseaseType(icdJSON.getString("zdlx"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseCodeIcd10(icdJSON.getString("zdbm"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseNameIcd10(icdJSON.getString("zdmc"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseOrder(icdJSON.getString("zdxh"));
|
|
|
|
|
|
ylzMedicalIcdDO.setDiseaseType(icdJson.getString("zdlx"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseCodeIcd10(icdJson.getString("zdbm"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseNameIcd10(icdJson.getString("zdmc"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseOrder(icdJson.getString("zdxh"));
|
|
ylzMedicalIcdDO = ylzMedicailIcdDao.save(ylzMedicalIcdDO);
|
|
ylzMedicalIcdDO = ylzMedicailIcdDao.save(ylzMedicalIcdDO);
|
|
icdDOList.add(ylzMedicalIcdDO);
|
|
icdDOList.add(ylzMedicalIcdDO);
|
|
} else if (json instanceof JSONArray) {
|
|
} else if (json instanceof JSONArray) {
|
|
@ -3365,18 +3366,19 @@ public class EntranceService {
|
|
ylzMedicalIcdDO.setDiseaseOrder("01");
|
|
ylzMedicalIcdDO.setDiseaseOrder("01");
|
|
ylzMedicalIcdDO = ylzMedicailIcdDao.save(ylzMedicalIcdDO);
|
|
ylzMedicalIcdDO = ylzMedicailIcdDao.save(ylzMedicalIcdDO);
|
|
icdDOList.add(ylzMedicalIcdDO);*/
|
|
icdDOList.add(ylzMedicalIcdDO);*/
|
|
if (resultJSON.get("zdlist")!=null){
|
|
|
|
Object json = new JSONTokener(resultJSON.getString("zdlist")).nextValue();
|
|
|
|
|
|
if (resultJSON.get("zdlists")!=null){
|
|
|
|
Object json = new JSONTokener(resultJSON.getString("zdlists")).nextValue();
|
|
if(json instanceof net.sf.json.JSONObject){
|
|
if(json instanceof net.sf.json.JSONObject){
|
|
net.sf.json.JSONObject icdJSON = (net.sf.json.JSONObject)json;
|
|
net.sf.json.JSONObject icdJSON = (net.sf.json.JSONObject)json;
|
|
|
|
net.sf.json.JSONObject icdJson = icdJSON.getJSONObject("zdlist");
|
|
YlzMedicalIcdDO ylzMedicalIcdDO = new YlzMedicalIcdDO();
|
|
YlzMedicalIcdDO ylzMedicalIcdDO = new YlzMedicalIcdDO();
|
|
ylzMedicalIcdDO.setMedicalId(ylzMedicalRelationDO.getId());
|
|
ylzMedicalIcdDO.setMedicalId(ylzMedicalRelationDO.getId());
|
|
ylzMedicalIcdDO.setDel(1);
|
|
ylzMedicalIcdDO.setDel(1);
|
|
ylzMedicalIcdDO.setCreateTime(new Date());
|
|
ylzMedicalIcdDO.setCreateTime(new Date());
|
|
ylzMedicalIcdDO.setDiseaseType(icdJSON.getString("zdlx"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseCodeIcd10(icdJSON.getString("zdbm"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseNameIcd10(icdJSON.getString("zdmc"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseOrder(icdJSON.getString("zdxh"));
|
|
|
|
|
|
ylzMedicalIcdDO.setDiseaseType(icdJson.getString("zdlx"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseCodeIcd10(icdJson.getString("zdbm"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseNameIcd10(icdJson.getString("zdmc"));
|
|
|
|
ylzMedicalIcdDO.setDiseaseOrder(icdJson.getString("zdxh"));
|
|
ylzMedicalIcdDO = ylzMedicailIcdDao.save(ylzMedicalIcdDO);
|
|
ylzMedicalIcdDO = ylzMedicailIcdDao.save(ylzMedicalIcdDO);
|
|
icdDOList.add(ylzMedicalIcdDO);
|
|
icdDOList.add(ylzMedicalIcdDO);
|
|
} else if (json instanceof JSONArray) {
|
|
} else if (json instanceof JSONArray) {
|
|
@ -3389,7 +3391,7 @@ public class EntranceService {
|
|
ylzMedicalIcdDO.setCreateTime(new Date());
|
|
ylzMedicalIcdDO.setCreateTime(new Date());
|
|
ylzMedicalIcdDO.setDiseaseType(icdObject.getString("zdlx"));
|
|
ylzMedicalIcdDO.setDiseaseType(icdObject.getString("zdlx"));
|
|
ylzMedicalIcdDO.setDiseaseCodeIcd10(icdObject.getString("zdbm"));
|
|
ylzMedicalIcdDO.setDiseaseCodeIcd10(icdObject.getString("zdbm"));
|
|
ylzMedicalIcdDO.setDiseaseNameIcd10(icdObject.getString("bqzdms"));
|
|
|
|
|
|
ylzMedicalIcdDO.setDiseaseNameIcd10(icdObject.getString("zdmc"));
|
|
ylzMedicalIcdDO.setDiseaseOrder(icdObject.getString("zdxh"));
|
|
ylzMedicalIcdDO.setDiseaseOrder(icdObject.getString("zdxh"));
|
|
ylzMedicalIcdDO = ylzMedicailIcdDao.save(ylzMedicalIcdDO);
|
|
ylzMedicalIcdDO = ylzMedicailIcdDao.save(ylzMedicalIcdDO);
|
|
icdDOList.add(ylzMedicalIcdDO);
|
|
icdDOList.add(ylzMedicalIcdDO);
|