|
@@ -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;
|
|
@@ -18,20 +19,21 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class FIRP02905 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status.set("0");
|
|
|
if (inputInfo.getFirstPageRecordDoc() == null) {
|
|
|
- status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
if (inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
- String name = firstpageStructureMap.get(Content.receivingOrganization);
|
|
|
- if (!CatalogueUtil.isEmpty(name)) {
|
|
|
- status.set("0");
|
|
|
+ String receivingOrganization = firstpageStructureMap.get(Content.receivingOrganization); //接收机构名称
|
|
|
+ String outWay = firstpageStructureMap.get(Content.outWay); //离院方式
|
|
|
+ if (StringUtil.isNotBlank(outWay) && outWay.equals("医嘱转院") && StringUtil.isBlank(receivingOrganization)) {
|
|
|
+ status.set("-1");
|
|
|
+ Map<String, Object> structureExtMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
+ String xmlId = CatalogueUtil.getXmlId(structureExtMap, Content.receivingOrganization);
|
|
|
+ id.set(xmlId);
|
|
|
return;
|
|
|
}
|
|
|
- Map<String, Object> structureExtMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
- String xmlId = CatalogueUtil.getXmlId(structureExtMap, Content.receivingOrganization);
|
|
|
- id.set(xmlId);
|
|
|
}
|
|
|
}
|
|
|
}
|