|
@@ -15,6 +15,7 @@ import thyyxxk.webserver.entity.dictionary.PureCodeName;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.inpatient.InHspPsnInfo;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.outpatient.SpcChrDiseAcct;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.query.*;
|
|
|
+import thyyxxk.webserver.entity.medicalinsurance.setlinfo.SiSetldetail;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllist.*;
|
|
|
import thyyxxk.webserver.utils.*;
|
|
|
|
|
@@ -245,8 +246,8 @@ public class SiQueryService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<List<DiseInfo>> queryDiagnosisInfo(BscQryPrm q) {
|
|
|
- JSONObject input = exec.makeTradeHeaderWithInsureArea(SiFunction.QUERY_DIAGNOSIS_INFO,
|
|
|
- dao.selectAdmdvs(q.getPatNo(), q.getTimes()));
|
|
|
+ String admdvs = dao.selectAdmdvsByPsnNo(q.getPsnNo());
|
|
|
+ JSONObject input = exec.makeTradeHeaderWithInsureArea(SiFunction.QUERY_DIAGNOSIS_INFO, admdvs);
|
|
|
JSONObject data = new JSONObject();
|
|
|
data.put("psn_no", q.getPsnNo());
|
|
|
data.put("mdtrt_id", q.getMdtrtId());
|
|
@@ -312,6 +313,32 @@ public class SiQueryService {
|
|
|
if (null != clrType) {
|
|
|
setlInfo.setClrTypeName(clrType.getName());
|
|
|
}
|
|
|
+ MedType medType = MedType.get(setlInfo.getMedType());
|
|
|
+ if (null != medType) {
|
|
|
+ setlInfo.setMedTypeName(medType.getName());
|
|
|
+ }
|
|
|
+ Insutype insutype = Insutype.get(setlInfo.getInsutype());
|
|
|
+ if (null != insutype) {
|
|
|
+ setlInfo.setInsutypeName(insutype.getName());
|
|
|
+ }
|
|
|
+ PsnType psnType = PsnType.get(setlInfo.getPsnType());
|
|
|
+ if (null != psnType) {
|
|
|
+ setlInfo.setPsnTypeName(psnType.getName());
|
|
|
+ }
|
|
|
+
|
|
|
+ JSONArray setldetail = output.getJSONArray("setldetail");
|
|
|
+ if (null != setldetail && setldetail.size() > 0) {
|
|
|
+ List<SiSetldetail> list = new ArrayList<>();
|
|
|
+ for (int i = 0; i < setldetail.size(); i++) {
|
|
|
+ SiSetldetail setldtel = JSONObject.parseObject(setldetail.getJSONObject(i).toJSONString(), SiSetldetail.class);
|
|
|
+ FundPayType fundPayType = FundPayType.get(setldtel.getFundPayType());
|
|
|
+ if (null != fundPayType) {
|
|
|
+ setldtel.setFundPayTypeName(fundPayType.getName());
|
|
|
+ }
|
|
|
+ list.add(setldtel);
|
|
|
+ }
|
|
|
+ setlInfo.setSetldetail(list);
|
|
|
+ }
|
|
|
return ResultVoUtil.success(setlInfo);
|
|
|
}
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, result.getString(ERROR_MESSAGE));
|