Qualitative coding framework builder for interview data
Views
896
Copies
161
Likes
134
Comments
0
Copy rate
18.0%
Prompt
You are a qualitative research methodologist specializing in grounded theory and thematic analysis. I have completed [num_interviews] semi-structured interviews on the topic of [research_topic] and need to develop a rigorous coding framework.
Provide:
1. A complete initial codebook with hierarchical codes (themes → sub-themes → codes)
2. Operational definitions for each code with inclusion/exclusion criteria
3. Example quotes that would and would not fit each code
4. A recommended coding process (first cycle, second cycle, and theoretical coding)
5. Inter-rater reliability protocol
6. Tips for managing reflexivity and bias during codingCustomise this prompt
Fill in 2 variables to personalise this prompt
Preview
You are a qualitative research methodologist specializing in grounded theory and thematic analysis. I have completed [num_interviews] semi-structured interviews on the topic of [research_topic] and need to develop a rigorous coding framework.
Provide:
1. A complete initial codebook with hierarchical codes (themes → sub-themes → codes)
2. Operational definitions for each code with inclusion/exclusion criteria
3. Example quotes that would and would not fit each code
4. A recommended coding process (first cycle, second cycle, and theoretical coding)
5. Inter-rater reliability protocol
6. Tips for managing reflexivity and bias during coding
Example output
# Qualitative Coding Framework: Physician Burnout and Coping
**Topic:** Physician experiences of burnout and coping mechanisms during and after the COVID-19 pandemic
**Data:** 24 semi-structured interviews (12 emergency medicine, 6 ICU, 6 primary care)
**Approach:** Reflexive thematic analysis (Braun & Clarke, 2019) with elements of constructivist grounded theory
---
## 1. Hierarchical Codebook
### Theme 1: MORAL DISTRESS
*Definition:* Experiences where physicians knew the ethically correct action but felt constrained from taking it.
#### Sub-theme 1.1: Resource Allocation Anguish
| Code | Definition | Inclusion | Exclusion |
|------|-----------|-----------|-----------|
| 1.1.1 Triage guilt | Emotional burden of deciding which patients receive scarce resources | References to ventilator allocation, bed prioritization, rationing decisions | General stress about workload without ethical dimension |
| 1.1.2 Perceived futility | Feeling that treatment was pointless but continuing due to protocol | "We kept coding patients we knew wouldn't survive" | Legitimate medical uncertainty about prognosis |
| 1.1.3 Family exclusion distress | Distress from enforcing visitor restrictions | "The hardest part was telling families they couldn't be there when their loved one died" | Administrative frustration with visitor policies without emotional component |
**Example quote (1.1.1):** *"I had three patients who all needed the last ventilator. I chose based on the protocol, but I still think about the two I didn't choose. That's not a decision a human should have to make at 3 AM."*
**Non-example:** *"We were really busy that night and I had too many patients."* (This is workload stress, not moral distress — code under Theme 2.)
#### Sub-theme 1.2: Institutional Betrayal
| Code | Definition | Inclusion | Exclusion |
|------|-----------|-----------|-----------|
| 1.2.1 PPE inadequacy anger | Anger or resentment toward institutions for insufficient protective equipment | References to reusing masks, improvising protection, feeling unsafe | Neutral mentions of PPE protocols without emotional valence |
| 1.2.2 Policy dissonance | Perception that institutional policies contradicted clinical reality | "Administration kept saying we were fine while we were drowning" | Disagreement with specific clinical guidelines based on evidence |
| 1.2.3 Expendability perception | Feeling treated as replaceable by the healthcare system | "We were called heroes but treated like disposable supplies" | General job dissatisfaction unrelated to pandemic context |
### Theme 2: CHRONIC DEPLETION
*Definition:* Progressive exhaustion of emotional, physical, and cognitive resources over time.
#### Sub-theme 2.1: Emotional Exhaustion
| Code | Definition | Inclusion | Exclusion |
|------|-----------|-----------|-----------|
| 2.1.1 Compassion erosion | Diminished capacity for empathy toward patients over time | "I stopped feeling anything when patients died. I just... moved on to the next one" | Appropriate emotional regulation or clinical detachment as a skill |
| 2.1.2 Numbness/depersonalization | Emotional flattening or disconnection from self | Descriptions of going through motions, feeling robotic, dissociation | Intentional mindfulness or present-moment focus |
| 2.1.3 Anticipatory dread | Anxiety about upcoming shifts before they begin | "Sunday nights I would get a pit in my stomach thinking about Monday" | Normal pre-shift preparation or planning |
#### Sub-theme 2.2: Cognitive Depletion
| Code | Definition | Inclusion | Exclusion |
|------|-----------|-----------|-----------|
| 2.2.1 Decision fatigue | Perceived decline in decision-making quality due to volume/intensity | "By hour 14, I wasn't making good choices anymore and I knew it" | Learning curves or lack of experience |
| 2.2.2 Hypervigilance spillover | Inability to stop scanning for threats outside of work | "I was assessing everyone in the grocery store for COVID symptoms" | Reasonable public health awareness |
#### Sub-theme 2.3: Physical Manifestation
| Code | Definition | Inclusion | Exclusion |
|------|-----------|-----------|-----------|
| 2.3.1 Somatic symptoms | Physical health problems attributed to work stress | Insomnia, headaches, GI issues, weight changes linked to work | Pre-existing conditions unrelated to burnout |
| 2.3.2 Substance use escalation | Increased alcohol/substance use as a coping response | "I went from a glass of wine to a bottle most nights" | Stable, moderate consumption without change |
### Theme 3: COPING MECHANISMS
*Definition:* Strategies — adaptive and maladaptive — used to manage burnout and distress.
#### Sub-theme 3.1: Adaptive Coping
| Code | Definition | Inclusion | Exclusion |
|------|-----------|-----------|-----------|
| 3.1.1 Peer bonding/dark humor | Finding relief through shared experience with colleagues | "We laughed about the most horrible things, and it kept us sane" | Professional consultation about cases without emotional coping function |
| 3.1.2 Meaning-making | Reframing experiences to find purpose or growth | "It made me a better doctor. I know what I can survive now" | Toxic positivity imposed by others ("at least you had a job") |
| 3.1.3 Boundary setting | Actively creating separation between work and personal life | "I started changing clothes in the garage and showering before I touched my kids" | Avoidance of all work-related thinking (code under 3.2) |
| 3.1.4 Professional help-seeking | Engaging with therapy, counseling, or peer support programs | Any mention of seeking mental health support | Informal venting without intentional therapeutic goal |
#### Sub-theme 3.2: Maladaptive Coping
| Code | Definition | Inclusion | Exclusion |
|------|-----------|-----------|-----------|
| 3.2.1 Avoidance/withdrawal | Retreating from relationships, responsibilities, or emotions | "I stopped returning calls from friends. I just couldn't" | Healthy alone time or introversion |
| 3.2.2 Workaholism | Using more work to avoid processing burnout | "I picked up extra shifts because at least at work I knew what to do" | Genuine financial need for overtime |
| 3.2.3 Cynicism as defense | Adopting a hostile or dismissive attitude toward work, patients, or the system | "I started saying 'they're all going to die anyway' and meaning it" | Realistic assessment of poor prognosis |
### Theme 4: RECOVERY AND TRANSFORMATION
*Definition:* Processes of healing, career reassessment, and identity reconstruction post-crisis.
#### Sub-theme 4.1: Career Reassessment
| Code | Definition |
|------|-----------|
| 4.1.1 Exit ideation | Thoughts of leaving medicine |
| 4.1.2 Specialty migration | Shifting to less acute specialties or roles |
| 4.1.3 Renewed commitment | Deepened dedication to medicine after processing trauma |
#### Sub-theme 4.2: Identity Reconstruction
| Code | Definition |
|------|-----------|
| 4.2.1 Post-traumatic growth | Positive psychological change resulting from struggle |
| 4.2.2 Values clarification | Sharpened understanding of personal and professional values |
| 4.2.3 Activist identity | Channeling burnout into advocacy for systemic change |
---
## 2. Recommended Coding Process
### First Cycle: Open/Initial Coding
- Read all 24 transcripts without coding (familiarization)
- Code transcript-by-transcript using descriptive and in vivo codes
- Code everything that relates to burnout, coping, or professional identity — over-code rather than under-code
- Use gerunds (e.g., "struggling with guilt" not "guilt") to capture processes
- Write memos after each transcript: What surprised you? What patterns are emerging? What contradicts your expectations?
### Second Cycle: Focused/Axial Coding
- Consolidate first-cycle codes into the framework above
- Look for: relationships between codes, conditions that trigger codes, consequences of coded experiences
- Compare across participant groups (EM vs. ICU vs. primary care)
- Identify deviant cases — participants whose experience contradicts emerging patterns
### Theoretical Coding
- Develop a conceptual model linking themes
- Hypothesized relationship: Moral Distress → Chronic Depletion → Coping Mechanism selection → Recovery trajectory
- Test whether this sequence holds across participants or whether alternative pathways exist
---
## 3. Inter-Rater Reliability Protocol
1. **Training session** (2 hours): Review codebook together, discuss edge cases, code 2 practice transcripts collaboratively
2. **Independent coding round 1:** Both coders code the same 3 transcripts (12.5% of data) independently
3. **Calculate Cohen's kappa:** Target κ ≥ 0.80 for each theme
4. **Reconciliation meeting:** Discuss all disagreements, refine code definitions
5. **Independent coding round 2:** 3 new transcripts. If κ ≥ 0.80, divide remaining transcripts. If not, repeat training.
6. **Ongoing calibration:** Meet after every 5 transcripts to discuss emerging codes and prevent drift
---
## 4. Reflexivity Management
- **Bracketing journal:** Before coding begins, write a 1-page statement of your preconceptions about physician burnout. Revisit monthly.
- **Peer debriefing:** Schedule biweekly sessions with a colleague outside the study to challenge your interpretations.
- **Negative case analysis:** Actively seek participants who do not fit your emerging framework. If 22 of 24 participants describe moral distress, spend extra time understanding the 2 who do not.
- **Audit trail:** Document every coding decision, merge, split, and revision. This is both a validity measure and a transparency practice.
- **Positionality statement:** If you are a physician yourself, your insider knowledge is a strength (you understand the context) and a risk (you may project your experience onto participants). Name this explicitly in your methods section.