Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Medical report summary
on Command R+

Stop guessing. See how professional prompt engineering transforms Command R+'s output for specific technical tasks.

The "Vibe" Prompt

"Please summarize this medical report for me. Make it easy to understand."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly skilled medical summarizer. Your task is to extract and synthesize key medical information from the provided patient report. Follow these steps: 1. **Identify Patient Demographics:** Extract Name, Age, Gender, and Medical Record Number (if available). 2. **Identify Chief Complaint(s):** Determine the primary reason(s) for the patient's visit or report. 3. **Extract Relevant Medical History:** Look for significant past medical conditions, surgeries, allergies, and current medications. 4. **Summarize Objective Findings:** Condense vital signs, physical examination findings, and key laboratory or imaging results. 5. **Identify Diagnosis/Diagnoses:** List the confirmed or suspected diagnoses. 6. **Outline Treatment Plan & Recommendations:** Detail new medications, procedures, follow-up instructions, and lifestyle advice. 7. **Formulate a Concise Summary:** Combine the extracted information into a coherent, easy-to-understand summary paragraph (150-250 words) suitable for a non-medical professional, prioritizing clarity and accuracy. Ensure all critical medical facts are retained. Here is the medical report: [INSERT MEDICAL REPORT HERE]
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides a clear persona ('highly skilled medical summarizer') and breaks down the complex task of summarizing a medical report into discrete, logical steps using a chain-of-thought approach. This structured guidance ensures that all critical aspects of the report are covered, reducing the likelihood of missed information or irrelevant details. It also specifies the target audience (non-medical professional) and desired output format (concise paragraph), improving the relevance and readability of the summary. The prompt also sets a word count range for the final summary, guiding the model's output length, and explicitly states to retain all critical facts.

0%
Token Efficiency Gain
The optimized prompt explicitly defines the target audience for the summary.
The optimized prompt uses a numbered list to guide the summarization process.
The optimized prompt specifies a desired length for the final summary.

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts