OptionalchosenThe acting user: form visibility is per-user, so this is half the authorization key.
The caller's organization from authentication: the authorization boundary, never the request body.
OptionalincludeAlso open the patient's EMR namespace to retrieval.
OptionalselectedThe patient's charts the AI lane may read. Empty means EMR-only (or nothing).
OptionalselectedThe patient's completed session notes the AI lane may quote, inlined whole. Empty means none.
OptionaltreatmentScopes patient-context resolution to one episode.
contact_type_id -> contact_id, as the user chose; every entry is authorized here before a run exists.