Files
PTSRaiAgent/data/meds/mis_prescriptions.json
T
ElebobaandClaude Opus 5.5 9362eb6ecc
CI / ruff · pytest (pull_request) Successful in 1m26s
feat(integrations): demo adapters for МИС, connect-code identity, ГРЛС excerpts, doctor notifier
- setup() at package import (idempotent, replaces only base.py defaults): MisMock, ConnectCodeIdentity,
  GrlsExcerpts, CompositeNotifier; outbox stays MemoryOutbox
- MisMock: clinical DB prescriptions, fallback data/meds/mis_prescriptions.json (synthetic, by token)
- ConnectCodeIdentity: one-time connect code via identity_repo, 15 min grace for the double check in one
  connect flow (Telegram /start + engine `new` state)
- GrlsExcerpts: synthetic paraphrased instruction excerpts for sertraline, paroxetine, escitalopram,
  fluoxetine, mirtazapine, prazosin
- CompositeNotifier: in-memory feed (recent(since_id)) + Telegram doctor chat, PII-free, never raises
- test_llm_med_qa: default-registry test now patches NoDrugInfo explicitly

Refs #14

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 12:36:07 +03:00

166 lines
3.6 KiB
JSON

{
"_comment": "СИНТЕТИКА. Назначения-образцы для mis_mock (заглушка МИС/ЕГИСЗ, SPEC §9). Ключ — токен пациента; источник первого уровня — таблица prescriptions клинической БД, этот файл — запасной. Персоны: docs/product/01_demo_persona.md.",
"patients": [
{
"persona": "andrey",
"tokens": [
"tok-andrey"
],
"prescriptions": [
{
"drug": "сертралин",
"dose": "50 мг",
"schedule": {
"times": [
"08:00"
]
},
"instructions": "утром после еды",
"start_date": null,
"end_date": null
}
]
},
{
"persona": "dmitry",
"tokens": [
"tok-dmitry"
],
"prescriptions": [
{
"drug": "сертралин",
"dose": "100 мг",
"schedule": {
"times": [
"08:00"
]
},
"instructions": "утром после еды",
"start_date": null,
"end_date": null
}
]
},
{
"persona": "sergey",
"tokens": [
"tok-sergey"
],
"prescriptions": [
{
"drug": "пароксетин",
"dose": "20 мг",
"schedule": {
"times": [
"08:00"
]
},
"instructions": "утром во время завтрака",
"start_date": null,
"end_date": null
}
]
},
{
"persona": "nikolay",
"tokens": [
"tok-nikolay"
],
"prescriptions": [
{
"drug": "сертралин",
"dose": "50 мг",
"schedule": {
"times": [
"08:00"
]
},
"instructions": "утром после еды",
"start_date": null,
"end_date": null
}
]
},
{
"persona": "anna",
"tokens": [
"tok-anna"
],
"prescriptions": [
{
"drug": "флуоксетин",
"dose": "20 мг",
"schedule": {
"times": [
"08:00"
]
},
"instructions": "утром",
"start_date": null,
"end_date": null
}
]
},
{
"persona": "irina",
"tokens": [
"tok-irina"
],
"prescriptions": [
{
"drug": "эсциталопрам",
"dose": "10 мг",
"schedule": {
"times": [
"09:00"
]
},
"instructions": "утром",
"start_date": null,
"end_date": null
}
]
},
{
"persona": "olga",
"tokens": [
"tok-olga"
],
"prescriptions": [
{
"drug": "сертралин",
"dose": "50 мг",
"schedule": {
"times": [
"08:00"
]
},
"instructions": "утром после еды",
"start_date": null,
"end_date": null
}
]
},
{
"persona": "pavel",
"tokens": [
"tok-pavel"
],
"prescriptions": [
{
"drug": "эсциталопрам",
"dose": "10 мг",
"schedule": {
"times": [
"09:00"
]
},
"instructions": "утром",
"start_date": null,
"end_date": null
}
]
}
]
}