Branch Comparison

Generated 26/11/2026 12:51:48

Changes on staging not yet on main

Modified: .claude/CLAUDE.md
  • Last changed on staging: 2026-10-22 17:40
staging: Lines 46 to 61
+
+## Agent skills
+
+These files live under `.code/`, not the skills' default root locations, because any other `.md` would be published as a guideline. Never create a root `GLOSSARY.md`, `docs/adr/` or `docs/agents/`.
+
+### Issue tracker
+
+Issues live in GitHub Issues on `yohondo/FrimleyHealthGuidelines`, via the `gh` CLI. See `.code/docs/agents/issue-tracker.md`.
+
+### Triage labels
+
+The five default roles, each label named as its role (`needs-triage`, `needs-info`, `ready-for-agent`, `ready-for-human`, `wontfix`). See `.code/docs/agents/triage-labels.md`.
+
+### Domain docs
+
+Single-context: `.code/GLOSSARY.md` and `.code/docs/adr/`. See `.code/docs/agents/domain.md`.
Modified: .claude/skills/convert-guideline/SKILL.md
  • Last changed on staging: 2026-10-27 11:29
main: Line 39, staging: Line 39
- - Read the Word file's **comments, highlights and tracked changes** first (unzip it: `word/comments.xml`; `w:highlight`, `w:ins`, `w:del` in `word/document.xml`). They are often unfinished business: a placeholder like "Please add date published", or a reviewer's open question. The draft drops comments and accepts changes; list each one in `notes.md` for the reviewer.
+ - Read the Word file's **comments, highlights and tracked changes** first (unzip it: `word/comments.xml`; `w:highlight`, `w:ins`, `w:del` in `word/document.xml`). They are often unfinished business: a placeholder like "Please add date published", or a reviewer's open question. The draft drops comments and accepts changes; list each one in `notes.md` for the reviewer, and each one not carried over in `for-the-authors.md` (step 6).
main: Line 114, staging: Line 114
-It refuses unless the checkout is on the guideline's branch `deploy/<slug>` and clean, and refuses to overwrite anything. It writes `<name>.md` and `<name>-media/` beside the PDF (and, for a new guideline, the PDF and Word file under the confirmed name), deletes `<name>-info.csv`, and writes `.code/convert/<slug>/convert.json` and a `notes.md` stub. It commits nothing.
+It refuses unless the checkout is on the guideline's branch `deploy/<slug>` and clean, and refuses to overwrite anything. It writes `<name>.md` and `<name>-media/` beside the PDF (and, for a new guideline, the PDF and Word file under the confirmed name), deletes `<name>-info.csv`, and writes `.code/convert/<slug>/convert.json` (with the guideline's `questions_code`, the random code of its authors' page), a `notes.md` stub and a `for-the-authors.md` stub (step 6). It commits nothing. A guideline converted before the authors' page existed gets its code and stub from `convert_one --into . questions <slug>`, which prints the page's link; `--new-code` revokes the link by giving a new code (the old page goes at the next staging publish).
main: Line 135, staging: Line 135
-4. **There is no review banner** (owner, 2026-10-20). `convert_one` places the draft without one; for a PDF, what the pipeline reported in it (page furniture left out, colours, signs) is under "Pipeline report" in `notes.md`. Read it. **The page does not wait for clinical approval** (publishing rules 1.13, owner 2026-10-22): a suspected issue kept as printed that could change what a clinician does gets an "Under review" flag directly after the text it concerns, facts only, with no advice, and a row in Questions for the authors. There is no callout at the top of the page, and flags need no clinical sign-off.
+4. **There is no review banner** (owner, 2026-10-20). `convert_one` places the draft without one; for a PDF, what the pipeline reported in it (page furniture left out, colours, signs) is under "Pipeline report" in `notes.md`. Read it. **The page does not wait for clinical approval** (publishing rules 1.13, owner 2026-10-22): a suspected issue kept as printed that could change what a clinician does gets an "Under review" flag directly after the text it concerns, facts only, with no advice, and a row in Questions for the authors; the staging build copies that table onto the authors' page, so it is never written in `for-the-authors.md` (step 6). There is no callout at the top of the page, and flags need no clinical sign-off.
main: Line 137, staging: Line 137
- **Then read the whole page again, images included, for the content checks** marked live in conversion in `.code/docs/writing-checks.md`, which says what each looks for and how to word a finding (who it affects, never a severity label). Make it a separate pass, not part of the first: read `internal-consistency` afresh too, since a single pass misses contradictions (trial, 2026-10-26). Each finding is a question in `### For the authors` naming its check, with an "Under review" flag when it could change what a clinician does (above).
+ **Then read the whole page again, images included, for the content checks** marked live in conversion in `.code/docs/writing-checks.md`, which says what each looks for and how to word a finding (who it affects, never a severity label). Make it a separate pass, not part of the first: read `internal-consistency` afresh too, since a single pass misses contradictions (trial, 2026-10-26). Each finding names its check: one that could change what a clinician does is flagged and goes in Questions for the authors on the page (above); any other is a question in `for-the-authors.md` (step 6).
main: Line 149, staging: Line 149
- - `### For the authors`: source typos left as printed and open questions, briefly (the full typo lists stay in their sections below).
+ - `### For the authors`: one line, how many questions, phone numbers and typos are in `for-the-authors.md`.
main: Line 151, staging: Lines 151 to 163
- The detailed sections follow: what you fixed by hand, the decision notes, and every source typo you found: the ones fixed, and, under "Source typos not changed (for the authors)", the ones left as printed (in pages shown as PDFs or images, or text later replaced by one). The reviewer sends the typo list to the authors, so never drop a typo because its text has gone.
+ The detailed sections follow: what you fixed by hand and the decision notes. Nothing for the authors is kept in `notes.md`: it is all in `for-the-authors.md`, and nothing is in both.
+
+ **Then fill in `for-the-authors.md`** (same folder), the authors' page: the staging build publishes it at `https://guidelines.fhft.nhs.uk/questions/<questions_code>`, a link that is in no index, and the reviewer sends the authors that link (Deploy). It is written to the authors, plainly, and holds everything they need from the conversion and nothing meant only for the reviewer. Keep the stub's title, introduction and sections, in this order (publishing rules, section 7):
+ - `## Questions`: the questions that are **not** flagged on the page: suspected errors that cannot change what a clinician does, content-check findings (each naming its check) and other open questions. Each is a paragraph starting `**Q<n>.**`, says where it is with a link to the section on the staging page (its anchor as in publishing rules 1.17), and, where there is one, recommends an answer ("Recommend: ..."). **A number never changes and is never reused:** a struck question leaves a gap, and a new one takes the next number after the highest ever used, so anyone can refer to "Q3". **A flagged question is never written here:** the staging build adds the page's Questions for the authors table at the end of this section, under "Flagged on the guideline page", so there is one copy, kept on the page. `check_page` fails if one is copied in (it looks for the table's quotations).
+ - `## Phone numbers`: every mobile or direct number on the page, asking whether it may be published.
+ - `## Word comments and tracked changes not carried over` (Word originals only; the stub has it when there is a Word original).
+ - `## Typos`: `### Fixed on the page` and `### Left as printed` (in pages shown as PDFs or images, or text later replaced by one). Every typo, so never drop one because its text has gone.
+
+ An empty section says "None.". The changes to the content are not repeated: the introduction links to Changes from the original. Update "Last updated" whenever the page changes. `check_page` checks it (its title, sections and question numbers, against every committed version):
+
+ ```bash
+ PYTHONPATH=.code/pipeline .venv/bin/python -m guideline_render.tools.check_page .code/convert/<slug>/for-the-authors.md
+ ```
main: Line 180, staging: Line 192
- It writes `<name> - suggested changes.docx` beside the YAML, its changes and comments signed "Guidelines platform (automated check)" (GLP), and refuses unless rejecting every change gives back the original and accepting every change gives the edits (it checks both itself, and with pandoc). The edit text is matched against Word's text, not the page's (Word's apostrophes, no Markdown). Every row of Changes from the original must have its entry; tick them off. A Word text box is stored twice, the box and a fallback copy for old versions of Word, so its text matches twice: give `occurrence: 1` (the box Word shows). Changing the fallback copy too fails the pandoc check, which does not read it. When the authors reject a change, revert it on the page and remove its row; the YAML stays as the record of what was sent. The authors get this copy by email: draft it with `weekly_report.email_draft`, attaching the file (The Trello card).
+ It writes `<name> - suggested changes.docx` beside the YAML, its changes and comments signed "Guidelines platform (automated check)" (GLP), and refuses unless rejecting every change gives back the original and accepting every change gives the edits (it checks both itself, and with pandoc). The edit text is matched against Word's text, not the page's (Word's apostrophes, no Markdown). Every row of Changes from the original must have its entry; tick them off. A Word text box is stored twice, the box and a fallback copy for old versions of Word, so its text matches twice: give `occurrence: 1` (the box Word shows). Changing the fallback copy too fails the pandoc check, which does not read it. When the authors reject a change, revert it on the page and remove its row; the YAML stays as the record of what was sent. The authors get this copy by email, with the link to their page (Deploy, step 2), attached to the same email.
main: Line 184, staging: Line 196
-The reviewer opens https://guidelines.fhft.nhs.uk/preview in Chrome or Edge and chooses the guideline's worktree folder. It shows the page as the site renders it, with a side panel: **Notes** (`.code/convert/<slug>/notes.md`, found through its `convert.json`), **Feedback** (`feedback.md`) and **Original** (the same-name PDF beside the `.md`, with a switch to the Word original). Nothing can be edited in the browser: the reviewer edits the files in VS Code, or tells Claude what to change. Record each round in `.code/convert/<slug>/feedback.md`: what was asked and what was done. After each round, update `## For review` in `notes.md` too (a decided item leaves the list and is recorded in `feedback.md`; add new ones), so it always shows what is still open. When a piece of feedback is a general rule, add it to the guideline's `lessons.md` (Lessons, below), and to the rules when it is settled.
+The reviewer opens https://guidelines.fhft.nhs.uk/preview in Chrome or Edge and chooses the guideline's worktree folder. It shows the page as the site renders it, with a side panel: **Notes** (`.code/convert/<slug>/notes.md`, found through its `convert.json`), **For the authors** (`for-the-authors.md`, as the authors will see it), **Feedback** (`feedback.md`) and **Original** (the same-name PDF beside the `.md`, with a switch to the Word original). Nothing can be edited in the browser: the reviewer edits the files in VS Code, or tells Claude what to change. Record each round in `.code/convert/<slug>/feedback.md`: what was asked and what was done. After each round, update `## For review` in `notes.md` too (a decided item leaves the list and is recorded in `feedback.md`; add new ones), so it always shows what is still open, and keep `for-the-authors.md` current: what is in it at the last push to `staging` is what the authors see. When a piece of feedback is a general rule, add it to the guideline's `lessons.md` (Lessons, below), and to the rules when it is settled.
staging: Lines 218 to 219
+
+ The same publish puts the authors' page at `https://guidelines.fhft.nhs.uk/questions/<questions_code>` (from `convert.json`; `convert_one --into . questions <slug>` prints it); open it to check it. Once the reviewer has struck what is not worth the authors' time, **draft the email to the authors** with `weekly_report.email_draft` (The Trello card): a short message with that link, saying the page lists our questions and the typos we found, and that the guideline itself goes live as it is; attach the tracked-changes copy for a Word original. Do not paste the points into the email: the page is kept current, an email is not.
Modified: .claude/skills/redraw-flowchart/SKILL.md
  • Last changed on staging: 2026-10-26 22:49
main: Line 35, staging: Line 35
-**Unredrawable:** a box has more than one way out, and nothing says how to choose between them (no question, no answer boxes, unlabelled arrows to different places). Redrawing it would mean inventing the clinical rule. Stop, and keep the chart as an image. List the problem in `notes.md` for the authors.
+**Unredrawable:** a box has more than one way out, and nothing says how to choose between them (no question, no answer boxes, unlabelled arrows to different places). Redrawing it would mean inventing the clinical rule. Stop, and keep the chart as an image. Put the problem to the authors as a question in `for-the-authors.md`.
main: Line 52, staging: Line 52
-- The **authors' wording, verbatim**. Fix a typo only as the conversion rules allow, and list every typo in `notes.md` either way.
+- The **authors' wording, verbatim**. Fix a typo only as the conversion rules allow, and list every typo in `for-the-authors.md` either way.
Modified: .code/GLOSSARY.md
  • Last changed on staging: 2026-10-26 22:49
staging: Lines 69 to 72
+**Authors' page**:
+A guideline's page of questions for its authors, from `for-the-authors.md`, at `/questions/<code>` on the guidelines site: on staging only, in no index, readable by anyone with the link. It is not a guideline and asks for no reply (publishing rules, section 7).
+_Avoid_: Notes (`notes.md` is the reviewer's), feedback (`feedback.md` is the review rounds), report
+
Added: .code/Scripts/authors_page.py
  • Last changed on staging: 2026-10-27 09:31
Modified: .code/Scripts/build_site.py
  • Last changed on staging: 2026-10-27 09:31
Modified: .code/Scripts/publish_site.py
  • Last changed on staging: 2026-10-26 22:48
Added: .code/Scripts/site_urls.py
  • Last changed on staging: 2026-10-26 22:52
Added: .code/Scripts/tests/test_authors_page.py
  • Last changed on staging: 2026-10-27 09:31
Modified: .code/Scripts/tests/test_build_site.py
  • Last changed on staging: 2026-10-27 09:31
Modified: .code/Scripts/tests/test_publish_site.py
  • Last changed on staging: 2026-10-26 22:48
Modified: .code/Scripts/weekly_report/render.py
  • Last changed on staging: 2026-10-26 22:52
Added: .code/convert/pulmonary-embolism-pe/convert.json
  • Last changed on staging: 2026-10-27 11:34
Added: .code/convert/pulmonary-embolism-pe/feedback.md
  • Last changed on staging: 2026-10-27 11:34
staging: Lines 1 to 34
+# Pulmonary Embolism (PE): review feedback
+
+## Round 1 (John Holcroft, 2026-10-21)
+
+Asked: agreed to every first-pass decision. On item 1 (page 8): the top of the page is a very simple flowchart, so redraw it ourselves and type the text below it out.
+
+Done:
+1. Page 8's chart redrawn in the house style (`redraw-flowchart`), no words added; its text box typed out under it (initial anticoagulation with the dalteparin table, ongoing anticoagulation). Listed in Changes from the original (Clinical changes: replaced figure; two proofreading rows for "Rivaroxaban-" / "Apixaban-").
+2. Appendix 5 kept as a direct link to the leaflet PDF.
+3. "ABSOLUTE contraindications to use of alteplase" kept as a `###` heading.
+4. Red section titles kept as plain `##` headings.
+5. Old `Pulmonary Embolism-media/` folder deleted.
+
+## Rule change (owner, 2026-10-22: publishing rules 1.13, 2.2, 4.3)
+
+Merged `origin/main` into the branch. Guidelines now publish without waiting for the authors. Three questions that could change what a clinician does are now a "Questions for the authors" group, first in Changes from the original, each flagged "Under review" where it applies (facts only, no advice): page numbers in the charts on pages 4-6 (two flags, under each chart); the DOAC BMI limit, 47 vs 40 (two flags, after the treatment algorithm's DOAC bullets and after Weight over 120kg); TIA in both alteplase contraindication lists (after the relative list). No top-of-page callout. Not flagged (authors only): ICU vs ITU consultant, the missing footnote reference, the footers' version, the expired review dates, the leaflet typos.
+
+## Content checks (2026-10-26, PR #158)
+
+Merged `origin/main`; ran the separate pass for the six checks now live in conversion, with internal-consistency read afresh. Five new "Under review" flags and Questions rows (PERC heart rate and PERC use; sPESI heart rate; dalteparin 166 kg; Appendix 3 cancer investigations; breast milk after CTPA); further authors-only findings in notes.md, "Content checks". No change to the authors' text.
+
+## Boundary findings revised (owner, 2026-10-27, PR #160 not yet merged)
+
+Findings and flags now say who each affects; the three boundary signs (PERC >100, sPESI >110, dalteparin >166 kg) are one grouped question. The PERC and sPESI boundary sentences were removed from the chart flags (unclear only at the exact value); the dalteparin 166 kg flag stays (no dose at that weight). PERC and sPESI are cited tools, so they would be corrected on the page, but they are inside the flowchart pictures: left as a question, and raised as Decision 1. Merge origin/main once PR #160 lands.
+
+Addendum (owner, 2026-10-27): the dalteparin whole-kilogram bands (decimal weights unassigned) added to the grouped question, now "Boundary signs (4)", with no flag. Probable meanings stated where the document shows them: the chart page numbers (flags and question), ≥166 kg (flag and question), BMI <47 (both flags and the question), and ≥100 / ≥110 from the named tools (question). No flag removed: none was on a whole-number band edge.
+
+"Probably meant" tightened (owner, 2026-10-27): removed from the BMI flags and question (47 and 40 conflict; now stated side by side) and from the two "HIGH risk (Page 8)" references (which box was meant is a reading of the passage). Kept for ≥100, ≥110, ≥166 and for the three page numbers that name their target (sPESI, exclusion criteria, doses).
+
+## Round 2 (John Holcroft, 2026-10-27)
+
+Asked: edit both pictures (PERC and sPESI heart-rate signs), then commit and preview on staging.
+
+Done: "Tachycardia >100" (page 4) and "Heart Rate >110 bpm" (page 6) corrected to ≥ in the chart images and their one-page PDFs; two Clinical changes entries added; the grouped question is now "Boundary signs (2)" (dalteparin >166 kg, whole-kilogram bands); the authors asked to correct their charts. Committed on deploy/pulmonary-embolism-pe and previewed on staging.
Added: .code/convert/pulmonary-embolism-pe/flowcharts/source.png
  • Last changed on staging: 2026-10-27 11:34
Added: .code/convert/pulmonary-embolism-pe/flowcharts/treatment-algorithm.yaml
  • Last changed on staging: 2026-10-27 11:34
Added: .code/convert/pulmonary-embolism-pe/lessons.md
  • Last changed on staging: 2026-10-27 11:34
staging: Lines 1 to 4
+| Date | Lesson | Seen before? | Pipeline change |
+|---|---|---|---|
+| 2026-10-21 | A flowchart page shown as an image (`--image-pages`, or wave-1 image_with_note) is the whole page render at ~110 dpi, with the Trust banner and the page footer; re-rendered at 200 dpi, clipped below the banner and above the footer, then whitespace-cropped (rule 5.11) | partly: Management of Tuberculosis (2026-10-21) showed the embedded picture instead, which does not apply to a vector chart | not yet: candidate for the renderer (clip page images to the content between banner and footer) if seen again |
+| 2026-10-21 | The pipeline gave red section titles a red-filled `<span>` and demoted them to `###` "so that their colour can be shown"; a red heading is just a heading (`##` at its contents-page level, colour dropped) | no | not yet: watch for a second case |
Added: .code/convert/pulmonary-embolism-pe/notes.md
  • Last changed on staging: 2026-10-27 11:34
staging: Lines 1 to 219
+# Pulmonary Embolism (PE): first pass notes
+
+From `Pulmonary Embolism (PE).pdf`.
+
+## For review
+
+Source: `Pulmonary Embolism (PE).pdf`, version 2.4 (Date Issued 17 September 2024), an existing PDF-only guideline (queue #3); converted 2026-10-21. Trello: https://trello.com/c/MqeGEF6b
+
+### Decisions needed
+
+Nothing open. Decision 1 of 2026-10-27 (PERC and sPESI signs) was settled by the reviewer: corrected in the pictures (see feedback.md).
+
+### New since hand-over: content checks (2026-10-26, revised 2026-10-27)
+
+A separate pass over the whole page, pictures included, for the checks live in conversion (`.code/docs/writing-checks.md`), revised to the owner's 2026-10-27 rules (PR #160): each finding says who it affects and what changes for them; the three boundary signs are one grouped question; a sign unclear only at its exact value has no flag. Flags (8), stating a probable meaning only where the evidence is about the same value (three chart page numbers that name what they point to; ≥166 kg), never between conflicting values (BMI 47 and 40 are stated side by side): chart page numbers (two), PERC used for every Wells ≤4 (in the page 4-5 flag), no dalteparin dose at exactly 166 kg, DOAC BMI 47 vs 40 (two), TIA in both lists, Appendix 3 cancer investigations, breast milk after CTPA. Please check each flag's wording. Details: "Content checks" below.
+
+### Please check by eye
+
+- **The redrawn treatment algorithm (page 8)** against the original: one question, YES to the discuss endpoint, NO to Commence anticoagulation, with no words added. Source and redraw are in `.code/convert/pulmonary-embolism-pe/flowcharts/`.
+- **Page 8's text box, now typed out** under the chart (from the PDF's own text, not read from a picture): the dalteparin table, the footnote, and the links to the Cockcroft-Gault calculator and Suspected DVT Care Pathway.
+- The four flowchart pictures (pages 4-7): re-rendered from the PDF at 200 dpi and cropped to the chart (no page banner or footer). Page 4's subtitle "(Breathlessness, pleuritic chest pain, syncope, cough)" is clipped at the bottom in the authors' PDF itself.
+- Emergency PE Thrombolysis: the box is now headings, bullets and a numbered list; check it against page 9.
+- Headings added or re-levelled (listed under "What I fixed by hand").
+
+### For the authors
+
+- **Please correct your charts:** PERC "Tachycardia >100" (page 4) and sPESI "Heart Rate >110 bpm" (page 6) are shown as ≥100 and ≥110 on the page, as the published tools count them.
+**Flagged on the page (publishing rules 1.13, 2026-10-22):** three questions that could change what a clinician does are in Changes from the original under "Questions for the authors", and flagged "Under review" (facts only, no advice) where they apply: (a) the page numbers in the charts on pages 4-6, flagged under the page 4-5 chart and under the page 6 chart; (b) the DOAC BMI limit, flagged after the treatment algorithm's DOAC bullets and after Weight over 120kg; (c) TIA in both contraindication lists, flagged after the relative list. No callout at the top of the page. The questions' date reads 22 October 2026; change it if they are sent later. The rest below go to the authors only, as they cannot change what a clinician does.
+
+- **(b, flagged) DOAC weight limit disagrees:** page 8 says a DOAC "can be considered up to a weight of 140kg or BMI <47"; Special Circumstances (page 10) says "up to 140kg or a BMI of <40". Version 2.4 corrected the BMI; Suspected DVT Care Pathway says 47. Kept as printed. Recommend asking which is right (probably 47 on page 10).
+- **(c, flagged) TIA in preceding 6 months is in both lists** in Appendix 1: absolute ("Known history of ischaemic stroke or TIA in preceding 6 months") and relative ("TIA in the preceding 6 months"). Kept as printed; ask.
+- **Who to discuss thrombolysis with:** page 9 says "an ICU or respiratory consultant", Appendix 1 "an ITU consultant". Kept; ask whether to align.
+- **Footnote "2014¹" (Executive Summary) has no footnote or reference list.** Kept as printed; ask for the reference (ESC 2014 guideline).
+- **(a, flagged) Page cross-references in the flowcharts are off by one page**; the leaflet has typos and an expired review date (lists below).
+- **Footers on pages 2-18 still say "Version 2.3, November 2023"**; the record is 2.4, September 2024. **Review date February 2026 has passed.**
+- **Phone numbers (rule 7):** only internal extensions and bleeps (in the flowchart pictures) and the leaflet's public 0300 numbers. None is a mobile or direct line. No question needed.
+
+## Content checks (2026-10-26, revised 2026-10-27)
+
+Findings per check, each saying who it affects; **flagged** = an "Under review" flag on the page and a row in Questions for the authors. Every finding is a question for the authors; nothing on the page was changed for them.
+
+- **internal-consistency** (read afresh), 5: DOAC limit "BMI <47" (page 8) vs "BMI of <40" (page 10), affecting a patient over 120 kg with a BMI from 40 to 47 (flagged); TIA in the last 6 months is absolute in one alteplase list and relative in the other, affecting a patient with a recent TIA considered for thrombolysis (flagged); chart page numbers that do not match the PDF, affecting anyone following them (flagged); the Executive Summary sends high-risk patients to "HDU/ITU", page 7 says "ADMIT TO HDU/MADU", affecting where a high-risk patient is admitted (authors only); a 50 mg alteplase vial is made up "into 50mls" in cardiac arrest but "with 25ml" for massive PE, affecting the concentration whoever prepares it makes up (authors only: ask them to confirm both are intended).
+- **threshold-boundaries**, 4: PERC and sPESI corrected on the page (2026-10-27, below); the other two in one grouped question ("Boundary signs (2)"), each stating its probable meaning where the document or a named tool shows it: PERC "Tachycardia >100" affects only a patient whose heart rate is exactly 100 (the published rule counts 100 as tachycardic); sPESI "Heart Rate >110 bpm" affects only a patient whose heart rate is exactly 110 (the published score counts 110); dalteparin "138-165 kg" / ">166 kg" affects only a patient weighing exactly 166 kg, who has no dose (the Trust's Dalteparin Doses has "≥166"). Only the dalteparin one is flagged, since it leaves a weight with no dose; the other two are unclear only at their exact value. PERC and sPESI are named in the guideline (Abbreviations), so both signs were corrected to ≥ in the chart pictures and their one-page PDFs (publishing rules 2.2; reviewer, 2026-10-27) and listed under Clinical changes; the authors are asked to correct their charts. Dalteparin's whole-kilogram bands ("46-56 kg", "57-68 kg" … "138-165 kg") leave a weight such as 56.5 kg unassigned, affecting only a patient whose weight is not a whole number of kilograms: in the grouped question, no flag (addendum, 2026-10-27). No underlined > or < in the original.
+- **national-guidance**, 5: PERC applied to every Wells ≤4 patient, affecting a patient with no PERC criteria whose clinical suspicion is not low, who gets no D-dimer, where NICE NG158 limits PERC to low suspicion (flagged); Appendix 3 cancer investigations limited to "over 45" and "new PE", affecting patients 45 or under with unprovoked PE and patients over 45 with provoked PE, where NG158 covers anyone with unprovoked VTE (flagged); breast milk discarded for 12 hours after CTPA, affecting breastfeeding patients, where ESUR says breastfeeding may continue (flagged); "ESC guidance published in 2014" (replaced in 2019) and "Current Resuscitation Council 2015 guidelines" (replaced since), affecting readers who look up the source: authors only; "Weight over 120kg … the limit for which these medications are currently licenced", affecting how readers understand DOAC use over 120 kg: DOAC licences set no upper weight limit (the 120 kg caution came from ISTH 2016, updated 2021): authors only.
+- **dose-instructions**, 3, authors only: "a heparin infusion is required immediately" (massive PE) gives no dose and no pointer to the Trust's Unfractionated Heparin Protocol, affecting whoever starts the infusion; Cancer names "LMWH or DOACs" with no dose or pointer (Suspected DVT Care Pathway 3.7 has them), affecting whoever prescribes for a patient with cancer; rivaroxaban is given without "with food" (Suspected DVT Care Pathway says "with food"), affecting what patients starting rivaroxaban are told.
+- **recommendation-strength**, 1: Appendix 3 says patients "should have" investigation, the ambulatory pathway says "Consider further investigations", affecting whether a patient is investigated (flagged, in the Appendix 3 question).
+- **cross-guideline-consistency** (against every Markdown guideline in the checkout), 4: Dalteparin Doses gives "≥166" (in the grouped boundary question); Suspected DVT Care Pathway gives BMI 47 (flagged) and different cancer tests for unprovoked DVT (flagged, Appendix 3); respiratory consultant on ext 133722 "8am to 6pm" (page 7) where COPD says "8-5pm" and Pneumothorax "0900-1700", affecting staff calling between 5pm and 6pm (authors only); the leaflet gives AECU hours "Monday - Friday 10.00am – 6.00pm", Suspected DVT Care Pathway gives 9am-7pm weekdays and weekend hours at FPH and 9am-10pm at WPH, affecting patients told when to attend (authors only).
+- **external-links**, 0 broken: the Cockcroft-Gault calculator, Suspected DVT Care Pathway and the pregnancy guideline links all open (HTTP 200). The leaflet's www.nhsdirect.nhs.uk (in its PDF) is a closed service (listed under typos).
+
+## What I fixed by hand
+
+- Title: `# Pulmonary Embolism (PE) [Suspected Pulmonary Embolism Care Pathway]` (rule 1.16).
+- Heading levels from the contents page: Executive Summary and Aim of Pathway `###` → `##`; added `## Do you suspect a Pulmonary Embolism?` (contents entry, page 4) and `## Treatment Algorithm for Suspected +/- Proven PE in patients NOT requiring thrombolysis` (contents entry, page 8) over their pictures. Added `###` "Suitability criteria for Ambulatory management of possible LOW RISK PE" and "Ambulatory Pathway Following CTPA and Review of the Report" over pages 6 and 7 (the titles printed on those pages; the second recased from all caps, rule 1.7).
+- Emergency PE Thrombolysis: rebuilt from a one-cell table into `###` "In Cardiac Arrest (Strong likelihood of PE)" and "Massive PE (Peri-Arrest)", each with `####` "Alteplase 50mg" / "Alteplase (weight dependent)" (underlined bold subtitles in the source, rule 1.14), bullets, the bold numbered steps 1-4 as a numbered list, and the two bullets after it.
+- Special Circumstances: `##`, red dropped; Cancer, Weight over 120kg and Pregnancy stay `###`. Full stop moved out of the pregnancy guideline's link text.
+- Appendix 1: three `###` subtitles (item 3); "(see Appendix 2)" is an in-page link to Appendix 2 (rule 1.17).
+- Appendix 2: 75x10<sup>9</sup> superscript restored; sign spacing "<75" (rule 2.4).
+- Appendix 4: underlined subtitles "Reversal Protocols" and "Breast feeding and CTPA" are `###` headings.
+- Appendix 5: leaflet pictures replaced by a direct PDF link (item 2).
+- Abbreviations: the merged cell rebuilt as one row "PERC / sPESI / Wells Score" (the draft had an empty sPESI and Wells Score row).
+- Executive Summary: "20141" → "2014<sup>1</sup>" (superscript in the source).
+- `<strong>` → `**` throughout (rule 2.12).
+- PERC "Tachycardia >100" (page 4) and sPESI "Heart Rate >110 bpm" (page 6) corrected to ≥ in the chart pictures and one-page PDFs (reviewer, 2026-10-27): the ">" glyph removed and "≥" written in Arial at the same size and baseline; nothing else on either page changed (checked by text diff and by eye). The authors' full PDF beside the page still says ">".
+- Page 8 (review round 1): the chart redrawn in the house style (`Algorithm - Treatment of suspected or proven PE not requiring thrombolysis.drawio.svg`, description in `flowcharts/treatment-algorithm.yaml`), its link now "View original PDF"; the text box typed out under it as `###` "Initial anticoagulation" and "Ongoing anticoagulation" (underlined subtitles in the source), the dose table as a table, the footnote italic (rule 2.8), "actual body weight" underlined as printed, both links kept. Listed in Changes from the original as a replaced figure.
+- Old `Pulmonary Embolism-media/` folder deleted (review round 1).
+- Flowchart media: re-rendered and cropped, named after what they show; extractor images (`a0015`-`a0018`, `v0004`-`v0008`) removed; one-page PDFs renamed to match.
+- About: `### Full Version Control Record`, `### Version Control Sheet` and `### Related Documents` ("None.") headings; the registration notice in two paragraphs; the 2.4 date cell "17/09/24 Version 2.4" (an extraction slip) is "17/09/24" as printed.
+- Colour: no shaded cells remain on the page (the pipeline's red-filled headings and label are gone). Nothing is meant by colour alone outside the pictures.
+- In-page links (rule 1.17): one, "(see [Appendix 2](#appendix-2-patients-at-increased-bleeding-risk))" in Appendix 1. The flowcharts' "see Appendix 2/3" and page references are inside pictures.
+
+## Decision notes
+
+1. Page 8: only its top third (bleeding risk → Discuss / Commence anticoagulation) is a chart. Redrawn (review round 1). Kinds: the question is a decision point with the authors' YES / NO labels; both answers are endpoints. "Commence anticoagulation" pointed into the text box in the source; that text now follows the chart on the page, so the box ends the chart. No question or label added.
+
+## Content check
+
+`content_diff` lists 54 lines; all were read. They include the five "Under review" flags (only on the page; the two that quote the charts' page references also show as "changed" or "moved" against the charts' text in the original). They are: the four listed proofreading and style changes; colons dropped from headings and About labels; the thrombolysis box's title now a heading (shown as moved); the page title with subtitle; Related Documents "None."; the abbreviation row; page titles now headings over pictures (moved); and text no longer on the page: page 1's summary and controlled-document notice, the contents list, page footers, and the text of pages 4-7 (shown as pictures), page 8's chart (redrawn; its YES/NO labels are in the drawing) and the leaflet (now its PDF). No text on the page is typed out from a picture.
+
+## Pages shown as images
+
+- p4
+- p5
+- p6
+- p7
+- p8
+
+## Pipeline report
+
+What the review render reported when the draft was placed:
+
+**Deliberately not in the text of this document:**
+
+- 42 page footer blocks (marked as page furniture)
+- The full version control record (shown in the About sub-page)
+- The page-1 summary (its values are in the front matter and the About sub-page)
+- The title box on page 1 (its text is the page heading)
+- 2 controlled-document notice block(s) (template boilerplate)
+- The contents list (14 blocks)
+- Page 4 is shown as an image. Reason recorded: Flowchart page: reading order across boxes and arrows is unreliable as text (the B1+B2+B7 audit's residual wrongs concentrate here); include as an image with a note for future improvement. Owner decision 2026-10-02.
+- Page 5 is shown as an image. Reason recorded: Flowchart page: reading order across boxes and arrows is unreliable as text (the B1+B2+B7 audit's residual wrongs concentrate here); include as an image with a note for future improvement. Owner decision 2026-10-02.
+- Page 6 is shown as an image. Reason recorded: Flowchart page: reading order across boxes and arrows is unreliable as text (the B1+B2+B7 audit's residual wrongs concentrate here); include as an image with a note for future improvement. Owner decision 2026-10-02.
+- Page 7 is shown as an image. Reason recorded: Flowchart page: reading order across boxes and arrows is unreliable as text (the B1+B2+B7 audit's residual wrongs concentrate here); include as an image with a note for future improvement. Owner decision 2026-10-02.
+- Page 8 is shown as an image. Reason recorded: Flowchart page: reading order across boxes and arrows is unreliable as text (the B1+B2+B7 audit's residual wrongs concentrate here); include as an image with a note for future improvement. Owner decision 2026-10-02.
+
+**Links not kept as links:**
+
+- Page 8: “online calculator)” links to https://www.mdcalc.com/calc/43/creatinine-clearance-cockcroft-gault-equation; the page is shown as an image, and the link still works in the page PDF where one is provided
+- Page 8: “Suspected DVT Care Pathway.” links to https://guidelines.fhft.nhs.uk/Haematology\_and\_VTE-VTE-Treatment-Suspected\_DVT\_Care\_Pathway; the page is shown as an image, and the link still works in the page PDF where one is provided
+
+**Changes made to source text:**
+
+- Page label recased: "AMBULATORY PATHWAY FOLLOWING CTPA AND REVIEW OF THE REPORT" to "AMBULATORY Pathway Following CTPA and Review of the Report" (page 7 label)
+- Appendix title recased: "APPENDIX 1: CONTRAINDICATIONS AND INTERACTIONS OF ALTEPLASE" to "Appendix 1: Contraindications and interactions of Alteplase"
+- Appendix title recased: "APPENDIX 2: PATIENTS AT INCREASED BLEEDING RISK" to "Appendix 2: Patients at increased bleeding risk"
+- Appendix title recased: "APPENDIX 3: INVESTIGATIONS IN PATIENTS WITH CONFIRMED PE" to "Appendix 3: Investigations in Patients with Confirmed PE"
+- Appendix title recased: "APPENDIX 4: MISCELLANEOUS" to "Appendix 4: Miscellaneous"
+- Appendix title recased: "APPENDIX 5 – PATIENT INFORMATION LEAFLET" to "Appendix 5 – Patient Information Leaflet"
+- 2 heading(s) moved from a section heading to a sub-heading so that their colour can be shown
+
+**Colour:** 0 kept as in the source, 1 shown in a house style, 0 dropped by decision, 0 text colours changed for readability, 0 heading colours cannot be shown.
+
+**Not yet checked:** independent verification against the source pages (sub-project 5).
+
+## Known format changes
+
+`content_diff` against the authors' original. Each line below is a format change, copied as printed; every other difference is a row in Changes from the original.
+
+```content-diff-accepted
+Abbreviations | changed | crci/egfr | crcl/egfr
+Abbreviations | only on the page | | spesi wells score
+Initial anticoagulation | changed | crcl>20ml/min | crcl >20ml/min
+Initial anticoagulation | changed | < 46 | <46
+Ongoing anticoagulation | changed | rivaroxaban- | rivaroxaban -
+Ongoing anticoagulation | changed | apixaban- | apixaban -
+Ongoing anticoagulation | only in the original | yes no |
+Emergency PE Thrombolysis | only in the original | in cardiac arrest (strong likelihood of pe) |
+ABSOLUTE contraindications to use of alteplase | changed | alteplase: | alteplase
+Relative contraindications to alteplase | changed | alteplase; | alteplase
+Appendix 2: Patients at increased bleeding risk | changed | < 75x10^9) | <75x10^9)
+Appendix 2: Patients at increased bleeding risk | changed | risk: benefit | risk:benefit
+Appendix 3: Investigations in Patients with Confirmed PE | changed | on line | online
+Full Version Control Record | changed | version: | version
+Full Version Control Record | changed | lead(s): | lead(s)
+Full Version Control Record | changed | contributor(s): | contributor(s)
+Full Version Control Record | changed | service: | service
+Full Version Control Record | changed | completed: | completed
+Full Version Control Record | changed | at: | at
+Full Version Control Record | changed | issued: | issued
+Full Version Control Record | changed | date: | date
+Full Version Control Record | changed | by: | by
+Full Version Control Record | changed | words: | words
+- → Suitability criteria for Ambulatory management of possible LOW RISK PE | moved | ventricular strain on 12 lead ecg +/- trop raised (see high risk page | ventricular strain on 12 lead ecg +/- trop raised (see high risk page
+- → Treatment Algorithm for Suspected +/- Proven PE in patients NOT requiring thrombolysis | moved | treatment algorithm for suspected +/- proven pe in patients not requiring thrombolysis | treatment algorithm for suspected +/- proven pe in patients not requiring thrombolysis
+- → Suitability criteria for Ambulatory management of possible LOW RISK PE | moved | suitability criteria for ambulatory management of possible low risk pe | suitability criteria for ambulatory management of possible low risk pe
+- → Suitability criteria for Ambulatory management of possible LOW RISK PE | moved | dose of s/c lmwh or oral rivaroxaban/apixaban (see page | dose of s/c lmwh or oral rivaroxaban/apixaban (see page
+- → Ambulatory Pathway Following CTPA and Review of the Report | moved | ambulatory pathway following ctpa and review of the report | ambulatory pathway following ctpa and review of the report
+- → Do you suspect a Pulmonary Embolism? | moved | s/c lmwh or oral rivaroxaban/ apixaban (see page | s/c lmwh or oral rivaroxaban/ apixaban (see page
+- | only in the original | version: 2.4 date issued: 17 september 2024 review date: february 2026 key words: pulmonary embolus, suspected pulmonary embolus, pe, thrombolysis this is a controlled document. if you are using a printed copy, check it against the guidelines site to ensure you are using the latest edition. print copies must be destroyed after use. |
+- | only in the original | spesi wells score contents abbreviations ............................................................................................................... 1 executive summary .................................................................................................................... 3 aim of pathway ........................................................................................................................... 3 do you suspect a pulmonary embolism? ................................................................................ 4 ............................................................................................................................... 8 emergency pe thrombolysis .................................................................................................... 9 pulmonary embolism in special circumstances ................................................................... 10 appendix 1: contraindications and interactions of alteplase .............................................. 11 appendix 2: patients at increased bleeding risk ................................................................... 12 appendix 3: investigations in patients with confirmed pe .................................................. 13 appendix 4: miscellaneous ...................................................................................................... 14 appendix 5 - patient information leaflet ............................................................................... 15 full version control record ...................................................................................................... 19 |
+- | only in the original | d-dimer negative consider an alternative diagnosis d-dimer positive if patient over 50, age adjusted cut-off is 10 x age spesi score 0 refer for inpatient investigation of pe spesi score 1 or above |
+Do you suspect a Pulmonary Embolism? | changed | (breathlessness, pleuritic chest pain, syncope, cough) if | under review: this chart refers to pdf page numbers that do not match
+Do you suspect a Pulmonary Embolism? | changed | patient is in extremis follow instructions of pe thrombolysis box. if not continue with pathway below n.b. if patient pregnant please see specific pregnancy guidelines - link on page 10 calculate 2 level wells score previous pe or dvt 1.5 heart rate >100 1.5 surgery or immobilisation in last 4 weeks 1.5 haemoptysis 1 active cancer 1 clinical signs of dvt 3 pe most likely diagnosis (?cxr performed) 3 wells score 4 or under: pe unlikely calculate perc score age ≥50 years tachycardia >100 hypoxic <95% on air previous history of dvt or pe recent trauma or surgery haemoptysis exogenous oestrogen unilateral leg swelling if none of these apply then a pe can be ruled out with a 98% negative predictive value wells score >4: pe likely calculate | pdf, which affects anyone following them. "calculate
+Do you suspect a Pulmonary Embolism? | changed | page) & arrange cxr ecg fbc, u&e, lfts, clotting, crp troponin any of | page)": probably meant page 6, where
+Do you suspect a Pulmonary Embolism? | changed | perc are positive: perform a d-dimer consider ambulatory care, go next page does the patient have signs of high risk pe? shock or hypotension (systolic bp <90mmhg or systolic bp fall >40mmhg for >15 minutes not caused by sepsis or arrhythmia) follow | spesi score is. "follow
+Do you suspect a Pulmonary Embolism? | changed | 8) signs | 8)": page 8 is the treatment algorithm for patients not requiring thrombolysis, and emergency pe thrombolysis is on page 9. "if no exclusion criteria (page 7)": probably meant page 6, where they are. "appropriate dose
+Do you suspect a Pulmonary Embolism? | changed | dvt? spesi | 9)": probably meant page 8, where the doses are. the chart applies the perc
+Do you suspect a Pulmonary Embolism? | changed | remains 0 yes | to every patient with a wells score of 4 or under. this affects a patient with a wells score of 4 or under,
+Do you suspect a Pulmonary Embolism? | only on the page | | perc criteria and clinical suspicion that is not low: the chart rules out pe without a d-dimer, where nice ng158 recommends perc only when clinical suspicion is low, and a d-dimer for a wells score of 4 or under. see questions for the authors.
+Initial anticoagulation | only on the page | | doses* under review: probably meant as ≥166 kg: as printed ("138-165 kg", then ">166 kg"), a patient weighing exactly 166 kg has no dose, and the trust's dalteparin
+Initial anticoagulation | only on the page | | guideline has "≥166". see questions for the authors.
+Initial anticoagulation | only on the page | | under review: this affects a patient over 120 kg with a bmi from 40 to 47: this list allows a doac up to "140kg or bmi <47", and weight over 120kg up to "140kg or a bmi of <40". see questions for the authors.
+Weight over 120kg | only on the page | | under review: this affects a patient over 120 kg with a bmi from 40 to 47: this paragraph allows a doac up to "140kg or a bmi of <40", and initial anticoagulation up to "140kg or bmi <47". see questions for the authors.
+Relative contraindications to alteplase | only on the page | | under review: this affects a patient with a tia in the last 6 months who is being considered for thrombolysis: "tia in the preceding 6 months" is a relative contraindication here, and "known history of ischaemic stroke or tia in preceding 6 months" an absolute one in the list above. see questions for the authors.
+Appendix 3: Investigations in Patients with Confirmed PE | only on the page | | under review: this applies to "all patients over 45 with new pe", and the ambulatory pathway says "consider further investigations for unprovoked pe". it affects patients aged 45 or under with unprovoked pe, who are not covered here, where nice ng158 recommends a history, examination and baseline blood tests for anyone with unprovoked dvt or pe; and patients over 45 with provoked pe, who are covered here but not by the pathway. the trust's suspected dvt care pathway (section 4) lists different tests for unprovoked dvt: cxr, and, if not done in the past year, breast examination in women over 50, psa in men over 40, and calcium. see questions for the authors.
+Breast feeding and CTPA | changed | appendix 5 - patient information leaflet september 2024 | under review: this affects breastfeeding patients having a ctpa, who are told to express and discard their milk for 12 hours after the scan. the european society of urogenital radiology's contrast media guidelines say breastfeeding may continue normally after iodine-based contrast. see questions for the authors.
+- | only in the original | september 2024 suspected pulmonary embolism care pathway |
+- | only in the original | do you suspect a pulmonary embolism? assume patient has pe send clotting profile and give appropriate dose of |
+- | only in the original | 9) follow dvt ambulatory pathway if no exclusion criteria (page 7) are met then refer to ambulatory care n.b. spesi =0, troponin normal and normal ecg send clotting profile and give appropriate dose of s/c lmwh or oral rivaroxaban/ apixaban (see page 9) in hours: arrange for transfer of patient to ambulatory care (with notes) out of hours: make appointment to return to aecu next day if out of hours book ctpa and discuss scan with radiology (x15354l wexham or blp 5378 frimley) all initial investigations must be completed in ed vital signs cxr ecg fbc, u&e, lfts, clotting, crp troponin |
+- | only in the original | any are any exclusion criteria present for ambulatory management? spesi score of 1 or more y n right |
+- | only in the original | 8) y n sats<94% (unless known copd/ild) y n significant comorbidity e.g. ckd4, cirrhosis, decompensated ccf or metastatic malignancy y n age <18 y n not registered to a gp/live out of area y n bleeding disorder y n language difficulties y n active bleeding in last 4/52 y n social circumstances or unaccompanied at home y n creatinine ≥200umol /l y n anticipated compliance problem y n platelets ≤100 y n unable to walk y n heparin allergy or hit y n altered mental state (acute or chronic) if any exclusion criteria present patient not suitable for ambulatory management give appropriate dose of s/c lmwh (see page 8) book ctpa and discuss scan with radiology (x153541 wexham or blp 5378 frimley) refer to acute medical team inpatient management on amu/ if no exclusion criteria are met then refer to ambulatory care n.b. spesi =0, troponin normal and normal ecg send clotting profile and give appropriate |
+- | only in the original | 9) in hours: arrange for transfer of patient to ambulatory care (with notes) out of hours: make appointment to return to aecu next day if out of hours book ctpa and discuss scan with radiology (x153541 wexham or blp 5378 frimley) simplified pesi score: age >80 years cancer (history of or active) chronic lung or heart disease heart rate >110 bpm systolic bp <100 mmhg spo2 <90% if any of these are positive, the 30 day mortality increases from 1.1% to 8.9% and therefore admission is advised |
+- | only in the original | pe diagnosed review ctpa findings and troponin and ecg as simplified pesi score no pe seen stop lmwh or if given apixaban/ rivaroxaban consider alternative diagnosis and ensure senior review has taken place prior to discharge low risk (normal troponin + no rv dysfunction on ecg or ctpa & spesi score remains 0) remains suitable for ambulatory care high risk raised troponin +/- rv dysfunction on ecg or ctpa admit to hdu/madu urgent echo inform and d/w icu at frimley discuss with resp cons (8am to 6pm) on ext 133722 consider further investigations for unprovoked pe (see appendix 3) anticoagulation team to review, manage patient medication and counselling as per department processes n.b. choice of anticoagulation will be made on an individual basis following discussion with the patient discharge from aecu with plan for any follow up. complete discharge letter referral to anticoagulation team: wexham: x153964 or x153313 & complete ice referral frimley: blp 5127 & email fhft.anticoagulant.clinic@nhs.net are anticoagulation team able to see the patient the same day? out of hours/weekends wexham: leave message on x153964 or x153313 & complete ice referral frimley: email fhft.anticoagulant.clinic@nhs.net complete drug chart as though an inpatient for dalteparin or doac (see page 8 for dosing) n.b. patient/relative to be taught self- administration if prescribing dalteparin and given sharps bin if not able to self-administer to return to frimley mau or wexham aecu ensure appropriate follow up has been made for the patient - please use the pe care bundle frimley - complete the online edms referral for follow up wexham - anti-coagulation clinic will refer in to dr k vda op clinic yes no treatment algorithm for suspected +/- proven pe in patients not requiring thrombolysis is the patient at increased risk of bleeding? (see appendix 2) discuss with ed/medical consultant and on-call haematology consultant commence anticoagulation |
+Pulmonary Embolism (PE) [Suspected Pulmonary Embolism Care Pathway] | only on the page | | pulmonary embolism (pe) [suspected pulmonary embolism care pathway]
+Suitability criteria for Ambulatory management of possible LOW RISK PE | only on the page | | under review: this chart refers to pdf page numbers that do not match the pdf, which affects anyone following them. "right
+Suitability criteria for Ambulatory management of possible LOW RISK PE | only on the page | | 8)": page 8 is the treatment algorithm; page 7 has a high risk box ("raised troponin +/- rv dysfunction"), and emergency pe thrombolysis is on page 9. "appropriate
+Suitability criteria for Ambulatory management of possible LOW RISK PE | only on the page | | 9)": probably meant page 8, where the doses are, as the other box on this chart says. see questions for the authors.
+In Cardiac Arrest (Strong likelihood of PE) | only on the page | | in cardiac arrest (strong likelihood of pe)
+Related Documents | only on the page | | related documents none.
+```
+
+## Source typos fixed
+
+- Abbreviations: "CrCI/eGFR" → "CrCl/eGFR" (capital I for lower-case l).
+- Appendix 2: "discuss risk: benefit" → "risk:benefit".
+- Appendix 3: "complete the on line referral form" → "online".
+- Treatment algorithm (page 8): "Rivaroxaban- 15mg", "Apixaban- 10mg" → "Rivaroxaban - ", "Apixaban - " (as "Warfarin - ").
+
+## Source typos not changed (for the authors)
+
+In the flowchart pictures (pages 4-7):
+
+- Page 4: "Calculate sPESI score (see next page)": the sPESI score is on page 6.
+- Page 4: "FOLLOW HIGH RISK strategy (Page 8)" and page 6 "(See HIGH risk page 8)": Emergency PE Thrombolysis is on page 9.
+- Page 5: "IF NO EXCLUSION CRITERIA (page 7) ARE MET": the exclusion criteria are on page 6.
+- Pages 5 and 6: "give appropriate dose of S/C LMWH or oral rivaroxaban/ apixaban (see page 9)": dosing is on page 8 (page 6's other box and page 7 say page 8).
+- Page 5: "x15354l Wexham": letter l for the digit 1 (page 6 gives x153541).
+- Page 6: "Refer to Acute Medical team INPATIENT management on AMU/": the text is cut off after "AMU/".
+- Page 6: "Creatinine ≥200umol /L": stray space ("µmol/L").
+- Page 7: "Dr K VDA OP Clinic": unclear; please check the name.
+
+In the leaflet (Appendix 5, pages 15-18):
+
+- "Apixaban and Rivoroxaban," → "Rivaroxaban." (spelling, and a comma ends the list).
+- "Feelings of being breathless that comes on suddenly": "come".
+- "Recent immobilization": "immobilisation" elsewhere in the guideline.
+- Author "Georia Tunnicliffe": "Georgia"?
+- www.nhsdirect.nhs.uk: NHS Direct closed in 2014 (now NHS 111, www.111.nhs.uk).
+- Review date April 2024 has passed.
+
Modified: .code/convert/suspected-dvt-care-pathway/convert.json
  • Last changed on staging: 2026-10-27 09:34
Added: .code/convert/suspected-dvt-care-pathway/for-the-authors.md
  • Last changed on staging: 2026-10-27 09:34
staging: Lines 1 to 38
+# Questions for the authors: Suspected DVT Care Pathway
+
+These are our points for the authors of [Suspected DVT Care Pathway](https://guidelines.fhft.nhs.uk/staging/Haematology_and_VTE-VTE-Treatment-Suspected_DVT_Care_Pathway), from converting it for the guidelines website. Please consider them for your next version. The changes we made to its content are listed on its [Changes from the original](https://guidelines.fhft.nhs.uk/staging/Haematology_and_VTE-VTE-Treatment-Suspected_DVT_Care_Pathway#changes-from-the-original) sub-page.
+
+Last updated 27 October 2026.
+
+## Questions
+
+Each question keeps its number, so you can refer to it as Q1, Q2 and so on.
+
+**Q1.** [3.10](https://guidelines.fhft.nhs.uk/staging/Haematology_and_VTE-VTE-Treatment-Suspected_DVT_Care_Pathway#310-referral-to-the-anticoagulation-department) says "documentation must be submitted as per page 6 Blue Box". Page 6 has no blue box; the Frimley Park box on the proforma's third page seems to be meant. Page numbers mean nothing on the website: may it say "as per the Frimley Park Hospital box in Appendix A"? Recommend: yes.
+
+**Q2.** The proforma in [Appendix A](https://guidelines.fhft.nhs.uk/staging/Haematology_and_VTE-VTE-Treatment-Suspected_DVT_Care_Pathway#appendix-a-investigation-proforma-for-suspected-lower-limb-dvt) says "counselling can be performed by AEC staff if competent (see Appendix B)". The competency assessment is Appendix C. It is in a picture of the proforma, so it is not changed on the page.
+
+**Q3.** The Review Date is August 2024, before the Date Issued (17 September 2024), so the guideline is past its review date. When is it due for review?
+
+## Phone numbers
+
+The page has only internal extensions (132789, 154237, and 4237, 2789, 3313 and 3964 in the proforma pictures). None is a mobile or direct line, so there is nothing to check.
+
+## Typos
+
+### Fixed on the page
+
+- 2.1: "the proforma in Appendix 1" is now "Appendix A".
+- 2.1: "D- dimer" is now "D-dimer".
+- 2.2: "non- occlusive" is now "non-occlusive".
+- 3.6 table heading: "CrCl 10- 20ml/min" is now "10-20ml/min".
+- The second section numbered 3.6 (active cancer) is now 3.7, and 3.7 (distal DVTs) is now 3.8.
+- 3.7: "usually recommended. but the evidence" is now "recommended, but".
+- 3.9: "Long–term" (with a dash) is now "Long-term".
+
+### Left as printed
+
+- Appendix C: "Needs development (N) ,competent with support" (the comma).
+- Appendix A, page 13 (a picture): "ThrombosisCentre" in the Keeling reference.
+- Appendix A, page 14 (a picture): "see Appendix B" for the competency assessment, which is Appendix C (Q2).
+- 3.10: "page 6 Blue Box" (Q1).
Added: .code/docs/agents/domain.md
  • Last changed on staging: 2026-10-18 20:34
staging: Lines 1 to 47
+# Domain Docs
+
+How the engineering skills should consume this repo's domain documentation when exploring the codebase.
+
+## Locations in this repo: everything lives under `.code/`
+
+Every `.md` outside `.claude/`, `.code/`, `.git*`, `README.md` and `CLAUDE.md` is **published to the live guidelines site**. So this repo does not use the standard root locations:
+
+- Glossary: **`.code/GLOSSARY.md`**, never a root `GLOSSARY.md`
+- ADRs: **`.code/docs/adr/`**, never a root `docs/adr/`
+
+Wherever a skill says `GLOSSARY.md` or `docs/adr/`, read and write these paths instead.
+
+## Before exploring, read these
+
+- **`.code/GLOSSARY.md`**
+- **`.code/docs/adr/`**: read ADRs that touch the area you're about to work in.
+
+If any of these files don't exist, **proceed silently**. Don't flag their absence; don't suggest creating them upfront. The `/domain-modeling` skill (reached via `/grill-with-docs` and `/improve-codebase-architecture`) creates them lazily, at the paths above, when terms or decisions actually get resolved.
+
+## File structure
+
+Single-context repo:
+
+```
+/
+├── .code/
+│ ├── GLOSSARY.md
+│ ├── docs/adr/
+│ │ ├── 0001-....md
+│ │ └── 0002-....md
+│ ├── pipeline/
+│ └── Scripts/
+└── <Specialty>/ ← published guideline content
+```
+
+## Use the glossary's vocabulary
+
+When your output names a domain concept (in an issue title, a refactor proposal, a hypothesis, a test name), use the term as defined in `.code/GLOSSARY.md`. Don't drift to synonyms the glossary explicitly avoids.
+
+If the concept you need isn't in the glossary yet, that's a signal: either you're inventing language the project doesn't use (reconsider) or there's a real gap (note it for `/domain-modeling`).
+
+## Flag ADR conflicts
+
+If your output contradicts an existing ADR, surface it explicitly rather than silently overriding:
+
+> _Contradicts ADR-0007 (event-sourced orders), but worth reopening because…_
Added: .code/docs/agents/issue-tracker.md
  • Last changed on staging: 2026-10-18 20:34
staging: Lines 1 to 46
+# Issue tracker: GitHub
+
+Issues and specs for this repo live as GitHub issues. Use the `gh` CLI for all operations.
+
+## Conventions
+
+- **Create an issue**: `gh issue create --title "..." --body "..."`. Use a heredoc for multi-line bodies.
+- **Read an issue**: `gh issue view <number> --json number,title,body,labels,comments`.
+- **List issues**: `gh issue list --state open --json number,title,body,labels,comments --jq '[.[] | {number, title, body, labels: [.labels[].name], comments: [.comments[].body]}]'` with appropriate `--label` and `--state` filters.
+- **Make an issue a sub-issue of a parent**: `gh issue create --parent <parent> ...`, or `gh issue edit <parent> --add-sub-issue <child>` afterwards (`gh` 2.94+). Older `gh`: `gh api --method POST repos/<owner>/<repo>/issues/<parent>/sub_issues -F sub_issue_id=<child-db-id>` (database id, as in **Blocking** below). Without sub-issues, put `Part of #<parent>` at the top of the child body.
+- **Comment on an issue**: `gh issue comment <number> --body "..."`
+- **Apply / remove labels**: `gh issue edit <number> --add-label "..."` / `--remove-label "..."`
+- **Close**: `gh issue close <number> --comment "..."`
+
+Infer the repo from `git remote -v`; `gh` does this automatically when run inside a clone.
+
+## Pull requests as a triage surface
+
+**PRs as a request surface: no.** _(Set to `yes` if this repo treats external PRs as feature requests; `/triage` reads this flag.)_
+
+When set to `yes`, PRs run through the same labels and states as issues, using the `gh pr` equivalents:
+
+- **Read a PR**: `gh pr view <number> --comments` and `gh pr diff <number>` for the diff.
+- **List external PRs for triage**: `gh api --paginate 'repos/{owner}/{repo}/pulls?state=open' --jq '.[] | select(.author_association | IN("OWNER","MEMBER","COLLABORATOR") | not) | {number, title, author: .user.login, author_association, labels: [.labels[].name]}'`.
+- **Comment / label / close**: `gh pr comment`, `gh pr edit --add-label`/`--remove-label`, `gh pr close`.
+
+GitHub shares one number space across issues and PRs, so a bare `#42` may be either: resolve with `gh pr view 42` and fall back to `gh issue view 42`.
+
+## When a skill says "publish to the issue tracker"
+
+Create a GitHub issue.
+
+## When a skill says "fetch the relevant ticket"
+
+Read it as in **Read an issue** above.
+
+## Wayfinding operations
+
+Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets.
+
+- **Map**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body. `gh issue create --label wayfinder:map`.
+- **Child ticket**: an issue linked to the map as a GitHub sub-issue (see **Make an issue a sub-issue of a parent**). Where sub-issues aren't enabled, add the child to a task list in the map body and put `Part of #<map>` at the top of the child body. Labels: `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
+- **Blocking**: GitHub's **native issue dependencies**, the canonical, UI-visible representation. Add an edge with `gh api --method POST repos/<owner>/<repo>/issues/<child>/dependencies/blocked_by -F issue_id=<blocker-db-id>`, where `<blocker-db-id>` is the blocker's numeric **database id** (`gh api repos/<owner>/<repo>/issues/<n> --jq .id`, _not_ the `#number` or `node_id`). GitHub reports `issue_dependencies_summary.blocked_by` (open blockers only, the live gate). Where dependencies aren't available, fall back to a `Blocked by: #<n>, #<n>` line at the top of the child body. A ticket is unblocked when every blocker is closed.
+- **Frontier query**: list the map's open children (`gh issue list --state open`, scoped to the map's sub-issues / task list), drop any with an open blocker (`issue_dependencies_summary.blocked_by > 0`, or an open issue in the `Blocked by` line) or an assignee; first in map order wins.
+- **Claim**: `gh issue edit <n> --add-assignee @me`, the session's first write.
+- **Resolve**: `gh issue comment <n> --body "<answer>"`, then `gh issue close <n>`, then append a context pointer (gist + link) to the map's Decisions-so-far.
Added: .code/docs/agents/triage-labels.md
  • Last changed on staging: 2026-10-18 20:34
staging: Lines 1 to 15
+# Triage Labels
+
+The skills speak in terms of five canonical triage roles. This file maps those roles to the actual label strings used in this repo's issue tracker.
+
+| Label in mattpocock/skills | Label in our tracker | Meaning |
+| -------------------------- | -------------------- | ---------------------------------------- |
+| `needs-triage` | `needs-triage` | Maintainer needs to evaluate this issue |
+| `needs-info` | `needs-info` | Waiting on reporter for more information |
+| `ready-for-agent` | `ready-for-agent` | Fully specified, ready for an AFK agent |
+| `ready-for-human` | `ready-for-human` | Requires human implementation |
+| `wontfix` | `wontfix` | Will not be actioned |
+
+When a skill mentions a role (e.g. "apply the AFK-ready triage label"), use the corresponding label string from this table.
+
+Edit the "Label in our tracker" column to match whatever vocabulary you actually use.
Modified: .code/docs/publishing-rules.md
  • Last changed on staging: 2026-11-11 23:29
staging: Line 95
+17. **A reference to an appendix (or any other sub-page) links to it,** so tapping "Appendix 6" opens Appendix 6 in place: `follow [Appendix 6](#appendix-6-ectopic-beats-referral-pathway) below`. The part after `#` is the sub-page's title in lower case, with punctuation (such as ":", "/", brackets) removed and each space a hyphen: "Appendix 1: Antenatal CTG Tool" is `#appendix-1-antenatal-ctg-tool`. Only the words "Appendix 6" are the link. A reference inside a heading is not linked. Renaming a sub-page breaks its links. ✓ (`internal-link`: every `#` link must name a sub-page; a heading inside a sub-page cannot be linked, so link the sub-page that holds it) It is a style change, listed once in Changes from the original. How it works for authors: Authoring Help, Using Markdown.
main: Line 119, staging: Line 120
- - **Style changes:** one table with the columns Change, Was and Now: the rule in plain words, then one example. Where the rule comes from the NHS digital service manual, the Change cell says so: "Red text shown as inset text, as in the NHS digital service manual". Other rows do not mention it.
+ - **Style changes:** one table with the columns Change, Was and Now: the rule in plain words, then one example. Where the rule comes from the NHS digital service manual, the Change cell says so, and links the component's name to its page in the manual: `Red text shown as <a href="https://service-manual.nhs.uk/design-system/components/inset-text">inset text</a>, as in the NHS digital service manual`. Other rows do not mention it.
main: Line 150, staging: Line 151
-Every conversion keeps a `notes.md` (in `.code/convert/<guideline>/`), which the reviewer sends to the authors. It lists:
+Every conversion keeps a `for-the-authors.md` (in `.code/convert/<guideline>/`), published by the staging build as the authors' page, at `https://guidelines.fhft.nhs.uk/questions/<code>`: a random code given to the guideline once (`questions_code` in its `convert.json`), so the page is in no index and only those with the link can find it (owner, 2026-10-26). It is not a guideline: it carries a banner saying so, is marked not to be indexed, and is never on the live site. The reviewer sends the authors the link; `notes.md` keeps only what is for the reviewer. Every guideline gets the page, Word originals too, so the authors always get the same thing. The authors do not reply on it: those who take the points send an updated guideline, converted as a new version. It lists, in this order, with its questions numbered Q1, Q2, ... (a number never changes and is never reused):
main: Lines 152 to 155, staging: Lines 153 to 156
-- **every source typo,** both the ones fixed on the page and the ones left as printed (in pages shown as images or PDFs, or text later replaced). A typo is never dropped from the list just because its text has gone;
-- **every suspected error kept as printed,** such as a clinical value or a lone underlined sign, with a recommendation;
-- **every Word comment and tracked change** that was not carried over;
-- **every mobile or direct phone number on the page,** asking whether it may be published: the site can be read by anyone (owner, 2026-10-20).
+- **questions:** every suspected error kept as printed, such as a clinical value or a lone underlined sign, every content-check finding the reviewer keeps (`.code/docs/writing-checks.md`), and every open question, each with a link to where it is on the page and, where there is one, a recommendation. A question flagged on the page (rule 1.13) is written only in the page's Questions for the authors (rule 4.3): the staging build copies that table onto the authors' page each time, so the authors have every question in one place and the two cannot differ (owner, 2026-10-27);
+- **every mobile or direct phone number on the page,** asking whether it may be published: the site can be read by anyone (owner, 2026-10-20);
+- **every Word comment and tracked change** that was not carried over (Word originals);
+- **every source typo,** both the ones fixed on the page and the ones left as printed (in pages shown as images or PDFs, or text later replaced). A typo is never dropped from the list just because its text has gone.
main: Line 157, staging: Lines 158 to 160
-For a **Word original**, the authors also get their document back with **every change on the page as a tracked change**, and a Word comment on each correction whose reason is not obvious and on each open question, so they can accept or reject each one in Word (owner, 2026-10-20). Rejecting every change must give back their original exactly, and accepting every change the page's text. It is kept beside `notes.md` as `<name> - suggested changes.docx`; it does not set Date Issued (that is done at publication). The page does not wait for their answer (rule 1.13); a change they reject is reverted in a new version of the guideline. First applied: Care of Women with Obesity in Pregnancy.
+The changes to the content are not repeated: they are on the guideline's Changes from the original sub-page, which the page links to.
+
+For a **Word original**, the authors also get their document back with **every change on the page as a tracked change**, and a Word comment on each correction whose reason is not obvious and on each open question, so they can accept or reject each one in Word (owner, 2026-10-20). Rejecting every change must give back their original exactly, and accepting every change the page's text. It is kept beside `for-the-authors.md` as `<name> - suggested changes.docx`, and sent with the link; it does not set Date Issued (that is done at publication). The page does not wait for their answer (rule 1.13); a change they reject is reverted in a new version of the guideline. First applied: Care of Women with Obesity in Pregnancy.
main: Line 161, staging: Line 164
-The covering email to the authors says that a person has reviewed the suggestions.
+The covering email to the authors is short: the link to their page, and that a person has reviewed the suggestions.
main: Line 173, staging: Line 176
-7. **A chart with a choice nobody can make is not redrawn:** a box with more than one way out and no question or labels to choose between them stays as an image, and goes to the authors in `notes.md`.
+7. **A chart with a choice nobody can make is not redrawn:** a box with more than one way out and no question or labels to choose between them stays as an image, and goes to the authors as a question in `for-the-authors.md` (section 7).
Added: .code/docs/review-date-gaps-2026-10.md
  • Last changed on staging: 2026-10-19 14:56
staging: Lines 1 to 161
+# Guidelines with no usable review date: causes (2026-10)
+
+Read-only investigation, 2026-10-18. Source: `origin/main` @ 92b4989c, cross-checked against the live nightly report (`reportData/latest.json`, generated 2026-10-18 00:01 UTC). Nothing was changed or committed. Accepted formats: `dd/mm/yyyy`, `dd-Mon-yy`, `Month yyyy`, `Mon-yy`, `Month yy`; `00/00/0000` is rejected.
+
+## Summary
+
+Of 658 guidelines on `main` (371 web, 287 PDF-only), **83 have no usable review date**. That is more than the "about 30" first counted, but only **33 are genuinely clinical guidance whose date is missing or malformed**; 37 are link hubs / About pages, and 13 are single-link pages whose date belongs to the linked document.
+
+| Group | Cause | Count |
+|---|---|---|
+| A | Non-clinical page (useful-links hubs, About, extranet/policy links): no date needed | 37 |
+| B | Page is only a link to an external/intranet document: the date lives in the target | 13 |
+| C | Real guideline, date never recorded (no front matter, or blank in the document itself) | 3 |
+| D | Front matter has the `00/00/0000` placeholder | 2 |
+| E | Date present but in a format the parser does not accept | 3 |
+| F | PDF-only, `-info.csv` holds `00/00/0000` | 13 |
+| G | PDF-only, no `-info.csv` at all | 12 |
+
+## Findings that change the plan
+
+1. **The extractor is not the cause of any of them.** All 273 `-info.csv` files on `main` use the keys `Date Issued` / `Review Date`; the extractor (`.code/Scripts/extract_pdf_metadata.py`) writes `Version Implementation Date` / `Review Date` and only when the first page has a metadata table containing `Version`. None of the current CSVs has that shape, so they were all created by hand (e.g. `Screening for Coeliac…-info.csv` is a GitHub web "Create" commit of 2024-12-24 with a template `Review Date,00/00/0000`). The 12 PDFs without a CSV have no metadata table on page 1, so the extractor would not produce one either.
+2. **Only 2 of the 25 PDF-only gaps have a review date in the source**: Coeliac screening ("Review Date: October 2026") and UKONS ("review date: 3 years" from 13/02/2023, i.e. 13/02/2026, so overdue). For the other 23 the date does not exist in the document; it can only come from an author, or the page can be exempted.
+3. **`00/00/0000` is a template placeholder, not a parse failure.** It is deliberate "unknown" and is correctly treated as unusable.
+4. **The live report also holds 642 phantom guideline rows** (`has_pdf_src=false` and `has_md_src=false`, no `Review Date` key, almost all with 0 views in 90 days, e.g. `Nutrition & Dietetics/Oral and Enteral Feeding (Adult)`, `/uk.co.montreux.frimleyhealth.main-json/index`). They come from the access-log side (retired or renamed paths). They are not on `main`. The weekly report must filter on `has_pdf_src or has_md_src`, otherwise it will count about 640 more "no date" rows. (The live report otherwise agrees with the repo: same values for every row here; 595 of 670 real rows carry a review date.)
+5. **Priority by use**: `General Medicine/Electrolytes (Pocket Guide)` (6,523 views in 90 days, no front matter, last touched 2023-04-12) and `Dalteparin Doses` (1,288, malformed date) dwarf the rest.
+
+## Group E: date present, format not accepted (3), fix in the front matter
+
+All three are values the owner could simply reformat; the dates are also in the document body.
+
+| Path | Format | Current value | 90-day views | Cause / suggested fix |
+|---|---|---|---|---|
+| `Neonates/Infections/Hepatitis C in the Newborn.md` | web | `01 July 2027` | 16 | Change front matter to `Review Date: 01/07/2027` |
+| `Haematology & VTE/VTE - Treatment/Dalteparin Doses.md` | web | `Feb 2027` | 1288 | Change front matter to `Review Date: 01/02/2027 (or 28/02/2027)` |
+| `Respiratory/Bronchiectasis and CF/Nebuliser Doses and Devices.md` | web | `01 July 2026` | 42 | Change front matter to `Review Date: 01/07/2026` |
+
+Alternatively widen the parser to accept `Mon yyyy` and `dd Month yyyy`.
+
+## Group C: real guideline, date never recorded (3)
+
+| Path | Format | Current value | 90-day views | Cause / suggested fix |
+|---|---|---|---|---|
+| `General Medicine/Electrolytes (Pocket Guide).md` | web | `(no front matter)` | 6523 | Ask author; add front matter (Version, Date Issued, Review Date) |
+| `Anaesthetics/GIRFT/TTO Analgesia Following Day Case Surgery in Adults.md` | web | `(none)` | 18 | Ask author to complete the review date (blank in the document's own table / no metadata) |
+| `Anaesthetics/GIRFT/Anterior Cruciate Ligament Reconstruction (Day Case).md` | web | `(none)` | 66 | GIRFT summary page with no metadata: add Version/Date Issued/Review Date, or treat as non-clinical |
+
+## Group D: placeholder in front matter (2)
+
+| Path | Format | Current value | 90-day views | Cause / suggested fix |
+|---|---|---|---|---|
+| `Intensive Care/Cardiovascular/Targeted Temperature Management.md` | web | `00/00/0000` | 49 | Ask author for the review outcome; guideline noted "in review (16/12/2024)" so overdue |
+| `Emergency Medicine/Mental Health/Psychiatry Liaison Referrals from ED - FPH.md` | web | `00/00/0000` | 28 | Ask author; page last updated Jan 2020, image Mar 2023 |
+
+## Group F: PDF-only, `-info.csv` has `00/00/0000` (13)
+
+| Path | Current value | 90-day views | What the source PDF shows | Suggested fix |
+|---|---|---|---|---|
+| `Neonates/Useful Documents/Pre-Intubation Checklist (WPH).pdf` | `00/00/0000` | 22 | Not in source (checklist, only "Version 1.5 Jun-19" in the file) | Ask WPH neonatal team; or exempt checklists |
+| `Paediatrics/Diabetes/Screening for Coeliac Disease in Type 1 Diabetes (TVPDN).pdf` | `00/00/0000` | 14 | **In source**: "Review Date: October 2026" on page 1; the CSV placeholder was never filled | Set `Review Date,01/10/2026` (or 31/10/2026) |
+| `Emergency Medicine/Radiology/Interventional Radiology On Call Network (FPH).pdf` | `00/00/0000` | 20 | Not in source (contact-list page) | Ask author / exempt |
+| `Emergency Medicine/Frailty/Rockwood Clinical Frailty Scale.pdf` | `00/00/0000` | 26 | Not in source (single-page image, no text layer) | Ask author / exempt |
+| `Emergency Medicine/Communication (Including Interpreting)/Makaton Crib Sheet.pdf` | `00/00/0000` | 30 | Not in source (external crib sheet) | Exempt, or ask author |
+| `Emergency Medicine/Airway/Intubation Checklist - ED (WPH).pdf` | `00/00/0000` | 53 | Not in source (form carries only "Version: 202103_0…") | Ask ED; the form is likely overdue |
+| `Diabetes & Endocrinology/COvID Dexamethasone Therapy for Diabetes In-Patients.pdf` | `00/00/0000` | 23 | Not in source (v1.4, 29/6/2020; Date Issued also 00/00/0000) | Probably retire (COVID-19 2020); else ask author |
+| `Diabetes & Endocrinology/COvID Discharge Pathway for Diabetes Patients.pdf` | `00/00/0000` | 48 | Not in source (v1.3, 5/10/2021; Date Issued also 00/00/0000) | Probably retire (COVID-19 2021); else ask author |
+| `Anaesthetics/Airway Management/Difficult Intubation Guidelines Overview (DAS).pdf` | `00/00/0000` | 94 | Not in source (external DAS document) | Exempt (external) or ask author |
+| `Anaesthetics/Bariatric/Perioperative Management of the Obese Surgical Patient (AAGBI).pdf` | `00/00/0000` | 35 | Not in source (external AAGBI/SOBA 2015, 37 pp) | Exempt (external) or ask author |
+| `Anaesthetics/Bariatric/Anaesthesia for the Obese Patient (SOBA).pdf` | `00/00/0000` | 42 | Not in source (external SOBA one-pager) | Exempt (external) or ask author |
+| `Anaesthetics/Equipment/Checking Anaesthetic Equipment (AAGBI).pdf` | `00/00/0000` | 19 | Not in source (external AAGBI 2012) | Exempt (external) or ask author; very old |
+| `Anaesthetics/General Duties/Day Case Surgery.pdf` | `00/00/0000` | 22 | Not in source (external AAGBI/BADS 2019) | Exempt (external) or ask author |
+
+
+## Group G: PDF-only, no `-info.csv` (12)
+
+| Path | Current value | 90-day views | What the source PDF shows | Suggested fix |
+|---|---|---|---|---|
+| `Oncology/Ukons Acute Oncology Initial Management National Guidelines.pdf` | `(no -info.csv)` | 181 | **In source**: "Version 4.0 13.02.2023 (review date: 3 years…)" = 13/02/2026, so overdue; extractor could not see it because no -info.csv exists | Create CSV with `Review Date,13/02/2026`; check for a newer UKONS version |
+| `Emergency Medicine/Transfer/Adult Critical Care Transfer Service (SCAS).pdf` | `(no -info.csv)` | 12 | Not in source | Ask author / exempt (SCAS process) |
+| `Emergency Medicine/General Guidance/Fitness to Drive.pdf` | `(no -info.csv)` | 19 | Not in source | Ask ED author |
+| `Emergency Medicine/Major Trauma/Compartment Syndrome (TVTN) - WPH.pdf` | `(no -info.csv)` | 22 | Not in source (TVTN V01, no date) | Ask TVTN / WPH ED |
+| `Emergency Medicine/Major Trauma/Trauma Unit Bypass Tool (TVTN) (WPH).pdf` | `(no -info.csv)` | 20 | Not in source (v2.4, 07/05/20; no review date) | Ask TVTN; likely overdue |
+| `Emergency Medicine/Major Trauma/Spinal Cord Injury Assessment Chart - WPH.pdf` | `(no -info.csv)` | 16 | Not in source (assessment chart, 52 chars of text) | Exempt (form) or ask author |
+| `Emergency Medicine/Major Trauma/Major Trauma Automatic Acceptance Policy (TVTN) - WPH.pdf` | `(no -info.csv)` | 57 | Not in source | Ask TVTN / WPH ED |
+| `Gastroenterology/Bristol Stool Form Scale.pdf` | `(no -info.csv)` | 20 | Not in source (reproduced chart) | Exempt (reference chart) |
+| `Pain/Analgesia/Rib Fracture - Summary Flowchart.pdf` | `(no -info.csv)` | 96 | Not in source | Ask Inpatient Pain Team |
+| `Pain/!Assessment/Assessment and Treatment of Motor Block.pdf` | `(no -info.csv)` | 19 | Not in source | Ask Inpatient Pain Team |
+| `Pain/!Assessment/Pain Assessment (Observation machine laminate).pdf` | `(no -info.csv)` | 18 | Not in source ("Version 2: January 2023") | Ask Inpatient Pain Team |
+| `Pain/!Assessment/Bolton Pain Assessment Tool on EPIC.pdf` | `(no -info.csv)` | 25 | Not in source ("V1 April 2023") | Ask Inpatient Pain Team |
+
+
+## Group B: single-link pages, date belongs to the target (13)
+
+| Path | Format | Current value | 90-day views | Cause / suggested fix |
+|---|---|---|---|---|
+| `Paediatrics/Infections, Inflammatory, Fever/Network Paediatric Antimicrobial Guides.md` | web | `(none)` | 103 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Paediatrics/Diabetes/Sick Day Rules.md` | web | `(none)` | 128 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Mental Health/Rapid Tranquilisation.md` | web | `(none)` | 121 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Emergency Medicine/Mental Health/Medical emergencies in eating disorders (MEED).md` | web | `(none)` | 23 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Emergency Medicine/Paediatric/PIER Paediatric Rapid Tranquilisation.md` | web | `(none)` | 20 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Blood Transfusion/!Blood Transfusion Policies/Blood Transfusion Policy for Adult Patients.md` | web | `(no front matter)` | 275 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Medical SDEC/Medical SDEC Cellulitis - ED & Medical SDEC Pathway.md` | web | `(no front matter)` | 94 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Medical SDEC/Medical SDEC Pyelonephritis - ED & Medical SDEC Pathway.md` | web | `(no front matter)` | 146 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Medical SDEC/Medical SDEC Suspected Deep Vein Thrombosis – ED & Medical SDEC Pathway.md` | web | `(no front matter)` | 83 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Medical SDEC/Medical SDEC Multi Drug Resistant (MDR) UTI – ED & Medical SDEC Pathway.md` | web | `(no front matter)` | 23 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Sepsis/!Paediatric sepsis tool .md` | web | `(none)` | 37 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Anaesthetics/Critical Incidents/Local anaesthetic toxicity.md` | web | `External` | 41 | Exempt (link to an external/intranet document) or record the target document's review date |
+| `Anaesthetics/Paediatric/Per-Op Management of Children with Diabetes in the Peri-Op Setting.md` | web | `(none)` | 12 | Exempt (link to an external/intranet document) or record the target document's review date |
+
+Note `Local anaesthetic toxicity` has `Review Date: External`, the author's way of saying the same thing.
+
+## Group A: non-clinical pages (37)
+
+| Path | Format | Current value | 90-day views | Cause / suggested fix |
+|---|---|---|---|---|
+| `Orthopaedics & Trauma/!Orthopaedics and Trauma Useful Links.md` | web | `(none)` | 157 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Neonates/!!Neonates Useful Links.md` | web | `(none)` | 298 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Pharmacy/!Pharmacy Useful Links.md` | web | `(none)` | 103 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Elderly Care/! Elderly Care Useful Links.md` | web | `(none)` | 135 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `ENT/!ENT Useful Links.md` | web | `(none)` | 122 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Heatherwood/! Heatherwood Useful links.md` | web | `(none)` | 9 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Paediatrics/!Paediatrics Useful Links.md` | web | `(none)` | 452 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Paediatrics/!!Emergencies in Paediatrics.md` | web | `(none)` | 172 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Paediatrics/Gastrointestinal/!Additional Resources.md` | web | `00/00/0000` | 39 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Mental Health/!Mental Health Useful Links to the intranet including clozapine guidance.md` | web | `(none)` | 34 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `General Medicine/!General Medicine Useful Links.md` | web | `(none)` | 157 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `About/Above The Fold - Example PAT Dogs.md` | web | `(no front matter)` | 0 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `About/Above The Fold - Simple Example.md` | web | `(no front matter)` | 0 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `About/About.md` | web | `(no front matter)` | 98 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `About/Above The Fold.md` | web | `(none)` | 0 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Palliative Care/!Trust Extranet page; Care for the dying, deceased and recently bereaved/!Click to access the Contact Details & SOPs.md` | web | `(none)` | 48 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Medical & Surgical General Guidance/!Click to access the Contact Details & SOPs.md` | web | `(none)` | 177 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Intensive Care/! ITU Useful Links.md` | web | `(none)` | 14 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Nutrition & Dietetics/!Nutrition and Dietetics Useful Links.md` | web | `(none)` | 172 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Nursing/!Nursing Useful links.md` | web | `(none)` | 68 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Deteriorating Patient and resuscitation/Deteriorating Patient and resuscitation .md` | web | `(none)` | 219 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Surgical/!Surgical Useful Links.md` | web | `(none)` | 78 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Haematology & VTE/!Haematology Useful Links.md` | web | `(no front matter)` | 85 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Oncology/!Oncology Useful Links.md` | web | `(none)` | 61 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Emergency Medicine/!ED Useful Links.md` | web | `(none)` | 951 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `IPC/A to Z Table of Infections.md` | web | `(none)` | 111 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `IPC/!!Links to National IPC Guidance (NHS England).md` | web | `(none)` | 83 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `IPC/!IPC Policy Links to Ourplace.md` | web | `(no front matter)` | 72 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Electronic Patient Records (EPR)/Epic EPR - Electronic patient record.md` | web | `(none)` | 52 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Gastroenterology/!Gastroenterology Useful Links.md` | web | `(none)` | 92 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Obstetrics & Gynaecology/!Gynaecology and Maternity SOPs & Useful Links.md` | web | `(none)` | 49 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Obstetrics & Gynaecology/!Policy Page, NB If you are unable to find a the document on the guideline platform, check the Policies page/Link to Policies.md` | web | `(none)` | 67 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Respiratory/!Respiratory Medicine Useful Links.md` | web | `(none)` | 58 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Medical SDEC/! Medical SDEC extranet page link.md` | web | `(no front matter)` | 45 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Anaesthetics/!Anaesthetics Useful Links.md` | web | `(none)` | 48 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Dermatology/!Dermatology Useful Links.md` | web | `(none)` | 225 | Exempt from the report: mark as non-clinical (see recommendation) |
+| `Radiology/! Radiology useful Links.md` | web | `(none)` | 62 | |
+
+## Recommendation
+
+1. **Exempt rather than fix groups A and B (50 of 83).** They are link hubs and pointers; a review date on them is meaningless. Cheapest robust rule: the report skips a guideline when the page has no front matter `Version`/`Date Issued` and its body is links only; or add an explicit marker. A one-off `Review Date: Not applicable` is *not* needed if the rule is explicit. Decide which, then the weekly report drops them silently instead of being "left out".
+2. **Fix group E now (3 values, front matter only).** Dalteparin is the high-traffic one.
+3. **No extractor change is justified.** The extractor never wrote these files. Fixing it would not recover a single date, and the two dates that exist in PDFs (Coeliac, UKONS) are better entered by hand than by extending a script that currently produces nothing.
+4. **Ask authors for the rest (30 guidelines, groups C, D, F, G)**, in priority order: Electrolytes pocket guide, Targeted Temperature Management (already "in review" since 16/12/2024), Trauma Unit Bypass Tool, Intubation Checklist (ED), then the Pain team's four sheets (one author team, one email). Group the requests per team to keep it to a handful of emails.
+5. **Candidates to retire rather than date**: the two COVID diabetes sheets (2020/2021), the AAGBI 2012 equipment checklist.
+6. **Make `00/00/0000` impossible to create**: the CSV template that people copy should leave the field empty (or the publish check should warn), so a placeholder stops looking like data.
+7. In the weekly report, filter phantom rows (finding 4).
Modified: .code/docs/reviewer-guide.md
  • Last changed on staging: 2026-10-26 22:49
staging: Line 78
+- **For the authors:** the page the authors will get, exactly as they will see it: Claude's questions for them (numbered Q1, Q2, ...), the phone numbers to check, and the typos in their document.
main: Line 92, staging: Line 93
-Points for the authors (typos in their document, open questions, our corrections) go to them by email in step 6. Some points come from Claude's content checks (each names its check, for example `cross-guideline-consistency`; the list is `.code/docs/writing-checks.md`): they are Claude's reading, so decide which are worth the authors' time and strike the rest. The page does not wait for their answers.
+Points for the authors (typos in their document, open questions) are in the For the authors tab; they get the link to that page in step 6. Some points come from Claude's content checks (each names its check, for example `cross-guideline-consistency`; the list is `.code/docs/writing-checks.md`): they are Claude's reading, so decide which are worth the authors' time and strike the rest ("strike Q3 and Q5"). A struck question leaves a gap in the numbers: they never change, so the authors can refer to "Q4". The page does not wait for their answers.
main: Line 104, staging: Lines 105 to 109
-Say "draft the email to the authors". Claude leaves a draft in your Gmail, from guidelines@montreux.co.uk, with the attachments (for a Word original, a copy of their document with every change tracked, so they can accept or reject each one). Claude never sends it.
+First read the For the authors tab in /preview once more: it is exactly what the authors will see. Strike anything not worth their time (step 4).
+
+Say "draft the email to the authors". Claude leaves a draft in your Gmail, from guidelines@montreux.co.uk: a short message with the link to their page on the guidelines site (`https://guidelines.fhft.nhs.uk/questions/...`), and for a Word original a copy of their document with every change tracked, so they can accept or reject each one. Claude never sends it.
+
+The page is not listed anywhere on the site and search engines are told not to index it, but anyone with the link can read it, so send it only to the authors. It is updated every time the guideline is previewed on staging, so the link always shows the latest version. To withdraw a link (sent to the wrong person, say), ask Claude to "give <guideline> a new authors' link": the old one stops working at the next staging preview.
Added: .code/docs/superpowers/specs/2026-10-26-author-questions-page-design.md
  • Last changed on staging: 2026-10-26 22:37
staging: Lines 1 to 78
+# Questions for the authors page: design
+
+Date: 2026-10-26. Status: approved by the owner, 2026-10-26 (decisions below).
+Spans this repository and the platform repository (`yohondo/guidelines-platform`).
+
+## Why
+
+Every conversion ends with points for the authors: typos, suspected errors kept as printed, questions, and now the findings of the content checks (`.code/docs/writing-checks.md`). Today the reviewer emails them. With many guidelines being converted, that means many long emails, each out of date as soon as a review round changes something.
+
+For a Word original the authors also get their document back with tracked changes. For a PDF original, which is most legacy guidelines, there is no document to mark up, so the points *are* the whole of the feedback. That is where this page matters most.
+
+The owner wants a page per guideline that the reviewer can link to and keep up to date, on the guidelines site but not findable by browsing.
+
+## What it is
+
+One page per guideline, at `https://guidelines.fhft.nhs.uk/questions/<code>`, where `<code>` is a random 32-character code given to that guideline once. It shows the guideline's `for-the-authors.md`: everything the authors need from the conversion, and nothing meant only for the reviewer.
+
+- **Not findable:** in no contents list, index, sitemap or search; marked not to be indexed by search engines; linked from nowhere on the site. The staging bucket lets anyone read a file but not list them (checked 2026-10-26: its policy grants `s3:GetObject` only), so a code cannot be found by looking.
+- **Not private:** anyone with the link can read it, which the owner accepts (decision 1).
+- **Always current:** it is published by the staging build, so every review round pushed to `staging` updates it.
+- **Not a guideline:** it has a banner saying so, and never appears on the live site's contents.
+
+## Content: `for-the-authors.md`
+
+A new file per guideline, `.code/convert/<slug>/for-the-authors.md`, is the single author-facing document. It replaces the author sections now scattered through `notes.md` ("For the authors", "Questions for the authors", "Unsure (for the authors)", "Source typos fixed", "Source typos not changed (for the authors)"), which vary from guideline to guideline. `notes.md` keeps what is for the reviewer only (decisions, checks by eye, what was fixed and why) and points to the new file. Nothing is kept in both.
+
+It is written to the authors, in this order:
+
+1. **Title and a short introduction** (from a template): what this page is, the guideline it is about with a link to its staging page, that the points are for the authors to consider in their next version, and the date it was last updated.
+2. **Questions** (numbered, and the numbers never change, so anyone can refer to "Q3"): suspected errors kept as printed, content check findings (each naming its check), open questions. Each says where on the page it is (a link to the section) and, where there is one, recommends an answer. An item with an "Under review" flag on the page says so.
+3. **Phone numbers:** every mobile or direct number on the page, asking whether it may be published (publishing rules, section 7).
+4. **Word comments and tracked changes not carried over** (Word originals only).
+5. **Typos:** those fixed on the page, and those left as printed.
+
+The changes made to the content are not repeated: the guideline's own "Changes from the original" sub-page lists them, and the introduction links to it.
+
+The reviewer edits this file like the page. Claude's content check findings are drafts: the reviewer deletes those not worth the authors' time before the link is sent (reviewer guide, step 6). What is in the file at the last push to `staging` is what the authors see.
+
+## How it is built
+
+### This repository
+
+- **`convert_one`** gives each guideline its code when it is placed (`secrets.token_hex(16)`), stored as `questions_code` in `.code/convert/<slug>/convert.json`, and writes a `for-the-authors.md` stub from a template. A guideline converted before this change gets both from `convert_one questions <slug>`, which also prints the link. Revoking a link means giving a new code with `--new-code`; the old page is removed at the next publish.
+- **`build_site.py`, staging only:** for each `.code/convert/*/convert.json` with a `questions_code` and a `for-the-authors.md`, it runs the same parser as the guidelines on the file and writes `questions/<code>.json`. On other branches it does nothing, so the pages exist only in the staging bucket.
+- **`publish_site.py`** uploads `questions/` with the rest, and deletes any `questions/<code>.json` the build no longer makes (a new code, a removed file). Nothing under `questions/` is added to `index.json`, `index-restricted.json` or the sitemap.
+- **Checks:** `check_page` gains a mode for `for-the-authors.md` (the sections above, in order; question numbers unique and never reused). The pre-push and PR checks are unchanged: `.code/` is still never published as a guideline.
+
+### Platform repository
+
+- **Route:** `/questions/<code>` is rewritten by the host to `questions/shell.html` (`infrastructure/reader-app.yaml`), like `/staging/<slug>`.
+- **Page:** `src/app/questions/shell/page.tsx` reads the code from the address, fetches `questions/<code>.json` from the staging JSON bucket with `cache: 'no-store'`, and renders it with the guideline reader's components, without the navigation, search, Also In or contents. A banner at the top: "Questions for the authors of this guideline. This is not a guideline and is not for clinical use." An unknown code shows "This page is not available", with no hint of whether the code ever existed.
+- **`/preview`:** a "For the authors" tab beside Notes, showing `for-the-authors.md` from the chosen worktree, so the reviewer sees exactly what the authors will.
+- **Not indexed, not leaked:** for `/questions/*` the host sends `X-Robots-Tag: noindex, nofollow` and `Referrer-Policy: no-referrer` (so following a link from the page does not pass its address to another site), and the page carries the matching `<meta name="robots">`. It is not added to `robots.txt`, which would advertise the path.
+
+## Process
+
+- **The skill** (`convert-guideline`): the first pass writes author points to `for-the-authors.md`, not `notes.md`; `notes.md`'s "For review" says how many points are there. The deploy step's email to the authors is a short message with the link (`weekly_report.email_draft`), plus the tracked-changes document for a Word original.
+- **The reviewer guide**, step 6: before sending the link, read the "For the authors" tab on `/preview` and delete what is not worth the authors' time.
+- **Publishing rules, section 7:** "Every conversion keeps a `notes.md` ... which the reviewer sends to the authors" becomes `for-the-authors.md`, published as the authors' page.
+- **The ten guidelines in progress** get the change when they merge `origin/main`, and move their author points into the new file before hand-over. The deployed guidelines get one only when there is something to send, such as the findings of the 2026-10-26 trial.
+
+## What it does not do
+
+- **No replies.** Authors who take the feedback send an updated guideline, which is converted as a new version (decision 2). Nothing on the page records answers.
+- **No sign-in** (decision 1).
+- **Nothing on the live site's bucket.** A page lives only in the staging bucket, and stays there as the record until the guideline's next version.
+
+The page's content (questions for authors about their document, as a published, linkable report) is what the planned pre-submission check would also produce. When that service is built, with sign-in, this page is its report format.
+
+## Decisions (owner, 2026-10-26)
+
+1. **A link-only page is acceptable.** Anyone with the link can read it; nothing needs sign-in.
+2. **Replies are not our concern.** Authors who take the feedback send an updated guideline; the page asks for nothing back.
+3. **Every guideline gets the page, Word originals too,** so authors always get the same thing. A Word original's tracked-changes document is sent with the link, in addition.
+
+## Cost
+
+About a day: half in this repository (`convert_one`, the build and publish steps, the `check_page` mode, tests, the skill and documents), half in the platform (the route, the page, the host headers, the `/preview` tab, tests).
Modified: .code/docs/tooling-and-release-guide.md
  • Last changed on staging: 2026-11-11 23:29
main: Line 25, staging: Line 25
-- **`.code/Scripts/`**: the Python and shell scripts the workflows run, with their tests in `tests/`: `build_site.py` (builds every file the site reads), `staging_only.py` (leaves review-only parts off the live site), `publish_site.py` (uploads only the differences), `publish_units.py` (the shared rules for what is published and with which headers), `index_entries.py` (index entries, their metadata and files), `also_in.py` and `validate_also_in.py` (Also In), `check_file_names.py` (no stray spaces in published names), `invoke_generate_reports.py`, `site_build.py` (the live build id the tests wait on) and `diff_branches.sh` (Branch Comparison). `weekly_report/` is the [weekly status report](#weekly-status-report). One manual tool stays: `extract_pdf_metadata.py <folder>` writes an `-info.csv` beside each PDF (title, version, dates, leads) for PDF-only guidelines; it can go once none remain.
+- **`.code/Scripts/`**: the Python and shell scripts the workflows run, with their tests in `tests/`: `build_site.py` (builds every file the site reads, and on staging the authors' pages), `staging_only.py` (leaves review-only parts off the live site), `site_urls.py` (a guideline's address on the site, for the weekly report and `convert_one`), `authors_page.py` (a guideline's flagged questions, added to its authors' page), `publish_site.py` (uploads only the differences), `publish_units.py` (the shared rules for what is published and with which headers), `index_entries.py` (index entries, their metadata and files), `also_in.py` and `validate_also_in.py` (Also In), `check_file_names.py` (no stray spaces in published names), `invoke_generate_reports.py`, `site_build.py` (the live build id the tests wait on) and `diff_branches.sh` (Branch Comparison). `weekly_report/` is the [weekly status report](#weekly-status-report). One manual tool stays: `extract_pdf_metadata.py <folder>` writes an `-info.csv` beside each PDF (title, version, dates, leads) for PDF-only guidelines; it can go once none remain.
main: Line 28, staging: Line 28
-- **`.code/convert/`**: one folder per converted guideline (notes, review feedback and lessons), changed only on that guideline's branch. Where each conversion stands is never written down: `guideline_render.tools.conversion_status` works it out from the `deploy/<slug>` branches.
+- **`.code/convert/`**: one folder per converted guideline (notes, the authors' page `for-the-authors.md`, review feedback and lessons), changed only on that guideline's branch. Where each conversion stands is never written down: `guideline_render.tools.conversion_status` works it out from the `deploy/<slug>` branches.
staging: Line 30
+- **`.code/word-originals/`**: Word versions of live guidelines that are older than, or differ from, the Markdown, kept off the site; its `README.md` says why each is not published. A Word file that matches its guideline goes beside it instead, under the same name.
staging: Line 67
+ - `questions/` (staging only): the authors' pages, `<code>.json`, below.
main: Line 80, staging: Lines 82 to 83
-6. Writes a list of every file the site should have (`manifest.json`) and a summary.
+6. On `staging` only, builds the authors' pages: for each `.code/convert/<slug>/convert.json` with a `questions_code` beside a `for-the-authors.md`, the parser (run a second time, on just those files) makes `questions/<code>.json`. Before parsing, the guideline page's own Questions for the authors table (its flagged questions, in Changes from the original) is added at the end of the page's Questions section, its in-page links pointed at the guideline on staging (`authors_page.py`, which `check_page` also uses to refuse a flagged question copied in by hand). They are in no index or sitemap: the platform's `/questions/<code>` page reads one from its link alone, and the bucket lets anyone read a file but not list them. A page that fails to parse, or whose code is not 32 lower-case hex characters or is another guideline's, is a failure like a guideline's, and its live version is kept. See publishing rules, section 7.
+7. Writes a list of every file the site should have (`manifest.json`) and a summary.
main: Line 90, staging: Line 93
-This order keeps the site readable throughout, and a run that stops half way is put right by the next one. It never deletes anything under `reportData/`, `validationResults/`, `OpenGraphPreviews/` or `pdfThumbnails/`, anything outside `public/`, or a held-back guideline's files.
+This order keeps the site readable throughout, and a run that stops half way is put right by the next one. It never deletes anything under `reportData/`, `validationResults/`, `OpenGraphPreviews/` or `pdfThumbnails/`, anything outside `public/` and `questions/`, or a held-back guideline's files. Under `questions/` it deletes each authors' page the build no longer makes: its code was replaced (`convert_one questions <slug> --new-code`, which is how a link is revoked) or its file removed.
main: Line 186, staging: Line 189
-- Each role writes only its own branch's two buckets: `public/` in both; `index.json`, `index-restricted.json`, `pdfThumbnails/` and `validationResults/` in the `-json` bucket. It reads and lists both, and finds and invokes its branch's GenerateReportsFunction. The `staging` role may also write main's Branch Comparison page and its JSON, as the branch-comparison job runs on `staging` too.
+- Each role writes only its own branch's two buckets: `public/` in both; `index.json`, `index-restricted.json`, `pdfThumbnails/` and `validationResults/` in the `-json` bucket. The `staging` role also writes and deletes `questions/` (the authors' pages) in its `-json` bucket. It reads and lists both, and finds and invokes its branch's GenerateReportsFunction. The `staging` role may also write main's Branch Comparison page and its JSON, as the branch-comparison job runs on `staging` too.
Modified: .code/infrastructure/github-actions-roles.yaml
  • Last changed on staging: 2026-10-26 22:49
Modified: .code/pipeline/guideline_render/tools/check_page.py
  • Last changed on staging: 2026-10-27 11:35
Modified: .code/pipeline/guideline_render/tools/convert_one.py
  • Last changed on staging: 2026-10-26 22:52
Modified: .code/pipeline/guideline_render/tools/test_check_page.py
  • Last changed on staging: 2026-10-27 11:35
Modified: .code/pipeline/guideline_render/tools/test_convert_one.py
  • Last changed on staging: 2026-10-26 22:48
Added: .code/word-originals/Anaesthetics/Anaesthetics Useful Links.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Anaesthetics/General Duties/Anaesthesia services in remote sites.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Cardiology/ACS/Acute Coronary Syndrome (ACS) (FPH).docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Cardiology/ACS/Administration of Eptifibatide in patient undergoing PCI v2 202205.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Cardiology/Arrhythmias/Adenosine provocation test for diagnosis of atrial arrythmias.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Cardiology/Arrhythmias/Anticoagulated patients requiring ICD or pacemaker insertion v1 202204.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Ophthalmics/Emergencies/Bacterial keratitis v0.1202218.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Orthopaedics & Trauma/Orthopaedics and Trauma Useful Links.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/README.md
  • Last changed on staging: 2026-10-17 14:40
staging: Lines 1 to 22
+# Word originals not published
+
+Word versions of live guidelines that do not match the current Markdown, so they are kept here, off the site, rather than beside the guideline. Each is an older version or a different scope. They are a record of what the authors once supplied, not a source to publish.
+
+They were recovered on 2026-10-17 from git history (Word files committed then deleted) and from an older local checkout. The Word-to-Markdown service keeps nothing (its buckets expire files after 7 days), so these are the only Word originals found.
+
+A Word file goes beside its guideline, under the same name (`A.docx` beside `A.md`), only when it is the same version as the Markdown. The reader offers it as a download. Six were: Pulmonary Aspiration of Gastric Contents in Obstetrics and five OMFS guidelines.
+
+| Guideline | Word file here | Why not published |
+| --- | --- | --- |
+| Anaesthetics/!Anaesthetics Useful Links | Anaesthetics Useful Links.docx | Markdown has been rewritten and expanded |
+| Anaesthetics/General Duties/Anaesthesia Services in Remote Sites | Anaesthesia services in remote sites.docx | v1.0 (2020); Markdown is v2.0 (2023) |
+| Cardiology/ACS/Acute Coronary Syndrome (ACS) | Acute Coronary Syndrome (ACS) (FPH).docx | FPH-only version; Markdown is cross-site |
+| Cardiology/ACS/Administration of Eptifibatide in Patient Undergoing PCI | Administration of Eptifibatide in patient undergoing PCI v2 202205.docx | v2.0 (2022); Markdown is v3.0 (2025) |
+| Cardiology/Arrhythmias/Adenosine Provocation Test for Diagnosis of Atrial Arrhythmias | Adenosine provocation test for diagnosis of atrial arrythmias.docx | v1.0 (2021); Markdown is v2.0 (2025) |
+| Cardiology/Arrhythmias/Anticoagulated Patients Requiring ICD or Pacemaker | Anticoagulated patients requiring ICD or pacemaker insertion v1 202204.docx | v1 (2022); Markdown is v2.0 (2025) |
+| Ophthalmics/Emergencies/Bacterial Keratitis | Bacterial keratitis v0.1202218.docx | v0.1 draft; Markdown is v2.0 (2025) |
+| Orthopaedics & Trauma/!Orthopaedics and Trauma Useful Links | Orthopaedics and Trauma Useful Links.docx | Markdown has been rewritten |
+| Respiratory/Pneumothorax | Pneumothorax.docx | A different, shorter document from the Markdown |
+| Therapies/Speech and Language Therapy/Adults with Communication Impairment | Adults with communication impairment.docx | v2; Markdown is v3.0 (2024) |
+| Therapies/Speech and Language Therapy/Inpatient Dysphagia | Inpatient dysphagia.docx | Older version; Markdown is v4.0 (2024) and has since changed |
+| Therapies/Speech and Language Therapy/Outpatient Voice and Upper Airway Therapy | Outpatient Voice and Upper Airway Therapy.docx | v1; Markdown is v2 (2025) |
Added: .code/word-originals/Respiratory/Pneumothorax.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Therapies/Speech and Language Therapy/Adults with communication impairment.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Therapies/Speech and Language Therapy/Inpatient dysphagia.docx
  • Last changed on staging: 2026-10-17 14:40
Added: .code/word-originals/Therapies/Speech and Language Therapy/Outpatient Voice and Upper Airway Therapy.docx
  • Last changed on staging: 2026-10-17 14:40
Modified: Anaesthetics/GIRFT/Local Anaesthesia for Total Hip Replacement.docx
  • Last changed on staging: 2026-10-16 15:42
Modified: Anaesthetics/GIRFT/Local Anaesthesia for Total Hip Replacement.md
  • Last changed on staging: 2026-10-16 15:42
main: Line 15, staging: Line 15
-| Weight | Total dose | Volume of 0.125% Levobupivacaine<sup>#</sup> + 1mg Adrenaline added to 200ml bag |
+| Weight | Total dose | Add 1mg adrenaline to a 200ml bag of 0.125% levobupivacaine<sup>#</sup>.<br>Volume to use for LIA |
Modified: Anaesthetics/GIRFT/Local Anaesthesia for Total Hip Replacement.pdf
  • Last changed on staging: 2026-10-16 15:42
Modified: Anaesthetics/GIRFT/Local Anaesthesia for Total Knee Replacement.docx
  • Last changed on staging: 2026-10-16 15:33
Modified: Anaesthetics/GIRFT/Local Anaesthesia for Total Knee Replacement.md
  • Last changed on staging: 2026-10-16 15:33
main: Line 20, staging: Line 20
-<th>Volume of 0.125% Levobupivacaine + 1mg Adrenaline added to 200mls Bag</th>
+<th>Add 1mg adrenaline to a 200ml bag of 0.125% levobupivacaine.<br>Volume to use for LIA</th>
main: Lines 28 to 29, staging: Lines 28 to 29
-<td rowspan="3"><strong>15ml 0.25% bupivacaine</strong> (37.5mg)</td>
-<td><strong>90mls</strong></td>
+<td rowspan="3"><b>15ml 0.25% bupivacaine</b> (37.5mg)</td>
+<td><b>90mls</b></td>
main: Line 35, staging: Line 35
-<td><strong>70mls</strong></td>
+<td><b>70mls</b></td>
main: Line 41, staging: Line 41
-<td><strong>50mls</strong></td>
+<td><b>50mls</b></td>
main: Line 48, staging: Line 48
-<td><strong>2mg/kg</strong></td>
+<td><b>2mg/kg</b></td>
main: Lines 73 to 74, staging: Lines 73 to 74
-<td>75mg (<strong>30ml of 0.25%</strong> bupivacaine)</td>
-<td>75mg<br>(<strong>60ml of 0.125%</strong> levo/bupivacaine)</td>
+<td>75mg (<b>30ml of 0.25%</b> bupivacaine)</td>
+<td>75mg<br>(<b>60ml of 0.125%</b> levo/bupivacaine)</td>
main: Lines 81 to 82, staging: Lines 81 to 82
-<td>75mg (<strong>30 ml 0.25%</strong> bupivacaine)</td>
-<td>50mg<br>(<strong>40ml of 0.125%</strong> levo/bupivacaine)</td>
+<td>75mg (<b>30 ml 0.25%</b> bupivacaine)</td>
+<td>50mg<br>(<b>40ml of 0.125%</b> levo/bupivacaine)</td>
main: Lines 89 to 90, staging: Lines 89 to 90
-<td>50mg (<strong>30ml 0.167%.</strong><br>i.e. 20ml of 0.25% bupivacaine diluted to 30mls with 0.9% NaCl)</td>
-<td>50mg<br>(<strong>40mls of 0.125%</strong> levo/bupivacaine)</td>
+<td>50mg (<b>30ml 0.167%.</b><br>i.e. 20ml of 0.25% bupivacaine diluted to 30mls with 0.9% NaCl)</td>
+<td>50mg<br>(<b>40mls of 0.125%</b> levo/bupivacaine)</td>
Modified: Anaesthetics/GIRFT/Local Anaesthesia for Total Knee Replacement.pdf
  • Last changed on staging: 2026-10-16 15:42
Added: Anaesthetics/Obstetrics/Pulmonary Aspiration of Gastric Contents in Obstetrics.docx
  • Last changed on staging: 2026-10-17 14:40
Deleted: Haematology & VTE/VTE - Treatment/Pulmonary Embolism (PE)-info.csv
  • Last changed on staging: 2026-10-27 11:34
Deleted: Haematology & VTE/VTE - Treatment/Pulmonary Embolism-media/Suspected Pulmonary Embolism Ambulatory Care.pdf
  • Last changed on staging: 2026-10-27 11:34
Deleted: Haematology & VTE/VTE - Treatment/Pulmonary Embolism-media/Suspected Pulmonary Embolism Patient Leaflet.pdf
  • Last changed on staging: 2026-10-27 11:34
Added: OMFS & Orthodontics/Acute Pericoronitis.docx
  • Last changed on staging: 2026-10-17 14:40
Added: OMFS & Orthodontics/Impacted Third Molars.docx
  • Last changed on staging: 2026-10-17 14:40
Added: OMFS & Orthodontics/Oral Surgery Steroid Cover.docx
  • Last changed on staging: 2026-10-17 14:40
Added: OMFS & Orthodontics/Preventing Wrong Site Surgery.docx
  • Last changed on staging: 2026-10-17 14:40
Added: OMFS & Orthodontics/Referral Guidelines - Third Molars.docx
  • Last changed on staging: 2026-10-17 14:40
Added: Oncology/Ukons Acute Oncology Initial Management National Guidelines-info.csv
  • Last changed on staging: 2026-10-19 14:56
Modified: Paediatrics/Diabetes/Screening for Coeliac Disease in Type 1 Diabetes (TVPDN)-info.csv
  • Last changed on staging: 2026-10-19 14:56