Provider address retrieval¶
Provider address retrieval is implemented by ProvidersRepository and is documented as OP-SDN-11 in the Stage 1 analysis.
| Field | Value |
|---|---|
| Operation ID | OP-SDN-11 |
| Trigger | See steps below |
| Primary components | ProvidersRepository |
Steps¶
- The constructor validates the unit of work with
Enforce.ArgumentNotNull. - Rule: SDN-BR-030.
- Delegates: SAIF.Framework.Core /
Enforce. GetProviderByTaxIdBatch(taxId): LINQ overProvider/ProviderTaxId(tablesPROVIDER,PROVIDER_TAX_ID).GetProviderAddresses(providerId, addressType), and the typed variants:GetProviderPaymentAddressesuses "PAY".GetProviderPhysicalAddressesuses "PHY".- Table:
PROVIDER_ADDRESS. - Rule: SDN-BR-031.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start(["Provider address retrieval"]) --> S1["`ProvidersRepository`"]
S1 --> S2{"Rules satisfied?"}
S2 -->|Yes| EndOk([Result returned])
S2 -->|No| EndErr([Exception / empty result])
Related documentation¶
Sources¶
Data/SAIF.Data.NHibernate/Repositories/ProvidersRepository.cs