> ## Documentation Index
> Fetch the complete documentation index at: https://help.clinikehr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export your data

> Take a copy of your workspace's records as CSV or ZIP, including before you close an account, when the data becomes unrecoverable.

export const AuditNote = ({action = 'This action'}) => <div className="ck-callout ck-callout--info" role="note">
    <p className="ck-callout__body">
      {action} is written to your workspace's audit log with your name, the
      record touched and the time — a HIPAA requirement, and one you can review
      yourself under <strong>Audit Log</strong>. See{' '}
      <a href="/platform/security/audit-log">Audit log</a>.
    </p>
  </div>;

export const StillStuck = ({topic}) => <div className="ck-callout ck-callout--note" role="note">
    <p className="ck-callout__body">
      <strong>Still stuck{topic ? ` with ${topic}` : ''}?</strong>{' '}
      Check <a href="/platform/help/troubleshooting">Troubleshooting</a> first —
      it covers the failures we see most often. If that does not resolve it,{' '}
      <a href="/platform/help/contact-support">contact support</a> and include
      your workspace name and the time the problem happened, so we can find the
      matching entry in your audit log.
    </p>
  </div>;

export const TaskHeader = ({before, time, after}) => <div className="ck-task">
    {before ? <div className="ck-task__cell">
        <div className="ck-task__title">Before you start</div>
        <p className="ck-task__body">{before}</p>
      </div> : null}

    {time ? <div className="ck-task__cell">
        <div className="ck-task__title">Takes about</div>
        <p className="ck-task__body">{time}</p>
      </div> : null}

    {after ? <div className="ck-task__cell">
        <div className="ck-task__title">When you're done</div>
        <p className="ck-task__body">{after}</p>
      </div> : null}
  </div>;

export const Path = ({steps = []}) => <span className="ck-path">
    {steps.map((s, i) => <span key={i} className="ck-path__step">
        {i > 0 ? <span className="ck-path__sep" aria-hidden="true">
            ›
          </span> : null}
        {s}
      </span>)}
  </span>;

export const Availability = ({editions = ['all'], plans, roles, note}) => {
  const list = editions.includes('all') ? ['clinic', 'pharmacy', 'lims'] : editions;
  return <div className="ck-avail" role="note" aria-label="Feature availability">
      <span className="ck-avail__label">Available in</span>

      {list.map(e => <span key={e} className={`ck-pill ck-pill--${e}`}>
          {EDITION_LABELS[e] || e}
        </span>)}

      {plans ? <span className="ck-avail__label">Plan</span> : null}
      {plans ? <span className="ck-pill ck-pill--plan">{plans}</span> : null}

      {roles ? <span className="ck-avail__label">Who</span> : null}
      {roles ? <span className="ck-pill ck-pill--role">{roles}</span> : null}

      {note ? <span className="ck-avail__note">{note}</span> : null}
    </div>;
};

<Availability editions={['all']} plans="All plans" />

Your records are yours, and you can take a copy at any time without asking anyone. Export what you need, in the date range you need, as a spreadsheet or a bundle of them.

<Path steps={['Settings', 'Data Export']} />

<TaskHeader before="Somewhere secure to put the file — the export contains patient or customer data" time="A minute to start; a large export finishes on its own" after="A downloadable file containing exactly the modules and dates you chose" />

The **Data Export** card explains itself: "Export clinic data as CSV or ZIP. Large exports run in the background — you can navigate away and check back."

## Export

<Steps>
  <Step title="Choose what to export">
    Under **Modules**, search and add what you need. They are grouped by subject — **Clinical Records**, **Patient Profile**, **Documents & Files**, **Telehealth**, **Administrative**, **Insurance**, **Ward & Inpatient** and **Compliance & Audit**. **Select all** takes everything; **Clear all** starts again. Each choice appears as a chip you can remove.

    **Audit Logs** appears only for owners and managers, who are the only people who may read the audit trail.
  </Step>

  <Step title="Set a date range">
    **Date range (optional)** defaults to **All time**. Narrow it for a patient access request or an investigation — a smaller export is faster, easier to read, and discloses less.
  </Step>

  <Step title="Start the export">
    The button names what you asked for — **Export 3 modules**, with a **ZIP** badge when more than one is selected. It reads **Queuing…** while the job is accepted.
  </Step>

  <Step title="Collect the file">
    A progress panel shows the job working. One module comes out as a CSV; more than one comes out as a ZIP of them. Recent jobs stay listed under **Recent Exports** so you can come back for a file later.
  </Step>
</Steps>

<Note>
  A large export is a background job, not a download you wait for. Navigate away and come back — starting it again only queues a second copy. Download links expire after 24 hours; re-run the export if you need the file after that.
</Note>

## What the formats are for

* **CSV** — one module, one spreadsheet. This is what you want for analysis, for a mail merge, or for loading into another system.
* **ZIP** — several modules at once, each as its own CSV inside. This is what you want for a full copy, an access request covering more than one kind of record, or an archive before a change.

## Exporting from a single screen

You do not have to come to Settings for everything. Most tables in the product have their own **Export**, and every analytics report can be exported from where it is drawn. Use those for "this list, as it looks right now"; use **Data Export** for "a copy of the records themselves".

<AuditNote action="Exporting data" />

<Warning>
  **If you are closing an account, export first.** Deleting an account cancels billing immediately and removes the data after a 30-day recovery window. Once that window passes the records are gone, and no support request can bring them back. The account screen says the same thing: "Need a copy of your records? Export each clinic's data first from **Clinic Settings → Data Export**." Note the wording — *each* workspace exports separately. See [Delete your account](/platform/account/delete-account).
</Warning>

## Check it worked

* The job shows as finished and offers the file, or appears under **Recent Exports** with its size.
* Opening the file shows one CSV per module you selected, with rows only inside your date range.
* The export appears in your [audit log](/platform/security/audit-log) as an **Exported** entry under your name.

## If something goes wrong

<AccordionGroup>
  <Accordion title="Nothing downloaded when I selected Export">
    That is expected for anything sizeable — the job runs in the background and tells you when it is ready. Check the progress panel, or **Recent Exports**. Do not start it again while one is running.
  </Accordion>

  <Accordion title="The export failed">
    Try a narrower date range or fewer modules. A very large all-time export across every module is the usual cause; splitting it by subject almost always succeeds.
  </Accordion>

  <Accordion title="I can't select Audit Logs">
    Only owners and managers can export the audit trail. Ask an owner, or read it directly on the [audit log](/platform/security/audit-log) page.
  </Accordion>

  <Accordion title="My download link no longer works">
    Links expire after 24 hours. Run the export again — the file is rebuilt from the same records.
  </Accordion>

  <Accordion title="A module I expected isn't in the list">
    The list only offers modules your edition actually has. A pharmacy has no ward records to export; a diagnostic centre has no consultations. See [The three editions](/start/editions).
  </Accordion>
</AccordionGroup>

## Related

<Columns cols={2}>
  <Card title="HIPAA and compliance" icon="https://mintcdn.com/clinikehr/nLyvBRumcl1Yk8z3/images/icons/shield-halved.svg?fit=max&auto=format&n=nLyvBRumcl1Yk8z3&q=85&s=3d3f5c53a33441091182992bba0efd7f" href="/platform/security/hipaa" width="24" height="24" data-path="images/icons/shield-halved.svg">
    Handling a patient access request end to end.
  </Card>

  <Card title="Delete your account" icon="https://mintcdn.com/clinikehr/nLyvBRumcl1Yk8z3/images/icons/triangle-exclamation.svg?fit=max&auto=format&n=nLyvBRumcl1Yk8z3&q=85&s=36566b5e7f88d663d6a3e3aec917ddb0" href="/platform/account/delete-account" width="24" height="24" data-path="images/icons/triangle-exclamation.svg">
    What is removed, when, and what cannot be undone.
  </Card>

  <Card title="The audit log" icon="https://mintcdn.com/clinikehr/gjlpJWWKqjyYNRzM/images/icons/list-check.svg?fit=max&auto=format&n=gjlpJWWKqjyYNRzM&q=85&s=047747dee72616a7e253f7265154dabe" href="/platform/security/audit-log" width="24" height="24" data-path="images/icons/list-check.svg">
    Where your export is recorded.
  </Card>

  <Card title="Settings" icon="https://mintcdn.com/clinikehr/gjlpJWWKqjyYNRzM/images/icons/gear.svg?fit=max&auto=format&n=gjlpJWWKqjyYNRzM&q=85&s=81abd40f3fe37a310a36d69a9406a93a" href="/platform/settings/overview" width="24" height="24" data-path="images/icons/gear.svg">
    Everything else on the settings screen.
  </Card>
</Columns>

<StillStuck topic="an export that will not finish" />
