|
@@ -43,11 +43,13 @@ public class TaiZhouFirstPageRecordDocTrans extends ModelDocTrans {
|
|
|
structureExtMap.put(Content.dischargeDiag, FastJsonUtils.getJsonToBean(content.get(Content.dischargeDiag), Object.class));
|
|
|
|
|
|
List<Map<String, String>> dischargeDiag = (List) structureExtMap.get(Content.dischargeDiag);
|
|
|
- for (Map<String, String> diag : dischargeDiag) {
|
|
|
- String diagCategory = diag.get("诊断类别");
|
|
|
- if (StringUtil.isNotBlank(diagCategory) && "1".equals(diagCategory)) {
|
|
|
- diag.put("诊断类别", "主要诊断");
|
|
|
- break;
|
|
|
+ if (dischargeDiag != null && dischargeDiag.size() > 0) {
|
|
|
+ for (Map<String, String> diag : dischargeDiag) {
|
|
|
+ String diagCategory = diag.get("诊断类别");
|
|
|
+ if (StringUtil.isNotBlank(diagCategory) && "1".equals(diagCategory)) {
|
|
|
+ diag.put("诊断类别", "主要诊断");
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// structureExtMap.put(Content.pathologyDiagnose, FastJsonUtils.getJsonToBean(content.get(Content.pathologyDiagnose), Object.class));
|