You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,15 +46,19 @@ export class AwsBedrockService {
44
46
privatereadonlymedicalAnalysisPrompt=`Please analyze this medical document carefully, with specific attention to medical lab reports.
45
47
46
48
Look for and extract the following information:
47
-
1. Key medical terms visible in the document with their definitions
48
-
2. Lab test values with their normal ranges and whether they are abnormal (particularly important for blood work, metabolic panels, etc.)
49
-
3. Any diagnoses, findings, or medical observations with details and recommendations
50
-
4. Analyze if this is a medical document (lab report, test result, medical chart, prescription, etc.) and provide confidence level
49
+
1. Document title or main subject based on content
50
+
2. Document category based on organ system focus
51
+
3. Key medical terms visible in the document with their definitions
52
+
4. Lab test values with their normal ranges and whether they are abnormal (particularly important for blood work, metabolic panels, etc.)
53
+
5. Any diagnoses, findings, or medical observations with details and recommendations
54
+
6. Analyze if this is a medical document (lab report, test result, medical chart, prescription, etc.) and provide confidence level
51
55
52
56
This document may be a lab report showing blood work or other test results, so please pay special attention to tables, numeric values, reference ranges, and medical terminology.
53
57
54
58
Format the response as a JSON object with the following structure:
@@ -63,6 +69,12 @@ Format the response as a JSON object with the following structure:
63
69
}
64
70
}
65
71
72
+
For the title field, create a concise title that summarizes what the document is about (e.g., "Complete Blood Count Results", "Liver Function Test", "MRI Report").
73
+
For the category field, you MUST choose exactly one of these three values:
74
+
- "heart" - if the document focuses primarily on cardiac/cardiovascular issues or tests
75
+
- "brain" - if the document focuses primarily on neurological issues or brain-related tests
76
+
- "general" - for all other medical documents, or when the focus spans multiple systems
77
+
66
78
Set isMedicalReport to true if you see ANY medical content such as lab values, medical terminology, doctor's notes, or prescription information.
67
79
Set confidence between 0 and 1 based on document clarity and how confident you are about the medical nature of the document.
68
80
@@ -115,6 +127,8 @@ INCORRECT RESPONSE FORMATS (DO NOT DO THESE):
0 commit comments