How to Customize Generators in a Specific Element/Attribute
Within each G-Case, users can customize Generators for a specific Element (i.e., Attribute). This is done within the Test Case Domain, which represents a Segment/Loop. The Generator configuration for an Element/Attribute can be modified by:
- Altering the Generator Parameters
- Assigning a different Generator
Users will need to edit the Test Case Domain for the Segment/Loop and add the Element/Attribute before changes can be made to the assigned Generator or its Parameter values. This lesson shows how to do the following:
- Edit the Test Case Domain
- Add Attributes to the Test Case Domain
- Make changes to the assigned Generator’s Parameter Values
- Assign a different Generator to the Element/Attribute
Note: The examples shown within this lesson are for an 837I EDI Document. Users can complete the same steps for any EDI Document/Transaction Set.
How to edit a Test Case Domain (using the EDI Tree View)
Step 1: Click on the EDI Tree icon within the G-Case Editor Tab.
Step 2: Click on the Edit (Pencil) icon within the Action Column for a Segment/Loop to view and modify the Test Case Domain. For this example, we will edit the BHT_BeginningOfHiearchicalTransaction Segment.
The dashboard for viewing and managing a Test Case Domain is displayed below. Users can edit the assigned Generator or Parameter values for an existing Attribute (i.e., Element) within the dashboard.
How to Add an Element/Attribute to the Test Case Domain
Step 1: Click on the Plus (+) icon to add Attributes to the Test Case Domain.
Step 2: In the dialog window, tick the checkbox for each Element/Attribute. Selected Elements/Attributes will have a checkmark.
Step 3: Click the Save button once finished.
The Element/Attribute will appear within the dashboard and can be selected.
After selecting an added Attribute. users may complete the following actions:
- Alter any of the assigned Generator’s Parameters
- Remove the assigned Generator and assign a new one
- Replace the currently assigned Generator with a new one
Note: Generators may be linked together to generate more complex data values within an EDI Document.
Example 1: How to remove a Value from a Generator Parameter
For this example, we will be altering the generated values for an 837I EDI Document and making changes to the purposeCode02 Attribute within the BHT_BeginningOfHierarchicalTransaction Segment.
The purposeCode02 Attribute, by default, generates two codes: 00 and 18. For this example, The Element/Attribute will only need to generate the 00 value. We will remove the value 18 from the List Parameter within the assigned ListGen Generator.
Step 1: Select the Element/Attribute within the dashboard.
Step 2: Click on 18 within the list to select it and then click the Remove button.
Step 3: The configuration will appear as shown below. Click the Save Generator button.
Example 2: How to add values to a Generator Parameter
Step 1: Select the Element/Attribute within the dashboard.
Step 2: Enter 18 within the input field for the List Parameter and then click on +Add or use the Enter Key on the keyboard.
Step 3: The new value will appear within the List Parameter, as shown below: Click the Save Generator button to save the change.
Example 3: Replace a Generator for an Element/Attribute
A default Generator is assigned to each Element/Attribute to create a standard EDI Document/Transaction Set.
Users can replace the default assigned Generator with a different Generator at any time. 670+ Generators are available and can be used to generate data for an Element/Attribute.
Generators may be used to generate a specific list of values, a constant value, or even to query specific values within a database or CSV file.
Step 1: Select the Element/Attribute within the Test Case Domain. For this example, it is the organizationName103 Attribute within the NM1_BillingProviderName_2010AA Segment.
Step 2: Enter the name of the Generator (e.g., ConstantGen Generator, ListGen Generator) within the Quick Generator Replacement Menu.
Step 3: Once selected, click the Replace button to replace the current Generator.
Step 4: Click Yes to replace the current Generator.
Step 5: Alter any needed Generator Parameters for the new assigned Generator and then click the Save Generator button. For this example, we have entered JONES HOSPITAL for the Value Parameter.
Note: The available Generator Parameters will vary per Generator. To learn more about available Generators, please see this section of our knowledge base.