patient_form_submission table has one row per form a patient submitted. It is the record that a form came back: which form, which patient, when they submitted it, and the chart document the submission created. Join patient_form_id to patient_form.id, patient_id to patient.id, report_id to report.id, and, for forms tied to an appointment, appointment_id to appointment.id.
This is the table to count when you want submitted forms. For how staff review responses in Elation, see Managing forms responses.
This table’s columns and relationships are shown in the Hosted Database schema.
For reporting on but not limited to:
- How many forms patients submitted, by form, practice, or period
- Whether submissions arrived from an ad-hoc request or an appointment
- Patients who submitted the same form more than once
- Forms that were sent but never came back
Before you query patient form submissions
This is the count of submitted forms
Do not countreport rows with report_type = 'PatientForm' instead. Every submission creates one of those chart documents, but not every one of them has a submission behind it, so the report count comes out higher. report also reaches further back in time than this table does. Count rows here, and use report_id only when you need to get from a submission to its chart document.
The user who created a submission is not the patient
created_by_user_id is a system user, almost always Elation’s, and never the patient or the member of staff who sent the form. Do not read it as “who filled the form in”. The patient is patient_id.
Submissions arrive by two routes
- Ad-hoc requests: the submission is pointed at by
patient_form_request_form.patient_form_submission_id. See Forms on a patient form request. - Appointment forms:
appointment_idis set on the submission itself. A form that an appointment requires counts as submitted when a submission that counts has the sameappointment_idandpatient_form_id. See Per-appointment form changes.
A submission counts while deletion_time is null
creation_time is when the patient submitted the form, and it is Pacific Time, as are the other timestamps here.
Take the earliest submission of a duplicate
A patient can submit the same form twice for the same appointment. Where that matters, for example when measuring how long a form took to come back, use the earliestcreation_time. The same patient submitting the same form at different appointments over the years is normal and not a duplicate, so scope duplicate checks to one appointment.
Answers are not included
The questions on a form and the patient’s answers are not in the Hosted Database.report_id points at the chart document the submission created, which is where the answers live in Elation.
What is included
A submission is included when a practice in your Hosted Database owns the form and the patient is in yourpatient table. Submissions of forms created before 2024-07-11 and not edited since are not included, and nor are submissions made before 2024-07-11 and not changed since.