Skip to content

policy: Healthcare "Pediatric Dosage" Safety Check #13

@akarlaraytu

Description

@akarlaraytu

📝 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:

  1. MUST BLOCK if drug_type is "ANTIBIOTIC_A" AND patient_age < 12 AND dosage_mg > 250.
  2. MUST ALLOW if the patient is 12 or older.
  3. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions