# US 2025/0095804 A1 · Automatic soap note generation using task decomposition

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

- Number: US 2025/0095804 A1
- Document ID: US20250095804A1
- Status: Published application
- Kind: A1
- Application number: 18/830,934
- Filed: 2024-09-11
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Syed Najam Abbas Zaidi; Shiquan Yang; Poorya Zaremoodi; Nitika Mathur; Shubham Pawankumar Shah; Arash Shamaei; Sagar Kalyan Gollamudi
- Web page: https://patentgrep.com/patent/US20250095804A1

## CPC

- G06F 40/30: Semantic analysis
- G16H 10/60: for patient-specific data, e.g. for electronic patient records
- G06F 40/205: Parsing
- G06F 40/295: Named entity recognition
- G06F 40/56: Natural language generation
- G06N 3/045: Combinations of networks
- G06N 3/0475: Generative networks
- G06N 20/00: Machine learning
- G06N 20/20: Ensemble learning
- G10L 15/26: Speech to text systems (G10L15/08 takes precedence)
- G16H 10/00: ICT specially adapted for the handling or processing of patient-related medical or healthcare data (for medical reports G16H15/00; for therapies or health-improving plans G16H20/00; for the handling or processing of medical images G16H30/00)
- G16H 15/00: ICT specially adapted for medical reports, e.g. generation or transmission thereof
- G16H 50/20: for computer-aided diagnosis, e.g. based on medical expert systems
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Techniques are disclosed for automatically generating Subjective, Objective, Assessment and Plan (SOAP) notes. Particularly, techniques are disclosed for automatic SOAP note generation using task decomposition. A text transcript is accessed and segmented into portions. The text transcript can correspond to an interaction between a first entity and a second entity. Machine-learning model prompts are used to extract entities and facts for the respective portions and generate SOAP note sections based at least in-part on the facts. A SOAP note is generated by combining the SOAP note sections. The SOAP note can be stored in a database in association with at least one of the first entity and the second entity.

## Claims

### Claim 1

A computer-implemented method comprising:
accessing a text transcript, the text transcript corresponding to an interaction between a first entity and a second entity;
segmenting the text transcript into a plurality of portions;
for each respective portion of the plurality of portions:
using a first machine-learning model prompt to identify one or more entities included the respective portion,
using a second machine-learning model prompt to extract one or more facts from the respective portion based at least in-part on the one or more entities, and
adding the one or more facts to a collection of facts;
using a plurality of third machine-learning model prompts to generate a set of note sections based at least in-part on the collection of facts, wherein each note section of the set of note sections corresponds to a section of a Subjective, Objective, Assessment and Plan (SOAP) note;
generating the SOAP note by combining note sections of the set of note sections; and
storing the SOAP note in a database associated with at least one of the first entity and the second entity.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the text transcript comprises a first number of tokens, wherein each portion of the plurality of portions comprises a second number of tokens that is less than the first number of tokens, and wherein segmenting the text transcript into the plurality of portions comprises selecting a respective portion of the text transcript having a number of tokens corresponding to the second number of tokens and determining whether the respective portion of the text transcript satisfies predetermined criteria.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein using the first machine-learning model prompt to identify the one or more entities included the respective portion comprises using a named entity recognition model to extract at least one entity from the respective portion and generating the first machine-learning model prompt based at least in-part on the respective portion and the at least one entity.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the second machine-learning model prompt comprises the respective portion, the one or more entities, and a query for querying one or more machine-learning models to extract the one or more facts from the respective portion.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
using a plurality of fourth machine-learning model prompts to generate a set of classified facts from the collection of facts, wherein each classified fact of the set of classified facts corresponds to a fact in the collection of facts and is associated with a particular category label selected from a set of category labels, wherein using the plurality of third machine-learning model prompts to generate the set of note sections comprises using the plurality of third machine-learning model prompts to generate the set of note sections based at least in-part on the set of classified facts.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein each category label of the set of category labels is associated with a respective SOAP note section of a plurality of SOAP note sections, and wherein using the plurality of fourth machine-learning model prompts to generate the set of classified facts from the collection of facts comprises using the plurality of fourth machine-learning model prompts to classify each respective fact of the collection of facts as corresponding to a particular SOAP note of the plurality of SOAP note sections.

### Claim 7 (depends on 5)

The computer-implemented method of claim 5, wherein using the plurality of third machine-learning model prompts to generate the set of note sections based at least in-part on the set of classified facts comprises:
extracting information associated with the second entity from an electronic record associated with the second entity;
dividing the set of classified facts into subsets of classified facts;
generating a machine-learning model prompt based on a subset of classified facts of the subsets of classified facts and the information; and
using the machine-learning model prompt to generate a respective note section of the set of note sections.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the first entity is a healthcare provider, wherein the second entity is a patient associated with the healthcare provider, and wherein storing the SOAP note in the database comprises storing the SOAP note in an electronic health record associated with the patient.

### Claim 9

A system comprising:
one or more processing systems; and
one or more computer-readable media storing instructions which, when executed by the one or more processing systems, cause the system to perform operations comprising:
accessing a text transcript, the text transcript corresponding to an interaction between a first entity and a second entity;
segmenting the text transcript into a plurality of portions;
for each respective portion of the plurality of portions:
using a first machine-learning model prompt to identify one or more entities included the respective portion,
using a second machine-learning model prompt to extract one or more facts from the respective portion based at least in-part on the one or more entities, and
adding the one or more facts to a collection of facts;
using a plurality of third machine-learning model prompts to generate a set of note sections based at least in-part on the collection of facts, wherein each note section of the set of note sections corresponds to a section of a Subjective, Objective, Assessment and Plan (SOAP) note;
generating the SOAP note by combining note sections of the set of note sections; and
storing the SOAP note in a database associated with at least one of the first entity and the second entity.

### Claim 10 (depends on 9)

The system of claim 9, wherein the text transcript comprises a first number of tokens, wherein each portion of the plurality of portions comprises a second number of tokens that is less than the first number of tokens, and wherein segmenting the text transcript into the plurality of portions comprises selecting a respective portion of the text transcript having a number of tokens corresponding to the second number of tokens and determining whether the respective portion of the text transcript satisfies a predetermined criteria.

### Claim 11 (depends on 9)

The system of claim 9, wherein using the first machine-learning model prompt to identify the one or more entities included the respective portion comprises using a named entity recognition model to extract at least one entity from the respective portion and generating the first machine-learning model prompt based at least in-part on the respective portion and the at least one entity.

### Claim 12 (depends on 9)

The system of claim 9, wherein the second machine-learning model prompt comprises the respective portion, the one or more entities, and a query for querying one or more machine-learning models to extract the one or more facts from the respective portion.

### Claim 13 (depends on 9)

The system of claim 9, the operations further comprising:
using a plurality of fourth machine-learning model prompts to generate a set of classified facts from the collection of facts, wherein each classified fact of the set of classified facts corresponds to a fact in the collection of facts and is associated with a particular category label selected from a set of category labels, wherein using the plurality of third machine-learning model prompts to generate the set of note sections comprises using the plurality of third machine-learning model prompts to generate the set of note sections based at least in-part on the set of classified facts.

### Claim 14 (depends on 13)

The system of claim 13, wherein each category label of the set of category labels is associated with a respective SOAP note section of a plurality of SOAP note sections, and wherein using the plurality of fourth machine-learning model prompts to generate the set of classified facts from the collection of facts comprises using the plurality of fourth machine-learning model prompts to classify each respective fact of the collection of facts as corresponding to a particular SOAP note of the plurality of SOAP note sections.

### Claim 15 (depends on 13)

The system of claim 13, wherein using the plurality of third machine-learning model prompts to generate the set of note sections based at least in-part on the set of classified facts comprises:
extracting information associated with the second entity from an electronic record associated with the second entity;
dividing the set of classified facts into subsets of classified facts;
generating a machine-learning model prompt based on a subset of classified facts of the subsets of classified facts and the information; and
using the machine-learning model prompt to generate a respective note section of the set of note sections.

### Claim 16 (depends on 9)

The system of claim 9, wherein the first entity is a healthcare provider, wherein the second entity is a patient associated with the healthcare provider, and wherein storing the SOAP note in the database comprises storing the SOAP note in an electronic health record associated with the patient.

### Claim 17

One or more non-transitory computer-readable media storing instructions which, when executed by one or more processors, cause a system to perform operations comprising:
accessing a text transcript, the text transcript corresponding to an interaction between a first entity and a second entity;
segmenting the text transcript into a plurality of portions;
for each respective portion of the plurality of portions:
using a first machine-learning model prompt to identify one or more entities included the respective portion,
using a second machine-learning model prompt to extract one or more facts from the respective portion based at least in-part on the one or more entities, and
adding the one or more facts to a collection of facts;
using a plurality of third machine-learning model prompts to generate a set of note sections based at least in-part on the collection of facts, wherein each note section of the set of note sections corresponds to a section of a Subjective, Objective, Assessment and Plan (SOAP) note;
generating the SOAP note by combining note sections of the set of note sections; and
storing the SOAP note in a database associated with at least one of the first entity and the second entity.

### Claim 18 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein the text transcript comprises a first number of tokens, wherein each portion of the plurality of portions comprises a second number of tokens that is less than the first number of tokens, and wherein segmenting the text transcript into the plurality of portions comprises selecting a respective portion of the text transcript having a number of tokens corresponding to the second number of tokens and determining whether the respective portion of the text transcript satisfies a predetermined criteria.

### Claim 19 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein using the first machine-learning model prompt to identify the one or more entities included the respective portion comprises using a named entity recognition model to extract at least one entity from the respective portion and generating the first machine-learning model prompt based at least in-part on the respective portion and the at least one entity.

### Claim 20 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein the second machine-learning model prompt comprises the respective portion, the one or more entities, and a query for querying one or more machine-learning models to extract the one or more facts from the respective portion.

### Claim 21 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, the operations further comprising:
using a plurality of fourth machine-learning model prompts to generate a set of classified facts from the collection of facts, wherein each classified fact of the set of classified facts corresponds to a fact in the collection of facts and is associated with a particular category label selected from a set of category labels, wherein using the plurality of third machine-learning model prompts to generate the set of note sections comprises using the plurality of third machine-learning model prompts to generate the set of note sections based at least in-part on the set of classified facts.

### Claim 22 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein each category label of the set of category labels is associated with a respective SOAP note section of a plurality of SOAP note sections, and wherein using the plurality of fourth machine-learning model prompts to generate the set of classified facts from the collection of facts comprises using the plurality of fourth machine-learning model prompts to classify each respective fact of the collection of facts as corresponding to a particular SOAP note of the plurality of SOAP note sections.

### Claim 23 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein using the plurality of third machine-learning model prompts to generate the set of note sections based at least in-part on the set of classified facts comprises:
extracting information associated with the second entity from an electronic record associated with the second entity;
dividing the set of classified facts into subsets of classified facts;
generating a machine-learning model prompt based on a subset of classified facts of the subsets of classified facts and the information; and
using the machine-learning model prompt to generate a respective note section of the set of note sections.

### Claim 24 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein the first entity is a healthcare provider, wherein the second entity is a patient associated with the healthcare provider, and wherein storing the SOAP note in the database comprises storing the SOAP note in an electronic health record associated with the patient.
