Serialize import metadata to key-value text¶
This operation builds the KEY=VALUE\r\n-delimited text payload that a calling library (e.g. SAIF.Services.Printing) delivers to the external imaging system (presumed OnBase, inferred from constant naming*), by appending one line per public property of a populated clsImageImport instance.
| Field | Value |
|---|---|
| Operation ID | OP-IMG-001 |
| Trigger | Caller calls .ToString() on a populated clsImageImport instance |
| Inputs | All public property values of the clsImageImport instance |
| Outputs | A single String containing KEY=VALUE lines separated by vbCrLf |
| Primary components | clsImageImport.ToString |
| Entry point | SAIF.Services.Imaging.Import\clsImageImport.vb |
Steps¶
- Append
BATID,CLAIMID,CLAIMNUMlines unconditionally fromBatID/ClaimID/ClaimNum. - Append
CommentText,CreateUser,DiscoveryFlag,DisplayField1/2/3lines unconditionally. - Append the
DocumentDateline (BR-IMG-001). - If
DocumentDateequalsDate.MinValueorDate.MaxValue(unset sentinel): emit a blank value instead of a formatted date. - Append the
DocumentDateDaysline (BR-IMG-002). - If
DocumentDateDaysis not greater than0: emit a blank value. - Append
ImageFileCode,ImageCategoryCode,ImageDocumentTypeCode,ImageDeleteFlag,ImageIndexFlaglines unconditionally. - Append the
ImageSeqNumline (BR-IMG-002). - If
ImageSeqNumis not greater than0: emit a blank value. - Append the
NPagesline (BR-IMG-002). - If
NPagesis not greater than0: emit a blank value. - Append the
PolicyNumline (BR-IMG-002). - If
PolicyNumis not greater than0: emit a blank value. - Append the
ReceivedDateline (BR-IMG-001). - If
ReceivedDateequalsDate.MinValueorDate.MaxValue(unset sentinel): emit a blank value. - Append
SLevel,ImageDocumentNameCode,ExternalViewCode,SystemGeneratedFlag,AgencyID,ProducerID,GroupAssociationCode,Speclines unconditionally. - Append the
TaskCategoryline unconditionally. - Append the
TaskDateline (BR-IMG-001).- If
TaskDateequalsDate.MinValueorDate.MaxValue(unset sentinel): emit a blank value.
- If
- Append
TaskMailIDList,TaskPriority,TaskSecurity,TaskText,PolicyAccount,PolicySecuredFlaglines unconditionally. - Append the
AffiliationIdline (BR-IMG-002).- If
AffiliationIdis not greater than0: emit a blank value.
- If
- Append the
LegalCaseIdline (BR-IMG-002).- If
LegalCaseIdis not greater than0: emit a blank value.
- If
- Append
LegalCaseNum,LegalCopyToClaimFlag,LegalDistributionFlaglines unconditionally. - Return the fully-built string to the caller, who is responsible for delivering it to the external imaging system.*
This operation performs no delegation into any referenced library — it is a pure in-memory string-building routine over the instance's own properties.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([ToString invoked]) --> S1[Append identity/claim/policy fields]
S1 --> S2{Date field at<br>sentinel value?}
S2 -->|Yes| S2a[Emit blank value]
S2 -->|No| S2b[Emit formatted date]
S2a --> S3
S2b --> S3[Append remaining fields]
S3 --> S4{Numeric field<br>not greater than 0?}
S4 -->|Yes| S4a[Emit blank value]
S4 -->|No| S4b[Emit numeric value]
S4a --> S5
S4b --> S5[Append legal-case fields]
S5 --> Done([Return KEY=VALUE text payload])
Failure and edge-case behavior¶
- Unset date properties (
DocumentDate,ReceivedDate,TaskDateatDate.MinValue/Date.MaxValue) never raise an exception — they are blanked per BR-IMG-001. - Unassigned numeric identifiers/counts (
DocumentDateDays,ImageSeqNum,NPages,PolicyNum,AffiliationId,LegalCaseIdat0or negative) never raise an exception — they are blanked per BR-IMG-002. - No other validation exists; string/flag properties (e.g.,
ClaimID,AgencyID,ProducerID) are emitted as-is even if left at their default (empty) values.*
Related documentation¶
Note: Statements marked with
*were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.
Sources¶
SAIF.Services.Imaging.Import\clsImageImport.vb.saifdocgen\state\runs\20260821-113120-claims-bof-web-legal\analysis\TSK010-analysis.md