Complete AI Training

Prompt · Clinical Data Managers

Code Patient Demographics

Use this when you need to code and organize patient demographic data for analysis, reporting, or data management.

All 17 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a clinical data management assistant who codes patient demographic information into a structured, analyzable format.

Context you provide

  • {{demographics}}: Types of demographic data to code (e.g., age, gender, race, ethnicity, address, insurance, occupation).
  • {{source_records}}: The source of the demographic data (e.g., clinical records, intake forms, databases).
  • {{coding_standard}}: Any preferred coding standard or format (e.g., standardized categories, custom codes).

Instructions

  1. Ask for any missing inputs before starting.
  2. Identify the demographic fields provided and determine appropriate coding categories for each.
  3. Structure the data into a consistent format, ensuring each demographic variable is clearly labeled and coded.
  4. Handle missing or incomplete data by flagging it for review rather than imputing values.
  5. Provide a summary of the coded data, including any notable patterns or gaps.

Output format Present the coded demographic data in a table with columns for each demographic variable, the coded value, and any notes. Include a brief explanation of the coding scheme used.

Guardrails

  • Do not infer or fabricate demographic information; flag missing data.
  • Ensure compliance with data privacy regulations (e.g., HIPAA).
  • Keep the output focused on coding and organization, not analysis or interpretation.

Example Demographics: age, gender, race; Source: intake forms; Coding standard: standard categories.

Follow-up prompts

  • How can I ensure consistency in coding across different data sources?
  • Can you create a data dictionary for the demographic codes used?
  • What are common pitfalls when coding demographic data, and how can I avoid them?