Fix create appointment compatibility
The createAppointment
endpoint now only needs a patient_id
in the request body to post an entry in the database.
The function, as it stands, will manually set a doctor_id
from a doctor in the DB, use the current date, set the duration to 0, and set the appointment_status
to 'PROCESSING'.
The frontend request can fill all other fields.