|
@@ -25,27 +25,26 @@ public class OPE0630 extends QCCatalogue {
|
|
|
@Override
|
|
|
protected void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
|
|
|
status.set("0");
|
|
|
-// boolean isOperativePatient = true;//是手术患者(暂时默认是)
|
|
|
-// if (isOperativePatient) {
|
|
|
- List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
- if(operationDocs == null || operationDocs.size() == 0){
|
|
|
+ // boolean isOperativePatient = true;//是手术患者(暂时默认是)
|
|
|
+ // if (isOperativePatient) {
|
|
|
+ List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
+ if (operationDocs == null || operationDocs.size() == 0) {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
- if (ListUtil.isNotEmpty(operationDocs)) {
|
|
|
- for (OperationDoc operationDoc : operationDocs) {
|
|
|
- String operationStartDateStr = operationDoc.getOperationRecordDoc().getStructureMap().get("手术开始时间");
|
|
|
- if (CatalogueUtil.isEmpty(operationStartDateStr)) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- Date operationStartDate = StringUtil.parseDateTime(CatalogueUtil.removeSpecialChar(operationStartDateStr)
|
|
|
- , CatalogueUtil.processDateFormat(Content.dateFormats));
|
|
|
- if (null == operationStartDate) {
|
|
|
- status.set("-1");
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (ListUtil.isNotEmpty(operationDocs)) {
|
|
|
+ for (OperationDoc operationDoc : operationDocs) {
|
|
|
+ String operationStartDateStr = operationDoc.getOperationRecordDoc().getStructureMap().get("手术开始时间");
|
|
|
+ if (CatalogueUtil.isEmpty(operationStartDateStr)) {
|
|
|
+ continue;
|
|
|
}
|
|
|
-// }
|
|
|
+ Date operationStartDate = StringUtil.parseDateTime(operationStartDateStr, CatalogueUtil.processDateFormat(Content.dateFormats));
|
|
|
+ if (null == operationStartDate) {
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
|