NextMotion icon

NextMotion

Interact with NextMotion API for patient care management

Actions163

Document Template → Create

AI-generated

Summary

Create a new Document Template in the NextMotion system with specified properties and optional additional fields.

Inputs

  • Clinic — Select the clinic for the template either from a searchable list or by entering its UUID. Required if creating multiple templates or fetching many, optional when using template ID directly.
  • Name (required) — Set the display name of the document template.
  • Type (required) — Choose the document type from predefined options like Administrative, Invoice, Prescription, etc.
  • Template (JSON) (required) — Provide the JSON object representing the template content, e.g., an empty object or a JSON object containing HTML.
  • Additional Fields — Optionally specify additional details such as an autocomplete questionnaire template, autoshow flag, display in consultations flag, doctor ID, introductory text, master template ID, and reusable template snippets.

Output shape

a single JSON object representing the created Document Template with all specified properties and server-assigned identifiers.

The output contains all properties sent in creation plus any server-generated fields. Clinic is optional if using template ID directly but required for bulk getAll and create operations.

Links

Discussion