MacroHealth Internal

SF - Enrollments Flat File - Outbound

The SF - Enrollments Flat File - Outbound is a standard flow that provides the baseline functionality for creation of an enrollment file from existing data to be sent to a party, and also provides the ability to customize values for integration-specific settings. The flow should be both customer and file-type agnostic, and be used by integration builders as a starting point for any integration that is built. It should also standardize the way a flow behaves, as well as log messages and status setting, to help with standardizing the way we build integrations for our customers.

SFEnrollmentsFlatFileOutbound.png
Flow Logic
FlowLogic.png
Configuration of the Flow Widgets

While configuring the widgets composing this standard flow, only the following parameters should be set by the user:

Widget (s)

Parameter

CRON_EXPRESSION

Trigger CRON

NETWORKID

Translate from FHIR to JSON

Merge - Flat File Generation

FILE_DEFINITION_ID

Translate from FHIR to JSON

Merge - Flat File Generation

FILE_DEFINITION_VERSION

Translate from FHIR to JSON

Merge - Flat File Generation

COMPONENT_UNIQUE_ID_1

Flat Output File

SFTP_CONNECTION_ID

Flat Output File

NETWORK

Flat Output File

ENV

Flat Output File

OUTCOMING_FILENAME_SHOVEL

Flat Output File

Trigger CRON
TriggerCron.png
  1. trigger-schedule: CRON_EXPRESSION. (E.g.: */10 * * * * 0 0 15 ? * MON-FRI)

For more information on how to configure this shovel operation, view Trigger.

Search Enrollment Records

This shovel operation sets a fixed output collection to primary.

SearchEnrollmentRecords.png

For more information on how to configure this shovel operation, view Search FHIR Enrollements.Search for FHIR Enrollments

Translate from FHIR to JSON
TranslateFromFHIRToJSON.png

For more information on how to configure this shovel operation, view Translate From FHIR.

Standard Date Formats Transformation
StandardDateFormatsTrans.png

Tip

The Date should adhere to the following format: YYMMDD

For more information on how to configure this shovel operation, view Remap Document.

Sanitize Document

This shovel operation leaves the transformed data in a document to be picked up for the MergeAndTranslateToFile.

SanitizeDoc.png

For more information on how to configure this shovel operation, view Remap Document.

Merge - Flat File Generation
MergeFlatFileGeneration.png

For more information on how to configure this shovel operation, view Merge and Translate to File.

Unmerged Branch
UnmergedBranch.png
Enrolments Flat File - Unmerge txn Sets
Enrollments_FlatFileUnmerged.png

For more information on how to configure this shovel operation, view Commit Transaction.

End Branch
EndBranch.png
Flat Output File

This Shovel Operation stores the file into the FTP server.

FlatOutputFile.png
  1. id: COMPONENT_UNIQUE_ID_1 that is a user-defined unique identifier and must be unique across all integrations.

  2. connectionId: FTP_CONNECTION_ID, where the FTP connection ID is the one that was defined during the implementation.

  3. directory: /NETWORK/ENV/out, which is the path to the destination folder in the FTP server. NETWORK is the receiver's name and ENV is the environment or lifecycle's stage name for this implementation.

For more information on how to configure this shovel operation, view Commit Transaction.

Enrollments Flat File - Outbound END
EnrollmentsFlatFileOutboundEnd.png

For more information on how to configure this shovel operation, view Commit Transaction.