59 lines
1.8 KiB
Markdown
59 lines
1.8 KiB
Markdown
# Consultation Prompt
|
|
|
|
Handle user input related to medical consultations, appointments, and follow-ups.
|
|
|
|
User said: "{{INPUT}}"
|
|
Language: {{LANGUAGE}}
|
|
Category: {{CATEGORY}}
|
|
|
|
IMPORTANT: Respond with ONLY the JSON object. No explanations, no markdown fences, no text before or after.
|
|
|
|
For consultations, use `input_config.fields`. If creating a record, use the `entries` array.
|
|
|
|
```json
|
|
{
|
|
"question": "tracking question in {{LANGUAGE}}",
|
|
"type": "snake_case_identifier",
|
|
"input_type": "form|checkbox",
|
|
"schedule": [{"days": [...], "time": "HH:MM"}],
|
|
"input_config": {"fields": [{"key": "...", "type": "...", "label": "..."}]},
|
|
"entries": [{"value": "...", "data": {...}}]
|
|
}
|
|
```
|
|
|
|
## Rules
|
|
- Create a `schedule` for future appointments mentioned with a day or date. Default time is "09:00".
|
|
- Create a follow-up `question` for the scheduled appointment.
|
|
- A simple past event with no follow-up should have `schedule: null`.
|
|
- `question` and UI labels must be in {{LANGUAGE}}.
|
|
- If the user provides data for a new event, populate the `entries` array with a single entry.
|
|
|
|
## Examples
|
|
|
|
Input: "I went to the dentist"
|
|
Language: en
|
|
Category: consultation
|
|
```json
|
|
{
|
|
"question": null,
|
|
"type": "dentist_visit",
|
|
"input_type": null,
|
|
"schedule": null,
|
|
"input_config": null,
|
|
"entries": [{"value": "Dentist visit", "data": {"provider": "dentist"}}]
|
|
}
|
|
```
|
|
|
|
Input: "I have an appointment with my PCP for Friday"
|
|
Language: en
|
|
Category: consultation
|
|
```json
|
|
{
|
|
"question": "Did you attend your PCP appointment today?",
|
|
"type": "pcp_appointment",
|
|
"input_type": "checkbox",
|
|
"schedule": [{"days": ["fri"], "time": "09:00"}],
|
|
"input_config": {"fields": [{"key": "completed", "type": "checkbox", "label": "Yes"}]},
|
|
"entries": [{"value": "PCP Appointment", "data": {"provider": "PCP", "date": "Friday"}}]
|
|
}
|
|
``` |