@primocaredentgroup/consents-component
v0.3.0
Published
Convex component for managing patient consents, templates, flow gates and policy engine
Maintainers
Keywords
Readme
Componente Consents per PrimoUpCore/PrimoCore
Componente Convex per la gestione dei consensi pazienti: builder template, policy engine con gates, flow registry, firma e audit.
Struttura progetto
.
├── convex/ # App Convex (usa il componente)
│ ├── convex.config.ts
│ ├── consentsApi.ts # Wrapper API per il client
│ └── _generated/
├── consents/ # Componente installabile
│ ├── convex.config.ts
│ ├── schema.ts
│ ├── domain/
│ ├── functions/
│ ├── v2/
│ ├── ports/
│ └── ui-example/ # Demo Vite/React
└── package.jsonQuick start
Configura Convex (prima volta):
npm install npx convex devSegui il wizard per creare/collegare un deployment.
Avvia l'UI di demo:
cd consents/ui-example && npm install && npm run devCrea
consents/ui-example/.env.localcon:VITE_CONVEX_URL=https://your-deployment.convex.cloud
Documentazione
Vedi consents/README.md per:
- Installazione in PrimoCore
- API (evaluateGates, getPatientConsentSummary, createConsentSession, submitSignature, declineConsent)
- Flow Registry
- Ruoli e autorizzazione
