This commit is contained in:
Your Name
2026-09-10 15:19:17 +08:00
parent 27fbef9321
commit 36975c6c1b
487 changed files with 15696 additions and 78 deletions
@@ -23,6 +23,18 @@ use think\facade\Log;
*/
class PatientAiReportLogic extends BaseLogic
{
/** Pure normalization only. Caller must authorize every supplied row before using this helper. */
public static function normalizeAuthorizedClinicalRows(array $sources): array
{
return self::buildSourceSnapshotFromRows($sources);
}
/** Shared redaction rules; does not load data or grant access. */
public static function redactClinicalSource(array $source): array
{
return self::sanitizeSnapshotForUpstream($source);
}
public const DISCLAIMER = '仅供临床辅助参考,不可替代医生诊断。系统会把舌像、报告等附件与全部文字资料提交给已配置的模型分析,但模型识别结果仍须由执业医师核对原始资料;视频面诊以归档转写文字为准。';
private const PERMISSION_READ = 'tcm.diagnosis/patientaireports';