EMR, очередь и платежи в одном контуре
Translation pending
HealthPython · TypeScriptGitHub @drsapaevOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
Современная система управления медицинской клиникой с полным функционалом для записи пациентов, управления очередями, обработки платежей и ведения медицинских карт. ПЕРЕД ЛЮБЫМ ДЕПЛОЕМ ИЛИ ЗАЯВКОЙ "СИСТЕМА РАБОТАЕТ" — ОБЯЗАТЕЛЬНО: • 📖 docs/runbooks/STAGING_VALIDATION.md — 10 проверок (Sentry, DR drill, AI kill-switch, AI safety, arq, PII, pre-commit, tests, build) • 🤖 bash scripts/smoke_test_staging.sh — автоматическая версия проверок • 📖 AGENTS.md — операционные правила для ИИ-агентов (читать первым)Read the full README ↗
Современная система управления медицинской клиникой с полным функционалом для записи пациентов, управления очередями, обработки платежей и ведения медицинских карт.
ПЕРЕД ЛЮБЫМ ДЕПЛОЕМ ИЛИ ЗАЯВКОЙ "СИСТЕМА РАБОТАЕТ" — ОБЯЗАТЕЛЬНО:
docs/runbooks/STAGING_VALIDATION.md — 10 проверок (Sentry, DR drill, AI kill-switch, AI safety, arq, PII, pre-commit, tests, build)bash scripts/smoke_test_staging.sh — автоматическая версия проверокAGENTS.md — операционные правила для ИИ-агентов (читать первым)ПЕРЕД РАБОТОЙ С СИСТЕМОЙ АУТЕНТИФИКАЦИИ ОБЯЗАТЕЛЬНО ПРОЧИТАТЬ:
docs/AUTHENTICATION_LAWS_FOR_AI.md - ЗАКОНЫ для ИИ-агентов (КРИТИЧЕСКИ ВАЖНО!)docs/AUTHENTICATION_SYSTEM_FINAL_GUIDE.md - Полное руководство по системеdocs/ROLE_SYSTEM_PROTECTION.md - Правила защиты системыСИСТЕМА ЗАЩИЩЕНА СТРОГИМИ ПРАВИЛАМИ - СОБЛЮДАЙТЕ ИХ! 🛡️
@ts-nocheck, полная JS→TS миграцияDoctor.specialtyКлонирование репозитория
git clone <repository-url>
cd final
Backend
cd backend
pip install -r requirements.txt
# PostgreSQL DSN example:
# postgresql+psycopg://clinic:<password>@localhost:5432/clinicdb
alembic upgrade head
python run_server.py
Frontend
cd frontend
npm install
npm run dev
Internal demo/test routes are hidden by default, including legacy aliases such as /payment/test, /css-test, and /buttons. For a local debug session only, copy frontend/.env.example and set VITE_ENABLE_INTERNAL_DEMO=1; do not enable it in production-like environments.
# Запуск всех сервисов
docker-compose -f ops/docker-compose.yml up
# Или отдельно
docker build -f ops/backend.Dockerfile -t clinic-backend .
docker build -f ops/frontend.Dockerfile -t clinic-frontend .
# Backend
DATABASE_URL=postgresql+psycopg://clinic:<password>@localhost:5432/clinicdb
CORS_DISABLE=1
WS_DEV_ALLOW=1
# Frontend
VITE_API_URL=http://localhost:18000
Все изменения схемы БД выполняются только через Alembic:
cd backend
alembic upgrade head
alembic current
Ожидаемый результат: 0001_baseline (head) или более новая head-ревизия.
cd backend
pytest tests/
pytest tests/test_openapi_contract.py -q
cd frontend
npm run test
npx playwright test
В CI фронтенд gate дополнительно включает frontend/e2e/registrar-time.spec.js для проверки времени регистрации пациента в Asia/Tashkent.
Система включает полный CI/CD пайплайн с:
mainRequire these GitHub-native checks:
🔍 Качество кода🐍 Backend тесты🎨 Frontend тесты🧱 Context Boundary Integrity🔄 Frontend-Backend Parityrole-system-checkНе делать обязательными:
Vercel и Vercel Preview Comments — это внешний preview/deploy signal, а не repository-owned CI gate🔒 Security сканирование — выполняется на push в main и workflow_dispatch🐳 Docker сборка — выполняется на push в main и workflow_dispatch🔗 Интеграционные тесты — тяжелая проверка для push в main и ручных запусков| ADR | Тема | Статус |
|---|---|---|
| ADR-0013 | State Management Boundaries (AsyncState vs useReducer vs useState vs ChatSessionState) | ✅ Accepted |
| ADR-0014 | State Pattern Matrix — decision flowchart for choosing the right state pattern | ✅ Accepted |
| ADR-0015 | Domain Boundary Matrix — import rules for DTO↔Domain↔Hook↔Component layers | ✅ Accepted |
| ADR-0016 | Error Taxonomy — HttpApiError / ChatError / WorkflowError hierarchy | ✅ Accepted |
| ADR-0017 | Transition Verification — finite state machine property tests for ChatSessionState | ✅ Accepted |
| ADR-0018 | Runtime Validation Strategy — Zod at the mapper layer as single validation boundary | ✅ Accepted |
PR CI → lint + tsc + unit (314) + integration + contracts + type-debt + regression (31) + [critical: incremental Stryker]
↓
Nightly → mutmut (Python ≥80%) + Stryker (TS ≥70%) — artifacts: mutation-reports/
↓
Weekly → k6 load (baseline × 1.15 gate) + chaos (failure → recovery → verification)
↓
Release → k6 baseline + incremental mutation + regression 31/31
↓
Dashboard → docs/RELIABILITY.md (исторические тренды)
Doctor.specialtymainDailyQueue.specialist_id → Doctor.id (каждый врач имеет свою очередь)Doctor.specialty — canonical source (не User.role)QueueProfile (name, icon, color, visibility)getRoleHomeRoute() использует profile.specialty для направления врача на нужную панельПроект разработан для медицинских учреждений с соблюдением стандартов безопасности и конфиденциальности данных.
Для получения помощи:
docs/Система управления клиникой - современное решение для медицинских учреждений 🏥✨