Open the sample's Ruletest ReimbursementRate.ert. This Ruletest has 3 Testsheets. The REST call-out in the Ruleflow is defined to do an import from the REST service. An import will create new entity instances for the data returned from the REST service. Select the No Input Data and run click Run Test to run it.


The Output for the Testsheet will contain a list reimbursement rates returned from the REST service. Where an import operation was performed, new entities were created for each reimbursement rate. To compare this to the JSON returned from the REST service, copy the REST URL from the Rate data source and paste it into your browser. The One Procedure and Multiple Procedures Testsheets have procedureCodes defined in the Input of the Testsheet. These Testsheets will be used in later sections to show how to perform a retrieve operation to get rates for specific procedure codes. If you run either of these Testsheets while the Get Rates call-out in the Ruleflow is configured to perform an import, you'll see the Output contains both the input data and new entities for all the rate data from the REST service.
Note: It is important to remember that an import will create new entity instances.