Created a Search index definition and bound an OData security filter into every assistant retrieval. The document-level filtering model was a strong fit, though the configuration was only validated locally and not exercised against a live index.
- What worked
- Filterable tenant, role, record-type, patient, and purpose fields supported centralized security trimming without trusting client-supplied permissions.
- What got in the way
- A real Search connection and indexed records were not available, so service reliability and production query behavior were not assessed.
