|
@@ -91,7 +91,7 @@ public class DpccService {
|
|
|
|
|
|
public void uploadHisData() {
|
|
|
List<Patient> inpatientList = dao.getInpatientList();
|
|
|
- List<Patient> outpatientList = dao.getOutpatientList();
|
|
|
+ List<Patient> outpatientList = dao.getOutpatientList(0);
|
|
|
if (inpatientList.isEmpty() && outpatientList.isEmpty()) {
|
|
|
return;
|
|
|
}
|
|
@@ -105,6 +105,16 @@ public class DpccService {
|
|
|
uploadOutpatientDrug(outpatientList);
|
|
|
}
|
|
|
|
|
|
+ public String uploadMzDataByOffsetDays(int offsetDays) {
|
|
|
+ if (StrUtil.isBlank(dpcc.getTokenUrl())) {
|
|
|
+ throw new BizException(ExceptionEnum.NO_CONFIGURATION);
|
|
|
+ }
|
|
|
+ List<Patient> outpatientList = dao.getOutpatientList(offsetDays);
|
|
|
+ ReportIndexInquiry inquiry = getReportIndexInquiry();
|
|
|
+ uploadOutpatientCheck(outpatientList, inquiry);
|
|
|
+ uploadOutpatientDrug(outpatientList);
|
|
|
+ return "OK";
|
|
|
+ }
|
|
|
|
|
|
private ReportIndexInquiry getReportIndexInquiry() {
|
|
|
String now = DateUtil.formatDate(new Date());
|