Load files: Concordance DAT and Opticon OPT
Law firms review evidence in tools such as Relativity and Everlaw, which import a production as load files: a Concordance DAT with one row per document and an Opticon OPT with one row per page image. Evidence Rooms writes both as part of a court export.
Asking for one
POST /api/cases/{id}/exports
{"kind": "loadfile", "bates_prefix": "ACME"}
bates_prefix is optional: 1 to 24 letters, digits, dots, underscores or hyphens. Left out, it is ROOMS (Example). Over MCP, call create_export with kind: "loadfile". Who may export is the same as for a court export. A case with no files answers 422.
The answer is the court export tar, with everything a court export holds and one production volume under loadfile/:
loadfile/VOL001.dat Concordance DAT loadfile/VOL001.opt Opticon OPT loadfile/NATIVES/ROOMS00000001.csv each version's original bytes loadfile/IMAGES/ROOMS00000001.png each page image, Bates stamped loadfile/TEXT/ROOMS00000001.txt the text, when the native file is text
The volume number counts the case's load-file exports: VOL001, then VOL002. Paths inside the DAT and OPT are relative to the folder that holds them and use backslashes, as review tools expect. A document is one version of one item, so an amended file gives two documents and the second names the first in AMENDS.
Bates numbers
- Each page gets one number: the prefix and 8 digits, such as
ROOMS00000001. - A version with no page image gets one slip sheet page that says it was produced in native format.
- Numbers never repeat within a case. Each export takes the next range after the case's highest number, whatever the prefix, and a second export starts where the first ended.
- The range is in the case's access log, in the
export.createdevent. - The stamp is drawn on a copy of the page image. The stored page image never changes, and the export also holds it unstamped.
Concordance DAT
- UTF-8 with a byte order mark. Each row ends in CRLF, and the first row holds the field names.
- Every value is wrapped in
þ(U+00FE), and values are split by U+0014. - A line break inside a value is written as
®(U+00AE). The format has no escape forþor U+0014, so Rooms writes?in their place.
| Field | What it holds |
|---|---|
| BEGBATES | the document's first Bates number |
| ENDBATES | its last Bates number |
| PAGECOUNT | its pages |
| ITEMID | the item id |
| ITEMNAME | the item's name |
| ITEMKIND | the item's kind, such as file, screenshot or chat |
| VERSIONID | the version id |
| VERSION | the version number, 1 for the original |
| AMENDS | the version id this one corrects, or empty |
| REASON | why it was corrected, or empty |
| FILENAME | the file name as uploaded |
| MEDIATYPE | the media type as uploaded |
| FILESIZE | bytes |
| SHA256 | the file's SHA-256, hex |
| CAPTUREDAT | when the uploader says it was captured, or empty |
| RECEIVEDAT | when Rooms received it |
| SIGNER | the account that signed the upload |
| REGISTRYURL | the public registry record, when anchored |
| NATIVEPATH | the native file's path in the volume |
| TEXTPATH | the text file's path in the volume, or empty |
| EXPORTPATH | the same file's path under files/ in this export |
Opticon OPT
One line per page, CRLF, ASCII. DocBreak is Y on a document's first page, and the page count is set on that page only. Folder and box breaks are left empty.
ImageKey,Volume,Path,DocBreak,FolderBreak,BoxBreak,PageCount ROOMS00000001,VOL001,IMAGES\ROOMS00000001.png,Y,,,2 ROOMS00000002,VOL001,IMAGES\ROOMS00000002.png,,,,
Text and page images
TEXT/holds a file only when the native file is itself text, such as plain text, JSON or XML. Text from OCR or transcription is not put in the load file.- Page images are PNG, as uploaded. Convert them on import if your review tool wants TIFF or JPEG.
Checking it
Every file under loadfile/ is listed with its SHA-256 in manifest.json, so the verifier inside the export checks the volume with the rest of it, offline. Anyone can also check an export at /verify.