---
title: SAIF.Services.Imaging.Import business rules
summary: Enumerated business rules with per-rule trigger, enforcement, and outcomes.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Services.Imaging.Import
reference_type: package
---

# SAIF.Services.Imaging.Import business rules

This page captures the serialization rules enforced by `clsImageImport.ToString()`.

## BR-001: Blank numeric fields when unset

| Field | Value |
| --- | --- |
| **Statement** | `DocumentDateDays`, `ImageSeqNum`, `NPages`, `PolicyNum`, `AffiliationId`, and `LegalCaseId` serialize as blank values when the property value is not greater than zero. |
| **Trigger** | A caller invokes `clsImageImport.ToString()`. |
| **Enforcement** | `ToString()` checks each field with `If <field> > 0 Then ... Else ...` before appending the output line. |
| **Outcome** | The serialized payload preserves the key name while suppressing zero-valued numeric content. |
| **Confidence** | Verified |
| **Source** | `Services\SAIF.Services.Imaging.Import\clsImageImport.vb` |

---

## BR-002: Format optional dates as MM-dd-yyyy or blank

| Field | Value |
| --- | --- |
| **Statement** | `DocumentDate`, `ReceivedDate`, and `TaskDate` serialize as `MM-dd-yyyy` when the property value is between `Date.MinValue` and `Date.MaxValue`; otherwise they serialize as blank values. |
| **Trigger** | A caller invokes `clsImageImport.ToString()`. |
| **Enforcement** | `ToString()` evaluates each date with `If <field> > Date.MinValue And <field> < Date.MaxValue Then ... Else ...` before appending the output line. |
| **Outcome** | The payload emits formatted dates only for populated values and avoids default .NET date sentinels. |
| **Confidence** | Verified |
| **Source** | `Services\SAIF.Services.Imaging.Import\clsImageImport.vb` |

## Related documentation
- [Index](index.md)
- [Overview](overview.md)
- [Architecture](architecture.md)
- [Dependencies](dependencies.md)
- [Operations and processes](operations-processes.md)
- [API reference](api/index.md)

## Sources
- `Services\SAIF.Services.Imaging.Import\clsImageImport.vb`
