MajorisImageExporter¶
A concrete McoImageExporter for the "Majoris" Medical Care Organization: it supplies the Majoris MCO plan ID and MCO_NAME used by the shared export pipeline, and resolves active/newly-enrolled Majoris claims through IClaimDataApiClient.GetGWActiveMCOClaims (Guidewire). It shares all of McoImageExporter's collaborators — IUnitOfWork, IEnvironmentService, IImagingClient, IFileSystem, and IClaimDataApiClient — passing them straight through to the base constructor.
Purpose¶
- Identifies the Majoris MCO plan (
MAJORIS_MCO_PLAN_ID = "ff") and working-directory name ("Majoris") used throughout the shared export pipeline. - Retrieves claims currently actively enrolled with the Majoris MCO via a Guidewire active-MCO-claims query.
- Retrieves claims newly enrolled with the Majoris MCO on a specific enrollment date, filtering the Guidewire result to that exact date.
Context¶
- Namespace:
SAIF.Services.Imaging - Assembly/package:
SAIF.Services(packaged inside theSAIF.SAIFCode.CoreNuGet package)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| MAJORIS_MCO_PLAN_ID | public const string MAJORIS_MCO_PLAN_ID = "ff" |
The Guidewire MCO plan ID used to identify Majoris claims in active-enrollment queries. |
| MajorisImageExporter(...) | public MajorisImageExporter(IUnitOfWork unitOfWork, IEnvironmentService environmentService, IImagingClient imagingClient, IFileSystem fileSystem, IClaimDataApiClient claimDataApiClient) |
Passes all collaborators straight through to the McoImageExporter base constructor; adds no Majoris-specific construction logic. |
| ExportActiveEnrollmentDocuments(imageQueryParameters) | public McoActiveEnrollmentDocumentExportResults ExportActiveEnrollmentDocuments(QueryParameters imageQueryParameters) |
(inherited from McoImageExporter) Validates the working directory, retrieves active Majoris claims and matching claim-document images, exports each matched image to disk (recording failures), and returns counts of active claims, potential images, and exported images plus any errors. |
| ExportActiveEnrollmentDocuments(minCreateDate, maxCreateDate, docListEnvironmentServiceKey) | public McoActiveEnrollmentDocumentExportResults ExportActiveEnrollmentDocuments(DateTime minCreateDate, DateTime maxCreateDate, string docListEnvironmentServiceKey) |
(inherited from McoImageExporter) Builds query parameters for the given create-date range, loads document-type/subtype filters from the named environment configuration setting, and delegates to the QueryParameters overload. |
| ExportNewEnrollmentDocuments(dateOfEnrollment, imageQueryParameters) | public McoNewEnrollmentDocumentExportResults ExportNewEnrollmentDocuments(DateTime dateOfEnrollment, QueryParameters imageQueryParameters) |
(inherited from McoImageExporter) Validates the working directory, retrieves Majoris claims newly enrolled on dateOfEnrollment, exports each claim's matching document images to disk (recording failures and per-claim image counts), and returns the results. |
| ExportNewEnrollmentDocuments(dateOfEnrollment, docListEnvironmentServiceKey) | public McoNewEnrollmentDocumentExportResults ExportNewEnrollmentDocuments(DateTime dateOfEnrollment, string docListEnvironmentServiceKey) |
(inherited from McoImageExporter) Builds default query parameters, loads document-type/subtype filters from the named environment configuration setting, and delegates to the QueryParameters overload. |
| SetWorkingDirectory | public void SetWorkingDirectory(string directory) |
(inherited from McoImageExporter) Creates (if needed) and sets the working directory as directory\Majoris; throws if the root directory does not exist or the subdirectory cannot be created. |
| ExportErrorEnrollmentDocuments | public MajorisErrorEnrollmentResults ExportErrorEnrollmentDocuments() |
(inherited from McoImageExporter) Retries every recorded DocumentImagingError, re-fetching and writing each image's PDF to disk; removes successfully retried errors from the table and returns lists of resolved versus still-failing errors. |
| GenerateFileName | public string GenerateFileName(Image image, long uniqueFileId) |
(inherited from McoImageExporter) Builds the export file name as {ClaimNumber}_{DOCUMENTTYPE}_{DOCUMENTSUBTYPE}_{DocumentDate:MM-dd-yyyy}_{uniqueFileId:00000}.pdf, defaulting the date segment to 01-01-1970 when the image has no document date. |
| TranslateError | public string TranslateError(Image image, string errorText) |
(inherited from McoImageExporter) Maps known error patterns to fixed short messages, or otherwise extracts a truncated portion of the raw exception text for reporting. |
Behavioral notes¶
GetActiveMcoClaimsbuilds a GuidewireActiveMcoquery scoped to the Majoris plan ID and callsGetGWActiveMCOClaimswithactiveMCOOnly = true, returning the rawclaimsInfolist (which may benullif Guidewire returns none).GetNewlyEnrolledMcoClaimscallsGetGWActiveMCOClaimswithout the active-only flag, then filters the returned claims in-memory to only those whosemcoEffectiveDatematchesdateOfEnrollment's date, returning an empty list if Guidewire returns no results.- All working-directory validation, image export, error-retry, and error-translation behavior is fully implemented by the shared
McoImageExporterbase and reused unchanged for the Majoris MCO*.
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources¶
- Services/SAIF.Services/Imaging/MajorisImageExporter.cs