feat(iit-manager): Add WeChat Official Account integration for patient notifications

Features:
- PatientWechatCallbackController for URL verification and message handling
- PatientWechatService for template and customer messages
- Support for secure mode (message encryption/decryption)
- Simplified route /wechat/patient/callback for WeChat config
- Event handlers for subscribe/unsubscribe/text messages
- Template message for visit reminders

Technical details:
- Reuse @wecom/crypto for encryption (compatible with Official Account)
- Relaxed Fastify schema validation to prevent early request blocking
- Access token caching (7000s with 5min pre-refresh)
- Comprehensive logging for debugging

Testing: Local URL verification passed, ready for SAE deployment

Status: Code complete, waiting for WeChat platform configuration
This commit is contained in:
2026-01-04 22:53:42 +08:00
parent dfc472810b
commit b31255031e
167 changed files with 3055 additions and 2 deletions

View File

@@ -561,5 +561,6 @@ df['creatinine'] = pd.to_numeric(df['creatinine'], errors='coerce')

View File

@@ -976,5 +976,6 @@ export const aiController = new AIController();

View File

@@ -1310,5 +1310,6 @@ npm install react-markdown

View File

@@ -218,5 +218,6 @@ FMA___基线 | FMA___1个月 | FMA___2个月

View File

@@ -376,5 +376,6 @@ formula = "FMA总分0-100 / 100"

View File

@@ -210,5 +210,6 @@ async handleFillnaMice(request, reply) {

View File

@@ -182,5 +182,6 @@ method: 'mean' | 'median' | 'mode' | 'constant' | 'ffill' | 'bfill'