For a city IT team replacing a manual animal-control workflow, I recommend implementing a compliance-first exception management model rather than simply automating the existing paperwork.
The system should never assume that missing vaccination data means an animal is vaccinated, that a queued report has been submitted, or that an issued pet license automatically satisfies rabies requirements.
The three most important design principles are:
- Missing data creates an exception, not an assumed value.
- Reporting deadlines are tracked independently of system availability.
- A submission is complete only after the receiving agency confirms acceptance.
Below is how I would design this for a municipal production environment.
1. Handling missing vaccination data
Treat vaccination information as a separately validated record with explicit statuses.
Recommended vaccination status model
| Status | Meaning | Automated action |
|---|
| Verified current | Valid documentation confirms vaccination | Proceed with applicable reporting |
| Verified expired | Documentation exists but vaccination is no longer current | Flag for follow-up |
| Not vaccinated | Confirmed no vaccination | Apply applicable vaccination requirements |
| Unknown | No reliable information available | Create compliance exception |
| Pending verification | Documentation received but not validated | Hold dependent reporting |
| Exempt | Legally recognized exemption | Require exemption verification |
Avoid using a simple Boolean field such as vaccinated = true/false. It cannot distinguish an expired vaccination from missing information or a legally recognized exemption.
Automated exception workflow
Adoption finalized
Validate vaccination documentation
Verified
Continue applicable workflows
Missing or invalid
Create exception and assign owner
Compliance case management
Request records, track deadlines, document resolution
Specific IT requirements
When vaccination data is missing:
- Automatically create an exception record.
- Identify the responsible shelter or animal-control employee.
- Request documentation from the originating veterinarian or shelter.
- Record the request and response timestamps.
- Maintain the original adoption transaction.
- Prevent unsupported vaccination claims from being transmitted.
- Notify the adopter when additional documentation or vaccination is required.
Important: Do not necessarily block the pet license. Whether a temporary or permanent license can be issued with missing vaccination documentation depends on the applicable municipal ordinance. Licensing and vaccination compliance should be independently tracked.
2. Managing reporting deadlines
Build a centralized deadline engine that calculates deadlines from the specific regulatory event, not simply from adoption finalization.
This distinction matters because different reporting obligations have different triggering events.
Separate reporting event types
| Event | Trigger | Workflow |
|---|
| Vaccination record reporting | Vaccination or receipt of qualifying record | Submit according to applicable rules |
| Animal bite reporting | Bite incident | Trigger public-health reporting |
| Suspected rabies | Suspected case identified | Escalate under applicable health protocols |
| Confirmed rabies | Confirmation by authorized authority | Complete required case reporting |
| Municipal licensing | Adoption or ownership change | Apply local licensing ordinance |
An adoption event should not automatically trigger a bite or rabies-case report.
Deadline engine design
Every reporting obligation should have these fields:
report_type
jurisdiction
trigger_event
trigger_timestamp
regulatory_deadline
submission_status
submission_attempt_count
last_submission_timestamp
acknowledgment_timestamp
assigned_department
escalation_level
The deadline engine should:
- Identify the applicable jurisdiction.
- Identify the regulatory reporting requirement.
- Calculate the deadline using the correct triggering event.
- Account for calendar days, business days, holidays, and time zones as specified by the rule.
- Schedule reminders before the deadline.
- Escalate unresolved exceptions.
- Retain the original deadline even if the submission system is unavailable.
Example deadline escalation policy
The following is an illustrative operational policy, not a statement of statutory deadlines.
| Time before deadline | Action |
|---|
| 48 hours | Notify assigned employee |
| 24 hours | Notify employee and supervisor |
| 4 hours | Escalate to compliance manager |
| Deadline reached | Mark at-risk or overdue |
| Deadline exceeded | Open formal compliance incident |
For urgent public-health reporting, configure the escalation intervals to match the actual legal deadline rather than using this general schedule.
Deadline dashboard
I recommend giving animal control supervisors a real-time view of outstanding obligations.
Municipal compliance dashboard
124
Completed submissions
8
Pending submissions
2
Overdue obligations
5
Awaiting documentation
Illustrative dashboard figures, not live municipal data.
Supervisors should be able to drill down from an overdue count to the underlying animal record, regulatory requirement, assigned employee, and submission history.
3. Handling failed government submissions
This is where I would invest significant engineering effort.
A government submission can fail for several different reasons:
- Network connectivity problems.
- Government portal downtime.
- Authentication or credential expiration.
- Invalid data fields.
- Duplicate records.
- Incorrect jurisdiction.
- Rejected vaccination documentation.
- Government API timeouts.
These failures should not all be handled identically.
Recommended submission status model
| Status | Definition |
|---|
| Draft | Record created but not submitted |
| Validated | Passed local validation |
| Queued | Awaiting transmission |
| Submitted | Successfully transmitted |
| Acknowledged | Receiving system confirmed receipt |
| Accepted | Receiving authority accepted the record |
| Rejected | Receiving authority rejected the record |
| Retry pending | Temporary failure; retry scheduled |
| Escalated | Requires human intervention |
One important distinction: HTTP success does not necessarily mean regulatory acceptance. An HTTP 200 response, for example, may simply indicate that a government system received the request.
Retry strategy
Use a controlled retry mechanism with exponential backoff.
For example:
| Attempt | Suggested delay |
|---|
| 1 | Immediate |
| 2 | 1 minute |
| 3 | 5 minutes |
| 4 | 15 minutes |
| 5 | 30 minutes |
| 6 onward | Escalation and controlled retry |
These are engineering defaults, not legally prescribed retry intervals. Shorten them when required to meet reporting deadlines.
Implementation requirements:
- Preserve the original submission payload.
- Assign every report a unique transaction ID.
- Use idempotency keys when supported.
- Avoid generating a new report for each retry.
- Capture the receiving agency's response.
- Distinguish a definite rejection from an uncertain timeout.
- Escalate persistent failures to designated personnel.
Particularly important: If a timeout occurs after the receiving agency may have processed the request, check for an existing submission using the transaction ID before retrying. Otherwise, you risk duplicate government records.
4. Separate operational completion from regulatory completion
I strongly recommend maintaining two independent completion indicators.
For example:
Adoption transaction: A-2026-00841
Municipal pet license (Issued)
Rabies documentation (Pending verification)
Required reporting (Not yet submitted)
Exception assignment (Assigned)
The adoption is finalized, but outstanding compliance obligations remain visible and actionable.
This prevents an administrative process from being incorrectly marked fully compliant simply because a license was issued.
5. Build a reliable technical architecture
For production, I would use a message-driven architecture with a durable submission queue.
The most important components are:
- Event processor: Receives adoption-finalization events.
- Validation service: Checks animal, owner, vaccination, and jurisdiction data.
- Rules engine: Applies versioned regulatory requirements.
- Deadline scheduler: Tracks reporting deadlines and escalations.
- Submission service: Communicates with government systems.
- Retry queue: Handles transient submission failures.
- Exception management: Routes unresolved problems to staff.
- Audit service: Maintains an authoritative history of transactions.
I would also implement the transactional outbox pattern: the adoption transaction and its associated workflow event are committed reliably together. This prevents a completed adoption from being lost because an integration service temporarily fails.
Minimum database entities
| Entity | Purpose |
|---|
| Animal | Animal identification |
| Owner | Adopter information |
| Adoption | Finalization transaction |
| Vaccination | Medical documentation |
| License | Municipal license |
| ComplianceCase | Outstanding requirements |
| ReportingObligation | Regulatory deadlines |
| Submission | Individual transmission attempts |
| Acknowledgment | Government response |
| AuditEvent | Historical activity |
Keep vaccination records, reporting obligations, and submission attempts as separate records. This makes corrections and resubmissions traceable.
6. California-specific considerations
Since your implementation context is California, I would validate the following requirements with your city attorney, county health department, and animal-control leadership before configuring production rules.
- California Title 17, Section 2606 requires reporting mammal bites to the local health officer in applicable circumstances, and CDPH describes notification as immediate.
- Title 17, Section 2500 requires healthcare providers to report confirmed or suspected rabies cases immediately to the local health department.
- Confirmed animal rabies cases have separate investigation and state reporting procedures.
- California's Local Rabies Control Activities program has separate reporting requirements under Title 17, Section 2606.4.
Sources:
Official references:
One important implementation distinction: Do not assume that every adoption requires an individual state rabies report. Configure reporting obligations based on the actual state regulation, local ordinance, and designated reporting authority.
7. Acceptance criteria for your replacement system
Before going live, I would require the following scenarios to pass user acceptance testing.
| Test scenario | Expected result |
|---|
| Complete vaccination records | License and applicable reporting proceed automatically |
| Missing vaccination records | Exception created; no unsupported vaccination claim |
| Expired vaccination | Compliance follow-up generated |
| Duplicate adoption event | No duplicate license or report |
| Government portal unavailable | Submission queued and deadline monitored |
| Invalid submission | Rejection captured and routed to staff |
| Submission timeout | Duplicate-safe reconciliation |
| Government acceptance | Accepted status and confirmation retained |
| Deadline approaching | Automatic escalation |
| Deadline exceeded | Compliance incident recorded |
| Staff corrects a record | Original and corrected values retained |
I would also require an end-to-end reconciliation report showing that every finalized adoption has either completed its applicable workflows or has a documented outstanding exception.
8. My proposed implementation priorities
For a municipal IT replacement project, I would prioritize these capabilities in this order:
- Reliability: No lost adoption events or reporting obligations.
- Compliance: Correct jurisdiction-specific rules and deadlines.
- Exception handling: Every missing field and failed submission has an owner.
- Auditability: Every automated and manual action is traceable.
- Automation: Minimize staff intervention for routine transactions.
- Reporting: Give supervisors measurable compliance performance.
The system should optimize for no silent failures, rather than simply maximizing the percentage of automated transactions.
Recommended next deliverable
I would turn this into a technical implementation specification with three particularly important artifacts:
- A complete workflow state machine covering adoption, licensing, vaccination verification, and reporting.
- A database schema and API specification, including retry logic, idempotency, and government acknowledgments.
- A failure-handling matrix defining ownership, escalation, recovery, and audit requirements.
That would give your developers, database administrators, animal-control supervisors, and municipal compliance staff a common blueprint for replacing the manual process.