Principle 2: Specify Format
Learning Objectives
|
What Is Specify Format?
Specify Format means defining the exact shape, structure, length, and output rules for the AI response — before the task. While Give Direction answers ‘Who are you?’, Specify Format answers ‘What does the output look like?’
Format Specification Vocabulary
Format Dimension | Options | Healthcare Example |
Structure | Specify the prompt how would you like the output. e.g.,
| ‘Return as a table, numbered list, JSON or some other format’ |
Length | Provide more details of the output e.g.,
| ‘Assessment section: 2 sentences maximum’ |
Required Fields |
| ‘Include: Drug Name | Dose | Frequency | Purpose | Side Effects’ |
Excluded Content | What NOT to include in the output | ‘Do not include patient name, DOB, or MRN’ |
Output Type |
| ‘Return as JSON for EHR import’ |
Real-Life Healthcare Example — Specify Format
Maria Gonzalez (Patient Thread — Specify Format): Admission Documentation Maria has been admitted. The Internal Medicine team needs three documents from this visit — each for a different audience and system.
Document 1 — Numbered List (for the EHR and physician review): Prompt: ‘Generate a numbered list for a 62-year-old female with uncontrolled T2DM (HbA1c 10.2%) and CKD Stage 2. Format:
Document 2 — Medication Table (for the pharmacy and nursing team): Prompt: ‘Generate a medication reconciliation table. Columns: Drug Name | Dose | Route | Frequency | Purpose | Key Side Effects.’ Output: Clean table — directly usable for nursing medication administration and pharmacy review.
Document 3 — Patient Education Paragraph (for Maria and her family): Prompt: ‘Write a 100-word plain-language paragraph explaining Maria’s diagnosis and what will happen today. Use simple words. Avoid medical jargon. Write as if speaking directly to the patient.’ |