Create Submission

This endpoint is used for creating a submission for your form(s). During onboarding, your administrator will have been informed about field names. Your submission data must match these names. An example has been provided down below.

Create a new submission

POST https://api.formdr.com/api/v1/practice/{practiceId}

Query Parameters

Name
Type
Description

firstName*

String

Patient First Name

lastName*

String

Patient Last Name

formUuid*

String

Form UUID

email

String

Patient Email Address

phone

String

Patient Phone Number

sendForm*

String

"email" | "phone" | "both"

submissionData*

JSON String

Stringified JSON data. See example below.

appointment*

String

Must be in "YYYY-MM-DD hh:mm:ss" format.

securityCode*

String

Security code used to open the form.

securityCodeHint*

String

Hint provided for the security code.

automaticReminder*

Boolean

Automatic appointment reminder.

{
    "submissionId": number,
    "formId": number,
    "formName": string,
    "name": string,
    "formUuid": string,
    "submissionToken": string,
    "submissionUrl": string, //publicly accessible URL for patient
}

The submissionData is a JSON string that maps to each field in the form. During form creation, each field is generated with a unique ID. This ID can be changed to best suit your purposes. Some fields, like the Single-Select Option field, can be given specific values.

You will notice below there is a takingMedicineCheckbox which returns a boolean value, but a painYesNo variable that is a string of 'true'. This is because the field is a Single-Select Option field. The default value of which is 'true', but it can be any value that the form creator wants.

submissionData example

{
  "takingMedicineCheckbox": true,
  "signedDate": "11/07/2022",
  "firstName": "Aaron",
  "lastName": "Jackson",
  "painYesNo": "true"
}

Use the standard JSON.stringify() function to properly send JSON as a string parameter.

Last updated