Circle V2 API Docs
    Preparing search index...
    start: MutationProcedure<
        {
            input: {
                chosenContacts?: Record<string, string>;
                formId: string;
                includeEmr?: boolean;
                patientId: string;
                selectedDocumentIds?: string[];
                selectedSessionIds?: string[];
                treatmentEpisodeId?: string;
            };
            meta: object;
            output: {
                patientChartId: PatientChartId;
                runId: FormRunId;
                status: "queued";
            };
        },
    > = ...

    Kick off a fill. canAccessPatient gates the patient by role; startFormFillRun proves form, patient and contacts belong to entityId (from the session, never the body); the retrieval scope is checked by assertKickoffScopeBelongsToPatient. Returns queued by construction.