NextMotion icon

NextMotion

Interact with NextMotion API for patient care management

Actions163

Treatment → Upload Consent Form

AI-generated

Summary

Upload a PDF consent form as a binary file to associate it with a specific treatment record in the NextMotion system.

Inputs

  • clinicId — The clinic associated with the treatment; required when selecting treatments via dropdown list mode.
  • patientId — The patient associated with the treatment; required when selecting treatments via dropdown list mode.
  • treatmentId (required) — The treatment to which the consent form will be uploaded; choose from searchable list or specify by ID.
  • document (required) — Name of the binary property containing the PDF consent form to upload (e.g., 'data' from a previous Read Binary File node).

Output shape

a JSON object representing the API response on successful upload, including details about the uploaded consent form and associated treatment.

The output includes the API's confirmation and details about the consent form upload. The operation uses multipart/form-data content type for the file upload. Errors occur if required IDs are missing or the binary file is not correctly specified.

Links

Discussion