1. Home
  2. Sample Projects
  3. Medical Claim Processing

Medical Claim Processing

◷ Reading Time: 6 minutes

Introduction

The Medical Claim Processing sample project will show how to build a project that detects incompatible medical diagnosis codes in medical claims.

Scenario

In this example, we used a dataset containing around 70,000 diagnosis code pairs that cannot claim together. This decision service gets a set of diagnosis codes as inputs and then determines the incompatible diagnosis code combinations. Once it detects, as an output it generates error messages as “Diagnosis {code1} cannot reported together with {code2}“.

Running the Sample

  • Open the file ClaimProcessing.xml
Project Explorer view showing the logic documents in the project and the Claim Processing.xml selected
  • Click on the Logic Run template.
Detail view of the Logic Run Template menu item
  • Click on any given template.
Logic Run Template view showing the available test templates
Detail view of the Debug menu item
  • You can click the ‘Next Step’ button to go step by step to follow the flow.
Detail view of the Debug Next Step menu item
  • Now you can see the output values in the ‘Parameters’ window.
Parameters view for Medical Claim Processing showing the output of the test run

Medical Claim Processing process steps

The process contains the following steps to determine “Incompatibility Codes”

  1. Read the dataset, build a lookup table using the dataset and save the lookup table to cache memory when the project runs for first time.
  2. Search through the lookup table and create error messages for incompatible diagnosis code.

Project Description

The project contains the following documents.

Generic Flow

  • ClaimProcessing.xml – Shows the main flow
  • BuildLookupTable.xml – Reads the data, build the lookup table and set it to the cache memory.

Decision Table

  • IncompatibilityCheck.xml – Determines the incompatible codes and generate an error messages

Business Formulas

  • CombinationChecker.xml – Search the code pair in the lookup table

The Flow Design

1. Create look up table and set it into the cache memory for the first time. This flow execute only if the cache memory doesn’t have the lookup table.

Flow diagram view for the Medical Claim Processing project showing the Create Lookup Table node
  • Incompatible Code List – This is the data file(Excel). It reads the dataset(Excel) and save it to IncompatibleCodeList variable.
  • Create Lookup Table – It creates a lookup table by indexing the dataset to increase the search efficiency.
  • Set Cache – In this expression, the lookup table set into cache reference.

 

2. Create a Decision Graph to detect incompatible code pairs

As you can see in the below model, all the previous processes are in a subgraph called Build Lookup Table to make the process far easier to understand.

Decision Graph diagram showing the steps to detect incompatible code pairs

In this Build Lookup Table node, set a skip condition in the properties window to skip if the lookup table is exist in the cache memory.

Properties settings view with the skip modal open and setting added to skip if the lookup table exists in the cache memory.

3. IncompatibilityCheck – In this decision table, inputs diagnosis codes are checked against the dataset for incompatibility using the defined business formula.

Decision table to process if inputs diagnosis codes are checked against the dataset for incompatibility using the defined business formula.

4 CombinationChecker.xml (BusinessFormula) – In this business formula, it reads the lookup table in the cache memory, search incompatible code pairs, and returns a Boolean value based on the search. This business formula is linked to the Decision Table (IncompatibilityCheck .xml).

Business Formula view showing the expression to read the lookup table in the cache memory, search incompatible code pairs, and returns a Boolean value based on the search.

Medical Claim Processing result

Once you run/debug the Medical Claim Processing model, results will appears in the Notifications window under Notifications tab as an Error messages.

Notifications view showing any document errors

Download the project

Use the attachment at the end of the page to download the sample project.

Updated on January 18, 2024

Article Attachments

Was this article helpful?

Related Articles