원클릭으로
appointments
Use this skill for managing patient appointments - creating, canceling, confirming, changing, and listing appointments.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use this skill for managing patient appointments - creating, canceling, confirming, changing, and listing appointments.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | appointments |
| description | Use this skill for managing patient appointments - creating, canceling, confirming, changing, and listing appointments. |
This skill provides capabilities for managing patient appointments in the healthcare ChatBot.
Use this skill when the patient asks about doing one of the following scenarios:
The details for each of these scenarios is discussed next.
Obtain the following information from the user if you don't already have it, i.e., it was part of the user query:
A new appointment is created for the patient at the date-time.
Obtain the following information from the user if you don't already have it, i.e., it was part of the user query:
The existing appointment is changed to the new date-time.
Obtain the following information from the user if you don't already have it, i.e., it was part of the user query:
The existing appointment is canceled and the appointment's date-time is made free in the schedule.
Obtain the following information from the user if you don't already have it, i.e., it was part of the user query:
Zero or more appointments for the patient are shown to the patient.
Obtain the following information from the user if you don't already have it, i.e., it was part of the user query:
Zero or more dates and times available for appointments that also work for the patient.
Obtain the following information from the user if you don't already have it, i.e., it was part of the user query:
A healthcare provider will respond as soon as possible. Do not create a new appointment.
Use the following tools to implement the scenarios described above.
Create a new appointment for a patient.
Parameters:
patient_name (str): Name of the patientappointment_date_time (str): ISO format datetime string (e.g., "2026-04-15T10:00:00")reason (str): Reason for the appointmentReturns:
The tool returns a tuple[str,str]. If the appointment was successfully created, the first tuple element is the non-empty appointment_id for the created appointment and the second tuple element is a success message. If the appointment was not successfully created, the first tuple element is the empty string '' and the second tuple element is an error message.
Return this information as JSON:
{
"appointment_id": appointment_id,
"message": message
}
Where:
appointment_id value is the first tuple element returned.message value is the second tuple element returned.Constraints:
Cancels an existing appointment, specified by the appointment ID. Use "get_appointment_id_for_name_and_date_time" to get the ID for a patient name and appointment date and time, if necessary.
Parameters:
appointment_id (str): ID of the appointment to cancelReturns:
The tool returns a tuple[bool,str]. If the appointment was successfully cancelled, the first tuple element is True and the second tuple element is a success message. If the appointment was not successfully cancelled, the first tuple element is False and the second tuple element is an error message.
Return this information as JSON:
{
"success": True | False,
"message": message
}
Where:
success value is the first tuple element returned, i.e., True or False.message value is the second tuple element returned.Changes an appointment to a new time, specified by the appointment ID. Use "get_appointment_id_for_name_and_date_time" to get the ID for a patient name and appointment date and time, if necessary.
Parameters:
appointment_id (str): ID of the appointment to changenew_date_time (str): New ISO format datetime stringReturns:
The tool returns a tuple[bool,str]. If the appointment was successfully changed, the first tuple element is True and the second tuple element is a success message. If the appointment was not successfully changed, the first tuple element is False and the second tuple element is an error message.
Return this information as JSON:
{
"success": True | False,
"message": message
}
Where:
success value is the first tuple element returned, i.e., True or False.message value is the second tuple element returned.Get all active appointments, with optional filtering.
Parameters:
patient_name (str, optional): Whether to include past appointments (default: False)after_datetime (str for a ISO format datetime string, optional): Only include appointments with date-times equal to or after this valueReturns:
The tool returns a list[dict[str,Any]], containing a dictionary for each appointment. The list will be empty if there are no appointments that match the filter criteria (if any).
Return this information as JSON:
{
"appointments": appointment_list
}
Where:
appointments value is the list returned, which will be [], if empty.Return the number of appointments currently scheduled.
Parameters:
Returns: The tool returns an integer count of all the appointments, which may be zero.
Return this information as JSON:
{
"count": count
}
Where:
count is the number of appointments returned.Return a specific appointment for the specified ID. Use "get_appointment_id_for_name_and_date_time" to get the ID for a patient name and appointment date and time, if necessary.
Parameters:
appointment_id (str): ID of the appointment to changeReturns:
The tool returns a dict[str, Any] with the appointment details, or {} if no appointment was found for the input appointment_id.
Return this information as JSON:
{
"appointment" : dictionary_as_json
}
Where:
dictionary_as_json value is the appointment dictionary converted to JSON.Retrieve the appointment ID for the specified patient name and date-time.
Parameters:
patient_name (str): The patient name for the appointmentappointment_date_time (str for a ISO format datetime string): the date-time for the appointmentReturns:
The tool returns a str with the appointment ID or '' if no matching appointment was found.
Return this information as JSON:
{
"appointment_id": appointment_id
}
Where:
appointment_id value is the returned appointment ID, which may be ''.Patient: "I'd like to schedule an appointment for next Monday at 2pm"
Action: Use create_appointment with appropriate parameters
Patient: "I'd like to schedule an appointment in the next few weeks"
Action: Show the patient several available times, ask the patient to pick one and use create_appointment with the appropriate parameters.
Patient: "Can I cancel my appointment?"
Action: First use get_appointments to find their appointment, then cancel_appointment
Patient: "I need to reschedule my appointment to Wednesday"
Action: Use change_appointment with the new time