Files
stack/tests/pfs/fixtures/cpt_sample.xhtml
kert 001abbe186 fix(pfs): CPT parser drops resequenced placeholder rows (refs #687)
A resequenced code prints twice in the AMA book: a bare pointer at its
old numeric position ("Code is out of numerical sequence. See
NNNNN-NNNNN") and its real entry, with descriptor/elements/tail, at its
new print-order position. finalize_entry now recognizes the pointer
row by its own text and emits nothing for it (C8), so only the real
entry survives — a downstream loader can now assert one pfs.cpt_code
row per (edition_year, code) without the pointer creating a spurious
duplicate.
2026-09-09 18:03:04 -04:00

73 lines
4.2 KiB
HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Synthetic CPT sample</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="h1-toc"><a href="body.xhtml#sec_1"><span class="green">Care Coordination Services* (55000-55010)</span></a></div>
<div class="h2-toc"><a href="body.xhtml#sec_2"><span class="red">Sample Chronic Wellness Services* (55000-55003)</span></a></div>
<div class="h1-toc"><a href="body.xhtml#sec_3"><span class="green">Other Sample Services* (55100-55101)</span></a></div>
<div class="h2-toc"><a href="body.xhtml#sec_4"><span class="red">Empty Category Services*</span></a></div>
<div class="h1" id="sec_1">Care Coordination Services</div>
<div class="noindent">Sample guideline text for the invented care-coordination family of services, used only to test parsing &amp; not copied from any real codebook.</div>
<div class="h2" id="sec_2">Sample Chronic Wellness Services</div>
<div class="noindent">Sample per-category guideline text describing invented wellness-coordination activities.</div>
<table class="table1">
<tbody>
<tr>
<td class="td-w1" id="code_55000"><div class="table-para"><span class="ama-en">#</span> <b>55000</b></div></td>
<td class="td"><div class="table-para1">Sample wellness coordination services with the following required elements:</div>
<div class="table-slist"><span class="ssp"/>first invented element of the service,</div>
<div class="table-slist1"><span class="ssp"/>second invented element of the service,</div>
<div class="table-slist1"><span class="ssp"/>third invented element of the service;</div>
<div class="table-para2">first 20 minutes of invented staff time, per calendar month.</div>
<div class="table-RT"><span class="blue"><span class="ama-en"></span></span><span class="sp1"/><i>CPT Changes: An Insider's View</i> 2015, 2021, 2022</div>
<div class="table-RT1"><span class="green"><span class="ama-en"></span></span><span class="sp1"/><i>CPT Assistant</i> Jan 21:5</div></td>
</tr>
<tr>
<td class="td-w1" id="code_55001"><div class="table-para"><span class="ama-en">#</span><span class="ama-en"></span> <b>55001</b></div></td>
<td class="td"><div class="table-para1-sub">each additional 20 minutes of invented staff time, per calendar month (List separately in addition to code for primary procedure)</div>
<div class="table-RT-sub"><span class="blue"><span class="ama-en"></span></span><span class="sp1"/><i>CPT Changes: An Insider's View</i> 2022</div>
<div class="table-para2">(Use 55001 in conjunction with 55000)</div>
<div class="table-para2">(Do not report 55001, 55000 in the same calendar month with 90951-90970, 55555)</div>
<div class="table-para2">(Sample wellness services of less than 20 minutes duration are not reported separately)</div>
<div class="table-para2">(Do not report 55001 more than twice per calendar month)</div>
<div class="table-para2">(Do not report 55001 in addition to 55002 more than once per calendar month)</div></td>
</tr>
<tr>
<td class="td-w1" id="code_56000"><div class="table-para"><b>56000</b></div></td>
<td class="td"><div class="table-para1">Sample incision, deep fascial plane; with exploratory biopsy</div></td>
</tr>
<tr>
<td class="td-w1" id="code_56005"><div class="table-para"><b>56005</b></div></td>
<td class="td"><div class="table-para1-sub">with synovial debridement</div></td>
</tr>
</tbody>
</table>
<div class="h1" id="sec_3">Other Sample Services</div>
<table class="table1">
<tbody>
<tr>
<td class="td-w1"><div class="table-para"><span class="red"><b>55000</b></span></div></td>
<td class="td"><div class="table-para1">Code is out of numerical sequence. See 55010-55019</div></td>
</tr>
</tbody>
</table>
<div class="h2" id="sec_4">Empty Category Services</div>
<div class="noindent">Guideline text with no code rows, to test that a section with zero codes still gets a path.</div>
<div class="h1">No Id Category Services</div>
<div class="noindent">Sample guideline text for a section whose heading carries no id attribute at all, used to test the synthetic sec_id fallback.</div>
<table class="table1">
<tbody>
<tr>
<td class="td-w1" id="code_57000"><div class="table-para"><b>57000</b></div></td>
<td class="td"><div class="table-para1">Sample invented service with no indentation family.</div></td>
</tr>
</tbody>
</table>
</body>
</html>