|
@@ -5,6 +5,7 @@ import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
@@ -21,10 +22,10 @@ public class FIRP0275 extends QCCatalogue {
|
|
|
status.set("0");
|
|
|
if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null
|
|
|
&& inputInfo.getLeaveHospitalDoc() != null && inputInfo.getLeaveHospitalDoc().getStructureMap() != null) {
|
|
|
- Map<String, Object> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
+ Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
Map<String, String> leaveHospitalStructureMap = inputInfo.getLeaveHospitalDoc().getStructureMap();
|
|
|
- String firstDischargeTime = firstpageStructureMap.get(Content.actualStay).toString();//病案首页出院时间
|
|
|
- String dischargeTime = leaveHospitalStructureMap.get(Content.stayLength).replace("天","");//出院小结出院时间
|
|
|
+ String firstDischargeTime = firstpageStructureMap.get(Content.actualStay);//病案首页出院时间
|
|
|
+ String dischargeTime = leaveHospitalStructureMap.get(Content.stayLength);//出院小结出院时间
|
|
|
if (!CatalogueUtil.compareToken(firstDischargeTime, dischargeTime)) {
|
|
|
status.set("-1");
|
|
|
}
|