fieldnotesai
    Preparing search index...
    • Saves the provided intake form data back to various database tables (clients, children, cases, safety_plans, health_assessments).

      Parameters

      • caseId: string

        The ID of the case.

      • clientId: string

        The ID of the client.

      • data: IntakeFormData

        The IntakeFormData object to be saved.

      Returns Promise<{ error?: string; success: boolean }>

      A promise that resolves to an object containing the success status and any error message.