Custom GPT: Build a CDI Query Writer That Knows Your Guidelines

Tools:ChatGPT
Time to build:1-2 hours
Difficulty:Intermediate-Advanced
Prerequisites:Comfortable using ChatGPT for query drafting — see Level 3 guide: "AI-Assisted Physician Query Drafting"
ChatGPT

What This Builds

Instead of pasting your CDI query instructions into a new ChatGPT conversation every single day, you'll build a Custom GPT that is permanently configured as a CDI query drafting assistant. It will always know AHIMA compliance guidelines, your facility's query format, and your common diagnosis patterns — so every team member who uses it gets consistent, compliant query drafts from the first message with no setup required.

A Custom GPT is a configured version of ChatGPT you build once and share with your team. It has persistent instructions and can hold reference documents. When a CDI specialist opens the "CDI Query Writer" GPT and types "sepsis vs. SIRS query," they get a properly formatted, AHIMA-compliant draft immediately — no prompt engineering required.

Prerequisites

  • ChatGPT {{tool:ChatGPT.plan}} subscription ({{tool:ChatGPT.price}}) — Custom GPT creation requires a paid plan
  • Comfortable using ChatGPT for basic query drafting (Level 3)
  • Key documents ready: AHIMA Physician Query Compliance Guidelines (PDF), your facility's query policy, example compliant and non-compliant queries

The Concept

A Custom GPT is like a pre-configured assistant that already knows your job. You write the instructions once — what it knows, how it responds, what format to use — and then every conversation with it starts from that shared foundation. Instead of typing "You are a CDI query assistant..." at the top of every conversation, the GPT already knows. For a CDI team, this means everyone gets the same quality of query drafts, new staff learn faster, and query consistency improves across the whole program.


Build It Step by Step

Part 1: Open the GPT Builder

  1. Go to {{tool:ChatGPT.url}} and sign in with your {{tool:ChatGPT.plan}} account
  2. Click your profile picture (top right) → My GPTs
  3. Click Create a GPT (or the + button)
  4. The GPT Editor opens with two panels: Configure (left) and Preview (right)

Part 2: Write the System Instructions

Click the Configure tab. Fill in each section:

Name: CDI Query Writer

Description: Drafts compliant AHIMA physician queries for CDI specialists — describe a de-identified clinical scenario and get a formatted query in seconds.

Instructions (paste this, then customize):

Copy and paste this
You are a physician query drafting assistant for Clinical Documentation Improvement (CDI) specialists.

Your purpose: Draft compliant, non-leading physician queries that follow AHIMA 2019 Physician Query Compliance Guidelines.

QUERY FORMAT:
Every query you draft must include:
1. Opening: "In reviewing this patient's record during [admission period/concurrent review], I note the following..."
2. Clinical summary: 2-3 sentences describing the documented findings relevant to the query
3. Documentation opportunity: Clear statement of what needs clarification
4. Response options: 4-6 multiple-choice options
5. Required options: Always include "Clinically undetermined" and "Other: ___" as final options
6. Signature line placeholder

COMPLIANCE RULES (non-negotiable):
- Never suggest which response option is preferred or correct
- Never use language that implies a financial motive ("this would improve reimbursement...")
- Never lead the physician toward a specific answer
- Include only clinical facts in the query body — no coding language
- If the clinical scenario provided is ambiguous, ask for clarification before drafting

QUERY TYPES you handle:
- Diagnosis specificity (unspecified → specified type)
- Present on admission status
- CC/MCC capture (query for documented complication or comorbidity)
- Clinical validation (query to confirm a documented diagnosis is clinically supported)
- Procedure specificity
- Etiology/causality linking

De-identification reminder: Remind the user to remove all PHI before using your output if they haven't already.

When a user provides a clinical scenario, immediately draft the query. Do not ask clarifying questions unless the scenario is genuinely ambiguous for query composition purposes.

Conversation Starters (add these to help users get started):

  • "Draft a respiratory failure type query"
  • "I need a sepsis vs. SIRS query"
  • "Query for malnutrition severity"
  • "Help me write a clinical validation query"

Part 3: Upload Reference Documents

Click Knowledge in the Configure section → Upload files

Upload these documents:

  1. AHIMA Physician Query Compliance Guidelines PDF
  2. Your facility's CDI physician query policy (Word or PDF)
  3. A document of 10–15 examples of compliant vs. non-compliant queries (create this yourself — it's the most valuable training document)
  4. Your top 10 query templates (create a Word document with your existing best-performing query templates)

Wait for each file to upload completely (green checkmark).

Part 4: Test in the Preview Panel

In the right panel, test your Custom GPT:

  1. Type: "Draft a respiratory failure type query for a patient requiring nasal cannula O2, SpO2 85% on room air, no ABG documented"
  2. Read the output — is it AHIMA-compliant? Does it include the required response options?
  3. Type: "Query for CHF with unspecified EF, echo shows 35% EF from 2 months ago"
  4. Check format, completeness, and compliance

What you should see: A properly formatted query that matches your facility's format and includes all required AHIMA compliance elements.

Part 5: Refine and Save

If the output isn't right, adjust the Instructions. Common fixes:

  • Query too long? Add: "Keep queries under 250 words."
  • Wrong format? Add your facility's exact format template to the instructions
  • Missing elements? Specify them explicitly in the instructions

When satisfied, click Save (top right) → choose Only me (private) or Anyone with a link to share with your team.

Part 6: Share with Your CDI Team

  1. After saving, click the Share link icon next to your CDI Query Writer GPT
  2. Copy the link and share with CDI team members who have ChatGPT Plus accounts
  3. They access it by visiting the link or finding it under Explore GPTs → My GPTs if you add them as a collaborator

Real Example: A Morning with the CDI Query Writer

Setup: The CDI Query Writer GPT is open in a browser tab.

Your morning queue has 3 query opportunities:

Query 1 — Input: "Patient admitted for COPD exacerbation. Also requiring supplemental O2 at 4L NC, maintaining SpO2 92%. Notes mention 'respiratory distress' but no respiratory failure documented. Query for: respiratory failure if clinically present."

Output: A 200-word AHIMA-compliant query with options: Acute hypoxic respiratory failure, Acute hypercapnic respiratory failure, Acute-on-chronic respiratory failure, Respiratory distress without respiratory failure, Clinically undetermined, Other: ___

Time: 90 seconds to type the scenario, 30 seconds to review. Total: 2 minutes vs. your previous 15 minutes.

Over a full day: 8 queries drafted → saves approximately 90 minutes.


What to Do When It Breaks

  • Query format doesn't match your facility's template → Add your exact template to the Instructions section with a note: "Always use this exact format:" then paste your template
  • GPT asks too many clarifying questions → Add to instructions: "When in doubt about minor details, draft the query and note assumptions at the end"
  • Response options are too generic → Add to your Knowledge documents a list of your most common query types with preferred response option sets
  • GPT hallucinates coding guidelines → Add: "Do not cite specific Coding Clinic references in queries — cite only clinical criteria and documented findings"

Variations

  • Simpler version: Use a saved conversation with your query instructions as a pinned template — less setup, slightly less consistent
  • Extended version: Build a second Custom GPT for clinical validation queries with more detailed clinical criteria guidelines uploaded

What to Do Next

  • This week: Build the GPT, test it on 5 pending queries, compare output quality to your manual process
  • This month: Share with your CDI team, gather feedback on format/compliance, refine instructions
  • Advanced: Create specialty-specific query collections — a "Cardiac Query Writer" and a "Respiratory Query Writer" with diagnosis-specific response option sets

Advanced guide for Clinical Documentation Improvement Specialist professionals. Requires ChatGPT {{tool:ChatGPT.plan}} subscription ({{tool:ChatGPT.price}}).