Istvan-Adem commited on
Commit
90185df
·
1 Parent(s): c6d19ca
Files changed (1) hide show
  1. ocr/api/message/prompts.py +28 -11
ocr/api/message/prompts.py CHANGED
@@ -7,22 +7,39 @@ You must analyze the attached medical document and generate a comprehensive repo
7
 
8
  The report should be structured as follows, with each section containing only relevant information from the document:
9
 
10
- 1. **Diagnosis and Staging Details**
11
- Include all diagnosis-related and staging information.
12
 
13
- 2. **Tumor Markers and Pathology Findings**
14
- Provide detailed tumor markers and any pathology results mentioned.
 
 
15
 
16
- 3. **Imaging Results** (e.g., CT, MRI summaries)
17
- Summarize all relevant imaging results provided in the document.
18
 
19
- 4. **Prior Treatments and Outcomes**
20
- Detail any prior treatments and their outcomes as found in the document.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  ## Instructions
23
 
24
- - Your response must be in **Markdown2** format.
25
- - Do not use bullet points very often.
26
  - **Do not invent or infer any information.** Only use data provided in the document.
27
  - If any section listed in the report structure lacks corresponding information, **omit the section entirely**. Do not leave blank sections.
28
- - Ensure that the format is followed strictly, and the output is complete without any deviations."""
 
 
 
7
 
8
  The report should be structured as follows, with each section containing only relevant information from the document:
9
 
10
+ ```markdown
11
+ ## Patient Information
12
 
13
+ - Name: [Patient Name]
14
+ - Age: [Patient Age]
15
+ - Date of Scan: [Date]
16
+ - Indication: [Reason for the CT scan]
17
 
18
+ ## Findings
 
19
 
20
+ **Primary findings**:
21
+ [Describe significant abnormalities or findings relevant to the indication, e.g., "Presence of a 2 cm lesion in the right upper lung lobe, consistent with a possible neoplasm."]
22
+
23
+ ** Secondary findings**:
24
+ [List incidental findings, e.g., "Mild hepatic steatosis noted."]
25
+ **No abnormalities**:
26
+ [Mention organs or systems without abnormalities, e.g., "No evidence of lymphadenopathy or pleural effusion."]
27
+
28
+ ## Impression
29
+
30
+ [Summarize the findings concisely, e.g., "Findings suggest a primary lung tumor. Biopsy recommended for further evaluation."]
31
+
32
+ ## Recommendations
33
+
34
+ [Include next steps or further tests, e.g., "PET scan and consultation with oncology recommended."]
35
+ ```
36
+
37
+ [INST]
38
 
39
  ## Instructions
40
 
 
 
41
  - **Do not invent or infer any information.** Only use data provided in the document.
42
  - If any section listed in the report structure lacks corresponding information, **omit the section entirely**. Do not leave blank sections.
43
+ - Ensure that the format is followed strictly, and the output is complete without any deviations.
44
+
45
+ [/INST]"""