# US 12,738,354 B2 · Machine learning models for automated entity field correction

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

- Number: US 12,738,354 B2
- Document ID: US12738354B2
- Status: Granted
- Kind: B2
- Application number: 17/992,347
- Filed: 2022-11-22
- Published: 2023-05-25
- Granted: 2026-09-15
- Earliest claimed: 2021-11-23
- Assignees: Express Scripts Strategic Development, Inc.
- Applicants: Express Scripts Strategic Development, Inc.
- Inventors: Viswanathan Subramanian
- Web page: https://patentgrep.com/patent/US12738354B2

## CPC

- G16H 20/10: relating to drugs or medications, e.g. for ensuring correct administration to patients
- G16H 10/60: for patient-specific data, e.g. for electronic patient records
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA

## Abstract

A method for automated entity field correction includes scanning a database entity to generate structured scan data, generating a feature vector input according to the structured scan data, and processing, by a machine learning model, the feature vector input to generate an entity field output including multiple identified entity fields and values of the identified entity fields. In response to determining that the entity field output includes at least one missing field value, the method includes accessing a record database to identify a predicted value for the missing field value, comparing a predicted name string of the predicted value to a scanned name string of the structured scan data to determine at least one of a Levenshtein distance and a Jaro-Winkler distance, and transmitting the database entity to a prescription fill processing module for automated processing of a prescription fill specified by the database entity.

## Claims

### Claim 1

A computer system for automated correction of missing or incorrect data fields in images of received facsimile transmissions, the computer system comprising:
memory hardware configured to store a machine learning model, a record database, structured classification data, multiple machine learning models, and computer-executable instructions, wherein the record database includes multiple patient data structures and multiple prescriber data structures, the structured classification data includes multiple entity classification types, and each of the multiple machine learning models is associated with a different one of the multiple entity classification types; and
processor hardware configured to execute the instructions, wherein the instructions include:
scanning a database entity to generate structured scan data specific to the database entity, wherein the database entity includes at least one image of a prescription fill request document received via facsimile transmission, and scanning the database entity includes performing automated optical character recognition on the at least one image of the prescription fill request document received via facsimile transmission;
analyzing the database entity to identify one of the multiple entity classification types corresponding to the database entity, wherein different types of fax metadata are associated with different document classifications, and a mapping of the fax metadata is stored in a list for classification of prescription fill request documents received via facsimile transmission;
selecting one of the multiple machine learning models according to the identified one of the multiple entity classification types, the multiple machine learning models including a machine learning model trained to process optical character recognition (OCR) data for prescription fill request documents that include a cover page;
generating a feature vector input according to the structured scan data;
processing, by the selected one of the multiple machine learning models associated with the classification of the database entity, the feature vector input to generate an entity field output including multiple identified entity fields and values of the identified entity fields;
determining whether the entity field output includes at least one missing field value;
transmitting the database entity to a prescription fill processing module for automated processing of a prescription fill specified by the database entity, in response to determining that the entity field output does not include at least one missing field value;
for each database entity transmitted to the prescription fill processing module, automatically controlling an automated dispensing device by:
identifying a prescription drug associated with the respective database entity;
controlling movement of a set of containers relative to an automated dispensing device without operator intervention;
automatically dispensing, via the automated dispensing device, the prescription drug into a container of the set of containers;
imaging the container by an imaging device to automatically measure a fill height of pharmaceuticals in the container based on processing an obtained image; and
securing the container with a cap by a cap device to seal pharmaceuticals in the container; and
in response to determining that the entity field output includes at least one missing field value:
accessing the record database to identify a predicted value for the at least one missing field value in the entity field output, wherein the predicted value is stored in association with at least one entity field value of the entity field output in at least one of the multiple patient data structures and the multiple prescriber data structures of the record database;
performing an OCR scan of a prescription fill request document of the database entity to locate a predicted patient name in the prescription fill request document, wherein the predicted value for the at least one missing field value in the entity field output includes the predicted patient name, and wherein the OCR scan to locate the predicted patient name outputs a scanned name string;
comparing a predicted name string of the predicted value to the scanned name string of the structured scan data to determine at least one of a Levenshtein distance and a Jaro-Winkler distance between the predicted name string and the scanned name string; and
in response to determining that a similarity score between the predicted name string and the scanned name string according to the at least one of the Levenshtein distance and the Jaro-Winkler distance is greater than a specified similarity threshold, transmitting the database entity to the prescription fill processing module for automated processing of the prescription fill specified by the database entity.

### Claim 2 (depends on 1)

The system of claim 1, wherein:
comparing the predicted name string to the scanned name string includes determining both of the Levenshtein distance and the Jaro-Winkler distance between the predicted name string and the scanned name string; and
the similarity score between the predicted name string and the scanned name string is determined according to both the Levenshtein distance and the Jaro-Winkler distance between the predicted name string and the scanned name string.

### Claim 3 (depends on 2)

The system of claim 2, wherein the similarity score between the predicted name string and the scanned name string is determined according to both the Levenshtein distance and the Jaro-Winkler distance.

### Claim 4 (depends on 1)

The system of claim 1, wherein:
the memory hardware is configured to store historical feature vector inputs, and the historical feature vector inputs include historical data structures specific to multiple historical database entities; and
the instructions include training the multiple machine learning models with the historical feature vector inputs to generate an entity field output, wherein the entity field output includes multiple identified entity fields and values of the identified entity fields.

### Claim 5 (depends on 1)

The system of claim 1, wherein the instructions include:
determining whether the predicted value for the at least one missing field value in the entity field output includes a predicted date field;
comparing the predicted date field to a scanned date field of the structured scan data; and
in response to determining that the predicted date field to a scanned date field of the structured scan data, transmitting the database entity including the predicted date field to the prescription fill processing module.

### Claim 6 (depends on 5)

The system of claim 5, wherein:
the memory hardware is configured to store multiple date field formats; and
comparing the predicted date field to the scanned date field includes, for each of the multiple date field formats, determining whether the structured scan data includes a date value having the date field format.

### Claim 7 (depends on 1)

The system of claim 1, wherein obtaining the database entity includes receiving a prescription fill request document via facsimile transmission.

### Claim 8 (depends on 1)

The system of claim 1, wherein scanning the database entity includes performing automated optical character recognition on the database entity.

### Claim 9 (depends on 1)

The system of claim 1, wherein the instructions include:
determining whether the predicted value for the at least one missing field value in the entity field output includes a predicted date field;
comparing the predicted date field to a scanned date field of the structured scan data; and
in response to determining that the predicted date field to a scanned date field of the structured scan data, transmitting the database entity including the predicted date field to the prescription fill processing module;
wherein the memory hardware is configured to store multiple date field formats; and
wherein obtaining the database entity includes receiving a prescription fill request document via facsimile transmission.

### Claim 10 (depends on 9)

The system of claim 9, wherein comparing the predicted date field to the scanned date field includes, for each of the multiple date field formats, determining whether the structured scan data includes a date value having the date field format.

### Claim 11

A method for automated correction of missing or incorrect data fields in images of received facsimile transmissions, the method comprising:
scanning a database entity to generate structured scan data specific to the database entity, wherein the database entity includes at least one image of a prescription fill request document received via facsimile transmission, and scanning the database entity includes performing automated optical character recognition on the at least one image of the prescription fill request document received via facsimile transmission;
generating a feature vector input according to the structured scan data;
analyzing the database entity, according to structured classification data, to identify one of multiple entity classification types corresponding to the database entity, wherein the structured classification data includes multiple entity classification types, and each of multiple machine learning models is associated with a different one of the multiple entity classification types, wherein different types of fax metadata are associated with different document classifications, and a mapping of the fax metadata is stored in a list for classification of prescription fill request documents received via facsimile transmission;
selecting one of the multiple machine learning models according to the identified one of the multiple entity classification types, the multiple machine learning models including a machine learning model trained to process optical character recognition (OCR) data for prescription fill request documents that include a cover page;
processing, by the selected one of the multiple machine learning models associated with the classification of the database entity, the feature vector input to generate an entity field output including multiple identified entity fields and values of the identified entity fields;
determining whether the entity field output includes at least one missing field value;
transmitting the database entity to a prescription fill processing module for automated processing of a prescription fill specified by the database entity, in response to determining that the entity field output does not include at least one missing field value;
for each database entity transmitted to the prescription fill processing module, automatically controlling an automated dispensing device by:
identifying a prescription drug associated with the respective database entity;
controlling movement of a set of containers relative to an automated dispensing device without operator intervention;
automatically dispensing, via the automated dispensing device, the prescription drug into a container of the set of containers;
imaging the container by an imaging device to automatically measure a fill height of pharmaceuticals in the container based on processing an obtained image; and
securing the container with a cap by a cap device to seal pharmaceuticals in the container; and
in response to determining that the entity field output includes at least one missing field value:
accessing a record database to identify a predicted value for the missing field value in the entity field output, wherein the record database includes multiple patient data structures and multiple prescriber data structures, and wherein the predicted value is stored in association with at least one entity field value of the entity field output in at least one of the multiple patient data structures and the multiple prescriber data structures of the record database;
performing an OCR scan of a prescription fill request document of the database entity to locate a predicted patient name in the prescription fill request document, wherein the predicted value for the at least one missing field value in the entity field output includes the predicted patient name, and wherein the OCR scan to locate the predicted patient name outputs a scanned name string;
comparing a predicted name string of the predicted value to a scanned name string of the structured scan data to determine at least one of a Levenshtein distance and a Jaro-Winkler distance between the predicted name string and the scanned name string; and
in response to determining that a similarity score between the predicted name string and the scanned name string according to the at least one of the Levenshtein distance and the Jaro-Winkler distance is greater than a specified similarity threshold, transmitting the database entity to the prescription fill processing module for automated processing of the prescription fill specified by the database entity.

### Claim 12 (depends on 11)

The method of claim 11, wherein:
comparing the predicted name string to the scanned name string includes determining both of the Levenshtein distance and the Jaro-Winkler distance between the predicted name string and the scanned name string; and
the similarity score between the predicted name string and the scanned name string is determined according to both the Levenshtein distance and the Jaro-Winkler distance between the predicted name string and the scanned name string.

### Claim 13 (depends on 12)

The method of claim 12, wherein the similarity score between the predicted name string and the scanned name string is determined according to both the Levenshtein distance and the Jaro-Winkler distance.

### Claim 14 (depends on 11)

The method of claim 11, further comprising training the multiple machine learning models with historical feature vector inputs to generate an entity field output, wherein
the historical feature vector inputs include historical data structures specific to multiple historical database entities, and
the entity field output includes multiple identified entity fields and values of the identified entity fields.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
determining whether the predicted value for the missing field value in the entity field output includes a predicted date field;
comparing the predicted date field to a scanned date field of the structured scan data; and
in response to determining that the predicted date field to a scanned date field of the structured scan data, transmitting the database entity including the predicted date field to the prescription fill processing module.

### Claim 16 (depends on 15)

The method of claim 15, wherein comparing the predicted date field to the scanned date field includes, for each of multiple date field formats, determining whether the structured scan data includes a date value having the date field format.

### Claim 17 (depends on 11)

The method of claim 11, wherein obtaining the database entity includes receiving a prescription fill request document via facsimile transmission.

### Claim 18 (depends on 11)

The method of claim 11, wherein scanning the database entity includes performing automated optical character recognition on the database entity.

### Claim 19 (depends on 11)

The method of claim 11, further comprising:
determining whether the predicted value for the missing field value in the entity field output includes a predicted date field;
comparing the predicted date field to a scanned date field of the structured scan data; and
in response to determining that the predicted date field to a scanned date field of the structured scan data, transmitting the database entity including the predicted date field to the prescription fill processing module.

### Claim 20 (depends on 19)

The method of claim 19, wherein comparing the predicted date field to the scanned date field includes, for each of multiple date field formats, determining whether the structured scan data includes a date value having the date field format.
