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
Copy file name to clipboardExpand all lines: backend/src/document-processor/services/aws-bedrock.service.ts
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,18 @@ Look for and extract the following information:
56
56
57
57
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.
58
58
59
+
IMPORTANT: Base your analysis on information from multiple trusted medical sources and authorities, including but not limited to:
60
+
- Mayo Clinic
61
+
- Cleveland Clinic
62
+
- CDC (Centers for Disease Control and Prevention)
63
+
- NIH (National Institutes of Health)
64
+
- WHO (World Health Organization)
65
+
- American Medical Association
66
+
- American Heart Association
67
+
- American Academy of Pediatrics
68
+
- UpToDate
69
+
- MedlinePlus
70
+
59
71
Format the response as a JSON object with the following structure:
60
72
{
61
73
"title": string,
@@ -88,6 +100,7 @@ When extracting lab values:
88
100
4. Set "isCritical" to true when the value indicates an urgent medical situation. Set it to false for values that are normal or only slightly abnormal.
89
101
5. Include a "conclusion" field that provides a brief interpretation of what this value indicates about the patient's health
90
102
6. Include a "suggestions" field that provides brief recommendations based on this value
103
+
7. IMPORTANT: If reference ranges are missing from the document, add "reference-ranges-missing" to the missingInformation array in metadata, and use standard reference ranges from trusted medical sources to determine the status.
91
104
92
105
EXTREMELY IMPORTANT FORMATTING INSTRUCTIONS:
93
106
1. ABSOLUTELY DO NOT START YOUR RESPONSE WITH ANY TEXT. Begin immediately with the JSON object.
0 commit comments