Skip to main content

Audit Trail

What it does​

Every time DOSE writes a record to RxClaim, it creates a complete audit entry that links the RxClaim change back to the exact upstream request that caused it.

Without DOSE, RxClaim only knows that a change came from CATAPP or RXAPIHUB — there is no way to trace which application, which work order, or which user initiated it.

With DOSE, the full chain is traceable: RxClaim change → which DOSE record → which file upload → which upstream application → which work order → which user.

What is captured per record​

For every call made to RxClaim, DOSE records:

WhatWhy
Which record in which fileLinks the RxClaim change to the source upload
Which RxClaim environment was targetedMulti-environment routing visibility
The full request sentReproducibility and debugging
The full response receivedIncluding any rejection reasons from RxClaim
How long the call tookPerformance monitoring
The outcomeSuccess, rejected by RxClaim, network failure, rate-limited
Which retry attempt this wasRetry history for the record

How audit records are linked​

Every audit entry carries an upload ID and record ID. Following those links gives the full chain from the RxClaim change to the original business request.

Data retention​

All audit data is retained for 90 days, after which it is automatically deleted. This is a compliance decision — the 90-day window is enforced at the database level, not in application code.

Technical reference​

DetailValue
CollectionDeliveryAuditLog (MongoDB Atlas)
Entity classDeliveryAuditLogEntity
Retention90 days (TTL on requestedAt field)
Outcome valuesSuccess, Retryable, Permanent, Circuit Open, Rate Limited
Write patternBatch insert after each processing batch completes