Skip to main content

Module document

Module document 

Source
Expand description

Document intake, verification, storage, and retention contracts. Document intake, safety review, storage, and retention values.

§Operator-summary

This module supports the document-review queue for vaccine proofs, waivers, medical records, photos, incident evidence, and provider/customer uploads. It can reduce labor by routing files through classification, virus scan, PII redaction, extraction, storage, supersession, and reviewer status instead of making staff manually inspect each upload before it appears in a workflow.

It must not automate live compliance clearance, medical acceptance, incident resolution, customer disclosure, provider writes, or retention/destruction decisions. The authoritative source facts remain the immutable stored object, hash, original metadata, source route, scan/redaction results, extraction evidence, reviewer decision, and audit trail. Review gates protect pets, customers, and staff by keeping unscanned, unredacted, failed, unverified, superseded, or rejected documents out of compliance, messaging, and safety decisions until the appropriate staff review is complete.

Documents carry vaccine proofs, waivers, medical records, incident evidence, and other source artifacts that staff and agents rely on. The domain separates received/extracted facts from verified facts, records virus/PII handling state, and keeps storage references explicit so automation cannot treat unreviewed uploads as compliance truth.

Structs§

ContentLengthBytes
Non-zero document size used to reject empty uploads before extraction or review.
FileName
MimeType
MIME type reported for a document before extraction, virus scanning, or storage policy decisions.
OriginalFile
Original uploaded file metadata preserved for audit, extraction, and staff review.
OriginalFileBuilder
Use builder syntax to set the inputs and finish with build().
Sha256Digest
SHA-256 digest used to detect duplicate, tampered, or drifted document payloads.
StorageBucket
StorageKey
Storage key for the immutable document object used as review or compliance evidence.
StorageRef
Storage pointer to the immutable object that backs a reviewed or source document.
StorageRefBuilder
Use builder syntax to set the inputs and finish with build().
StorageVersion
Optional object-version marker for document retention and supersession audits.

Enums§

Classification
Document classification used to route vaccine, waiver, medical, photo, and incident evidence.
ContentLengthError
Validation error for document size constraints.
FileNameError
MimeTypeError
PiiRedactionStatus
PII redaction state used before document content is exposed to agents or reports.
Sha256DigestError
Validation error for document hash formatting.
Source
Source route through which a document entered the review and storage pipeline.
Status
Normalized lifecycle states used to reconcile source-system data with domain workflows.
StorageBucketError
StorageKeyError
StorageVersionError
VirusScanStatus
Virus-scan outcome used before documents may become staff-visible evidence.