UiForge
Prompt

Clairval — Gestion hospitalière des lits

DashboardMinimalAppleFadeMicro-interactionsReactTailwindshadcn/ui
Prêt à l'emploi

Copie le prompt dans le presse-papier, sans quitter la page.

❯ Prompt Claude
CONTEXT & GOAL: Clairval is a hospital operations dashboard for bed management, admissions flow, and staff load across wards. The primary user is a bed manager (cadre de santé) deciding in real time where to place emergency admissions while coordinating discharges and cleaning. The signature idea is the Bed Board: a schematic floor plan per ward where every bed is a rounded cell laid out in its actual room arrangement, colored by state (free, occupied, discharge planned, cleaning), so placement decisions become spatial pattern reading — like a theater seating map — instead of scanning spreadsheet rows.

ART DIRECTION: Calm clinical pastel: soft mint, sky blue, warm off-white — deliberately unalarming because the users work under permanent stress. References: Scandinavian healthcare wayfinding, Headspace's soothing clarity, Apple Health's gentle data presentation. It rejects red-alert aesthetics: even critical capacity is communicated with a deep amber and plain language, never flashing red. The Bed Board's spatial layout is the differentiator versus every table-based hospital IT system.

COLOR SYSTEM: Background #F8FAF9, surface #FFFFFF, raised surface #FDFEFD. Border #DFE7E3, border hover #C4D2CB. Text primary #1F2D28, text secondary #5A6B64, text tertiary #8CA098. Accent teal #2E8B7A, hover #257263, active #1D5C4F, for primary actions and active nav. Bed states: free #DFF2E9 fill with #2E8B7A border, occupied #DCE9F7 fill with #4A7FB5 border, discharge planned #FDF3DC fill with #C9962E border, cleaning #EFE9F6 fill with #8A6FB0 border, closed #EDEFEE fill with dashed #8CA098 border. Capacity warning amber #B97A1F (text-level, no flashing). Staff load gauge: comfortable #2E8B7A, tight #C9962E, over ratio #B97A1F.

TYPOGRAPHY: Nunito Sans for everything (rounded humanist forms suit the care context), with tabular figures for all numbers. H1 26px/34px weight 800. Ward title 18px/25px weight 700. KPI figure 30px/36px weight 800 tabular-nums. Body 14px/21px weight 400. Bed cell label 12px/15px weight 700 (bed number). Caption 12px/17px weight 400 text tertiary.

LAYOUT & GRID: Sidebar 224px listing wards with occupancy fraction next to each (Médecine 28/32). Content max-width 1400px, 28px padding, 12-column grid, 24px gutters. Row 1: KPI band, 4 cards of 3 columns. Row 2: Bed Board panel spanning 8 columns (the selected ward's floor plan, rooms grouped by 2-4 bed clusters with room numbers), beside admissions queue 4 columns. Row 3: staff load gauges 5 columns, discharge timeline 7 columns. Row 4: patients table full width. Responsive: ≥1200px as described; 768-1199px Bed Board full width, queue and gauges side by side beneath; <768px single column, the Bed Board keeps its spatial layout but becomes pinch-zoomable in a scrollable container rather than degrading to a list — spatial memory matters to these users.

SECTIONS & COMPONENTS: KPI band: Occupancy 87% (142 of 163 beds), Pending Admissions 9, Planned Discharges Today 14, ER Average Wait 2h 25m. Bed Board (Médecine ward): 32 beds across 12 rooms — e.g. Room 204 shows beds 204A occupied, 204B discharge planned 11:00; each cell shows bed number and a small state icon; hover reveals patient initials (C.M.), admission date, and attending physician; clicking a free bed while an admission is selected assigns it via a confirmation dialog. Admissions queue: cards ordered by priority — 'ER — female, 67, cardiology, waiting 3h 10m, needs monitored bed' with priority tag (Urgent/Standard) and an Assign Bed button; assigned cards slide out. Staff load gauges: per shift team, horizontal gauges of patient-to-nurse ratio — Day team A 6.2:1 (tight, amber), Day team B 4.8:1 (comfortable), Night 8.1:1 (over ratio, deep amber with text 'above threshold 8:1'). Discharge timeline: 24h horizontal track with discharge chips at 09:30, 11:00 (x3), 14:00, each with bed number; past-due discharges get an outlined amber chip. Patients table: columns Bed, Patient (initials only), Admitted, Attending, Expected Discharge, Status; row action Open Record. States: ward occupancy above 95% shows a calm banner 'Capacité critique — 2 lits libres en Médecine. Envisager transferts.' in amber on cream; loading shows the floor plan as gray cell skeletons appearing in place; a closed ward renders dashed cells with a 'Service fermé — réouverture lundi' note.

MOTION: Bed state changes crossfade fill and border colors over 500ms ease-in-out — deliberately slow and soft, no popping. On ward load, bed cells fade in room by room, 40ms stagger, 250ms each, cubic-bezier(0.25, 0.46, 0.45, 0.94). Staff gauges fill from 0 to value over 600ms ease-out on viewport entry. Assigning a bed slides the admission card out with translateX -16px + fade 300ms, and the target bed cell does a single gentle 1.04 scale pulse over 400ms. Reduced motion: all transitions become 100ms opacity fades, the assignment pulse is removed.

TECH & QUALITY: Build with React 19, Tailwind CSS v4 with the pastel clinical tokens, shadcn/ui for dialogs/badges/tables, Framer Motion for cell and card transitions; the Bed Board is a CSS grid per room cluster driven by a ward layout config (BedBoard.tsx, RoomCluster.tsx). Structure: src/features/beds/BedBoard.tsx, src/features/admissions/AdmissionsQueue.tsx, src/features/staffing/LoadGauges.tsx. Accessibility: bed states pair pastel fills with distinct icons (dot, person, clock, spray) and text in tooltips, satisfying color-blind users at AA; the whole Bed Board is keyboard-navigable as a grid (arrow keys between beds, Enter to select) with a 2px teal focus-visible ring; patient privacy is enforced in UI (initials only); all pastel text/border combinations were chosen to keep ≥3:1 for UI components and ≥4.5:1 for text; the capacity banner uses role='status', not role='alert', to avoid screen-reader panic for a non-emergency.
Objectif

Clairval aide les cadres de santé d'un hôpital à piloter l'occupation des lits, les admissions et la charge du personnel par service. Cible : cadres de santé et bed managers qui arbitrent les admissions aux urgences en flux tendu. Idée signature : le plan de lits (Bed Board) — un plan d'étage schématique où chaque lit est une cellule dont l'état (libre, occupé, sortie prévue, nettoyage) se lit comme un plan de salle de théâtre, remplaçant les listes Excel par une lecture spatiale immédiate.

Style

Pastel médical apaisant, menthe et bleu ciel sur blanc cassé, contrastes doux mais lisibles, zéro alarmisme.

Composants
Sidebar par service : Urgences, Médecine, Chirurgie, Soins intensifs, MaternitéPlan de lits (Bed Board) en plan d'étage schématique par serviceBandeau KPI : taux d'occupation, admissions en attente, sorties prévues aujourd'hui, temps d'attente moyen aux urgencesFile d'admissions en attente avec priorité et service cibleJauge de charge du personnel par équipe (ratio patients/infirmier)Timeline des sorties prévues sur 24hTable des patients : lit, admission, médecin référent, statut de sortieFiltres par service, étage, statut de litÉtats : capacité critique (bannière), chargement, service fermé
Animations
Changement d'état d'un lit en fondu de couleur douxApparition séquentielle des cellules du plan au chargementProgression animée des jauges de chargeGlissement des cartes d'admission lors de l'affectation d'un lit
Stack technique
React 19Tailwind CSS v4shadcn/uiFramer Motion
Scores
9/10
Qualité
9/10
Originalité
Notes de revue

Le plan de lits façon plan de salle de théâtre est une transposition brillante et sensible au contexte hospitalier, avec un vrai souci de zéro alarmisme respecté jusque dans les couleurs. Un des meilleurs prompts du lot.

À voir aussi

Prompts liés

Dashboard

Harbordesk — Support client et helpdesk

Light dense façon Zendesk/Intercom, bleu-gris apaisant, vue scindée liste/conversation.

Q 8/10O 7/10MinimalAppleHover effect
Dashboard

Ledgerline — CRM de ventes B2B

Light dense façon suisse, grille stricte, accents bleu encre, très haute densité d'information.

Q 8/10O 7/10MinimalStripeApple
Dashboard

Driftwatch — Monitoring de modèles ML

Light technique et dense, blanc lab et graphite, accent unique vert oscilloscope, précision d'instrument de mesure.

Q 9/10O 9/10MinimalVercelStripe