This commit is contained in:
gr
2026-10-30 13:43:29 +08:00
144 changed files with 16467 additions and 2457 deletions
@@ -7,6 +7,13 @@ namespace app\common\service;
/** Single entry point for references attached to clinical model requests. */
final class ClinicalKnowledgeReference
{
/** Only a server-selected live task may use this short, source-bound contract. */
public static function augmentLiveConsultationQuery(string $query, string $analysisScope = 'authorized_case'): string
{
$prefix = TcmClinicalResponsePolicy::liveConsultationReference($analysisScope) . "\n\n";
return str_starts_with($query, $prefix) ? $query : $prefix . $query;
}
/** Case reports retain response rules without importing textbook patient-like findings. */
public static function augmentCaseQuery(string $query, bool $consultation = false): string
{