Get Court Decision (EDRSR)
ua_edrsr__get_documentOne decision: its text, its citations, its structural parts.
Text is windowed, never dumped whole. text_window says what came back and how
to get the rest. Citations cover that window only, with *_outside_window
counting the rest; repeats of one case roll up into occurrences.
Citations carry what was written and what it resolved to, so an unresolved one
stays visible. Join on resolved_cause_num, not the written number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document id. | |
| offset | No | Characters to skip, for paging. | |
| section | No | Parts to return text for: preamble, reasoning (what the court found), operative (what it ordered). Omit for all. | |
| max_chars | No | Cap on returned text characters; text_window.next_offset continues. | |
| include_html | No | Also return canonical HTML (tables, emphasis, superscripts the text flattens). Always whole: the window cuts text, which offsets index. |