patient.service.ts
6.19 KB
-
feat(tenant): P0-5 by-id 守卫补品牌隔离 · 7554f95b
患者详情(reveal/timeline)、plan 详情/分配/回收、plan-aggregate 详情: by-id 取数也按 patient.sourceUnit 圈品牌(findUnique→findFirst + patient 过滤, 命中不到→现有 NotFound 守卫接住)。sourceUnits 空=不限(集团级角色)。 至此 §4.4 数据范围在患者粒度的品牌隔离全覆盖(搜索/列表/by-id)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
luoqi committed