Circle V2 API Docs
    Preparing search index...

    Class LegacyApiClient

    Index

    Constructors

    • Parameters

      • options: LegacyApiClientOptions

      Returns LegacyApiClient

    Methods

    • Parameters

      • input: { dry_run: boolean; integration_id: string }

      Returns Promise<
          {
              chart_reviews_enqueued: number;
              patients_enqueued: number;
              success: true;
          },
      >

    • Parameters

      • input: {
            customPrompt?: string;
            optionId:
                | "custom"
                | "shorten"
                | "lengthen"
                | "remove_name"
                | "remove_sensitive"
                | "regenerate";
            sessionId: number;
        }

      Returns Promise<{ error: null; success: true } | { error: string; success: false }>

    • Parameters

      • input: {
            auditSource?: "manual" | "queue" | "api";
            patientId: PatientId;
            sessionId?: SessionId;
            templateIds: AuditTemplateId[];
            treatmentEpisodeId?: TreatmentEpisodeId;
            trigger?: string;
            triggeredAt?: string;
        }

      Returns Promise<unknown>

    • Parameters

      • input: {
            caseId: number;
            messages: { content: string; id: string; role: "user" | "assistant" }[];
        }

      Returns Promise<
          {
              citations?: {
                  quote?: string
                  | null;
                  source?: { name: string; page?: string | null };
                  [key: string]: unknown;
              }[];
              content: string;
              id: string;
              role: "assistant";
          },
      >

    • Parameters

      • input: {
            dry_run: boolean;
            end_date?: string;
            integration_id: string;
            start_date?: string;
        }

      Returns Promise<
          | {
              error: null;
              patients?: { first_name: string; id: number; last_name: string }[];
              stats?: {
                  date_range?: { end?: string; start?: string };
                  records_fetched: number;
                  records_upserted?: number;
              };
              success: true;
          }
          | { details?: string; error: string; success: false },
      >

    • Parameters

      • input: { dry_run: boolean; patient_id: number; sync_documents: boolean }

      Returns Promise<{ success: true }>