-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathseed-methodologies.ts
More file actions
695 lines (686 loc) · 27.1 KB
/
seed-methodologies.ts
File metadata and controls
695 lines (686 loc) · 27.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
/**
* Seed built-in literature review methodologies with phases and expected outputs.
*/
import { db } from '.';
import { reviewMethodologies, methodologyPhases } from './schema';
import { sql } from 'drizzle-orm';
interface MethodologySeed {
name: string;
description: string;
type: string;
domain: string;
phases: {
name: string;
description: string;
expectedOutputs: string[];
}[];
}
const METHODOLOGIES: MethodologySeed[] = [
// ── Systematic Reviews ──────────────────────────────────────────
{
name: 'PRISMA',
description:
'Preferred Reporting Items for Systematic Reviews and Meta-Analyses. The most widely used guideline for conducting and reporting systematic reviews, providing a 27-item checklist and a four-phase flow diagram.',
type: 'systematic',
domain: 'general',
phases: [
{
name: 'Protocol Development',
description: 'Define research questions, eligibility criteria, search strategy, and analysis plan. Register the protocol if possible.',
expectedOutputs: ['protocol_document', 'search_strategy_log']
},
{
name: 'Identification',
description: 'Search databases (ACM, IEEE, Springer, Elsevier, etc.), registers, and other sources. Record the number of records identified from each source.',
expectedOutputs: ['search_strategy_log', 'bibliometric_analysis']
},
{
name: 'Screening',
description: 'Screen titles and abstracts against eligibility criteria. Remove duplicates. Record reasons for exclusion.',
expectedOutputs: ['prisma_flow_diagram', 'inclusion_exclusion_table']
},
{
name: 'Eligibility',
description: 'Retrieve and assess full-text articles for eligibility. Record exclusion reasons for each full-text article excluded.',
expectedOutputs: ['inclusion_exclusion_table', 'prisma_flow_diagram']
},
{
name: 'Quality Assessment',
description: 'Assess the risk of bias and methodological quality of each included study using appropriate tools.',
expectedOutputs: ['risk_of_bias_table', 'quality_appraisal_table', 'study_characteristics_table']
},
{
name: 'Data Extraction',
description: 'Extract relevant data from each included study into a structured matrix.',
expectedOutputs: ['data_extraction_matrix', 'coding_framework']
},
{
name: 'Synthesis',
description: 'Synthesize findings narratively and/or quantitatively. Assess certainty of evidence.',
expectedOutputs: ['narrative_summary', 'thematic_synthesis', 'forest_plot_data', 'funnel_plot_data', 'grade_evidence_table']
},
{
name: 'Reporting',
description: 'Compile the final review report following the PRISMA checklist. Generate flow diagram with final counts.',
expectedOutputs: ['prisma_flow_diagram', 'summary_of_findings', 'gap_map', 'annotated_bibliography']
}
]
},
{
name: 'PRISMA-ScR',
description:
'PRISMA Extension for Scoping Reviews. Adapted from PRISMA for scoping reviews that map the existing literature on a topic rather than answer a specific clinical question.',
type: 'scoping',
domain: 'general',
phases: [
{
name: 'Protocol Development',
description: 'Define the research question using PCC (Population, Concept, Context) framework. Outline inclusion criteria and search strategy.',
expectedOutputs: ['protocol_document']
},
{
name: 'Identification',
description: 'Conduct comprehensive searches across relevant databases and grey literature sources.',
expectedOutputs: ['search_strategy_log', 'bibliometric_analysis']
},
{
name: 'Screening',
description: 'Screen titles/abstracts, then full texts against inclusion criteria.',
expectedOutputs: ['prisma_flow_diagram', 'inclusion_exclusion_table']
},
{
name: 'Charting the Data',
description: 'Extract and chart key information from included sources using a data charting form.',
expectedOutputs: ['data_extraction_matrix', 'systematic_map_table']
},
{
name: 'Collating & Summarizing',
description: 'Summarize and report results. Identify gaps and implications for future research.',
expectedOutputs: ['narrative_summary', 'gap_map', 'thematic_synthesis']
}
]
},
{
name: 'Cochrane Framework',
description:
'The gold standard for systematic reviews in healthcare. Provides rigorous methodology for identifying, appraising, and synthesizing research evidence to inform clinical decisions.',
type: 'systematic',
domain: 'health',
phases: [
{
name: 'Define the Question',
description: 'Formulate a clear, answerable review question using PICO format.',
expectedOutputs: ['protocol_document']
},
{
name: 'Develop Protocol',
description: 'Write a detailed protocol specifying objectives, methods, and criteria. Register on PROSPERO.',
expectedOutputs: ['protocol_document', 'search_strategy_log']
},
{
name: 'Search for Studies',
description: 'Conduct comprehensive, reproducible searches across multiple databases (MEDLINE, CENTRAL, Embase, etc.).',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Select Studies',
description: 'Apply inclusion/exclusion criteria. Two reviewers independently screen titles, abstracts, and full texts.',
expectedOutputs: ['prisma_flow_diagram', 'inclusion_exclusion_table']
},
{
name: 'Assess Risk of Bias',
description: 'Use the Cochrane Risk of Bias tool (RoB 2) to assess each included study across bias domains.',
expectedOutputs: ['risk_of_bias_table', 'study_characteristics_table']
},
{
name: 'Extract Data',
description: 'Extract data systematically using pre-defined forms. Verify extraction accuracy.',
expectedOutputs: ['data_extraction_matrix']
},
{
name: 'Analyse & Synthesize',
description: 'Perform meta-analysis where appropriate. Assess heterogeneity. Use GRADE to rate certainty of evidence.',
expectedOutputs: ['forest_plot_data', 'funnel_plot_data', 'narrative_summary', 'grade_evidence_table']
},
{
name: 'Report & Interpret',
description: 'Write the review following Cochrane reporting standards. Present summary of findings table.',
expectedOutputs: ['summary_of_findings', 'prisma_flow_diagram', 'annotated_bibliography']
}
]
},
{
name: 'Kitchenham SLR Guidelines',
description:
'Barbara Kitchenham\'s guidelines for performing systematic literature reviews in software engineering. The most cited SLR methodology in the SE community.',
type: 'systematic',
domain: 'software_engineering',
phases: [
{
name: 'Planning',
description: 'Identify the need for a review. Define research questions, search strategy, selection criteria, quality assessment criteria, and data extraction strategy.',
expectedOutputs: ['protocol_document']
},
{
name: 'Search',
description: 'Search digital libraries (ACM DL, IEEE Xplore, Springer, ScienceDirect, Wiley Online). Perform snowball sampling from reference lists.',
expectedOutputs: ['search_strategy_log', 'bibliometric_analysis']
},
{
name: 'Selection',
description: 'Apply inclusion/exclusion criteria to search results. Resolve disagreements between reviewers.',
expectedOutputs: ['inclusion_exclusion_table', 'prisma_flow_diagram']
},
{
name: 'Quality Assessment',
description: 'Evaluate each study against quality criteria. Score studies and decide on inclusion threshold.',
expectedOutputs: ['quality_appraisal_table', 'study_characteristics_table']
},
{
name: 'Data Extraction',
description: 'Design data extraction forms. Extract data from each included study. Pilot test the extraction process.',
expectedOutputs: ['data_extraction_matrix', 'systematic_map_table']
},
{
name: 'Data Synthesis',
description: 'Synthesize extracted data using narrative synthesis, meta-analysis, or both. Identify patterns and trends.',
expectedOutputs: ['narrative_summary', 'gap_map', 'bibliometric_analysis', 'thematic_synthesis']
},
{
name: 'Reporting',
description: 'Write the systematic review report. Include all details needed for replication.',
expectedOutputs: ['annotated_bibliography', 'summary_of_findings']
}
]
},
// ── Scoping Reviews ─────────────────────────────────────────────
{
name: 'Arksey & O\'Malley Framework',
description:
'The foundational scoping review framework (2005). Five-stage methodology for mapping a broad topic area to identify key concepts, gaps, and types of evidence.',
type: 'scoping',
domain: 'social_sciences',
phases: [
{
name: 'Identify the Research Question',
description: 'Define a broad research question. Consider population, concept, and context.',
expectedOutputs: ['protocol_document']
},
{
name: 'Identify Relevant Studies',
description: 'Develop a comprehensive search strategy. Search multiple sources including grey literature.',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Study Selection',
description: 'Iteratively refine selection criteria. Screen studies for relevance.',
expectedOutputs: ['inclusion_exclusion_table', 'prisma_flow_diagram']
},
{
name: 'Chart the Data',
description: 'Extract and sort data according to key themes and issues. Use a charting form.',
expectedOutputs: ['data_extraction_matrix', 'systematic_map_table']
},
{
name: 'Collate, Summarize & Report',
description: 'Present an overview of all material reviewed. Provide a narrative account. Identify implications.',
expectedOutputs: ['narrative_summary', 'thematic_synthesis', 'gap_map']
}
]
},
{
name: 'JBI Scoping Review Framework',
description:
'Joanna Briggs Institute methodology for scoping reviews. Provides rigorous, transparent methods for mapping evidence on a topic. Builds on Arksey & O\'Malley with enhanced guidance.',
type: 'scoping',
domain: 'health',
phases: [
{
name: 'Define Objectives & Question',
description: 'Develop objectives and review question using PCC (Population, Concept, Context) elements.',
expectedOutputs: ['protocol_document']
},
{
name: 'Develop Inclusion Criteria',
description: 'Define eligibility criteria aligned with the review question. Consider types of participants, concept, context, and sources.',
expectedOutputs: ['protocol_document']
},
{
name: 'Search Strategy',
description: 'Three-step search: initial limited search, analysis of text words, comprehensive search across all databases.',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Source Selection',
description: 'Two-stage screening (title/abstract then full text). Use at least two reviewers.',
expectedOutputs: ['prisma_flow_diagram', 'inclusion_exclusion_table']
},
{
name: 'Data Extraction',
description: 'Extract data using JBI data extraction instrument. Pilot test and refine.',
expectedOutputs: ['data_extraction_matrix']
},
{
name: 'Presentation of Results',
description: 'Map results in tabular and/or diagrammatic format. Provide narrative summary aligned with objectives.',
expectedOutputs: ['systematic_map_table', 'narrative_summary', 'gap_map']
}
]
},
// ── Question Frameworks ─────────────────────────────────────────
{
name: 'PICO / PICOS / PICOT',
description:
'Population, Intervention, Comparison, Outcome (+ Study design / + Timeframe). The standard framework for formulating clinical and research questions in evidence-based practice.',
type: 'systematic',
domain: 'health',
phases: [
{
name: 'Define PICO Elements',
description: 'Identify the Population, Intervention, Comparison, and Outcome. Optionally define Study design (S) or Timeframe (T).',
expectedOutputs: ['protocol_document']
},
{
name: 'Develop Search Strategy',
description: 'Translate PICO elements into search terms. Build Boolean queries for each database.',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Search & Screen',
description: 'Execute searches and screen results against PICO-derived eligibility criteria.',
expectedOutputs: ['inclusion_exclusion_table', 'prisma_flow_diagram']
},
{
name: 'Appraise & Extract',
description: 'Critically appraise included studies. Extract data organized by PICO elements.',
expectedOutputs: ['quality_appraisal_table', 'data_extraction_matrix']
},
{
name: 'Synthesize',
description: 'Synthesize findings organized by outcome. Assess strength of evidence.',
expectedOutputs: ['narrative_summary', 'summary_of_findings', 'grade_evidence_table']
}
]
},
{
name: 'SPIDER',
description:
'Sample, Phenomenon of Interest, Design, Evaluation, Research type. An alternative to PICO designed for qualitative and mixed-methods research questions.',
type: 'qualitative',
domain: 'general',
phases: [
{
name: 'Define SPIDER Elements',
description: 'Identify: Sample (who), Phenomenon of Interest (what), Design (how), Evaluation (outcomes), Research type (qual/quant/mixed).',
expectedOutputs: ['protocol_document']
},
{
name: 'Search Strategy',
description: 'Build searches using SPIDER elements. Focus on qualitative databases and sources.',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Selection & Appraisal',
description: 'Screen and select studies. Appraise qualitative rigour using appropriate tools (e.g., CASP).',
expectedOutputs: ['inclusion_exclusion_table', 'quality_appraisal_table']
},
{
name: 'Synthesis',
description: 'Synthesize qualitative findings thematically. Develop a conceptual framework.',
expectedOutputs: ['thematic_synthesis', 'conceptual_framework', 'narrative_summary']
}
]
},
// ── Qualitative Synthesis ───────────────────────────────────────
{
name: 'ENTREQ',
description:
'Enhancing Transparency in Reporting the Synthesis of Qualitative Research. A 21-item framework for transparently reporting qualitative evidence syntheses.',
type: 'qualitative',
domain: 'health',
phases: [
{
name: 'Introduction & Question',
description: 'State the review question and rationale. Describe the synthesis methodology chosen.',
expectedOutputs: ['protocol_document']
},
{
name: 'Search & Selection',
description: 'Detail the search strategy, databases, and selection process.',
expectedOutputs: ['search_strategy_log', 'inclusion_exclusion_table']
},
{
name: 'Appraisal',
description: 'Describe the quality appraisal method, criteria, and how results influenced synthesis.',
expectedOutputs: ['quality_appraisal_table']
},
{
name: 'Synthesis Methodology',
description: 'Describe the synthesis approach (thematic, framework, meta-ethnography, etc.). Develop coding framework.',
expectedOutputs: ['coding_framework', 'thematic_synthesis']
},
{
name: 'Results & Reporting',
description: 'Present synthesized findings with supporting evidence. Report confidence in findings.',
expectedOutputs: ['narrative_summary', 'conceptual_framework']
}
]
},
{
name: 'Meta-ethnography (Noblit & Hare)',
description:
'A seven-phase interpretive approach to synthesizing qualitative studies. Goes beyond aggregation to create new interpretations through translation of concepts across studies.',
type: 'qualitative',
domain: 'social_sciences',
phases: [
{
name: 'Getting Started',
description: 'Identify an intellectual interest and area to synthesize.',
expectedOutputs: ['protocol_document']
},
{
name: 'Deciding What Is Relevant',
description: 'Define focus and locate relevant studies through systematic searching.',
expectedOutputs: ['search_strategy_log', 'inclusion_exclusion_table']
},
{
name: 'Reading the Studies',
description: 'Read studies repeatedly. Note interpretive metaphors, themes, and concepts.',
expectedOutputs: ['data_extraction_matrix']
},
{
name: 'Determining How Studies Are Related',
description: 'Create a list of key metaphors/themes from each study. Juxtapose them to identify relationships.',
expectedOutputs: ['coding_framework']
},
{
name: 'Translating Studies Into One Another',
description: 'Compare concepts across studies: reciprocal translation (similar), refutational (contradictory), or line-of-argument.',
expectedOutputs: ['thematic_synthesis']
},
{
name: 'Synthesizing Translations',
description: 'Develop a line-of-argument synthesis — a new overarching interpretation that goes beyond individual studies.',
expectedOutputs: ['conceptual_framework', 'narrative_summary']
},
{
name: 'Expressing the Synthesis',
description: 'Present the synthesis in an appropriate form for the intended audience.',
expectedOutputs: ['narrative_summary', 'annotated_bibliography']
}
]
},
// ── Evidence Quality & Appraisal ────────────────────────────────
{
name: 'GRADE',
description:
'Grading of Recommendations, Assessment, Development and Evaluations. Rates the certainty of evidence for each outcome across studies from high to very low.',
type: 'systematic',
domain: 'health',
phases: [
{
name: 'Frame the Question',
description: 'Define the health question with population, intervention, comparator, and outcomes.',
expectedOutputs: ['protocol_document']
},
{
name: 'Identify Evidence',
description: 'Conduct a systematic search and select studies for each outcome.',
expectedOutputs: ['search_strategy_log', 'inclusion_exclusion_table']
},
{
name: 'Assess Study Quality',
description: 'Evaluate risk of bias, inconsistency, indirectness, imprecision, and publication bias for each outcome.',
expectedOutputs: ['risk_of_bias_table', 'quality_appraisal_table']
},
{
name: 'Rate Certainty',
description: 'Assign GRADE rating (High/Moderate/Low/Very Low) per outcome. Create evidence profile.',
expectedOutputs: ['grade_evidence_table', 'summary_of_findings']
}
]
},
{
name: 'CASP',
description:
'Critical Appraisal Skills Programme. Provides checklists for appraising different study designs (RCTs, qualitative, cohort, case-control, etc.).',
type: 'systematic',
domain: 'health',
phases: [
{
name: 'Select Checklist',
description: 'Choose the appropriate CASP checklist based on study designs in your review.',
expectedOutputs: ['protocol_document']
},
{
name: 'Apply Checklist',
description: 'For each included study, answer the CASP questions. Score validity, results, and applicability.',
expectedOutputs: ['quality_appraisal_table']
},
{
name: 'Summarize Quality',
description: 'Tabulate quality scores. Decide on inclusion threshold. Report quality assessment.',
expectedOutputs: ['quality_appraisal_table', 'study_characteristics_table']
}
]
},
{
name: 'Newcastle-Ottawa Scale',
description:
'A tool for assessing quality of non-randomized studies (cohort and case-control) in systematic reviews. Evaluates selection, comparability, and outcome/exposure.',
type: 'systematic',
domain: 'health',
phases: [
{
name: 'Identify Study Design',
description: 'Determine whether each study is cohort or case-control. Select appropriate NOS form.',
expectedOutputs: ['study_characteristics_table']
},
{
name: 'Assess Selection',
description: 'Evaluate representativeness, selection of controls, ascertainment of exposure.',
expectedOutputs: ['quality_appraisal_table']
},
{
name: 'Assess Comparability',
description: 'Evaluate whether studies control for confounders.',
expectedOutputs: ['quality_appraisal_table']
},
{
name: 'Assess Outcome/Exposure',
description: 'Evaluate outcome assessment, follow-up duration and adequacy.',
expectedOutputs: ['quality_appraisal_table', 'risk_of_bias_table']
}
]
},
{
name: 'SANRA',
description:
'Scale for the Assessment of Narrative Review Articles. A six-item tool for evaluating the quality of narrative (non-systematic) reviews.',
type: 'rapid',
domain: 'general',
phases: [
{
name: 'Justify the Article\'s Importance',
description: 'Assess whether the review justifies why the topic is important.',
expectedOutputs: ['protocol_document']
},
{
name: 'Define Aims',
description: 'Evaluate clarity of the review\'s stated aims or research questions.',
expectedOutputs: ['protocol_document']
},
{
name: 'Evaluate Literature Search',
description: 'Assess the description of the literature search strategy.',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Evaluate Referencing & Presentation',
description: 'Assess appropriate referencing, scientific reasoning, and presentation of data.',
expectedOutputs: ['quality_appraisal_table', 'narrative_summary']
}
]
},
// ── Integrative & Mixed Methods ─────────────────────────────────
{
name: 'Whittemore & Knafl Framework',
description:
'An integrative review methodology that allows inclusion of diverse research designs (experimental and non-experimental). Five-stage process: problem identification, literature search, data evaluation, data analysis, and presentation.',
type: 'mixed',
domain: 'health',
phases: [
{
name: 'Problem Identification',
description: 'Clearly identify the problem and purpose. Define variables and concepts of interest.',
expectedOutputs: ['protocol_document']
},
{
name: 'Literature Search',
description: 'Conduct a comprehensive search. Document search strategy including databases and terms.',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Data Evaluation',
description: 'Evaluate quality of primary sources. Use different criteria for different study designs.',
expectedOutputs: ['quality_appraisal_table', 'inclusion_exclusion_table']
},
{
name: 'Data Analysis',
description: 'Reduce data, display data, compare data across sources, draw conclusions and verify.',
expectedOutputs: ['data_extraction_matrix', 'thematic_synthesis', 'coding_framework']
},
{
name: 'Presentation',
description: 'Synthesize and present findings. Identify gaps and directions for future research.',
expectedOutputs: ['narrative_summary', 'gap_map', 'conceptual_framework']
}
]
},
{
name: 'PROSPERO',
description:
'International Prospective Register of Systematic Reviews. Not a methodology per se, but a protocol registration process that ensures transparency and reduces duplication.',
type: 'systematic',
domain: 'health',
phases: [
{
name: 'Draft Protocol',
description: 'Write the review protocol including: title, research question, search strategy, eligibility criteria, outcomes, risk of bias approach, and synthesis plan.',
expectedOutputs: ['protocol_document']
},
{
name: 'Register on PROSPERO',
description: 'Submit the protocol to PROSPERO. The registration record becomes public and citable.',
expectedOutputs: ['protocol_document']
},
{
name: 'Conduct & Update',
description: 'Conduct the review following the registered protocol. Update the registration when the review is complete.',
expectedOutputs: ['search_strategy_log', 'narrative_summary']
}
]
},
// ── Software Engineering ────────────────────────────────────────
{
name: 'SLURP',
description:
'Systematic Literature Update and Review Protocol. A lightweight SLR process for software engineering that emphasizes reproducibility and practical applicability.',
type: 'systematic',
domain: 'software_engineering',
phases: [
{
name: 'Define Scope',
description: 'Define research questions and scope. Establish search and selection criteria.',
expectedOutputs: ['protocol_document']
},
{
name: 'Search',
description: 'Search digital libraries. Document queries and results per database.',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Select',
description: 'Apply inclusion/exclusion criteria. Log decisions for each study.',
expectedOutputs: ['inclusion_exclusion_table', 'prisma_flow_diagram']
},
{
name: 'Assess Quality',
description: 'Apply quality checklist criteria to each included study.',
expectedOutputs: ['quality_appraisal_table']
},
{
name: 'Extract & Synthesize',
description: 'Extract data into matrix. Synthesize findings.',
expectedOutputs: ['data_extraction_matrix', 'narrative_summary', 'systematic_map_table']
}
]
},
{
name: 'Mapping Studies',
description:
'Systematic mapping studies (also called scoping studies in SE) provide a broad overview of a research area by classifying and counting studies. Focused on categorization rather than synthesis.',
type: 'mapping',
domain: 'software_engineering',
phases: [
{
name: 'Define Research Questions',
description: 'Define broad RQs aimed at classification and mapping (e.g., "What topics are covered?", "What research methods are used?").',
expectedOutputs: ['protocol_document']
},
{
name: 'Search',
description: 'Search relevant digital libraries and venues.',
expectedOutputs: ['search_strategy_log']
},
{
name: 'Screening',
description: 'Apply inclusion/exclusion criteria based on relevance to the map scope.',
expectedOutputs: ['inclusion_exclusion_table']
},
{
name: 'Classification',
description: 'Classify studies using a classification scheme (by topic, method, venue, year, etc.).',
expectedOutputs: ['systematic_map_table', 'coding_framework']
},
{
name: 'Mapping & Visualization',
description: 'Create visual maps: bubble charts, heat maps, or frequency tables showing research landscape.',
expectedOutputs: ['systematic_map_table', 'bibliometric_analysis', 'gap_map', 'narrative_summary']
}
]
}
];
export async function seedMethodologies(): Promise<{ inserted: number; total: number }> {
// Check if already seeded
const existing = await db.select({ id: reviewMethodologies.id }).from(reviewMethodologies).limit(1);
if (existing.length > 0) {
return { inserted: 0, total: METHODOLOGIES.length };
}
let inserted = 0;
for (const method of METHODOLOGIES) {
const [m] = await db
.insert(reviewMethodologies)
.values({
name: method.name,
description: method.description,
type: method.type,
domain: method.domain,
isBuiltIn: true
})
.returning({ id: reviewMethodologies.id });
for (let i = 0; i < method.phases.length; i++) {
const phase = method.phases[i];
await db.insert(methodologyPhases).values({
methodologyId: m.id,
name: phase.name,
description: phase.description,
position: i,
expectedOutputs: JSON.stringify(phase.expectedOutputs)
});
}
inserted++;
}
console.log(`[seed] Inserted ${inserted} built-in review methodologies`);
return { inserted, total: METHODOLOGIES.length };
}