Circle V2 API Docs
    Preparing search index...

    Type Alias EpisodeSyncContext

    Everything an episode-scoped fetch needs: the episode (the EMR casefile key via episode.external_id, the admit/discharge window via episode.admission_date/discharge_date, and the FK stamp via episode.id) plus the patient (external id + name). Adapters key all EMR fetches on the episode and must never reference admission or resolve getPatientAndAdmission — the synced episode IS the episode. The manager resolves the admission once (transitionally) when stamping patient_utilization_reviews.patient_admission_id.

    type EpisodeSyncContext = {
        episode: TreatmentEpisodeRow;
        patient: PatientRow & { external_patient_id: string };
    }
    Index

    Properties

    Properties

    patient: PatientRow & { external_patient_id: string }