Skip to main content

Module access_request

Module access_request 

Source
Expand description

Study access-request submission workflow and its application port. Study access-request workflows.

This module owns the application semantics of a browser visitor submitting a governance request. Transport adapters supply the selected datastore and requester identity, while persistence adapters implement the narrow port.

Structs§

ApproveCustodianStudyAccessRequest
Application-safe input for approving a pending Study access request.
CustodianStudyAccessRequest
Custodian-visible application record for a Study access request.
CustodianStudyAccessRequestDecision
Decision facts visible to a custodian reviewing a Study access request.
CustodianStudyAccessRequests
Application-safe scope for requests visible to the authenticated custodian.
ProvisionStudyAccessRequestWorkflowEntry
Input for provisioning the requester with datastore workflow entry.
ReadyAccessRequestDatastore
A ready datastore target selected by a control-plane identity adapter.
RecordCustodianStudyAccessRequestApproval
Application-safe input for the governed grant-and-decision operation.
RejectCustodianStudyAccessRequest
Application-safe input for rejecting a pending Study access request.
RequesterStudyAccessRequest
Requester-visible application record for a Study access request.
RequesterStudyAccessRequests
Application-safe scope for requester-owned access-request operations.
StudyAccessRequestDecision
Optional decision facts visible to the requester.
SubmitStudyAccessRequest
Application-safe input for submitting a Study access request.
SubmittedStudyAccessRequest
Persisted result of a successful Study access-request submission.

Enums§

CustodianStudyAccessRequestApprovalOutcome
Semantic result of recording a governed custodian approval.
CustodianStudyAccessRequestApprovalPreflight
Result of checking whether an authenticated custodian can approve a request before the requester receives datastore workflow entry.
CustodianStudyAccessRequestError
Application failures for custodian-owned access-request lifecycle actions.
CustodianStudyAccessRequestPortError
Infrastructure and persisted-lifecycle failures exposed by custodian ports.
CustodianStudyAccessRequestRejectionOutcome
Semantic persistence outcomes for a custodian rejection attempt.
CustodianStudyAccessRequestStatusFilter
Lifecycle filters supported by the custodian review list.
RequesterStudyAccessRequestError
Application failures for requester-owned access-request lifecycle actions.
RequesterStudyAccessRequestPortError
Infrastructure and persisted-lifecycle failures exposed by requester ports.
RequesterStudyAccessRequestWithdrawalOutcome
Semantic persistence outcomes for withdrawing a requester-owned request.
StudyAccessRequestLifecycle
Application-safe requester-visible lifecycle of a Study access request.
StudyAccessRequestSubmissionOutcome
Semantic persistence outcomes for a Study access-request submission.
StudyAccessRequestSubmissionPortError
Infrastructure failures exposed by a Study access-request submission port.
StudyAccessRequestWorkflowEntryPortError
Infrastructure failures exposed by the datastore workflow-entry port.
SubmitStudyAccessRequestError
Application failures for submitting a Study access request.

Traits§

CustodianStudyAccessRequestPort
Authenticated-database authority used by custodian decision workflows. Implementations derive custodianship from the current database actor rather than accepting it as application input.
CustodianStudyAccessRequestQueuePort
Narrow authenticated-database authority used by the custodian review list.
ReadyAccessRequestDatastoreResolver
Resolves a selected datastore identity before the dedicated access-request authority is opened.
RequesterStudyAccessRequestPort
Narrow persistence authority used by requester lifecycle workflows.
StudyAccessRequestSubmissionPort
Narrow persistence authority used by the submission workflow.
StudyAccessRequestWorkflowEntryPort
Narrow authority that creates or reuses datastore workflow entry for a requester. Implementations must be idempotent: a retry after a later governed-decision failure keeps any entry already in place.

Functions§

approve_custodian_study_access_request
Approves a pending Study access request in three ordered steps: verify the authenticated custodian’s scoped request, provision or reuse requester workflow entry in that request’s datastore, then record the governed Study-access grant and decision. If the final step fails, workflow entry is deliberately retained; a retry safely provisions it again and re-runs only the governed decision without attempting compensation.
get_requester_study_access_request
Finds an access request only when it is owned by the current requester in the selected datastore.
list_custodian_study_access_requests
Lists Study access requests in one supported status that the authenticated database actor is authorized to steward in the selected datastore.
list_requester_study_access_requests
Lists access requests owned by the current requester in the selected datastore.
reject_custodian_study_access_request
Rejects a pending Study access request when the authenticated database actor custodians its Study. Empty rejection reasons are normalized to none.
submit_study_access_request
Submits a pending Study access request without granting Study access or datastore workflow entry.
withdraw_requester_study_access_request
Withdraws a pending access request only when it is owned by the current requester in the selected datastore. This workflow cannot grant access or provision datastore workflow entry.