Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pac
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tools
pac
Commits
98b4e409
Commit
98b4e409
authored
Jun 11, 2026
by
luoqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix(recall): make_interval 参数加 ::int 转型 — Prisma 数字绑成 bigint 致 42883"
This reverts commit
66703e8f
.
parent
66703e8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
apps/pac-service/src/modules/clinical-gap/potential-treatment-gap.sql.ts
+1
-1
No files found.
apps/pac-service/src/modules/clinical-gap/potential-treatment-gap.sql.ts
View file @
98b4e409
...
@@ -117,7 +117,7 @@ export function buildGapCore(input: GapCoreInput): GapCorePieces {
...
@@ -117,7 +117,7 @@ export function buildGapCore(input: GapCoreInput): GapCorePieces {
// 复述不 re-arm;真复发(末次治疗距再诊断超黄金窗,如修复体多年后失败)仍正常召回。
// 复述不 re-arm;真复发(末次治疗距再诊断超黄金窗,如修复体多年后失败)仍正常召回。
// 已知取舍:治疗后黄金窗内的"真二次新发"会被压到下一次诊断才召 — 临床上该场景
// 已知取舍:治疗后黄金窗内的"真二次新发"会被压到下一次诊断才召 — 临床上该场景
// 通常当场处理,误召打扰的代价更高。
// 通常当场处理,误召打扰的代价更高。
const
episodeLookback
=
Prisma
.
sql
`make_interval(days =>
${
rule
.
windowDays
}
::int
)`
;
const
episodeLookback
=
Prisma
.
sql
`make_interval(days =>
${
rule
.
windowDays
}
)`
;
const
afterDxFrag
=
rule
.
excludeIfEverTreated
const
afterDxFrag
=
rule
.
excludeIfEverTreated
?
Prisma
.
sql
`AND tx.occurred_at >=
${
latestDxOfCode
}
-
${
episodeLookback
}
`
?
Prisma
.
sql
`AND tx.occurred_at >=
${
latestDxOfCode
}
-
${
episodeLookback
}
`
:
Prisma
.
sql
`AND tx.occurred_at >= COALESCE(sig.occurred_at, sig.planned_for) -
${
episodeLookback
}
`
;
:
Prisma
.
sql
`AND tx.occurred_at >= COALESCE(sig.occurred_at, sig.planned_for) -
${
episodeLookback
}
`
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment