# US 2025/0210207 A1 · Retrieval-Augmented Synthetic Test Claim Generation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0210207 A1
- Document ID: US20250210207A1
- Status: Published application
- Kind: A1
- Application number: 18/990,262
- Filed: 2024-12-20
- Published: 2025-06-26
- Earliest claimed: 2023-12-21
- Assignees: Magnum Transaction Sub, LLC
- Applicants: Magnum Transaction Sub, LLC
- Inventors: Akshay Sharma; Kartik Thakore
- Web page: https://patentgrep.com/patent/US20250210207A1

## CPC

- G16H 70/20: relating to practices or guidelines
- G16H 40/20: for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms
- G16H 50/20: for computer-aided diagnosis, e.g. based on medical expert systems
- G16H 50/70: for mining of medical data, e.g. analysing previous cases of other patients
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA

## Abstract

Techniques for generating synthetic test claims for medical procedures are provided. In one example, a transformer model executed on a computer system, and trained on healthcare contexts, receives a medical technical document comprising text data that defines a context that is required for approval of a medical procedure and generates one or more embeddings for the medical technical document. Using the one or more embeddings, the computer system retrieves one or more related medical technical documents and one or more sample claims and inputs them with the medical technical document to a claim generation machine learning model to generate one or more synthetic claims that each comprise a reimbursement request for the medical procedure and are usable to test an accuracy of program code that analyzes claims for compliance with the medical technical document.

## Claims

### Claim 1

A method of generating synthetic claims for medical procedures, comprising:
receiving a medical technical document comprising text data that defines a context that is required for approval of a medical procedure at a transformer model executed on a computer system, wherein the transformer model is trained on healthcare contexts;
generating, by the transformer model executed on the computer system, one or more embeddings of the medical technical document;
retrieving, by the computer system, using the one or more embeddings, one or more related medical technical documents and one or more sample claims, wherein the one or more sample claims are related to the related medical technical documents;
inputting, by the computer system, to a claim generation machine learning model, the medical technical document, the one or more related medical technical documents, and the one or more sample claims to generate one or more synthetic claims that each comprise a reimbursement request for the medical procedure; and
receiving, by the computer system from the claim generation machine learning model, the one or more synthetic claims, wherein the one or more synthetic claims are usable to test an accuracy of program code that analyzes claims for compliance with the medical technical document.

### Claim 2 (depends on 1)

The method of generating synthetic claims for medical procedures of claim 1, wherein the one or more embeddings generated by the transformer model are dense vector representations in a continuous vector space.

### Claim 3 (depends on 1)

The method of generating synthetic claims for medical procedures of claim 1, wherein retrieving the one or more related medical technical documents comprises performing a similarity search within an embedding datastore of medical technical documents using the one or more embeddings of the medical technical document.

### Claim 4 (depends on 1)

The method of generating synthetic claims for medical procedures of claim 1, wherein retrieving the one or more related medical technical documents comprises:
determining a similarity score for each of a plurality of medical technical documents, wherein the similarity score for a respective medical technical document of the plurality of medical technical documents is based on a comparison between the one or more embeddings of the medical technical document and one or more embeddings of the respective medical technical document; and
selecting the one or more related medical technical documents from the plurality of medical technical documents based on a threshold similarity score.

### Claim 5 (depends on 1)

The method of generating synthetic claims for medical procedures of claim 1, wherein the transformer model is trained using contrastive learning on pairings between similar and dissimilar medical procedures and diagnoses identified from historical medical technical documents.

### Claim 6 (depends on 1)

The method of generating synthetic claims for medical procedures of claim 1, wherein the context defines one or more criteria that are required for approval of the medical procedure.

### Claim 7 (depends on 6)

The method of generating synthetic claims for medical procedures of claim 6, wherein the one or more criteria comprise a first medical diagnosis that justifies the medical procedure.

### Claim 8 (depends on 7)

The method of generating synthetic claims for medical procedures of claim 7, wherein the one or more synthetic claims comprise a first claim that justifies the medical procedure with the first medical diagnosis.

### Claim 9 (depends on 8)

The method of generating synthetic claims for medical procedures of claim 8, further comprising:
retrieving, using the one or more embeddings, a procedure code for the medical procedure and a diagnostic code for the medical diagnosis; and
providing the procedure code and the diagnostic code to the claim generation machine learning model.

### Claim 10 (depends on 7)

The method of generating synthetic claims for medical procedures of claim 7, wherein the one or more synthetic claims comprise a first claim that justifies the medical procedure with a second medical diagnosis that is not included in the one or more criteria.

### Claim 11 (depends on 1)

The method of generating synthetic claims for medical procedures of claim 1, wherein:
the one or more synthetic claims comprise a first set of synthetic claims that satisfy the context and a second set of synthetic claims that do not satisfy the context; and
each of the one or more synthetic claims is generated with a label indicating whether it satisfies the context or not.

### Claim 12 (depends on 11)

The method of generating synthetic claims for medical procedures of claim 11, further comprising:
executing the program code on the one or more synthetic claims to produce determinations, for each respective synthetic claim of the one or more synthetic claims, indicative of whether the respective synthetic claim complies with the medical technical document; and
determining, based on a comparison between the results generated by the program code and the label generated with each of the one or more synthetic claims, the accuracy of the program code.

### Claim 13

A retrieval augmented synthetic test claim generation system, comprising:
one or more processors; and
a computer-readable storage media storing computer-executable instructions that, when executed by the one or more processors, cause the retrieval augmented synthetic test claim generation system to:
receive a medical technical document comprising text data that defines a context that is required for approval of a medical procedure at a transformer model, wherein the transformer model is trained on healthcare contexts;
generate, by the transformer model, one or more embeddings of the medical technical document;
retrieve, using the one or more embeddings, one or more related medical technical documents and one or more sample claims, wherein the one or more sample claims are related to the related medical technical documents;
input, to a claim generation machine learning model, the medical technical document, the one or more related medical technical documents, and the one or more sample claims to generate one or more synthetic claims that each comprise a reimbursement request for the medical procedure; and
receive, from the claim generation machine learning model, the one or more synthetic claims, wherein the one or more synthetic claims are usable to test an accuracy of program code that analyzes claims for compliance with the medical technical document.

### Claim 14 (depends on 13)

The retrieval augmented synthetic test claim generation system of claim 13, wherein the one or more embeddings generated by the transformer model are dense vector representations in a continuous vector space.

### Claim 15 (depends on 13)

The retrieval augmented synthetic test claim generation system of claim 13, wherein retrieving the one or more related medical technical documents comprises:
determining a similarity score for each of a plurality of medical technical documents, wherein the similarity score for a respective medical technical document of the plurality of medical technical documents is based on a comparison between the one or more embeddings of the medical technical document and one or more embeddings of the respective medical technical document; and
selecting the one or more related medical technical documents from the plurality of medical technical documents based on a threshold similarity score.

### Claim 16 (depends on 13)

The retrieval augmented synthetic test claim generation system of claim 13, wherein:
the one or more synthetic claims comprise a first set of synthetic claims that satisfy the context and a second set of synthetic claims that do not satisfy the context; and
each of the one or more synthetic claims is generated with a label indicating whether it satisfies the context or not.

### Claim 17

One or more non-transitory computer-readable storage media storing one or more instructions which, when executed by one or more processors of a retrieval augmented synthetic test claim generation system, cause the one or more processors to:
receive a medical technical document comprising text data that defines a context that is required for approval of a medical procedure at a transformer model, wherein the transformer model is trained on healthcare contexts;
generate, by the transformer model, one or more embeddings of the medical technical document;
retrieve, using the one or more embeddings, one or more related medical technical documents and one or more sample claims, wherein the one or more sample claims are related to the related medical technical documents;
input, to a claim generation machine learning model, the medical technical document, the one or more related medical technical documents, and the one or more sample claims to generate one or more synthetic claims that each comprise a reimbursement request for the medical procedure; and
receive, from the claim generation machine learning model, the one or more synthetic claims, wherein the one or more synthetic claims are usable to test an accuracy of program code that analyzes claims for compliance with the medical technical document.

### Claim 18 (depends on 17)

The one or more non-transitory computer-readable storage media of claim 17, wherein the one or more embeddings generated by the transformer model are dense vector representations in a continuous vector space.

### Claim 19 (depends on 17)

The one or more non-transitory computer-readable storage media of claim 17, wherein retrieving the one or more related medical technical documents comprises performing a similarity search within an embedding datastore of medical technical documents using the one or more embeddings of the medical technical document.

### Claim 20 (depends on 17)

The one or more non-transitory computer-readable storage media of claim 17, wherein the transformer model is trained using contrastive learning on pairings between similar and dissimilar medical procedures and diagnoses identified from historical medical technical documents.
