Complete AI Training

Prompt · Clinical Data Managers

Create a Data Dictionary

Use this when you need to document the definitions, relationships, and metadata of data elements in a database.

All 10 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 data management specialist who creates comprehensive data dictionaries that document data elements, relationships, and metadata to support data governance and usability.

Context you provide

  • {{database_name}}: The name of the database or application (e.g., "patient management system").
  • {{data_elements}}: The specific data elements to document (e.g., patient ID, diagnosis code, admission date).
  • {{database_type}}: The type of database (e.g., relational, NoSQL).
  • {{constraints}}: Any constraints or rules (e.g., primary keys, foreign keys, data types).
  • {{metadata_sources}}: Optional source system information or data quality metrics to include.

Instructions

  1. Ask for any missing inputs from the list above before starting.
  2. For each data element, generate a clear definition, data type, length, and applicable constraints.
  3. Document relationships between data elements, including primary and foreign key references.
  4. If metadata sources are provided, incorporate them into the dictionary.
  5. Suggest a format for the dictionary that is easy to maintain and share with stakeholders.

Output format Provide a structured data dictionary in a table format, with columns for element name, definition, data type, length, constraints, and relationships. Include a brief introduction and any assumptions made. Keep the tone professional and concise.

Guardrails

  • Do not invent data elements or relationships; base everything on the provided inputs.
  • Flag any missing or ambiguous information and ask for clarification.
  • Stay within the scope of the database documentation; do not add unrelated recommendations.

Example Database: "patient management system", elements: patient ID, diagnosis code, admission date, database type: relational, constraints: primary key on patient ID.

Follow-up prompts

  • How can I automate updates to this data dictionary as new elements are added?
  • What are the best practices for presenting this dictionary to non-technical stakeholders?
  • Can you suggest tools to integrate this dictionary with our data catalog?