|
@@ -21,7 +21,7 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
|
|
|
|
|
|
@Query(value = "match(m)-[r]->(n) \n" +
|
|
@Query(value = "match(m)-[r]->(n) \n" +
|
|
"where 1 = 1 \n" +
|
|
"where 1 = 1 \n" +
|
|
- "and (m:实验室检查名称 or m:辅助检查名称 or m:辅助检查子项目名称 or m:医保手术和操作名称 or m:药品注册名) \n" +
|
|
|
|
|
|
+ "and (m:实验室检查套餐名 or m:辅助检查名称 or m:辅助检查子项目名称 or m:医保手术和操作名称 or m:药品注册名) \n" +
|
|
//"and (case {labels} is not null and size({labels})>0 when true then labels(m)[0] in {labels} else 1 = 1 end ) \n" +
|
|
//"and (case {labels} is not null and size({labels})>0 when true then labels(m)[0] in {labels} else 1 = 1 end ) \n" +
|
|
"and (case {conceptName} is not null and {conceptName} <> '' when true then m.name contains {conceptName} else 1 = 1 end ) \n" +
|
|
"and (case {conceptName} is not null and {conceptName} <> '' when true then m.name contains {conceptName} else 1 = 1 end ) \n" +
|
|
"and (case {conditionName} is not null and {conditionName} <> '' when true then n.name contains {conditionName} else 1 = 1 end ) \n" +
|
|
"and (case {conditionName} is not null and {conditionName} <> '' when true then n.name contains {conditionName} else 1 = 1 end ) \n" +
|
|
@@ -39,11 +39,18 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
|
|
"end as type," +
|
|
"end as type," +
|
|
"id(m) as conceptId,m.name as conceptName,labels(m)[0] as conceptType,\n" +
|
|
"id(m) as conceptId,m.name as conceptName,labels(m)[0] as conceptType,\n" +
|
|
"id(r) as relationId,type(r) as relationName,r.状态 as relationStatus, \n" +
|
|
"id(r) as relationId,type(r) as relationName,r.状态 as relationStatus, \n" +
|
|
- "id(n) as conditionId,n.name as conditionName,labels(n)[0] as conditionType \n" +
|
|
|
|
|
|
+ "id(n) as conditionId," +
|
|
|
|
+ "(case labels(n)[0] " +
|
|
|
|
+ "when '体征' then n.体征指标 "+
|
|
|
|
+ "when '实验室检查' then n.实验室检查指标 "+
|
|
|
|
+ "when '禁忌人群' then n.禁忌人群指标 "+
|
|
|
|
+ "else n.name " +
|
|
|
|
+ "end )as conditionName," +
|
|
|
|
+ "labels(n)[0] as conditionType \n" +
|
|
"order by id(r) desc",
|
|
"order by id(r) desc",
|
|
countQuery = "match(m)-[r]->(n) \n" +
|
|
countQuery = "match(m)-[r]->(n) \n" +
|
|
"where 1 = 1 \n" +
|
|
"where 1 = 1 \n" +
|
|
- "and (m:实验室检查名称 or m:辅助检查名称 or m:辅助检查子项目名称 or m:医保手术和操作名称 or m:药品注册名) \n" +
|
|
|
|
|
|
+ "and (m:实验室检查套餐名 or m:辅助检查名称 or m:辅助检查子项目名称 or m:医保手术和操作名称 or m:药品注册名) \n" +
|
|
//"and (case {labels} is not null and size({labels})>0 when true then labels(m)[0] in {labels} else 1 = 1 end ) \n" +
|
|
//"and (case {labels} is not null and size({labels})>0 when true then labels(m)[0] in {labels} else 1 = 1 end ) \n" +
|
|
"and (case {conceptName} is not null and {conceptName} <> '' when true then m.name contains {conceptName} else 1 = 1 end ) \n" +
|
|
"and (case {conceptName} is not null and {conceptName} <> '' when true then m.name contains {conceptName} else 1 = 1 end ) \n" +
|
|
"and (case {conditionName} is not null and {conditionName} <> '' when true then n.name contains {conditionName} else 1 = 1 end ) \n" +
|
|
"and (case {conditionName} is not null and {conditionName} <> '' when true then n.name contains {conditionName} else 1 = 1 end ) \n" +
|
|
@@ -144,7 +151,12 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
|
|
"type(r) as relationName,\n" +
|
|
"type(r) as relationName,\n" +
|
|
"r.状态 as relationStatus,\n" +
|
|
"r.状态 as relationStatus,\n" +
|
|
"id(n) as conditionId,\n" +
|
|
"id(n) as conditionId,\n" +
|
|
- "n.name as conditionName,\n" +
|
|
|
|
|
|
+ "(case labels(n)[0] " +
|
|
|
|
+ "when '体征' then n.体征指标 "+
|
|
|
|
+ "when '实验室检查' then n.实验室检查指标 "+
|
|
|
|
+ "when '禁忌人群' then n.禁忌人群指标 "+
|
|
|
|
+ "else n.name " +
|
|
|
|
+ "end )as conditionName," +
|
|
"labels(n)[0] as conditionLabel,\n" +
|
|
"labels(n)[0] as conditionLabel,\n" +
|
|
"n.最小值 as conditionMinValue,\n" +
|
|
"n.最小值 as conditionMinValue,\n" +
|
|
"n.最大值 as conditionMaxValue,\n" +
|
|
"n.最大值 as conditionMaxValue,\n" +
|