Circle V2 API Docs
    Preparing search index...

    Class EMRAdapterAbstract

    Abstract class for syncing patient data from an EMR to our database.

    Concrete subclasses (KipuAdapter, SunwaveAdapter, LightningStepAdapter, InsyncAdapter) carry real implementations of the established fetch methods. Newly-introduced fetch methods may ship as empty stubs (e.g. fetchEpisodeProgramStays currently returns { stays: [] }) pending per-source work, rather than throwing — so the orchestrator degrades gracefully until each source is wired up.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • integration: {
            created_at: DbDate;
            created_by: string | null;
            credentials:
                | {
                    access_id: string;
                    app_id: string;
                    location_id: number;
                    location_name?: string;
                    secret_key: string;
                }
                | { bearer_token: string; location_ids: number[]; location_name?: string }
                | {
                    api_id: string;
                    api_secret: string;
                    location_name?: string;
                    realm_id: string;
                    service_facility_id: number;
                    sunwave_email: string;
                }
                | {
                    base_url: string;
                    client_id: string;
                    rpa_vault_user_id: string;
                    rpa_workflow_id: string;
                    secret_key: string;
                };
            entity_id: number & { __brand: "EntityId" };
            facility_id: FacilityId | null;
            id: IntegrationId;
            label: string | null;
            last_sync: string | null;
            status: "error" | "active" | "inactive";
            type: "kipu" | "lightningstep" | "sunwave" | "qualifacts_insync";
            updated_at: DbDate;
        }

      Returns EMRAdapter

    Properties

    integration: {
        created_at: DbDate;
        created_by: string | null;
        credentials:
            | {
                access_id: string;
                app_id: string;
                location_id: number;
                location_name?: string;
                secret_key: string;
            }
            | { bearer_token: string; location_ids: number[]; location_name?: string }
            | {
                api_id: string;
                api_secret: string;
                location_name?: string;
                realm_id: string;
                service_facility_id: number;
                sunwave_email: string;
            }
            | {
                base_url: string;
                client_id: string;
                rpa_vault_user_id: string;
                rpa_workflow_id: string;
                secret_key: string;
            };
        entity_id: number & { __brand: "EntityId" };
        facility_id: FacilityId | null;
        id: IntegrationId;
        label: string | null;
        last_sync: string | null;
        status: "error" | "active" | "inactive";
        type: "kipu" | "lightningstep" | "sunwave" | "qualifacts_insync";
        updated_at: DbDate;
    }
    logger: ConsoleLogger = ...

    Methods

    • Parameters

      • startDate: Date
      • endDate: Date

      Returns Promise<FetchEpisodesInRangeResult>

    • Returns Promise<FetchFacilityLevelsOfCareResult>

    • Returns Promise<FetchFacilityProgramsResult>

    • Parameters

      Returns Promise<FetchTreatmentEpisodesResult>