-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
Healthcaregood first issueGood for newcomersGood for newcomerspolicyWriting CSL policies for business useWriting CSL policies for business use
Description
📝 Context
A medical AI assistant helps doctors prescribe medication. We need a critical safety guard to ensure pediatric patients (children) never receive adult dosages of specific strong antibiotics.
🎯 The Goal
Write a .csl file that cross-checks patient age against dosage.
Variables you can use:
patient_age(Integer): The age of the patient.dosage_mg(Integer): The amount of milligram prescribed.drug_type(String): The category of the drug (e.g., "ANTIBIOTIC_A").
Requirements:
- MUST BLOCK if
drug_typeis"ANTIBIOTIC_A"ANDpatient_age< 12 ANDdosage_mg> 250. - MUST ALLOW if the patient is 12 or older.
- MUST ALLOW if the dosage is 250 or less.
📚 Resources
- Start here:
docs/getting-started.md - Numerical comparisons:
docs/syntax-spec.md
✅ Definition of Done
Submit a PR with a new file: examples/community/pediatric_safety_guard.csl
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Healthcaregood first issueGood for newcomersGood for newcomerspolicyWriting CSL policies for business useWriting CSL policies for business use