This commit is contained in:
Your Name
2026-10-30 13:41:35 +08:00
parent 28ba9b97f2
commit e2fc30e1f7
69 changed files with 8702 additions and 252 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
{