MacroHealth Internal

Validate File

Validates a document according to specified rules.

Widget
Validate_File.png
Configuration
Validate_File_Config.png
  1. Fill in the following fields:

    • Description: Allows changing the name that appears on the widget. This may be useful to quickly find a particular widget or distinguishing it from other similar shovel operation widgets when building large flows.

      Description.png
    • Shovel Operation: The name of the Shovel Operation. Pre-configured to ValidateFile.

    • parseContext: The context to add the parsed file to.

    • processorType: The type of processor used to perform the validation. At the moment the only processor type available is Vix12.

    • validationRules: The validation rules to apply while validating the file. See the processor type documentation for details.

      The exception rules need to be configured on each transaction coming from the network, below are the two exceptions that needs to be configured:

      • Loop 2300: REF segment is required where REF01 = F8 (so REF01 and REF02 should be

      • Loop 2010BA – In NM1 segment, NM108 will be “SI” (a non standard qualifier) and NM109 is required

      • JSON for a & b:

        [
          {
            "Type": "change_object_min",
            "Rule": {
              "Location": {
                "Loop": [
                  "2000C",
                  "2300"
                ],
                "Object": {
                  "ID": "REF",
                  "Name": "Payer Claim Control Number"
                }
              },
              "Min": 1
            }
          },
          {
            "Type": "set_element_allowed_values",
            "Rule": {
              "Location": {
                "Loop": [
                  "2000B",
                  "2010BA"
                ],
                "Object": {
                  "ID": "NM1",
                  "Name": "Subscriber Name"
                }
              },
              "ElementIndex": 8,
              "Values":  ["SI"]
            }
          },
          {
            "Type": "set_element_usage",
            "Rule": {
              "Location": {
                "Loop": [
                  "2000B",
                  "2010BA"
                ],
                "Object": {
                  "ID": "NM1",
                  "Name": "Subscriber Name"
                }
              },
              "ElementIndex": 9,
              "Usage":  "REQUIRED"
            }
          }
        ]
    • validationContext: The context to add validation results to.

    • fileType: A validation processor can potentially parse and validate different types of files. Use this property to specify the file type being parsed and validated. The possible values are the following: X12, 837i, 837p, 835, 834, 999)

    • send999Accepts:

      • True: Send AK2/IK5 always for every transaction set.

      • False: Send AK2/IK5 only for rejected transaction sets. This is the recommended setting for large files.

  2. If necessary, click the Notes tab and enter any relevant information.

    NotesTab.jpg
  3. Click Save.

    ValidateFileSave.png
  4. The widget will be marked with a green check.

    ValidateFileGC.png