Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
id: string
domain: string
pattern: string
trap: string
batch: bool
sop: string
policy: string
sheets: string
program: string
to
{'id': Value('string'), 'domain': Value('string'), 'pattern': Value('string'), 'batch': Value('bool'), 'sop': Value('string'), 'policy': Value('string'), 'sheets': Value('string'), 'program': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              id: string
              domain: string
              pattern: string
              trap: string
              batch: bool
              sop: string
              policy: string
              sheets: string
              program: string
              to
              {'id': Value('string'), 'domain': Value('string'), 'pattern': Value('string'), 'batch': Value('bool'), 'sop': Value('string'), 'policy': Value('string'), 'sheets': Value('string'), 'program': Value('string')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

id
string
domain
string
pattern
string
batch
bool
sop
string
policy
string
sheets
string
program
string
train-00000
clinic
reminder
false
Each day at 6pm, find every patient in the Visits sheet whose appointment is in three days and whose status is "booked". Send each one a text reminder. I need to OK every message. Don't mention the diagnosis. At most 100 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 18:00 let all = fetch Visits let due = filter all ...
train-00001
clinic
reminder
false
Daily at 8:30am, find every patient in the Visits sheet whose appointment is in a week and whose status is "booked". Send each one a text reminder. I need to OK every message. Then mark them notified. Don't mention the diagnosis. At most 30 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 08:30 let all = fetch Visits let due = filter all ...
train-00002
clinic
reminder
false
Every day at 8am, find every patient in the Visits sheet whose appointment is in three days and whose status is "booked". Send each one a text reminder. Let me check the messages before they go out. Keep the diagnosis out of the message. At most 50 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 08:00 let all = fetch Visits let due = filter all ...
train-00003
clinic
reminder
false
Every Friday at 4pm, find every patient in the Visits sheet whose appointment is in a week and whose status is "booked". Send each one a text reminder. Let me check the messages before they go out. Then mark them notified. Never include their diagnosis. At most 50 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every friday at 16:00 let all = fetch Visits let due = filter a...
train-00004
clinic
reminder
false
On Fridays at 5:30pm, find every patient in the Visits sheet whose appointment is in a week and whose status is "booked". Send each one a text reminder. Show me the messages for approval first. Then mark them notified. Keep the diagnosis out of the message. At most 30 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every friday at 17:30 let all = fetch Visits let due = filter a...
train-00005
clinic
reminder
false
Every day at 11am, find every patient in the Visits sheet whose appointment is in two days and whose status is "booked". Send each one a text reminder. Let me check the messages before they go out. Then mark them reminded. Never include their diagnosis. At most 30 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 11:00 let all = fetch Visits let due = filter all ...
train-00006
clinic
reminder
true
Daily at 10am, find every patient in the Visits sheet whose appointment is in a week and whose status is "booked". Send each one a text reminder. I want to approve each message first. Then mark them reminded. Don't mention the diagnosis. At most 20 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 20:00 approval batch valid 30 minutes max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 10:00 let all = fetch Visits let due = filter all ...
train-00007
clinic
reminder
true
On Fridays at 8am, find every patient in the Visits sheet whose appointment is tomorrow and whose status is "booked". Send each one a text reminder. I need to OK every message. Don't mention the diagnosis. At most 20 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 09:00 and 21:00 approval batch valid 2 hours max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every friday at 08:00 let all = fetch Visits let due = filter a...
train-00008
clinic
reminder
true
On Tuesdays at 5:30pm, find every patient in the Visits sheet whose appointment is tomorrow and whose status is "booked". Send each one a text reminder. Let me check the messages before they go out. Don't mention the diagnosis. At most 20 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 07:30 and 19:00 approval batch valid 1 hour max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every tuesday at 17:30 let all = fetch Visits let due = filter ...
train-00009
clinic
reminder
true
Daily at 6pm, find every patient in the Visits sheet whose appointment is in a week and whose status is "booked". Send each one a text reminder. Let me check the messages before they go out. Then mark them reminded. Keep the diagnosis out of the message. At most 50 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 09:00 and 21:00 approval batch valid 2 hours max 50 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 18:00 let all = fetch Visits let due = filter all ...
train-00010
clinic
reminder
true
Each Monday at 4pm, find every patient in the Visits sheet whose appointment is tomorrow and whose status is "booked". Send each one a text reminder. I need to OK every message. Then mark them notified. Keep the diagnosis out of the message. At most 100 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 approval batch valid 30 minutes max 100 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every monday at 16:00 let all = fetch Visits let due = filter a...
train-00011
clinic
reminder
true
Each Thursday at 5:30pm, find every patient in the Visits sheet whose appointment is in a week and whose status is "booked". Send each one a text reminder. Show me the messages for approval first. Then mark them reminded. Keep the diagnosis out of the message. At most 30 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 approval batch valid 1 hour max 30 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every thursday at 17:30 let all = fetch Visits let due = filter...
train-00012
clinic
reminder
true
Daily at 5:30pm, find every patient in the Visits sheet whose appointment is in a week and whose status is "booked". Send each one a text reminder. I want to approve each message first. Then mark them reminded. Don't mention the diagnosis. At most 100 per run.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 08:00 and 18:00 approval batch valid 30 minutes max 100 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicAppointmentReminders { about "Remind each patient about their appointment" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 17:30 let all = fetch Visits let due = filter all ...
train-00013
clinic
followup
false
Every day at 8:30am, look for patients marked "no-show" in the last 1 day. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. I want to approve each message first. Mark each one "followed-up". Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 09:00 and 21:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 08:30 let all = fetch Visits let recent = filter all where st...
train-00014
clinic
followup
false
Each morning at 11am, look for patients marked "no-show" in the last 7 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. Nothing goes out until I've approved it. Mark each one "followed-up". Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 09:00 and 21:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 11:00 let all = fetch Visits let recent = filter all where st...
train-00015
clinic
followup
false
Daily at 11am, look for patients marked "no-show" in the last 1 day. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. Show me the messages for approval first. Mark each one "contacted". Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 11:00 let all = fetch Visits let recent = filter all where st...
train-00016
clinic
followup
false
Daily at 9am, look for patients marked "no-show" in the last 1 day. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. I want to approve each message first. Mark each one "contacted". Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 09:00 and 21:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 09:00 let all = fetch Visits let recent = filter all where st...
train-00017
clinic
followup
false
On Thursdays at 11am, look for patients marked "no-show" in the last 2 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. I want to approve each message first. Mark each one "contacted". Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every thursday at 11:00 let all = fetch Visits let recent = filter all whe...
train-00018
clinic
followup
false
Each morning at 8am, look for patients marked "no-show" in the last 1 day. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. I want to approve each message first. Mark each one "contacted". Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 08:00 let all = fetch Visits let recent = filter all where st...
train-00019
clinic
followup
false
Every Thursday at 8am, look for patients marked "no-show" in the last 1 day. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. Show me the messages for approval first. Mark each one "followed-up". Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every thursday at 08:00 let all = fetch Visits let recent = filter all whe...
train-00020
clinic
followup
true
Every Friday at 11am, look for patients marked "no-show" in the last 3 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. Let me check the messages before they go out. Mark each one "contacted". Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 20:00 approval batch valid 30 minutes max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every friday at 11:00 let all = fetch Visits let recent = filter all where...
train-00021
clinic
followup
true
Every day at 8am, look for patients marked "no-show" in the last 7 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. I want to approve each message first. Mark each one "followed-up". Keep the diagnosis out of the message.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 18:00 approval batch valid 2 hours max 30 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 08:00 let all = fetch Visits let recent = filter all where st...
train-00022
clinic
followup
true
Daily at 5:30pm, look for patients marked "no-show" in the last 7 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. I need to OK every message. Mark each one "contacted". Keep the diagnosis out of the message.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 08:00 and 18:00 approval batch valid 2 hours max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 17:30 let all = fetch Visits let recent = filter all where st...
train-00023
clinic
followup
true
Each day at 4pm, look for patients marked "no-show" in the last 2 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. I want to approve each message first. Mark each one "followed-up". Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 approval batch valid 2 hours max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 16:00 let all = fetch Visits let recent = filter all where st...
train-00024
clinic
followup
true
Each morning at 8am, look for patients marked "no-show" in the last 1 day. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. Nothing goes out until I've approved it. Mark each one "followed-up". Keep the diagnosis out of the message.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 approval batch valid 1 hour max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 08:00 let all = fetch Visits let recent = filter all where st...
train-00025
clinic
followup
true
Daily at 8:30am, look for patients marked "no-show" in the last 7 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. Show me the messages for approval first. Mark each one "followed-up". Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 09:00 and 21:00 approval batch valid 30 minutes max 40 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 08:30 let all = fetch Visits let recent = filter all where st...
train-00026
clinic
followup
true
On Tuesdays at 8am, look for patients marked "no-show" in the last 2 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. Show me the messages for approval first. Mark each one "contacted". Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 approval batch valid 2 hours max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every tuesday at 08:00 let all = fetch Visits let recent = filter all wher...
train-00027
clinic
followup
true
Each Wednesday at 10am, look for patients marked "no-show" in the last 2 days. If there are none, stop. Otherwise tell me how many, then send each one a note offering a new time. Let me check the messages before they go out. Mark each one "contacted". Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 approval batch valid 2 hours max 40 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicNoShowFollowUp { about "Follow up with patients marked no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every wednesday at 10:00 let all = fetch Visits let recent = filter all wh...
train-00028
clinic
lapsed
false
Every Thursday at 5:30pm, find patients whose starts was at least 90 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 10. Send a friendly note inviting them back. Nothing goes out until I've approved it. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every thursday at 17:30 let all = fetch Visits let old = filter all where ...
train-00029
clinic
lapsed
false
Every day at 6pm, find patients whose starts was at least 60 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 10. Send a friendly note inviting them back. Let me check the messages before they go out. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 18:00 let all = fetch Visits let old = filter all where days_...
train-00030
clinic
lapsed
false
Every Friday at 8:30am, find patients whose starts was at least 60 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 20. Send a friendly note inviting them back. Show me the messages for approval first. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every friday at 08:30 let all = fetch Visits let old = filter all where da...
train-00031
clinic
lapsed
false
Every day at 5:30pm, find patients whose starts was at least 30 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 10. Send a friendly note inviting them back. I want to approve each message first. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 17:30 let all = fetch Visits let old = filter all where days_...
train-00032
clinic
lapsed
false
Each day at 6pm, find patients whose starts was at least 90 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 20. Send a friendly note inviting them back. I want to approve each message first. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 09:00 and 21:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 18:00 let all = fetch Visits let old = filter all where days_...
train-00033
clinic
lapsed
false
Each morning at 10am, find patients whose starts was at least 60 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 10. Send a friendly note inviting them back. I want to approve each message first. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 10:00 let all = fetch Visits let old = filter all where days_...
train-00034
clinic
lapsed
false
Every day at 10am, find patients whose starts was at least 60 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 20. Send a friendly note inviting them back. Let me check the messages before they go out. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 10:00 let all = fetch Visits let old = filter all where days_...
train-00035
clinic
lapsed
true
Each morning at 11am, find patients whose starts was at least 42 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 15. Send a friendly note inviting them back. I need to OK every message. Keep the diagnosis out of the message.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 approval batch valid 30 minutes max 15 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 11:00 let all = fetch Visits let old = filter all where days_...
train-00036
clinic
lapsed
true
Every day at 9am, find patients whose starts was at least 60 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 10. Send a friendly note inviting them back. Nothing goes out until I've approved it. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 approval batch valid 1 hour max 10 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 09:00 let all = fetch Visits let old = filter all where days_...
train-00037
clinic
lapsed
true
Each Monday at 5:30pm, find patients whose starts was at least 30 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 10. Send a friendly note inviting them back. I need to OK every message. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 approval batch valid 30 minutes max 10 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every monday at 17:30 let all = fetch Visits let old = filter all where da...
train-00038
clinic
lapsed
true
Each morning at 10am, find patients whose starts was at least 60 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 20. Send a friendly note inviting them back. Show me the messages for approval first. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 approval batch valid 2 hours max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 10:00 let all = fetch Visits let old = filter all where days_...
train-00039
clinic
lapsed
true
Every Tuesday at 8:30am, find patients whose starts was at least 60 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 15. Send a friendly note inviting them back. Show me the messages for approval first. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 08:00 and 18:00 approval batch valid 2 hours max 15 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every tuesday at 08:30 let all = fetch Visits let old = filter all where d...
train-00040
clinic
lapsed
true
Each morning at 9am, find patients whose starts was at least 42 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 15. Send a friendly note inviting them back. I need to OK every message. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 approval batch valid 1 hour max 15 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 09:00 let all = fetch Visits let old = filter all where days_...
train-00041
clinic
lapsed
true
Daily at 11am, find patients whose starts was at least 30 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 10. Send a friendly note inviting them back. I need to OK every message. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 18:00 approval batch valid 1 hour max 10 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 11:00 let all = fetch Visits let old = filter all where days_...
train-00042
clinic
lapsed
true
Each Wednesday at 8:30am, find patients whose starts was at least 60 days ago, skipping anyone marked "cancelled". Start with the oldest and contact at most 20. Send a friendly note inviting them back. Show me the messages for approval first. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 08:00 and 18:00 approval batch valid 30 minutes max 20 preview 5 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicWinBack { about "Nudge patients whose appointment was long ago" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every wednesday at 08:30 let all = fetch Visits let old = filter all where...
train-00043
clinic
summary
false
Each Wednesday at 4pm, count the patients in Visits whose status is "booked", and send the numbers to me only. Don't message any patients.
policy ClinicPolicy { allow read Visits(status, copay, patient, phone) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicDailySummary { about "Tell the owner how many patients are booked" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every wednesday at 16:00 let all = fetch Visits let these = filter all ...
train-00044
clinic
summary
false
Every day at 4pm, count the patients in Visits whose status is "no-show" and the total copay, and send the numbers to me only. Don't message any patients. If there are none, don't bother me.
policy ClinicPolicy { allow read Visits(status, copay, patient, phone) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicDailySummary { about "Tell the owner how many patients are no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 16:00 let all = fetch Visits let these = filter all where...
train-00045
clinic
summary
false
Daily at 9am, count the patients in Visits whose status is "no-show", and send the numbers to me only. Don't message any patients.
policy ClinicPolicy { allow read Visits(status, copay, patient, phone) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicDailySummary { about "Tell the owner how many patients are no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 09:00 let all = fetch Visits let these = filter all where...
train-00046
clinic
summary
false
Each morning at 11am, count the patients in Visits whose status is "done" and the total copay, and send the numbers to me only. Don't message any patients. If there are none, don't bother me.
policy ClinicPolicy { allow read Visits(status, copay, patient, phone, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicDailySummary { about "Tell the owner how many patients are done" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 11:00 let all = fetch Visits let these = filter all where st...
train-00047
clinic
summary
false
Daily at 5:30pm, count the patients in Visits whose status is "done", and send the numbers to me only. Don't message any patients.
policy ClinicPolicy { allow read Visits(status, copay, patient, phone, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 09:00 and 21:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicDailySummary { about "Tell the owner how many patients are done" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 17:30 let all = fetch Visits let these = filter all where st...
train-00048
clinic
summary
false
On Thursdays at 10am, count the patients in Visits whose status is "no-show" and the total copay, and send the numbers to me only. Don't message any patients. If there are none, don't bother me.
policy ClinicPolicy { allow read Visits(status, copay, patient, phone) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicDailySummary { about "Tell the owner how many patients are no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every thursday at 10:00 let all = fetch Visits let these = filter all ...
train-00049
clinic
summary
false
Every day at 6pm, count the patients in Visits whose status is "no-show" and the total copay, and send the numbers to me only. Don't message any patients. If there are none, don't bother me.
policy ClinicPolicy { allow read Visits(status, copay, patient, phone, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicDailySummary { about "Tell the owner how many patients are no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every day at 18:00 let all = fetch Visits let these = filter all where...
train-00050
clinic
summary
false
Each Monday at 8:30am, count the patients in Visits whose status is "no-show" and the total copay, and send the numbers to me only. Don't message any patients. If there are none, don't bother me.
policy ClinicPolicy { allow read Visits(status, copay, patient, phone) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicDailySummary { about "Tell the owner how many patients are no-show" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger every monday at 08:30 let all = fetch Visits let these = filter all wh...
train-00051
clinic
refund
false
When a new refund request is added, check it. If the purchase was more than 30 days ago, tell me and stop. If it's over $40, I'll handle it myself. Every refund needs my OK. After refunding, mark it refunded and let the patient know (I approve that message too).
policy ClinicRefundPolicy { allow read RefundRequests(request_id, patient, phone, amount, purchased) allow write RefundRequests(status) allow contact RefundRequests.phone limit refund $40 per action limit refund $240 per day limit sends 80 per day send only between 09:00 and 21:00 }
sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text }
procedure ClinicRefunds { about "Handle refund requests within limits" policy ClinicRefundPolicy sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text } trigger when new row r in RefundRequests if days_between(r.purchased, today())...
train-00052
clinic
refund
false
When a new refund request is added, check it. If the purchase was more than 14 days ago, tell me and stop. If it's over $75, I'll handle it myself. Refunds of $10 or less can go through without me; anything bigger needs my OK. After refunding, mark it refunded and let the patient know (I approve that message too).
policy ClinicRefundPolicy { allow read RefundRequests(request_id, patient, phone, amount, purchased) allow write RefundRequests(status) allow contact RefundRequests.phone limit refund $75 per action limit refund $375 per day refund without approval up to $10 limit sends 50 per day send only between 09:0...
sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text }
procedure ClinicRefunds { about "Handle refund requests within limits" policy ClinicRefundPolicy sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text } trigger when new row r in RefundRequests if days_between(r.purchased, today())...
train-00053
clinic
refund
false
When a new refund request is added, check it. If the purchase was more than 14 days ago, tell me and stop. If it's over $100, I'll handle it myself. Refunds of $20 or less can go through without me; anything bigger needs my OK. After refunding, mark it refunded and let the patient know (I approve that message too).
policy ClinicRefundPolicy { allow read RefundRequests(request_id, patient, phone, amount, purchased) allow write RefundRequests(status) allow contact RefundRequests.phone limit refund $100 per action limit refund $500 per day refund without approval up to $20 limit sends 80 per day send only between 07:...
sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text }
procedure ClinicRefunds { about "Handle refund requests within limits" policy ClinicRefundPolicy sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text } trigger when new row r in RefundRequests if days_between(r.purchased, today())...
train-00054
clinic
refund
false
When a new refund request is added, check it. If the purchase was more than 30 days ago, tell me and stop. If it's over $50, I'll handle it myself. Refunds of $20 or less can go through without me; anything bigger needs my OK. After refunding, mark it refunded and let the patient know (I approve that message too).
policy ClinicRefundPolicy { allow read RefundRequests(request_id, patient, phone, amount, purchased) allow write RefundRequests(status) allow contact RefundRequests.phone limit refund $50 per action limit refund $250 per day refund without approval up to $20 limit sends 50 per day send only between 08:0...
sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text }
procedure ClinicRefunds { about "Handle refund requests within limits" policy ClinicRefundPolicy sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text } trigger when new row r in RefundRequests if days_between(r.purchased, today())...
train-00055
clinic
refund
false
When a new refund request is added, check it. If the purchase was more than 14 days ago, tell me and stop. If it's over $50, I'll handle it myself. Refunds of $20 or less can go through without me; anything bigger needs my OK. After refunding, mark it refunded and let the patient know (I approve that message too).
policy ClinicRefundPolicy { allow read RefundRequests(request_id, patient, phone, amount, purchased) allow write RefundRequests(status) allow contact RefundRequests.phone limit refund $50 per action limit refund $300 per day refund without approval up to $20 limit sends 80 per day send only between 08:0...
sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text }
procedure ClinicRefunds { about "Handle refund requests within limits" policy ClinicRefundPolicy sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text } trigger when new row r in RefundRequests if days_between(r.purchased, today())...
train-00056
clinic
refund
false
When a new refund request is added, check it. If the purchase was more than 30 days ago, tell me and stop. If it's over $40, I'll handle it myself. Refunds of $10 or less can go through without me; anything bigger needs my OK. After refunding, mark it refunded and let the patient know (I approve that message too).
policy ClinicRefundPolicy { allow read RefundRequests(request_id, patient, phone, amount, purchased) allow write RefundRequests(status) allow contact RefundRequests.phone limit refund $40 per action limit refund $120 per day refund without approval up to $10 limit sends 80 per day send only between 07:3...
sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text }
procedure ClinicRefunds { about "Handle refund requests within limits" policy ClinicRefundPolicy sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text } trigger when new row r in RefundRequests if days_between(r.purchased, today())...
train-00057
clinic
refund
false
When a new refund request is added, check it. If the purchase was more than 30 days ago, tell me and stop. If it's over $40, I'll handle it myself. Refunds of $15 or less can go through without me; anything bigger needs my OK. After refunding, mark it refunded and let the patient know (I approve that message too).
policy ClinicRefundPolicy { allow read RefundRequests(request_id, patient, phone, amount, purchased) allow write RefundRequests(status) allow contact RefundRequests.phone limit refund $40 per action limit refund $200 per day refund without approval up to $15 limit sends 50 per day send only between 08:0...
sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text }
procedure ClinicRefunds { about "Handle refund requests within limits" policy ClinicRefundPolicy sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text } trigger when new row r in RefundRequests if days_between(r.purchased, today())...
train-00058
clinic
refund
false
When a new refund request is added, check it. If the purchase was more than 60 days ago, tell me and stop. If it's over $100, I'll handle it myself. Refunds of $15 or less can go through without me; anything bigger needs my OK. After refunding, mark it refunded and let the patient know (I approve that message too).
policy ClinicRefundPolicy { allow read RefundRequests(request_id, patient, phone, amount, purchased) allow write RefundRequests(status) allow contact RefundRequests.phone limit refund $100 per action limit refund $500 per day refund without approval up to $15 limit sends 30 per day send only between 09:...
sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text }
procedure ClinicRefunds { about "Handle refund requests within limits" policy ClinicRefundPolicy sheet RefundRequests "RefundRequests" { request_id: Text, patient: Text, phone: Phone, amount: Money, purchased: Date, status: Text } trigger when new row r in RefundRequests if days_between(r.purchased, today())...
train-00059
clinic
confirm_new
false
When a new appointment is added to Visits: if it's less than 12 hours away, tell me and stop. Otherwise send a confirmation (i need to ok every message), put it on the Rooms calendar for 45 minutes, and mark it confirmed. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, copay) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 07:30 and 19:00 allow calendar Rooms }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms"
procedure ClinicConfirmNewAppointment { about "Confirm a new appointment and add it to the calendar" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms" trigger when new row r in Visits if r....
train-00060
clinic
confirm_new
false
When a new appointment is added to Visits: if it's less than 12 hours away, tell me and stop. Otherwise send a confirmation (let me check the messages before they go out), put it on the Rooms calendar for 60 minutes, and mark it confirmed. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, copay, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 allow calendar Rooms }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms"
procedure ClinicConfirmNewAppointment { about "Confirm a new appointment and add it to the calendar" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms" trigger when new row r in Visits if r....
train-00061
clinic
confirm_new
false
When a new appointment is added to Visits: if it's less than 2 hours away, tell me and stop. Otherwise send a confirmation (nothing goes out until i've approved it), put it on the Rooms calendar for 30 minutes, and mark it confirmed. Keep the diagnosis out of the message.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, copay, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 allow calendar Rooms }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms"
procedure ClinicConfirmNewAppointment { about "Confirm a new appointment and add it to the calendar" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms" trigger when new row r in Visits if r....
train-00062
clinic
confirm_new
false
When a new appointment is added to Visits: if it's less than 2 hours away, tell me and stop. Otherwise send a confirmation (i want to approve each message first), put it on the Rooms calendar for 90 minutes, and mark it confirmed. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, copay, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 allow calendar Rooms }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms"
procedure ClinicConfirmNewAppointment { about "Confirm a new appointment and add it to the calendar" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms" trigger when new row r in Visits if r....
train-00063
clinic
confirm_new
false
When a new appointment is added to Visits: if it's less than 12 hours away, tell me and stop. Otherwise send a confirmation (i want to approve each message first), put it on the Rooms calendar for 90 minutes, and mark it confirmed. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, copay) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 18:00 allow calendar Rooms }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms"
procedure ClinicConfirmNewAppointment { about "Confirm a new appointment and add it to the calendar" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms" trigger when new row r in Visits if r....
train-00064
clinic
confirm_new
false
When a new appointment is added to Visits: if it's less than 2 hours away, tell me and stop. Otherwise send a confirmation (show me the messages for approval first), put it on the Rooms calendar for 45 minutes, and mark it confirmed. Keep the diagnosis out of the message.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, copay, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 08:00 and 18:00 allow calendar Rooms }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms"
procedure ClinicConfirmNewAppointment { about "Confirm a new appointment and add it to the calendar" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } calendar Rooms "Rooms" trigger when new row r in Visits if r....
train-00065
clinic
wait_followup
false
When a new patient is added to Visits, send a welcome note and mark them "contacted". Wait 7 days. If by then they're marked "done" or "cancelled", stop. Otherwise send one check-in message. Show me the messages for approval first. Keep the diagnosis out of the message.
policy ClinicPolicy { allow read Visits(patient, phone, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicFollowUpAfterWait { about "Contact a new patient, then follow up once" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger when new row r in Visits let first = draft sms to r.phone: "Hi {r.pat...
train-00066
clinic
wait_followup
false
When a new patient is added to Visits, send a welcome note and mark them "contacted". Wait 5 days. If by then they're marked "done" or "cancelled", stop. Otherwise send one check-in message. Let me check the messages before they go out. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 50 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicFollowUpAfterWait { about "Contact a new patient, then follow up once" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger when new row r in Visits let first = draft sms to r.phone: "Hi {r.pat...
train-00067
clinic
wait_followup
false
When a new patient is added to Visits, send a welcome note and mark them "contacted". Wait 2 days. If by then they're marked "done" or "cancelled", stop. Otherwise send one check-in message. I need to OK every message. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 20:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicFollowUpAfterWait { about "Contact a new patient, then follow up once" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger when new row r in Visits let first = draft sms to r.phone: "Hi {r.pat...
train-00068
clinic
wait_followup
false
When a new patient is added to Visits, send a welcome note and mark them "contacted". Wait 3 days. If by then they're marked "done" or "cancelled", stop. Otherwise send one check-in message. Nothing goes out until I've approved it. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicFollowUpAfterWait { about "Contact a new patient, then follow up once" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger when new row r in Visits let first = draft sms to r.phone: "Hi {r.pat...
train-00069
clinic
wait_followup
false
When a new patient is added to Visits, send a welcome note and mark them "contacted". Wait 5 days. If by then they're marked "done" or "cancelled", stop. Otherwise send one check-in message. Nothing goes out until I've approved it. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicFollowUpAfterWait { about "Contact a new patient, then follow up once" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger when new row r in Visits let first = draft sms to r.phone: "Hi {r.pat...
train-00070
clinic
wait_followup
false
When a new patient is added to Visits, send a welcome note and mark them "contacted". Wait 2 days. If by then they're marked "done" or "cancelled", stop. Otherwise send one check-in message. Let me check the messages before they go out. Don't mention the diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicFollowUpAfterWait { about "Contact a new patient, then follow up once" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger when new row r in Visits let first = draft sms to r.phone: "Hi {r.pat...
train-00071
clinic
wait_followup
false
When a new patient is added to Visits, send a welcome note and mark them "contacted". Wait 3 days. If by then they're marked "done" or "cancelled", stop. Otherwise send one check-in message. Show me the messages for approval first. Never include their diagnosis.
policy ClinicPolicy { allow read Visits(patient, phone, status, diagnosis) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 07:30 and 19:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicFollowUpAfterWait { about "Contact a new patient, then follow up once" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger when new row r in Visits let first = draft sms to r.phone: "Hi {r.pat...
train-00072
clinic
wait_followup
false
When a new patient is added to Visits, send a welcome note and mark them "contacted". Wait 2 days. If by then they're marked "done" or "cancelled", stop. Otherwise send one check-in message. I need to OK every message. Keep the diagnosis out of the message.
policy ClinicPolicy { allow read Visits(patient, phone, status) allow write Visits(status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 08:00 and 18:00 }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private }
procedure ClinicFollowUpAfterWait { about "Contact a new patient, then follow up once" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } trigger when new row r in Visits let first = draft sms to r.phone: "Hi {r.pat...
train-00073
clinic
outreach
false
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code RETURN20. Nothing goes out until I've approved it. Never include their diagnosis. No more than 50.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 18:00 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00074
clinic
outreach
false
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code COMEBACK15. I want to approve each message first. Don't mention the diagnosis. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 09:00 and 21:00 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00075
clinic
outreach
false
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code COMEBACK15. I want to approve each message first. Never include their diagnosis. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 07:30 and 19:00 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00076
clinic
outreach
false
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code WELCOME10. Let me check the messages before they go out. Never include their diagnosis. No more than 50.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 08:00 and 20:00 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00077
clinic
outreach
false
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code WELCOME10. Show me the messages for approval first. Never include their diagnosis. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 09:00 and 21:00 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00078
clinic
outreach
false
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code RETURN20. Show me the messages for approval first. Never include their diagnosis. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 20:00 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00079
clinic
outreach
false
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code COMEBACK15. Let me check the messages before they go out. Never include their diagnosis. No more than 50.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 08:00 and 20:00 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00080
clinic
outreach
true
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code RETURN20. Let me check the messages before they go out. Keep the diagnosis out of the message. No more than 50.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 08:00 and 20:00 approval batch valid 2 hours max 50 preview 5 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00081
clinic
outreach
true
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code WELCOME10. Nothing goes out until I've approved it. Keep the diagnosis out of the message. No more than 50.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 08:00 and 20:00 approval batch valid 30 minutes max 50 preview 5 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00082
clinic
outreach
true
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code RETURN20. I want to approve each message first. Don't mention the diagnosis. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 08:00 and 18:00 approval batch valid 1 hour max 100 preview 5 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00083
clinic
outreach
true
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code WELCOME10. Nothing goes out until I've approved it. Keep the diagnosis out of the message. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 200 per day send only between 09:00 and 21:00 approval batch valid 2 hours max 100 preview 5 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00084
clinic
outreach
true
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code COMEBACK15. Let me check the messages before they go out. Keep the diagnosis out of the message. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 09:00 and 21:00 approval batch valid 2 hours max 100 preview 5 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00085
clinic
outreach
true
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code WELCOME10. I need to OK every message. Never include their diagnosis. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 100 per day send only between 09:00 and 21:00 approval batch valid 30 minutes max 100 preview 5 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00086
clinic
outreach
true
When I ask, and give a number of days, find patients marked "cancelled" whose starts was within that many days. Write down in my Outreach sheet how many you found, then send each one the code COMEBACK15. I want to approve each message first. Never include their diagnosis. No more than 100.
policy ClinicPolicy { allow read Visits(patient, phone, starts, status, diagnosis) allow contact Visits.phone deny reveal Visits.diagnosis limit sends 150 per day send only between 09:00 and 21:00 approval batch valid 2 hours max 100 preview 5 allow append Outreach }
sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number }
procedure ClinicOutreachCampaign { about "On request, contact recent cancelled patients" policy ClinicPolicy sheet Visits "Visits" { patient: Text, phone: Phone, starts: DateTime, status: Text, copay: Money, diagnosis: Text private } sheet Outreach "Outreach" { day: Date, campaign: Text, targeted: Number } tr...
train-00087
dental
reminder
false
Every day at 4pm, find every patient in the Patients sheet whose cleaning is in a week and whose status is "booked". Send each one a text reminder. Nothing goes out until I've approved it. Never include their medical history. At most 20 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 150 per day send only between 07:30 and 19:00 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 16:00 let all = fetch Patients let due = f...
train-00088
dental
reminder
false
Daily at 9am, find every patient in the Patients sheet whose cleaning is in a week and whose status is "booked". Send each one a text reminder. I want to approve each message first. Don't mention the medical history. At most 30 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 200 per day send only between 08:00 and 18:00 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 09:00 let all = fetch Patients let due = f...
train-00089
dental
reminder
false
Each day at 4pm, find every patient in the Patients sheet whose cleaning is in two days and whose status is "booked". Send each one a text reminder. I need to OK every message. Don't mention the medical history. At most 50 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status, medical_history) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 100 per day send only between 08:00 and 20:00 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 16:00 let all = fetch Patients let due = f...
train-00090
dental
reminder
false
Every Friday at 5:30pm, find every patient in the Patients sheet whose cleaning is in two days and whose status is "booked". Send each one a text reminder. I want to approve each message first. Then mark them reminded. Keep the medical history out of the message. At most 100 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status) allow write Patients(status) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 100 per day send only between 07:30 and 19:00 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every friday at 17:30 let all = fetch Patients let due ...
train-00091
dental
reminder
false
Every day at 5:30pm, find every patient in the Patients sheet whose cleaning is tomorrow and whose status is "booked". Send each one a text reminder. Show me the messages for approval first. Then mark them notified. Keep the medical history out of the message. At most 30 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status) allow write Patients(status) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 50 per day send only between 07:30 and 19:00 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 17:30 let all = fetch Patients let due = f...
train-00092
dental
reminder
false
Daily at 4pm, find every patient in the Patients sheet whose cleaning is in three days and whose status is "booked". Send each one a text reminder. Show me the messages for approval first. Then mark them notified. Don't mention the medical history. At most 50 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status, medical_history) allow write Patients(status) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 50 per day send only between 09:00 and 21:00 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 16:00 let all = fetch Patients let due = f...
train-00093
dental
reminder
false
Daily at 4pm, find every patient in the Patients sheet whose cleaning is in three days and whose status is "booked". Send each one a text reminder. I want to approve each message first. Then mark them reminded. Never include their medical history. At most 20 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status, medical_history) allow write Patients(status) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 50 per day send only between 08:00 and 18:00 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 16:00 let all = fetch Patients let due = f...
train-00094
dental
reminder
false
Every day at 8:30am, find every patient in the Patients sheet whose cleaning is in a week and whose status is "booked". Send each one a text reminder. Nothing goes out until I've approved it. Don't mention the medical history. At most 50 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status, medical_history) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 150 per day send only between 08:00 and 20:00 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 08:30 let all = fetch Patients let due = f...
train-00095
dental
reminder
true
Daily at 11am, find every patient in the Patients sheet whose cleaning is tomorrow and whose status is "booked". Send each one a text reminder. I need to OK every message. Then mark them reminded. Keep the medical history out of the message. At most 30 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status) allow write Patients(status) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 200 per day send only between 08:00 and 20:00 approval batch valid 30 minutes max 30 preview 5 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 11:00 let all = fetch Patients let due = f...
train-00096
dental
reminder
true
Every day at 8:30am, find every patient in the Patients sheet whose cleaning is in three days and whose status is "booked". Send each one a text reminder. I need to OK every message. Don't mention the medical history. At most 30 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status, medical_history) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 150 per day send only between 09:00 and 21:00 approval batch valid 30 minutes max 30 preview 5 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 08:30 let all = fetch Patients let due = f...
train-00097
dental
reminder
true
Daily at 8am, find every patient in the Patients sheet whose cleaning is tomorrow and whose status is "booked". Send each one a text reminder. I need to OK every message. Never include their medical history. At most 100 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status, medical_history) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 150 per day send only between 08:00 and 20:00 approval batch valid 1 hour max 100 preview 5 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 08:00 let all = fetch Patients let due = f...
train-00098
dental
reminder
true
Each Thursday at 9am, find every patient in the Patients sheet whose cleaning is in three days and whose status is "booked". Send each one a text reminder. I need to OK every message. Then mark them reminded. Don't mention the medical history. At most 30 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status) allow write Patients(status) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 150 per day send only between 08:00 and 20:00 approval batch valid 1 hour max 30 preview 5 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every thursday at 09:00 let all = fetch Patients let du...
train-00099
dental
reminder
true
Every day at 8:30am, find every patient in the Patients sheet whose cleaning is in two days and whose status is "booked". Send each one a text reminder. I want to approve each message first. Don't mention the medical history. At most 100 per run.
policy DentalPolicy { allow read Patients(name, mobile, next_visit, status, medical_history) allow contact Patients.mobile deny reveal Patients.medical_history limit sends 100 per day send only between 08:00 and 20:00 approval batch valid 2 hours max 100 preview 5 }
sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private }
procedure DentalCleaningReminders { about "Remind each patient about their cleaning" policy DentalPolicy sheet Patients "Patients" { name: Text, mobile: Phone, next_visit: DateTime, status: Text, balance: Money, medical_history: Text private } trigger every day at 08:30 let all = fetch Patients let due = f...
End of preview.

Aether synthetic SOP-to-program dataset

Pairs of plain-English business procedures (SOPs) and programs in Aether, a small language for checkable business procedures. Each row also carries the owner's policy (safety rules) and the sheet declarations the program may use.

How it was made: a rule-based generator (no language model) builds the SOP, the policy, and the program from the same random choices, so they agree by construction. A row was kept only if its program parses, passes the Aether checker with zero errors, and runs on 3 random mock workspaces with no run error and no monitor violation.

Split Rows
train 1649
valid 125
test 392 (held-out business types: florist, photostudio, plumbing, vet)

2166 rows in total, from 10 procedure patterns.

Fields: id, domain, pattern, batch (approval mode), sop, policy, sheets, program.

Trap-style samples (traps_train.jsonl, traps_valid.jsonl; used to train model v0.2): the SOP asks for something the policy forbids or Aether cannot do, and the program does the permitted alternative. These samples were checked for overlap with every benchmark and held-out SOP; see traps_overlap_report.json. They have an extra field, trap. Training on them did not improve held-out trap performance (see the model card).

Limitations: the English is templated, so it is far less varied than real owners' writing. All businesses are invented, and all data in the programs is mock data.

Downloads last month
35