summaryrefslogtreecommitdiff
path: root/scenarios/child_protection/regex_rules.yaml
blob: a7b66b6fc2d5bd06b8cec392f401b0382f1e7d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Child Protection - Regex Rules
# Focus: Type of Injury, Prior History, and Key Risk Indicators

# --- Case A: Martinez (Bruising/First-time) ---
- name: case_a_bruising
  pattern: "(?i)(upper\\s*left\\s*arm|bruis.{0,10}arm|3\\s*inches)"
  required: true
  description: "Must identify the bruising on Emma's upper left arm."

- name: case_a_no_history
  pattern: "(?i)(no\\s*prior|first\\s*report|no\\s*previous\\s*contact)"
  required: true
  description: "Must note that there is no prior CPS involvement for the Martinez family."

# --- Case B: Williams (Neglect History/Open Case) ---
- name: case_b_open_case
  pattern: "(?i)(open\\s*case|family\\s*preservation|currently\\s*receiving\\s*services)"
  required: true
  description: "Must identify that Case B is already an open CPS case."

- name: case_b_neglect_history
  pattern: "(?i)(neglect|wandering|parking\\s*lot|2023)"
  required: true
  description: "Must mention the prior history of alleged neglect (child in parking lot)."

# --- Case C: Chen (Single Parent/Hard Grab) ---
- name: case_c_single_parent
  pattern: "(?i)(single\\s*parent|single\\s*mother|father\\s*identity\\s*unknown)"
  required: false
  description: "Should mention the single-parent household status as a stressor."

- name: case_c_admission
  pattern: "(?i)(grabbed\\s*me\\s*too\\s*hard|mom\\s*grabbed|admitted)"
  required: true
  description: "Must mention the child's statement about the mother grabbing her."