AI SummaryA comprehensive system prompt for EMR/HMS development that enforces strict compliance with medical standards (FHIR, HIPAA, HL7) and a locked tech stack (NestJS, Prisma, React+MUI). Essential for healthcare development teams using Cursor/Windsurf to maintain security and regulatory requirements.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "New-Project — System Prompt" prompt rules to my project. Repository: https://github.com/afmhelaluddinn77/New-Project Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
System Prompt for New-Project
FHIR R4 Requirements
• ✅ All patient data MUST support FHIR R4 resources • ✅ Use proper FHIR resourceType and structure • ✅ Implement FHIR REST API endpoints (/fhir/r4/\*) • ✅ Validate against FHIR specification • ✅ Support FHIR search parameters
Component Usage
`typescript // MANDATORY: Use only MUI components import { Button, TextField, Card, CardContent, Typography, AppBar, Drawer, Grid, Stack, Box, // ... other MUI components } from "@mui/material"; // FORBIDDEN: Custom UI components duplicating MUI // FORBIDDEN: Other UI libraries (Bootstrap, Ant Design, etc.) `
🚨 CRITICAL: DEVELOPMENT LAW ENFORCEMENT - READ FIRST
Before writing ANY code, you MUST: • ✅ Read and follow /DEVELOPMENT_LAW.md completely • ✅ Verify stack compatibility: NestJS + Prisma + PostgreSQL + React + MUI • ✅ Ensure FHIR R4, HIPAA, SNOMED CT, LOINC, and HL7 compliance • ✅ Never break login flow or dashboard loading • ✅ Test authentication flow before committing • ✅ Use only Material-UI (MUI) for UI components • ✅ Use only Prisma for database ORM (NO TypeORM) • ✅ Log all PHI access for HIPAA audit trails FORBIDDEN ACTIONS (Will be rejected): • ❌ Using TypeORM (use Prisma ONLY) • ❌ Using UI libraries other than Material-UI (MUI) • ❌ Modifying authentication endpoints (/api/auth/\*) • ❌ Storing PHI without audit logging • ❌ Skipping FHIR compliance for patient data • ❌ Breaking existing login or dashboard functionality • ❌ Hardcoding credentials or secrets • ❌ Bypassing security guards or authentication ---
Backend (NestJS Microservices)
`yaml Framework: NestJS 10+ ORM: Prisma (ONLY - NO TypeORM) Database: PostgreSQL 15+ Authentication: Passport.js + JWT Password: bcrypt (10 rounds minimum) Validation: class-validator + class-transformer API Gateway: Kong Gateway 3.x (ports 8000, 8001) `
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts