fixed consult notes
Browse files- ocr/api/prompts.py +11 -11
ocr/api/prompts.py
CHANGED
|
@@ -106,7 +106,7 @@ You must analyze the provided patient data from the user and then determine the
|
|
| 106 |
}
|
| 107 |
```
|
| 108 |
|
| 109 |
-
- **
|
| 110 |
generate_hpi = """## Task
|
| 111 |
|
| 112 |
You must analyze the provided patient data from the user and then determine the **History of Present Illness (HPI).**
|
|
@@ -119,10 +119,10 @@ You must analyze the provided patient data from the user and then determine the
|
|
| 119 |
}
|
| 120 |
```
|
| 121 |
|
| 122 |
-
- **
|
| 123 |
generate_social = """## Task
|
| 124 |
|
| 125 |
-
You must analyze the provided patient data from the user
|
| 126 |
|
| 127 |
## JSON Response Format
|
| 128 |
|
|
@@ -132,10 +132,10 @@ You must analyze the provided patient data from the user and extract information
|
|
| 132 |
}
|
| 133 |
```
|
| 134 |
|
| 135 |
-
- **
|
| 136 |
generate_surgical = """## Task
|
| 137 |
|
| 138 |
-
You must analyze the provided patient data from the user
|
| 139 |
|
| 140 |
## JSON Response Format
|
| 141 |
|
|
@@ -148,7 +148,7 @@ You must analyze the provided patient data from the user and extract information
|
|
| 148 |
- **[result]**: The Surgical History. You must retain all relevant data for the Surgical history. If no data is provided, save `No data available`."""
|
| 149 |
generate_family = """## Task
|
| 150 |
|
| 151 |
-
You must analyze the provided patient data from the user
|
| 152 |
|
| 153 |
## JSON Response Format
|
| 154 |
|
|
@@ -158,7 +158,7 @@ You must analyze the provided patient data from the user and extract information
|
|
| 158 |
}
|
| 159 |
```
|
| 160 |
|
| 161 |
-
- **
|
| 162 |
generate_medications = """## Task
|
| 163 |
|
| 164 |
You must analyze the provided patient data from the user and extract information about the **Medications**
|
|
@@ -171,7 +171,7 @@ You must analyze the provided patient data from the user and extract information
|
|
| 171 |
}
|
| 172 |
```
|
| 173 |
|
| 174 |
-
- **
|
| 175 |
generate_assessment = """## Task
|
| 176 |
|
| 177 |
You must analyze the provided patient data from the user and extract information about the **Assessment** (e.g., cancer stage, performance status, etc.).
|
|
@@ -184,10 +184,10 @@ You must analyze the provided patient data from the user and extract information
|
|
| 184 |
}
|
| 185 |
```
|
| 186 |
|
| 187 |
-
- **
|
| 188 |
generate_plan = """## Task
|
| 189 |
|
| 190 |
-
You must analyze the provided patient data from the user and extract information about the **
|
| 191 |
|
| 192 |
## JSON Response Format
|
| 193 |
|
|
@@ -197,7 +197,7 @@ You must analyze the provided patient data from the user and extract information
|
|
| 197 |
}
|
| 198 |
```
|
| 199 |
|
| 200 |
-
- **
|
| 201 |
|
| 202 |
class OCRPrompts:
|
| 203 |
message = MessagesPrompt()
|
|
|
|
| 106 |
}
|
| 107 |
```
|
| 108 |
|
| 109 |
+
- **result**: The chief complaint or reason for the visit. It must be represented as a single sentence."""
|
| 110 |
generate_hpi = """## Task
|
| 111 |
|
| 112 |
You must analyze the provided patient data from the user and then determine the **History of Present Illness (HPI).**
|
|
|
|
| 119 |
}
|
| 120 |
```
|
| 121 |
|
| 122 |
+
- **result**: The History of Present Illness (HPI). You must retain all relevant data for the HPI but do not include social, surgical, or family history."""
|
| 123 |
generate_social = """## Task
|
| 124 |
|
| 125 |
+
You must analyze the provided patient data from the user, find information about the **Social History.** and save it in the `result` field.
|
| 126 |
|
| 127 |
## JSON Response Format
|
| 128 |
|
|
|
|
| 132 |
}
|
| 133 |
```
|
| 134 |
|
| 135 |
+
- **result**: The Social History. You must retain all relevant data for the social history. If no data is provided, return `No data available`."""
|
| 136 |
generate_surgical = """## Task
|
| 137 |
|
| 138 |
+
You must analyze the provided patient data from the user, find information about the **Surgical History.** and save it in the `result` field.
|
| 139 |
|
| 140 |
## JSON Response Format
|
| 141 |
|
|
|
|
| 148 |
- **[result]**: The Surgical History. You must retain all relevant data for the Surgical history. If no data is provided, save `No data available`."""
|
| 149 |
generate_family = """## Task
|
| 150 |
|
| 151 |
+
You must analyze the provided patient data from the user, find information about the **Family History.** and save it in `result` field.
|
| 152 |
|
| 153 |
## JSON Response Format
|
| 154 |
|
|
|
|
| 158 |
}
|
| 159 |
```
|
| 160 |
|
| 161 |
+
- **result**: The Family History. You must retain all relevant data for the Family history. If no data is provided, return `No data available`."""
|
| 162 |
generate_medications = """## Task
|
| 163 |
|
| 164 |
You must analyze the provided patient data from the user and extract information about the **Medications**
|
|
|
|
| 171 |
}
|
| 172 |
```
|
| 173 |
|
| 174 |
+
- **result**: The list of medications. You must retain all relevant data about medications. If no data is provided, return `"No data available"`."""
|
| 175 |
generate_assessment = """## Task
|
| 176 |
|
| 177 |
You must analyze the provided patient data from the user and extract information about the **Assessment** (e.g., cancer stage, performance status, etc.).
|
|
|
|
| 184 |
}
|
| 185 |
```
|
| 186 |
|
| 187 |
+
- **result**: A summary of clinical evaluations, diagnoses, and relevant medical assessments, including disease staging, functional status (e.g., ECOG/WHO performance status). You must retain all relevant data about assessment, but do not include demographic patient data. If no data is provided, return `"No data available"`."""
|
| 188 |
generate_plan = """## Task
|
| 189 |
|
| 190 |
+
You must analyze the provided patient data from the user and extract information about the **Impression/Plan** (e.g., cancer stage, performance status, etc.).
|
| 191 |
|
| 192 |
## JSON Response Format
|
| 193 |
|
|
|
|
| 197 |
}
|
| 198 |
```
|
| 199 |
|
| 200 |
+
- **result**: A structured **Impression/Plan** based on the latest **evidence-based cancer guidelines** (e.g., ASCO, NCCN). This should include **diagnostic workup, recommended treatment options (e.g., chemotherapy, immunotherapy, radiation, surgery), clinical trial considerations, supportive care, and follow-up recommendations**. Do not include demographic patient data."""
|
| 201 |
|
| 202 |
class OCRPrompts:
|
| 203 |
message = MessagesPrompt()
|