NREHub

MedCORE Production Map

Restructured Sep 11 2026. Scripts live in Scripts/, all read/write paths wired to this tree.

444 words ~2 min

MedCORE Production Map

Restructured Sep 11 2026. Scripts live in Scripts/, all read/write paths wired to this tree.

Layout

Folder Contents
Docs/ Design spec, editorial style guide, generator guide, evidence policy, source index, progress logs, production maps, rendering comparison
Source JSON/ Lessons/ (91 topic lesson JSONs) · MCQ Sets/ (76 practice-set JSONs, incl. 2 mocks) · Premium/ (249 premium topic JSONs, 35 subcategories)
Lesson DOCX/ 91 styled lesson DOCX (Day 01–90 + extras)
MCQ DOCX/ Unsolved/ (76) · Answers/ (76)
Compilations/ 13 subject compilation books (DOCX + PDF, plus 1 .pages)
Premium/ Finished premium DOCX (Endocrinology, Medicine color sample) + future premium series folders
Master HTML/ Master study book build + Netlify deploy zip
QA Audit/ Render QA reconciliation report + batch render summary. Future render QA output goes to QA Audit/Render QA/
Scripts/ All generators and builders (see below)

Pipeline

Source JSON/Lessons ──► node Scripts/build_master_html.js ──► Master HTML/MedCORE Master Book.html
Source JSON/MCQ Sets ─┘          (or copy to Desktop / re-zip for Netlify)

Source JSON/Lessons ──► Scripts/generate_mcq_docx.js ──► Lesson DOCX / MCQ DOCX
Source JSON/MCQ  Sets ─┘        (template at ../Scripts/MedCORE Lesson/template.js)

Source JSON/Lessons ──► Scripts/generate_subject_compilations.js ──► Compilations
Source JSON/Premium ──► Scripts/generate_premium_docx.js ──► Premium
Scripts/build_mcq_qa_docx.py ──► QA Audit/MCQ Render QA Reconciliation.docx
Scripts/batch_render_mcq_qa.py ──► QA Audit/Render QA/ (need codex runtime to render)
Scripts/build_bridge_mcq_sets.py ──► derives index/repair MCQ sets into Source JSON/MCQ Sets

Scripts

Script What it does
build_master_html.js Builds the single-file master study book (15 parts, 95 chapters, embedded interactive MCQ sets, search). Run: node Scripts/build_master_html.js
build_mcq_qa_docx.py MCQ render QA reconciliation report → QA Audit/
batch_render_mcq_qa.py Batch render MCQ DOCX → PDF/PNG QA packages (requires codex runtime deps)
build_bridge_mcq_sets.py Builds the review/index/repair MCQ set bridges
generate_mcq_docx.js MCQ JSON → unsolved/answer DOCX (<input.json> <output.docx> <unsolved|answer>)
generate_subject_compilations.js Lessons → subject compilation books
generate_premium_docx.js Premium topic JSONs → premium DOCX series
generate_color_swatch.js Theme color swatch reference DOCX
_color_sample.js One-off premium color sample builder
premium-config.json Premium generator configuration

Conventions

  • Numbering runs 00–07 + Scripts/; no duplicate numbers this time.
  • Retired in this reorganization: empty scaffolds (Chapter Packs, QBank Drills, Premium/03 MCQ Companions, Premium/04 Render QA) and the 04 Render QA husks after the PDF purge.
  • Desktop copy of the master book: ~/Desktop/MedCORE Master Book.html.
  • Known data note: Mock 2 contains 196 questions (not 200).