HIGH story-power-of-attorney-documentation-global-admin-001 5 pts

User Story

As a user
I want to view a list of all power of attorney and medical documents stored in the system, with filtering by type, status, and expiry date
So that So that I can quickly locate specific documents, identify documents requiring action, and maintain oversight of the organization's legal document inventory

Acceptance Criteria

  • Given the user is authenticated with the correct role, when they navigate to the document management screen, then a paginated list of all accessible documents is displayed with type, status, and expiry indicators
  • Given the document list is loaded, when the user applies a filter by document type (e.g., power of attorney, epikrise, consent), then only matching documents are shown
  • Given the document list is loaded, when the user filters by signing status (signed, pending, expired), then the list updates to show only documents matching that status
  • Given a document is approaching expiry within 30 days, when it appears in the list, then it is visually highlighted with an expiry warning indicator
  • Given the user's role uses row-level security, when they view the document list, then they only see documents they are authorized to access within their organization scope

Business Value

A clear, filterable document inventory is the foundation of compliant document management. Organizations supporting vulnerable populations have legal obligations to maintain up-to-date powers of attorney and consent forms. Without a centralized view, documents get lost, expire unnoticed, or are accessed by unauthorized parties — all of which carry compliance and liability risks for the organization.