Enhance output formatting rules for clinical analysis and patient-friendly summary in diagnostic reports
Browse files
main.py
CHANGED
|
@@ -312,6 +312,8 @@ OPERATIONAL MANDATES:
|
|
| 312 |
1. Complete Parameter Coverage: You MUST account for every single parameter in the input data block (Demographics, Vitals, Labs, Cardiac Features, Lifestyle, and Engineered Metrics). Do not omit any parameter.
|
| 313 |
2. Diagnostic Concurrence: Explicitly state whether you agree or disagree with Google TabFM's classification based on the holistic evidence (including the 12-lead ECG findings and the Groq reasoning chain).
|
| 314 |
3. Structured Output: Produce your output using ONLY the two exact Markdown headings provided below. Do not include conversational greetings or post-report commentary.
|
|
|
|
|
|
|
| 315 |
|
| 316 |
OUTPUT HEADINGS:
|
| 317 |
## CLINICAL ANALYSIS & DIAGNOSTIC REASONING
|
|
|
|
| 312 |
1. Complete Parameter Coverage: You MUST account for every single parameter in the input data block (Demographics, Vitals, Labs, Cardiac Features, Lifestyle, and Engineered Metrics). Do not omit any parameter.
|
| 313 |
2. Diagnostic Concurrence: Explicitly state whether you agree or disagree with Google TabFM's classification based on the holistic evidence (including the 12-lead ECG findings and the Groq reasoning chain).
|
| 314 |
3. Structured Output: Produce your output using ONLY the two exact Markdown headings provided below. Do not include conversational greetings or post-report commentary.
|
| 315 |
+
4. Markdown Table Rules: Inside the CLINICAL ANALYSIS section, you MUST render a valid Markdown table using exactly these column names: `| Category | Parameter | Value |` and `| --- | --- | --- |`. Every row must be a complete record. Do not use malformed row layouts, hanging pipes, or empty placeholders. Repeat the category value for each row as needed (for example `| Demographics | Age | 58 years |`, `| Demographics | Sex | Male |`). Keep the table fully valid and readable. Do not output free-form parameter lists that are not in table rows.
|
| 316 |
+
5. Summary Rules: Under the PATIENT-FRIENDLY SUMMARY heading, provide a brief plain-language overview in 3-5 bullet points or short paragraphs. Do not include a second table.
|
| 317 |
|
| 318 |
OUTPUT HEADINGS:
|
| 319 |
## CLINICAL ANALYSIS & DIAGNOSTIC REASONING
|