{
  "schemaVersion": 1,
  "formatName": "ChartVoyant EHI Export",
  "formatVersion": "2.0",
  "specification": "https://chartvoyant.com/developers/ehi-export",
  "archive": "ZIP64, stored entries, UTF-8 filenames, CRC32 data descriptors",
  "records": {
    "path": "records/{table}.json",
    "encoding": "UTF-8 JSON array of native rows",
    "timestamps": "ISO 8601",
    "binary": {
      "$binary": "base64"
    },
    "integersBeyondJsonPrecision": "decimal strings",
    "credentialRedaction": "[redacted: authentication material, not EHI]",
    "columnTypes": "PostgreSQL data types are included for every exported table in schema.json"
  },
  "fhir": {
    "path": "fhir/{ResourceType}.ndjson",
    "version": "4.0.1",
    "profiles": "US Core 6.1",
    "encoding": "UTF-8 NDJSON"
  },
  "documents": {
    "path": "documents/{storedObjectId}/{filename}",
    "encoding": "Original bytes",
    "integrity": "SHA-256",
    "filenames": "Original recorded filename when available; legacy sanitized filename is explicitly identified"
  },
  "manifest": {
    "path": "manifest.json",
    "fileFields": [
      "path",
      "bytes",
      "sha256",
      "rows (records and FHIR)",
      "originalFilename (documents)",
      "filenameSource (documents)"
    ],
    "integrity": "SHA-256 of uncompressed file bytes",
    "population": "One manifest lists a ZIP per patient, its digest and a signed authenticated download URL"
  },
  "readme": "README.md",
  "compatibility": "Legacy format 1.0 used data/*.ndjson. The clinical importer supports both versions; it is not a complete database restore."
}
