Description

When an EDI 834 Project is created in GenRocket, the entire Transaction Set is enabled. Of course, when you are testing a Transaction Set, not every Segment, Loop, and Element will be needed to complete each test or to achieve a specific Business Case Scenario.


This is where Test Data Cases can be extremely beneficial because they make it possible to fully customize what Transaction Set Segments, Loops, and Elements will be used to generate data. Additionally, you can add Segments (i.e. Domains), add Attributes, and make Generator Configuration changes that are specific to the Test Data Case, but do not effect the Project as a whole. 


When should Test Data Cases be used for 834 EDI Projects?

Test Data Cases can be used to perform specific types of testing (Negative, Integration, Beta, etc.) and for testing  Business Case Scenarios., such as: 

  1. Enrolling an Employee in Multiple Health Care Insurance Products
  2. Adding a Dependent (Full-Time Student) to an Existing Enrollment
  3. Enrolling an Employee in a Managed Care Product
  4. Adding Subscriber Coverage
  5. Changing Subscriber Coverage
  6. Cancelling a Dependent
  7. Terminating Eligibility for a Subscriber
  8. Reinstating an Employee
  9. Reinstating the Employee at the Coverage (HD) Level
  10. Reinstating Member Eligibility (INS)


We have provided samples of the above Business Case Scenarios within the G-Case Dashboard, which you can copy and customize to meet more specific needs. 



How to use Test Data Cases for Business Case Scenarios

To set up a Test Data Case to generate data matching a specific Business Case Scenario, complete the following steps: 


Step 1: Copy a Business Scenario Test Data Case (or Create a New One)

It is recommended to copy a provided Business Case Scenario and to modify the created copy rather than the original Test Data Case. Complete the following steps to do so:

  • Within the G-Case Dashboard, click on the Copy icon within the Actions column.



  • Enter a new Name and Description for the copied Test Data Case.

  • Click Save once finished.



Step 2: Disable/Enable EDI Segments, Loops, and Elements within the Test Data Case

Segments, Loops, and Elements have already been disabled to create each provided Business Case Scenario sample. Once the Test Data Case has been copied, you can enable or disable these items to meet more specific needs. 


To enable or disable specific items within the Transaction Set, complete the following steps: 

  • Choose the EDI View from the drop-down menu.


  • Click on the EDI Tree icon on the G-Case Editor tab.



  • Use each checkbox to enable or disable a Segment, Loop, or Element. A checkmark means the item is currently enabled.



  • Expand Segments and Loops within the EDI Tree View to make additional changes. In this example, BGN_BeginningSegment has been expanded. 

     
  • Click OK once finished.

     

  • EDI 834 Segments will appear as part of the Test Data Case, as shown below. What Segments are enabled and disabled will depend on what was disabled in the steps above. You can enable and disable Segments within the Test Data Case as needed. 


Step 3: Add Segments or Remove Segments from the Test Data Case (Optional)

Segments can be added to or removed from the Test Data Case after completing Step 2. If a Segment is added and enabled, then test data will be generated for that Segment when the Test Data Case is run.


To add a Segment to a Test Data Case, complete these steps: 

  • Use the Filter to locate each needed Segment. For this example "BEG" has been entered to find the BGN_BeginningSegment.

  • Next, click the Plus (+) icon located to the right of the Segment within the G-Case Editor tab.


  • Added Segments will appear in the table located on the right of the G-Case Editor tab.



  • To remove a Segment from the Test Data Case, click on the Remove (-) icon in the Actions column.


Step 4: Disable/Enable Segments within a Test Data Case (Optional)

Segments added to a Test Data Case can be enabled or disabled as needed to alter what test data is generated when the Test Data Case is run. 


To disable or enable a Segment, click on the toggle slider to the right of its name. If the toggle is blue, then it is enabled. If it is white, it is disabled.




Step 5: Alter Loop Counts for Segments

The Loop Count for each Test Data Case Segment can be changed to a Constant, Increasing, Decreasing, or Range value. 


For example, Loop_2300 may need to have a Loop Count of 3 because the individual is being enrolled in three separate plans (Health, Dental, and Vision). Complete these steps to update the Loop Count for a Segment: 

  • Click on the Update Loop Count for Domain icon in the Actions column.



  • Choose a Loop Type and then complete the required parameters for your selection. For this example, the Loop Type has been left as Constant and the Loop Count has been set to 3. Click the Save button when finished.



  • The Domain will now have a constant Loop Count 3, as shown below:


Step 6: Add Attributes to Test Data Case Domain for the Segment

In some instances, you may need to make changes to the generated data for a specific Test Data Case to match the Business Case Scenario. This can be done by adding an Attribute to the Test Data Case Domain.

  • Click the Edit Test Data Case Domain icon in the Actions column for the Test Data Case Domain. For this example, the BGN_BeginningSegment will be modified.


  • Click the Plus (+) button to add one or more Attributes to the Test Data Case Domain.



  • In the dialog window, tick the checkbox for each Attribute that needs to be added.

  • Click the Save button once finished.


  • Each Attribute will be added to the Test Data Case Domain. You can now replace the Generator or make changes to the Generator's Parameter configuration for each added Attribute to generate the appropriate test data for your Business Case Scenario.


Step 7: Alter Generator Configurations for Added Attributes

The Generator configuration for each added Test Data Case Domain Attribute can be modified to meet a defined Business Case Scenario need. Below are 2 examples that show how to: 

  • Alter the Generator Parameters
  • Replace the Current Generator


Example 1: Remove Values from a Test Data Case Domain Attribute

For example, let's say that only one Purpose Code is needed in the BGN_BeginningSegment. Remember a purposeCode01 Attribute was created for the Test Data Case Domain in Step 6 above.


The purposeCode by default has 3 codes: 00, 15, and 22. For this sample, only 00 is needed. You will need to modify the Generator Parameter configuration so that only 00 is generated. Complete the steps below: 

  • Click on the purposecode01 Attribute.



  • Click on a value within the list to select it and then click the Remove button. This will need to be done twice to remove each value from the Attribute.



  • The configuration will appear as shown below. Click the Save Generator button.


Example 2: Replace a Generator for a Test Data Case Domain Attribute

In some Business Case Scenarios, an Attribute will need to be set to "Empty" to ensure no data is generated for that Attribute and that it is still part of the generated test data. At other times, a constant text value may need to be used during test data generation.


The following example shows how to set the zoneCode05 Attribute for the BGN_BeginningSegment to "Empty":

  • Click on the zoneCode05 Attribute to select it.



  • If the Attribute has several list values (as in this specific example), the easiest method will be to change the Generator to the ConstantGen Generator.

  • This can be done by selecting the ConstantGen Generator in the Quick Generator Replacement Menu.



  • Once selected, click the Replace button to replace the current Generator.



  • Type #{EMPTY} for the value Parameter and click the Save Generator button.


Generating EDI Test Data

Once the EDI 834 Test Data Case has been configured for your specific Business Case Scenario, you will be able to download and run the Test Data Case using the provided command line.



EDI Projects have a Scenario Chain Set and a Config File that must also be downloaded in order to generate test data for a Test Data Case. You can download these items from the EDI Dashboard, which is accessed by expanding the Management menu and selecting EDI Management.



Select the EDI-834 Project. Then click on the EDI Config and Scenarios buttons to download these items. Please note that it takes a little time to download the Scenario Chain Set. For detailed steps, click here.



The name of the set will replace <ScenarioName.grs> within the command line above. For an EDI 834 Project, the name would look similar to this: EDIScenarioChainSet1. Please note that this name could be different based on the project. 



Conclusion

EDI Test Data Cases can be used to customize what Segments, Loops, and Elements are included in generated Test Data. Domains, Attributes, and Generator configurations can be modified to test specific Business Case Scenarios within a Test Data Case without impacting the EDI Project Configuration.


Note: A detailed implementation guide for Business Case Scenario 1: Enrolling an Employee in Multiple Health Care Insurance Products can be found here.