# The EHI export format (v1.0)

Canonical URL: https://docs.chartvoyant.com/ehi-export/v1/

Export format version 1.0 · Published September 9, 2026. Preserved so archives generated under Format 1.0 remain permanently readable without ChartVoyant.

### Looking for the current EHI specification?

This page documents legacy format 1.0 (`data/*.ndjson`). Read the [Complete EHI export format 2.0 specification and synthetic sample](https://docs.chartvoyant.com/ehi-export/) for current exports.

This specification is published by **Geach Technologies, LLC**, trading as **ChartVoyant**, of Cleveland, Tennessee, to document Format 1.0 of the electronic health information (EHI) export under **45 CFR § 170.315(b)(10)**.

## 1. What an export contains

An export is everything the system holds for the requested scope — the designated record set — across two scopes: **Single patient** (§ 170.315(b)(10)(i)) and **Patient population** (§ 170.315(b)(10)(ii)), both restricted to practice administrators (§ 170.315(b)(10)(iii)) and recorded as `ehi.exported` in the practice's tamper-evident audit log.

## 2. The archive

```
manifest.json          machine-readable description of this export
README.txt             the same, in prose
data/
| Type | Encoding |
| --- | --- |
| Text, numbers, booleans | The corresponding JSON type. |
| Dates and timestamps | ISO 8601 strings with a UTC offset, e.g. `"2026-09-09T14:05:00.000Z"`. |
| JSON / JSONB columns | Inlined as JSON, not as a quoted string. |
| Arrays | JSON arrays, elements encoded by these same rules. |
| Binary (`bytea`) | An object `{"$binary":" "}`. |
| Large integers | Decimal strings, to avoid precision loss. |
| NULL | `null`. |

</div>

## 4. manifest.json

```
{
  "formatName": "ChartVoyant EHI Export",
  "formatVersion": "1.0",
  "specification": "https://docs.chartvoyant.com/ehi-export/v1/",
  "certificationCriterion": "45 CFR 170.315(b)(10)",
  "generatedAt": "2026-09-09T14:05:00.000Z",
  "scope": { "kind": "patient", "patientId": "…" },
  "practice": { "tenantId": "…" },
  "generatedBy": { "principalId": "…", "principalType": "user", "roles": ["admin"] },
  "tables": [
    {
      "table": "conditions",
      "rows": 14,
      "columns": [ { "name": "id", "type": "uuid" } ],
      "includedVia": "patient_id",
      "redactedColumns": []
    }
  ],
  "excludedTables": [ { "table": "…", "reason": "…" } ],
  "redactions": [ { "table": "…", "column": "…", "reason": "…" } ],
  "totals": { "tables": 96, "rows": 4213, "uncompressedBytes": 8123456 }
}
```

## 5. How a table relates to the patient

<ul>
  
- `"patient_id"` — the table names the patient directly.
  
- `"via: . "` — rows selected via foreign key to a parent table belonging to the patient (for example `via:claims.claim_id`).
  
- `"tenant"` — a population export scoped to the practice.
</ul>

## 6. What is deliberately not in the file

**Redacted columns:** authentication material (password hashes, API keys, webhook signing secrets, one-time codes) is replaced with a marker string and listed in `manifest.redactions`. **Staff account details (single-patient exports only):** staff sign-in names, personal emails, phone numbers, and photos are replaced with markers while preserving staff ID, display name, role, and status. **Excluded tables (single-patient exports only):** practice-level configuration with no patient relationship is listed in `manifest.excludedTables`.

## 7. Limits & reading an export

Synchronous v1.0 exports are bounded at **250,000 records** or **200 MB** uncompressed (exceeding either returns an explicit error, never silent truncation; Format 2.0 removes this ceiling with asynchronous ZIP64 archives).

```
unzip ehi-export-all-patients-2026-09-09.zip -d export
jq . export/manifest.json | head -40
jq -r '.code_display' export/data/conditions.ndjson
```

## 8. Re-importing & versioning

ChartVoyant's migration importer accepts both Format 1.0 (`data/*.ndjson`) and Format 2.0 (`records/*.json`) archives. Note: single-patient exports produced prior to September 10, 2026 omitted the root `patients` row and should be re-exported.
