Spaces:
Running
Running
File size: 389,477 Bytes
fab8051 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 | {
"sample_abdominal_ct": {
"segments": [
{
"type": "prefix",
"label": "Examination",
"content": "EXAMINATION: CT abdomen and pelvis with IV contrast",
"intervals": [
{
"startPos": 0,
"endPos": 51
}
],
"significance": null
},
{
"type": "prefix",
"label": "Clinical Indication",
"content": "CLINICAL INDICATION: Abdominal pain, rule out acute pathology",
"intervals": [
{
"startPos": 52,
"endPos": 113
}
],
"significance": null
},
{
"type": "prefix",
"label": "Comparison",
"content": "COMPARISON: None available",
"intervals": [
{
"startPos": 114,
"endPos": 140
}
],
"significance": null
},
{
"type": "prefix",
"label": "Technique",
"content": "TECHNIQUE: Axial images of the abdomen and pelvis were obtained following administration of intravenous contrast material. Coronal and sagittal reformations were performed.",
"intervals": [
{
"startPos": 141,
"endPos": 313
}
],
"significance": null
},
{
"type": "body",
"label": "Lungs",
"content": "No acute abnormality is seen in the visualized lung bases.",
"intervals": [
{
"startPos": 325,
"endPos": 383
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Liver",
"content": "The liver is normal in size and contour.",
"intervals": [
{
"startPos": 384,
"endPos": 424
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Liver",
"content": "There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.",
"intervals": [
{
"startPos": 425,
"endPos": 530
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Gallbladder",
"content": "The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis, without gallbladder wall thickening, pericholecystic fluid, or other sonographic signs of acute cholecystitis.",
"intervals": [
{
"startPos": 531,
"endPos": 729
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Biliary",
"content": "The common bile duct is non-dilated, measuring approximately 4 mm.",
"intervals": [
{
"startPos": 730,
"endPos": 796
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Pancreas",
"content": "The pancreas is unremarkable without focal mass or peripancreatic inflammatory stranding.",
"intervals": [
{
"startPos": 797,
"endPos": 886
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Spleen",
"content": "The spleen appears unremarkable.",
"intervals": [
{
"startPos": 887,
"endPos": 937
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Adrenal Glands",
"content": "The adrenal glands appear unremarkable.",
"intervals": [
{
"startPos": 887,
"endPos": 937
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Kidneys",
"content": "A 9 mm simple left renal cyst is noted.",
"intervals": [
{
"startPos": 938,
"endPos": 977
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Kidneys",
"content": "The kidneys are otherwise unremarkable without hydronephrosis or nephrolithiasis.",
"intervals": [
{
"startPos": 978,
"endPos": 1059
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Bowel",
"content": "There is sigmoid diverticulosis without evidence of acute diverticulitis.",
"intervals": [
{
"startPos": 1060,
"endPos": 1133
}
],
"significance": "minor"
},
{
"type": "suffix",
"label": "suffix",
"content": "1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic and renal cysts.\n3. Sigmoid diverticulosis without acute diverticulitis.",
"intervals": [
{
"startPos": 1147,
"endPos": 1289
}
],
"significance": null
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "EXAMINATION: CT abdomen and pelvis with IV contrast",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Examination"
},
"char_interval": {
"start_pos": 0,
"end_pos": 51
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "CLINICAL INDICATION: Abdominal pain, rule out acute pathology",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Clinical Indication"
},
"char_interval": {
"start_pos": 52,
"end_pos": 113
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "COMPARISON: None available",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Comparison"
},
"char_interval": {
"start_pos": 114,
"end_pos": 140
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "TECHNIQUE: Axial images of the abdomen and pelvis were obtained following administration of intravenous contrast material. Coronal and sagittal reformations were performed.",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Technique"
},
"char_interval": {
"start_pos": 141,
"end_pos": 313
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No acute abnormality is seen in the visualized lung bases.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lungs",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 325,
"end_pos": 383
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The liver is normal in size and contour.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 384,
"end_pos": 424
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 425,
"end_pos": 530
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis, without gallbladder wall thickening, pericholecystic fluid, or other sonographic signs of acute cholecystitis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Gallbladder",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 531,
"end_pos": 729
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The common bile duct is non-dilated, measuring approximately 4 mm.",
"extraction_class": "findings_body",
"attributes": {
"section": "Biliary",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 730,
"end_pos": 796
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The pancreas is unremarkable without focal mass or peripancreatic inflammatory stranding.",
"extraction_class": "findings_body",
"attributes": {
"section": "Pancreas",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 797,
"end_pos": 886
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The spleen appears unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Spleen",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 887,
"end_pos": 937
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "The adrenal glands appear unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Adrenal Glands",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 887,
"end_pos": 937
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "A 9 mm simple left renal cyst is noted.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 938,
"end_pos": 977
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The kidneys are otherwise unremarkable without hydronephrosis or nephrolithiasis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 978,
"end_pos": 1059
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is sigmoid diverticulosis without evidence of acute diverticulitis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Bowel",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 1060,
"end_pos": 1133
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic and renal cysts.\n3. Sigmoid diverticulosis without acute diverticulitis.",
"extraction_class": "findings_suffix",
"attributes": {},
"char_interval": {
"start_pos": 1147,
"end_pos": 1289
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "EXAMINATION:\n\nCT abdomen and pelvis with IV contrast\n\nCLINICAL INDICATION: Abdominal pain, rule out acute pathology\n\nCOMPARISON: None available\n\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following administration of intravenous contrast material. Coronal and sagittal reformations were performed.\n\n\nFINDINGS:\n\nLungs: No acute abnormality is seen in the visualized lung bases.\n\nLiver: The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\n\nGallbladder: The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis, without gallbladder wall thickening, pericholecystic fluid, or other sonographic signs of acute cholecystitis.\n\nBiliary: The common bile duct is non-dilated, measuring approximately 4 mm.\n\nPancreas: The pancreas is unremarkable without focal mass or peripancreatic inflammatory stranding.\n\nSpleen: The spleen appears unremarkable.\n\nAdrenal Glands: The adrenal glands appear unremarkable.\n\nKidneys: A 9 mm simple left renal cyst is noted. The kidneys are otherwise unremarkable without hydronephrosis or nephrolithiasis.\n\nBowel: There is sigmoid diverticulosis without evidence of acute diverticulitis.\n\nIMPRESSION:\n\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic and renal cysts.\n3. Sigmoid diverticulosis without acute diverticulitis.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nEXAMINATION: CT abdomen and pelvis with IV contrast\nCLINICAL INDICATION: Abdominal pain, rule out acute pathology\nCOMPARISON: None available\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following administration of intravenous contrast material. Coronal and sagittal reformations were performed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis, without gallbladder wall thickening, pericholecystic fluid, or other sonographic signs of acute cholecystitis. The common bile duct is non-dilated, measuring approximately 4 mm. The pancreas is unremarkable without focal mass or peripancreatic inflammatory stranding. The spleen and adrenal glands appear unremarkable. A 9 mm simple left renal cyst is noted. The kidneys are otherwise unremarkable without hydronephrosis or nephrolithiasis. There is sigmoid diverticulosis without evidence of acute diverticulitis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic and renal cysts.\n3. Sigmoid diverticulosis without acute diverticulitis.\n```\n\n**Expected Output:**\n"
},
"sample_lumbar_spine_mri": {
"segments": [
{
"type": "prefix",
"label": "Examination",
"content": "Exam: MRI Lumbar Spine",
"intervals": [
{
"startPos": 0,
"endPos": 22
}
],
"significance": null
},
{
"type": "prefix",
"label": "Clinical Indication",
"content": "Clinical Indication: Low back pain, radiculopathy",
"intervals": [
{
"startPos": 23,
"endPos": 72
}
],
"significance": null
},
{
"type": "body",
"label": "Lumbar Spine",
"content": "There is mild degenerative anterolisthesis of L4 on L5.",
"intervals": [
{
"startPos": 74,
"endPos": 129
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Lumbar Spine",
"content": "The normal lumbar lordosis is otherwise maintained.",
"intervals": [
{
"startPos": 130,
"endPos": 181
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Lumbar Spine",
"content": "Vertebral body heights are preserved.",
"intervals": [
{
"startPos": 182,
"endPos": 219
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Bones",
"content": "There is a T1 and T2 hyperintense lesion in the L2 vertebral body consistent with a benign hemangioma.",
"intervals": [
{
"startPos": 220,
"endPos": 322
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Bones",
"content": "Marrow signal is otherwise unremarkable.",
"intervals": [
{
"startPos": 323,
"endPos": 363
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Spinal Cord",
"content": "The conus medullaris terminates at a normal level and is unremarkable in signal intensity.",
"intervals": [
{
"startPos": 364,
"endPos": 454
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Lumbar Spine Levels: L1-L2",
"content": "At L1-L2, there is mild disc desiccation without significant canal or foraminal stenosis.",
"intervals": [
{
"startPos": 456,
"endPos": 555
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Lumbar Spine Levels: L2-L3",
"content": "At L2-L3, there is mild disc desiccation without significant canal or foraminal stenosis.",
"intervals": [
{
"startPos": 456,
"endPos": 555
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Lumbar Spine Levels: L3-L4",
"content": "At L3-L4, a shallow posterior disc bulge and mild facet arthropathy result in mild central canal narrowing. The neural foramina are patent.",
"intervals": [
{
"startPos": 556,
"endPos": 695
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Lumbar Spine Levels: L4-L5",
"content": "At L4-L5, there is advanced disc space narrowing and desiccation. A broad-based posterior disc protrusion with a superimposed left paracentral extrusion severely narrows the central canal and contacts the traversing left S1 nerve root. There is moderate left neural foraminal stenosis.",
"intervals": [
{
"startPos": 696,
"endPos": 981
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Lumbar Spine Levels: L5-S1",
"content": "At L5-S1, mild disc desiccation is present without significant canal or foraminal stenosis.",
"intervals": [
{
"startPos": 982,
"endPos": 1073
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Paraspinal Soft Tissues",
"content": "The paraspinal soft tissues are unremarkable.",
"intervals": [
{
"startPos": 1074,
"endPos": 1119
}
],
"significance": "normal"
},
{
"type": "suffix",
"label": "suffix",
"content": "1. Severe L4-L5 disc protrusion with superimposed left paracentral extrusion, resulting in severe central canal narrowing and contact with the left S1 nerve root.\n2. Multilevel degenerative disc disease, most advanced at L4-L5.\n3. Benign hemangioma in L2 vertebral body.",
"intervals": [
{
"startPos": 1133,
"endPos": 1403
}
],
"significance": null
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "Exam: MRI Lumbar Spine",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Examination"
},
"char_interval": {
"start_pos": 0,
"end_pos": 22
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Clinical Indication: Low back pain, radiculopathy",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Clinical Indication"
},
"char_interval": {
"start_pos": 23,
"end_pos": 72
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is mild degenerative anterolisthesis of L4 on L5.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lumbar Spine",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 74,
"end_pos": 129
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The normal lumbar lordosis is otherwise maintained.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lumbar Spine",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 130,
"end_pos": 181
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Vertebral body heights are preserved.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lumbar Spine",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 182,
"end_pos": 219
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is a T1 and T2 hyperintense lesion in the L2 vertebral body consistent with a benign hemangioma.",
"extraction_class": "findings_body",
"attributes": {
"section": "Bones",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 220,
"end_pos": 322
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Marrow signal is otherwise unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Bones",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 323,
"end_pos": 363
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The conus medullaris terminates at a normal level and is unremarkable in signal intensity.",
"extraction_class": "findings_body",
"attributes": {
"section": "Spinal Cord",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 364,
"end_pos": 454
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "At L1-L2, there is mild disc desiccation without significant canal or foraminal stenosis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lumbar Spine Levels: L1-L2",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 456,
"end_pos": 555
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "At L2-L3, there is mild disc desiccation without significant canal or foraminal stenosis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lumbar Spine Levels: L2-L3",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 456,
"end_pos": 555
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "At L3-L4, a shallow posterior disc bulge and mild facet arthropathy result in mild central canal narrowing. The neural foramina are patent.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lumbar Spine Levels: L3-L4",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 556,
"end_pos": 695
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "At L4-L5, there is advanced disc space narrowing and desiccation. A broad-based posterior disc protrusion with a superimposed left paracentral extrusion severely narrows the central canal and contacts the traversing left S1 nerve root. There is moderate left neural foraminal stenosis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lumbar Spine Levels: L4-L5",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 696,
"end_pos": 981
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "At L5-S1, mild disc desiccation is present without significant canal or foraminal stenosis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lumbar Spine Levels: L5-S1",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 982,
"end_pos": 1073
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The paraspinal soft tissues are unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Paraspinal Soft Tissues",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1074,
"end_pos": 1119
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "1. Severe L4-L5 disc protrusion with superimposed left paracentral extrusion, resulting in severe central canal narrowing and contact with the left S1 nerve root.\n2. Multilevel degenerative disc disease, most advanced at L4-L5.\n3. Benign hemangioma in L2 vertebral body.",
"extraction_class": "findings_suffix",
"attributes": {},
"char_interval": {
"start_pos": 1133,
"end_pos": 1403
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "EXAMINATION:\n\nMRI Lumbar Spine\n\nClinical Indication: Low back pain, radiculopathy\n\n\nFINDINGS:\n\nLumbar Spine: There is mild degenerative anterolisthesis of L4 on L5. The normal lumbar lordosis is otherwise maintained. Vertebral body heights are preserved.\n\nBones: There is a T1 and T2 hyperintense lesion in the L2 vertebral body consistent with a benign hemangioma. Marrow signal is otherwise unremarkable.\n\nSpinal Cord: The conus medullaris terminates at a normal level and is unremarkable in signal intensity.\n\nLumbar Spine Levels: L1-L2: At L1-L2, there is mild disc desiccation without significant canal or foraminal stenosis.\n\nLumbar Spine Levels: L2-L3: At L2-L3, there is mild disc desiccation without significant canal or foraminal stenosis.\n\nLumbar Spine Levels: L3-L4: At L3-L4, a shallow posterior disc bulge and mild facet arthropathy result in mild central canal narrowing. The neural foramina are patent.\n\nLumbar Spine Levels: L4-L5: At L4-L5, there is advanced disc space narrowing and desiccation. A broad-based posterior disc protrusion with a superimposed left paracentral extrusion severely narrows the central canal and contacts the traversing left S1 nerve root. There is moderate left neural foraminal stenosis.\n\nLumbar Spine Levels: L5-S1: At L5-S1, mild disc desiccation is present without significant canal or foraminal stenosis.\n\nParaspinal Soft Tissues: The paraspinal soft tissues are unremarkable.\n\nIMPRESSION:\n\n1. Severe L4-L5 disc protrusion with superimposed left paracentral extrusion, resulting in severe central canal narrowing and contact with the left S1 nerve root.\n2. Multilevel degenerative disc disease, most advanced at L4-L5.\n3. Benign hemangioma in L2 vertebral body.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nExam: MRI Lumbar Spine\nClinical Indication: Low back pain, radiculopathy\n\nThere is mild degenerative anterolisthesis of L4 on L5. The normal lumbar lordosis is otherwise maintained. Vertebral body heights are preserved. There is a T1 and T2 hyperintense lesion in the L2 vertebral body consistent with a benign hemangioma. Marrow signal is otherwise unremarkable. The conus medullaris terminates at a normal level and is unremarkable in signal intensity.\n\nAt L1-L2 and L2-L3, there is mild disc desiccation without significant canal or foraminal stenosis. At L3-L4, a shallow posterior disc bulge and mild facet arthropathy result in mild central canal narrowing. The neural foramina are patent. At L4-L5, there is advanced disc space narrowing and desiccation. A broad-based posterior disc protrusion with a superimposed left paracentral extrusion severely narrows the central canal and contacts the traversing left S1 nerve root. There is moderate left neural foraminal stenosis. At L5-S1, mild disc desiccation is present without significant canal or foraminal stenosis. The paraspinal soft tissues are unremarkable.\n\nIMPRESSION:\n1. Severe L4-L5 disc protrusion with superimposed left paracentral extrusion, resulting in severe central canal narrowing and contact with the left S1 nerve root.\n2. Multilevel degenerative disc disease, most advanced at L4-L5.\n3. Benign hemangioma in L2 vertebral body.\n```\n\n**Expected Output:**\n"
},
"sample_shoulder_mri": {
"segments": [
{
"type": "body",
"label": "Rotator Cuff",
"content": "A full-thickness, full-width tear of the supraspinatus tendon is present, with the torn tendon end retracted approximately 2 cm medially to the level of the glenoid rim.",
"intervals": [
{
"startPos": 0,
"endPos": 169
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Rotator Cuff",
"content": "There is moderate fatty infiltration and atrophy of the supraspinatus muscle.",
"intervals": [
{
"startPos": 170,
"endPos": 247
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Rotator Cuff",
"content": "The infraspinatus, teres minor, and subscapularis tendons and muscles appear intact.",
"intervals": [
{
"startPos": 248,
"endPos": 332
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Joint Space/Capsule",
"content": "There is a moderate joint effusion with synovial thickening.",
"intervals": [
{
"startPos": 333,
"endPos": 393
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Glenoid Labrum",
"content": "The glenoid labrum shows a small superior labral tear.",
"intervals": [
{
"startPos": 394,
"endPos": 448
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Biceps Tendon",
"content": "The biceps tendon is intact and properly positioned within the bicipital groove.",
"intervals": [
{
"startPos": 449,
"endPos": 529
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Acromioclavicular Joint",
"content": "The acromioclavicular joint shows mild degenerative changes with small osteophytes but no significant narrowing.",
"intervals": [
{
"startPos": 530,
"endPos": 642
}
],
"significance": "minor"
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "A full-thickness, full-width tear of the supraspinatus tendon is present, with the torn tendon end retracted approximately 2 cm medially to the level of the glenoid rim.",
"extraction_class": "findings_body",
"attributes": {
"section": "Rotator Cuff",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 0,
"end_pos": 169
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is moderate fatty infiltration and atrophy of the supraspinatus muscle.",
"extraction_class": "findings_body",
"attributes": {
"section": "Rotator Cuff",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 170,
"end_pos": 247
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The infraspinatus, teres minor, and subscapularis tendons and muscles appear intact.",
"extraction_class": "findings_body",
"attributes": {
"section": "Rotator Cuff",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 248,
"end_pos": 332
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is a moderate joint effusion with synovial thickening.",
"extraction_class": "findings_body",
"attributes": {
"section": "Joint Space/Capsule",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 333,
"end_pos": 393
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The glenoid labrum shows a small superior labral tear.",
"extraction_class": "findings_body",
"attributes": {
"section": "Glenoid Labrum",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 394,
"end_pos": 448
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The biceps tendon is intact and properly positioned within the bicipital groove.",
"extraction_class": "findings_body",
"attributes": {
"section": "Biceps Tendon",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 449,
"end_pos": 529
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The acromioclavicular joint shows mild degenerative changes with small osteophytes but no significant narrowing.",
"extraction_class": "findings_body",
"attributes": {
"section": "Acromioclavicular Joint",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 530,
"end_pos": 642
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "FINDINGS:\n\nRotator Cuff: A full-thickness, full-width tear of the supraspinatus tendon is present, with the torn tendon end retracted approximately 2 cm medially to the level of the glenoid rim. There is moderate fatty infiltration and atrophy of the supraspinatus muscle. The infraspinatus, teres minor, and subscapularis tendons and muscles appear intact.\n\nJoint Space/Capsule: There is a moderate joint effusion with synovial thickening.\n\nGlenoid Labrum: The glenoid labrum shows a small superior labral tear.\n\nBiceps Tendon: The biceps tendon is intact and properly positioned within the bicipital groove.\n\nAcromioclavicular Joint: The acromioclavicular joint shows mild degenerative changes with small osteophytes but no significant narrowing.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nA full-thickness, full-width tear of the supraspinatus tendon is present, with the torn tendon end retracted approximately 2 cm medially to the level of the glenoid rim. There is moderate fatty infiltration and atrophy of the supraspinatus muscle. The infraspinatus, teres minor, and subscapularis tendons and muscles appear intact. There is a moderate joint effusion with synovial thickening. The glenoid labrum shows a small superior labral tear. The biceps tendon is intact and properly positioned within the bicipital groove. The acromioclavicular joint shows mild degenerative changes with small osteophytes but no significant narrowing.\n```\n\n**Expected Output:**\n"
},
"sample_abdominal_mri_pkd": {
"segments": [
{
"type": "prefix",
"label": "Examination",
"content": "EXAMINATION: MRI abdomen without and with gadolinium contrast",
"intervals": [
{
"startPos": 0,
"endPos": 61
}
],
"significance": null
},
{
"type": "prefix",
"label": "Clinical Indication",
"content": "CLINICAL INDICATION: Polycystic kidney disease with suspected cyst infection, flank pain, fever",
"intervals": [
{
"startPos": 62,
"endPos": 157
}
],
"significance": null
},
{
"type": "prefix",
"label": "Comparison",
"content": "COMPARISON: CT abdomen from 3 months ago",
"intervals": [
{
"startPos": 158,
"endPos": 198
}
],
"significance": null
},
{
"type": "prefix",
"label": "Technique",
"content": "TECHNIQUE: Axial and coronal T1-weighted, T2-weighted, and post-gadolinium images were obtained.",
"intervals": [
{
"startPos": 199,
"endPos": 295
}
],
"significance": null
},
{
"type": "body",
"label": "Kidneys",
"content": "Both kidneys are markedly enlarged. The right kidney measures 18.2 cm and the left kidney measures 17.8 cm in length.",
"intervals": [
{
"startPos": 307,
"endPos": 424
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Kidneys",
"content": "Innumerable thin-walled cysts of varying sizes are present throughout both kidneys, consistent with autosomal dominant polycystic kidney disease.",
"intervals": [
{
"startPos": 425,
"endPos": 570
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Kidneys",
"content": "Several cysts demonstrate T1 hyperintensity consistent with hemorrhagic or proteinaceous content, particularly a 4.2 cm cyst in the right upper pole and a 3.1 cm cyst in the left mid-pole.",
"intervals": [
{
"startPos": 571,
"endPos": 759
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Kidneys",
"content": "A complex 5.8 cm cyst in the left lower pole demonstrates thick irregular walls, internal septations, and rim enhancement following contrast administration, highly suspicious for an infected cyst.",
"intervals": [
{
"startPos": 758,
"endPos": 955
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Kidneys",
"content": "Surrounding perinephric inflammatory stranding is present.",
"intervals": [
{
"startPos": 956,
"endPos": 1014
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Kidneys",
"content": "An additional 2.8 cm cyst in the right lower pole shows similar findings concerning for secondary infection.",
"intervals": [
{
"startPos": 1015,
"endPos": 1123
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Kidneys",
"content": "No hydronephrosis is identified despite the numerous cysts.",
"intervals": [
{
"startPos": 1377,
"endPos": 1436
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Liver",
"content": "Multiple hepatic cysts are noted, the largest measuring 3.4 cm in segment IV.",
"intervals": [
{
"startPos": 1125,
"endPos": 1202
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Liver",
"content": "The liver is otherwise normal in signal intensity and enhancement pattern.",
"intervals": [
{
"startPos": 1203,
"endPos": 1277
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Spleen",
"content": "The spleen appears unremarkable.",
"intervals": [
{
"startPos": 1278,
"endPos": 1339
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Pancreas",
"content": "The pancreas appears unremarkable.",
"intervals": [
{
"startPos": 1278,
"endPos": 1339
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Adrenal Glands",
"content": "The adrenal glands appear unremarkable.",
"intervals": [
{
"startPos": 1278,
"endPos": 1339
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Abdomen/Pelvis",
"content": "There is mild ascites in the pelvis.",
"intervals": [
{
"startPos": 1340,
"endPos": 1376
}
],
"significance": "minor"
},
{
"type": "suffix",
"label": "suffix",
"content": "1. Autosomal dominant polycystic kidney disease with bilateral renal enlargement and innumerable cysts.\n2. Probable infected cysts in the left lower pole (5.8 cm) and right lower pole (2.8 cm) with surrounding inflammatory changes.\n3. Multiple hemorrhagic cysts bilaterally.\n4. Multiple hepatic cysts.\n5. Mild ascites.",
"intervals": [
{
"startPos": 1450,
"endPos": 1768
}
],
"significance": null
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "EXAMINATION: MRI abdomen without and with gadolinium contrast",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Examination"
},
"char_interval": {
"start_pos": 0,
"end_pos": 61
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "CLINICAL INDICATION: Polycystic kidney disease with suspected cyst infection, flank pain, fever",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Clinical Indication"
},
"char_interval": {
"start_pos": 62,
"end_pos": 157
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "COMPARISON: CT abdomen from 3 months ago",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Comparison"
},
"char_interval": {
"start_pos": 158,
"end_pos": 198
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "TECHNIQUE: Axial and coronal T1-weighted, T2-weighted, and post-gadolinium images were obtained.",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Technique"
},
"char_interval": {
"start_pos": 199,
"end_pos": 295
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Both kidneys are markedly enlarged. The right kidney measures 18.2 cm and the left kidney measures 17.8 cm in length.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 307,
"end_pos": 424
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Innumerable thin-walled cysts of varying sizes are present throughout both kidneys, consistent with autosomal dominant polycystic kidney disease.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 425,
"end_pos": 570
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Several cysts demonstrate T1 hyperintensity consistent with hemorrhagic or proteinaceous content, particularly a 4.2 cm cyst in the right upper pole and a 3.1 cm cyst in the left mid-pole.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 571,
"end_pos": 759
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "A complex 5.8 cm cyst in the left lower pole demonstrates thick irregular walls, internal septations, and rim enhancement following contrast administration, highly suspicious for an infected cyst.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 758,
"end_pos": 955
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "Surrounding perinephric inflammatory stranding is present.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 956,
"end_pos": 1014
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "An additional 2.8 cm cyst in the right lower pole shows similar findings concerning for secondary infection.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 1015,
"end_pos": 1123
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Multiple hepatic cysts are noted, the largest measuring 3.4 cm in segment IV.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 1125,
"end_pos": 1202
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The liver is otherwise normal in signal intensity and enhancement pattern.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1203,
"end_pos": 1277
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The spleen appears unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Spleen",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1278,
"end_pos": 1339
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "The pancreas appears unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Pancreas",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1278,
"end_pos": 1339
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "The adrenal glands appear unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Adrenal Glands",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1278,
"end_pos": 1339
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "There is mild ascites in the pelvis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Abdomen/Pelvis",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 1340,
"end_pos": 1376
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No hydronephrosis is identified despite the numerous cysts.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1377,
"end_pos": 1436
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "1. Autosomal dominant polycystic kidney disease with bilateral renal enlargement and innumerable cysts.\n2. Probable infected cysts in the left lower pole (5.8 cm) and right lower pole (2.8 cm) with surrounding inflammatory changes.\n3. Multiple hemorrhagic cysts bilaterally.\n4. Multiple hepatic cysts.\n5. Mild ascites.",
"extraction_class": "findings_suffix",
"attributes": {},
"char_interval": {
"start_pos": 1450,
"end_pos": 1768
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "EXAMINATION:\n\nMRI abdomen without and with gadolinium contrast\n\nCLINICAL INDICATION: Polycystic kidney disease with suspected cyst infection, flank pain, fever\n\nCOMPARISON: CT abdomen from 3 months ago\n\nTECHNIQUE: Axial and coronal T1-weighted, T2-weighted, and post-gadolinium images were obtained.\n\n\nFINDINGS:\n\nKidneys: Both kidneys are markedly enlarged. The right kidney measures 18.2 cm and the left kidney measures 17.8 cm in length. Innumerable thin-walled cysts of varying sizes are present throughout both kidneys, consistent with autosomal dominant polycystic kidney disease. Several cysts demonstrate T1 hyperintensity consistent with hemorrhagic or proteinaceous content, particularly a 4.2 cm cyst in the right upper pole and a 3.1 cm cyst in the left mid-pole. A complex 5.8 cm cyst in the left lower pole demonstrates thick irregular walls, internal septations, and rim enhancement following contrast administration, highly suspicious for an infected cyst. Surrounding perinephric inflammatory stranding is present. An additional 2.8 cm cyst in the right lower pole shows similar findings concerning for secondary infection. No hydronephrosis is identified despite the numerous cysts.\n\nLiver: Multiple hepatic cysts are noted, the largest measuring 3.4 cm in segment IV. The liver is otherwise normal in signal intensity and enhancement pattern.\n\nSpleen: The spleen appears unremarkable.\n\nPancreas: The pancreas appears unremarkable.\n\nAdrenal Glands: The adrenal glands appear unremarkable.\n\nAbdomen/Pelvis: There is mild ascites in the pelvis.\n\nIMPRESSION:\n\n1. Autosomal dominant polycystic kidney disease with bilateral renal enlargement and innumerable cysts.\n2. Probable infected cysts in the left lower pole (5.8 cm) and right lower pole (2.8 cm) with surrounding inflammatory changes.\n3. Multiple hemorrhagic cysts bilaterally.\n4. Multiple hepatic cysts.\n5. Mild ascites.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nEXAMINATION: MRI abdomen without and with gadolinium contrast\nCLINICAL INDICATION: Polycystic kidney disease with suspected cyst infection, flank pain, fever\nCOMPARISON: CT abdomen from 3 months ago\nTECHNIQUE: Axial and coronal T1-weighted, T2-weighted, and post-gadolinium images were obtained.\n\nFINDINGS:\nBoth kidneys are markedly enlarged. The right kidney measures 18.2 cm and the left kidney measures 17.8 cm in length. Innumerable thin-walled cysts of varying sizes are present throughout both kidneys, consistent with autosomal dominant polycystic kidney disease. Several cysts demonstrate T1 hyperintensity consistent with hemorrhagic or proteinaceous content, particularly a 4.2 cm cyst in the right upper pole and a 3.1 cm cyst in the left mid-pole. \n\nA complex 5.8 cm cyst in the left lower pole demonstrates thick irregular walls, internal septations, and rim enhancement following contrast administration, highly suspicious for infected cyst. Surrounding perinephric inflammatory stranding is present. An additional 2.8 cm cyst in the right lower pole shows similar findings concerning for secondary infection.\n\nMultiple hepatic cysts are noted, the largest measuring 3.4 cm in segment IV. The liver is otherwise normal in signal intensity and enhancement pattern. The spleen, pancreas, and adrenal glands appear unremarkable. There is mild ascites in the pelvis. No hydronephrosis is identified despite the numerous cysts.\n\nIMPRESSION:\n1. Autosomal dominant polycystic kidney disease with bilateral renal enlargement and innumerable cysts.\n2. Probable infected cysts in the left lower pole (5.8 cm) and right lower pole (2.8 cm) with surrounding inflammatory changes.\n3. Multiple hemorrhagic cysts bilaterally.\n4. Multiple hepatic cysts.\n5. Mild ascites.\n```\n\n**Expected Output:**\n"
},
"sample_hip_mri": {
"segments": [
{
"type": "body",
"label": "Joint",
"content": "There is a small joint effusion.",
"intervals": [
{
"startPos": 0,
"endPos": 32
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Cartilage",
"content": "Diffuse thinning of the articular cartilage is noted at the weight-bearing superior acetabulum and femoral head, with near full-thickness loss anterosuperiorly.",
"intervals": [
{
"startPos": 33,
"endPos": 193
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Labrum",
"content": "A degenerative labral tear is present at the anterosuperior acetabulum.",
"intervals": [
{
"startPos": 194,
"endPos": 265
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Joint Capsule",
"content": "The joint capsule shows mild thickening.",
"intervals": [
{
"startPos": 266,
"endPos": 306
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Bones",
"content": "Moderate subchondral bone marrow edema is seen in the femoral head and acetabulum.",
"intervals": [
{
"startPos": 307,
"endPos": 389
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Bones",
"content": "Small subchondral cysts are noted in the superior acetabulum.",
"intervals": [
{
"startPos": 390,
"endPos": 451
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Tendons",
"content": "The hip abductor tendons show signal alteration consistent with tendinosis, and there is a partial-thickness tear of the gluteus medius tendon at its greater trochanteric insertion.",
"intervals": [
{
"startPos": 452,
"endPos": 633
}
],
"significance": "significant"
},
{
"type": "suffix",
"label": "suffix",
"content": "1. Moderate to severe osteoarthritis with cartilage loss and subchondral changes.\n2. Anterosuperior labral tear.\n3. Partial-thickness gluteus medius tendon tear with tendinosis.",
"intervals": [
{
"startPos": 647,
"endPos": 824
}
],
"significance": null
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "There is a small joint effusion.",
"extraction_class": "findings_body",
"attributes": {
"section": "Joint",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 0,
"end_pos": 32
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Diffuse thinning of the articular cartilage is noted at the weight-bearing superior acetabulum and femoral head, with near full-thickness loss anterosuperiorly.",
"extraction_class": "findings_body",
"attributes": {
"section": "Cartilage",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 33,
"end_pos": 193
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "A degenerative labral tear is present at the anterosuperior acetabulum.",
"extraction_class": "findings_body",
"attributes": {
"section": "Labrum",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 194,
"end_pos": 265
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The joint capsule shows mild thickening.",
"extraction_class": "findings_body",
"attributes": {
"section": "Joint Capsule",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 266,
"end_pos": 306
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Moderate subchondral bone marrow edema is seen in the femoral head and acetabulum.",
"extraction_class": "findings_body",
"attributes": {
"section": "Bones",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 307,
"end_pos": 389
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Small subchondral cysts are noted in the superior acetabulum.",
"extraction_class": "findings_body",
"attributes": {
"section": "Bones",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 390,
"end_pos": 451
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The hip abductor tendons show signal alteration consistent with tendinosis, and there is a partial-thickness tear of the gluteus medius tendon at its greater trochanteric insertion.",
"extraction_class": "findings_body",
"attributes": {
"section": "Tendons",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 452,
"end_pos": 633
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "1. Moderate to severe osteoarthritis with cartilage loss and subchondral changes.\n2. Anterosuperior labral tear.\n3. Partial-thickness gluteus medius tendon tear with tendinosis.",
"extraction_class": "findings_suffix",
"attributes": {},
"char_interval": {
"start_pos": 647,
"end_pos": 824
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "FINDINGS:\n\nJoint: There is a small joint effusion.\n\nCartilage: Diffuse thinning of the articular cartilage is noted at the weight-bearing superior acetabulum and femoral head, with near full-thickness loss anterosuperiorly.\n\nLabrum: A degenerative labral tear is present at the anterosuperior acetabulum.\n\nJoint Capsule: The joint capsule shows mild thickening.\n\nBones: Moderate subchondral bone marrow edema is seen in the femoral head and acetabulum. Small subchondral cysts are noted in the superior acetabulum.\n\nTendons: The hip abductor tendons show signal alteration consistent with tendinosis, and there is a partial-thickness tear of the gluteus medius tendon at its greater trochanteric insertion.\n\nIMPRESSION:\n\n1. Moderate to severe osteoarthritis with cartilage loss and subchondral changes.\n2. Anterosuperior labral tear.\n3. Partial-thickness gluteus medius tendon tear with tendinosis.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nThere is a small joint effusion. Diffuse thinning of the articular cartilage is noted at the weight-bearing superior acetabulum and femoral head, with near full-thickness loss anterosuperiorly. A degenerative labral tear is present at the anterosuperior acetabulum. The joint capsule shows mild thickening. Moderate subchondral bone marrow edema is seen in the femoral head and acetabulum. Small subchondral cysts are noted in the superior acetabulum. The hip abductor tendons show signal alteration consistent with tendinosis, and there is a partial-thickness tear of the gluteus medius tendon at its greater trochanteric insertion.\n\nIMPRESSION:\n1. Moderate to severe osteoarthritis with cartilage loss and subchondral changes.\n2. Anterosuperior labral tear.\n3. Partial-thickness gluteus medius tendon tear with tendinosis.\n```\n\n**Expected Output:**\n"
},
"sample_chest_xray": {
"segments": [
{
"type": "prefix",
"label": "Examination",
"content": "Study: Chest Radiograph",
"intervals": [
{
"startPos": 0,
"endPos": 23
}
],
"significance": null
},
{
"type": "body",
"label": "Heart",
"content": "The cardiac silhouette is normal in size and contour.",
"intervals": [
{
"startPos": 25,
"endPos": 78
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Mediastinum",
"content": "The mediastinal contours are within normal limits.",
"intervals": [
{
"startPos": 79,
"endPos": 129
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Lungs",
"content": "There is a 8 mm well-circumscribed nodule in the right upper lobe.",
"intervals": [
{
"startPos": 130,
"endPos": 196
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Lungs",
"content": "The remainder of the lungs are clear without consolidation, pneumothorax, or pleural effusion.",
"intervals": [
{
"startPos": 197,
"endPos": 291
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Vasculature",
"content": "The pulmonary vasculature appears normal.",
"intervals": [
{
"startPos": 292,
"endPos": 333
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Bones",
"content": "No acute bony abnormalities are identified.",
"intervals": [
{
"startPos": 334,
"endPos": 377
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Abdomen",
"content": "The visualized upper abdomen is unremarkable.",
"intervals": [
{
"startPos": 378,
"endPos": 423
}
],
"significance": "normal"
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "Study: Chest Radiograph",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Examination"
},
"char_interval": {
"start_pos": 0,
"end_pos": 23
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The cardiac silhouette is normal in size and contour.",
"extraction_class": "findings_body",
"attributes": {
"section": "Heart",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 25,
"end_pos": 78
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The mediastinal contours are within normal limits.",
"extraction_class": "findings_body",
"attributes": {
"section": "Mediastinum",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 79,
"end_pos": 129
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is a 8 mm well-circumscribed nodule in the right upper lobe.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lungs",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 130,
"end_pos": 196
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The remainder of the lungs are clear without consolidation, pneumothorax, or pleural effusion.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lungs",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 197,
"end_pos": 291
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The pulmonary vasculature appears normal.",
"extraction_class": "findings_body",
"attributes": {
"section": "Vasculature",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 292,
"end_pos": 333
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No acute bony abnormalities are identified.",
"extraction_class": "findings_body",
"attributes": {
"section": "Bones",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 334,
"end_pos": 377
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The visualized upper abdomen is unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Abdomen",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 378,
"end_pos": 423
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "EXAMINATION:\n\nChest Radiograph\n\n\nFINDINGS:\n\nHeart: The cardiac silhouette is normal in size and contour.\n\nMediastinum: The mediastinal contours are within normal limits.\n\nLungs: There is a 8 mm well-circumscribed nodule in the right upper lobe. The remainder of the lungs are clear without consolidation, pneumothorax, or pleural effusion.\n\nVasculature: The pulmonary vasculature appears normal.\n\nBones: No acute bony abnormalities are identified.\n\nAbdomen: The visualized upper abdomen is unremarkable.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nStudy: Chest Radiograph\n\nThe cardiac silhouette is normal in size and contour. The mediastinal contours are within normal limits. There is a 8 mm well-circumscribed nodule in the right upper lobe. The remainder of the lungs are clear without consolidation, pneumothorax, or pleural effusion. The pulmonary vasculature appears normal. No acute bony abnormalities are identified. The visualized upper abdomen is unremarkable.\n```\n\n**Expected Output:**\n"
},
"sample_cta_pulmonary_embolus": {
"segments": [
{
"type": "prefix",
"label": "Examination",
"content": "EXAMINATION: CT angiography of the chest for pulmonary embolism",
"intervals": [
{
"startPos": 0,
"endPos": 63
}
],
"significance": null
},
{
"type": "prefix",
"label": "Clinical Indication",
"content": "CLINICAL INDICATION: Shortness of breath, chest pain, elevated D-dimer, rule out pulmonary embolism",
"intervals": [
{
"startPos": 64,
"endPos": 163
}
],
"significance": null
},
{
"type": "prefix",
"label": "Comparison",
"content": "COMPARISON: Chest X-ray from 2 days ago",
"intervals": [
{
"startPos": 164,
"endPos": 203
}
],
"significance": null
},
{
"type": "prefix",
"label": "Technique",
"content": "TECHNIQUE: Axial CT images of the chest were obtained following rapid intravenous administration of iodinated contrast material. Images were reconstructed in axial, coronal, and sagittal planes with MIP and VRT reformations.",
"intervals": [
{
"startPos": 204,
"endPos": 428
}
],
"significance": null
},
{
"type": "body",
"label": "Pulmonary Vasculature",
"content": "There are multiple filling defects consistent with acute pulmonary emboli involving the right main pulmonary artery extending into the right upper and middle lobe segmental branches. Additional smaller emboli are present in the left lower lobe subsegmental arteries.",
"intervals": [
{
"startPos": 440,
"endPos": 706
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Pulmonary Vasculature",
"content": "The main pulmonary artery is mildly dilated, measuring 3.2 cm in diameter.",
"intervals": [
{
"startPos": 707,
"endPos": 781
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Heart",
"content": "There is mild right heart strain with flattening of the interventricular septum and enlargement of the right ventricle.",
"intervals": [
{
"startPos": 782,
"endPos": 901
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Heart",
"content": "No evidence of right heart failure or pericardial effusion.",
"intervals": [
{
"startPos": 902,
"endPos": 961
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Lungs",
"content": "The lungs show mild bilateral lower lobe atelectasis.",
"intervals": [
{
"startPos": 963,
"endPos": 1054
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Lungs",
"content": "No consolidation or pneumothorax is identified.",
"intervals": [
{
"startPos": 1055,
"endPos": 1102
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Pleura",
"content": "Small bilateral pleural effusions are present.",
"intervals": [
{
"startPos": 1004,
"endPos": 1054
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Mediastinum",
"content": "The mediastinal and hilar lymph nodes are not enlarged.",
"intervals": [
{
"startPos": 1103,
"endPos": 1158
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Mediastinum",
"content": "The aorta and great vessels appear normal.",
"intervals": [
{
"startPos": 1159,
"endPos": 1201
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Abdomen",
"content": "The visualized portions of the upper abdomen are unremarkable.",
"intervals": [
{
"startPos": 1202,
"endPos": 1264
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Bones",
"content": "No acute bony abnormalities are identified.",
"intervals": [
{
"startPos": 1265,
"endPos": 1308
}
],
"significance": "normal"
},
{
"type": "suffix",
"label": "suffix",
"content": "1. Acute pulmonary emboli involving the right main, upper and middle lobe segmental arteries, and left lower lobe subsegmental arteries.\n2. Mild pulmonary hypertension with right heart strain.\n3. Small bilateral pleural effusions and bilateral lower lobe atelectasis.",
"intervals": [
{
"startPos": 1322,
"endPos": 1589
}
],
"significance": null
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "EXAMINATION: CT angiography of the chest for pulmonary embolism",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Examination"
},
"char_interval": {
"start_pos": 0,
"end_pos": 63
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "CLINICAL INDICATION: Shortness of breath, chest pain, elevated D-dimer, rule out pulmonary embolism",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Clinical Indication"
},
"char_interval": {
"start_pos": 64,
"end_pos": 163
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "COMPARISON: Chest X-ray from 2 days ago",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Comparison"
},
"char_interval": {
"start_pos": 164,
"end_pos": 203
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "TECHNIQUE: Axial CT images of the chest were obtained following rapid intravenous administration of iodinated contrast material. Images were reconstructed in axial, coronal, and sagittal planes with MIP and VRT reformations.",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Technique"
},
"char_interval": {
"start_pos": 204,
"end_pos": 428
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There are multiple filling defects consistent with acute pulmonary emboli involving the right main pulmonary artery extending into the right upper and middle lobe segmental branches. Additional smaller emboli are present in the left lower lobe subsegmental arteries.",
"extraction_class": "findings_body",
"attributes": {
"section": "Pulmonary Vasculature",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 440,
"end_pos": 706
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The main pulmonary artery is mildly dilated, measuring 3.2 cm in diameter.",
"extraction_class": "findings_body",
"attributes": {
"section": "Pulmonary Vasculature",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 707,
"end_pos": 781
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is mild right heart strain with flattening of the interventricular septum and enlargement of the right ventricle.",
"extraction_class": "findings_body",
"attributes": {
"section": "Heart",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 782,
"end_pos": 901
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No evidence of right heart failure or pericardial effusion.",
"extraction_class": "findings_body",
"attributes": {
"section": "Heart",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 902,
"end_pos": 961
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The lungs show mild bilateral lower lobe atelectasis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lungs",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 963,
"end_pos": 1054
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "Small bilateral pleural effusions are present.",
"extraction_class": "findings_body",
"attributes": {
"section": "Pleura",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 1004,
"end_pos": 1054
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "No consolidation or pneumothorax is identified.",
"extraction_class": "findings_body",
"attributes": {
"section": "Lungs",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1055,
"end_pos": 1102
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The mediastinal and hilar lymph nodes are not enlarged.",
"extraction_class": "findings_body",
"attributes": {
"section": "Mediastinum",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1103,
"end_pos": 1158
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The aorta and great vessels appear normal.",
"extraction_class": "findings_body",
"attributes": {
"section": "Mediastinum",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1159,
"end_pos": 1201
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The visualized portions of the upper abdomen are unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Abdomen",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1202,
"end_pos": 1264
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No acute bony abnormalities are identified.",
"extraction_class": "findings_body",
"attributes": {
"section": "Bones",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1265,
"end_pos": 1308
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "1. Acute pulmonary emboli involving the right main, upper and middle lobe segmental arteries, and left lower lobe subsegmental arteries.\n2. Mild pulmonary hypertension with right heart strain.\n3. Small bilateral pleural effusions and bilateral lower lobe atelectasis.",
"extraction_class": "findings_suffix",
"attributes": {},
"char_interval": {
"start_pos": 1322,
"end_pos": 1589
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "EXAMINATION:\n\nCT angiography of the chest for pulmonary embolism\n\nCLINICAL INDICATION: Shortness of breath, chest pain, elevated D-dimer, rule out pulmonary embolism\n\nCOMPARISON: Chest X-ray from 2 days ago\n\nTECHNIQUE: Axial CT images of the chest were obtained following rapid intravenous administration of iodinated contrast material. Images were reconstructed in axial, coronal, and sagittal planes with MIP and VRT reformations.\n\n\nFINDINGS:\n\nPulmonary Vasculature: There are multiple filling defects consistent with acute pulmonary emboli involving the right main pulmonary artery extending into the right upper and middle lobe segmental branches. Additional smaller emboli are present in the left lower lobe subsegmental arteries. The main pulmonary artery is mildly dilated, measuring 3.2 cm in diameter.\n\nHeart: There is mild right heart strain with flattening of the interventricular septum and enlargement of the right ventricle. No evidence of right heart failure or pericardial effusion.\n\nLungs: The lungs show mild bilateral lower lobe atelectasis. No consolidation or pneumothorax is identified.\n\nPleura: Small bilateral pleural effusions are present.\n\nMediastinum: The mediastinal and hilar lymph nodes are not enlarged. The aorta and great vessels appear normal.\n\nAbdomen: The visualized portions of the upper abdomen are unremarkable.\n\nBones: No acute bony abnormalities are identified.\n\nIMPRESSION:\n\n1. Acute pulmonary emboli involving the right main, upper and middle lobe segmental arteries, and left lower lobe subsegmental arteries.\n2. Mild pulmonary hypertension with right heart strain.\n3. Small bilateral pleural effusions and bilateral lower lobe atelectasis.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nEXAMINATION: CT angiography of the chest for pulmonary embolism\nCLINICAL INDICATION: Shortness of breath, chest pain, elevated D-dimer, rule out pulmonary embolism\nCOMPARISON: Chest X-ray from 2 days ago\nTECHNIQUE: Axial CT images of the chest were obtained following rapid intravenous administration of iodinated contrast material. Images were reconstructed in axial, coronal, and sagittal planes with MIP and VRT reformations.\n\nFINDINGS:\nThere are multiple filling defects consistent with acute pulmonary emboli involving the right main pulmonary artery extending into the right upper and middle lobe segmental branches. Additional smaller emboli are present in the left lower lobe subsegmental arteries. The main pulmonary artery is mildly dilated, measuring 3.2 cm in diameter. There is mild right heart strain with flattening of the interventricular septum and enlargement of the right ventricle. No evidence of right heart failure or pericardial effusion.\n\nThe lungs show mild bilateral lower lobe atelectasis and small bilateral pleural effusions. No consolidation or pneumothorax is identified. The mediastinal and hilar lymph nodes are not enlarged. The aorta and great vessels appear normal. The visualized portions of the upper abdomen are unremarkable. No acute bony abnormalities are identified.\n\nIMPRESSION:\n1. Acute pulmonary emboli involving the right main, upper and middle lobe segmental arteries, and left lower lobe subsegmental arteries.\n2. Mild pulmonary hypertension with right heart strain.\n3. Small bilateral pleural effusions and bilateral lower lobe atelectasis.\n```\n\n**Expected Output:**\n"
},
"sample_abdominal_ultrasound": {
"segments": [
{
"type": "prefix",
"label": "Examination",
"content": "EXAMINATION: Ultrasound of the abdomen",
"intervals": [
{
"startPos": 0,
"endPos": 38
}
],
"significance": null
},
{
"type": "prefix",
"label": "Clinical Indication",
"content": "CLINICAL INDICATION: Right upper quadrant pain, abnormal liver function tests",
"intervals": [
{
"startPos": 39,
"endPos": 116
}
],
"significance": null
},
{
"type": "prefix",
"label": "Comparison",
"content": "COMPARISON: None available",
"intervals": [
{
"startPos": 117,
"endPos": 143
}
],
"significance": null
},
{
"type": "prefix",
"label": "Technique",
"content": "TECHNIQUE: Real-time ultrasound examination of the abdomen was performed using a curved array transducer. Multiple images were obtained in sagittal, transverse, and oblique planes.",
"intervals": [
{
"startPos": 144,
"endPos": 324
}
],
"significance": null
},
{
"type": "body",
"label": "Liver",
"content": "The liver is normal in size measuring 15.2 cm in the midclavicular line.",
"intervals": [
{
"startPos": 336,
"endPos": 408
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Liver",
"content": "The hepatic parenchyma demonstrates increased echogenicity consistent with fatty infiltration.",
"intervals": [
{
"startPos": 409,
"endPos": 503
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Liver",
"content": "There is a well-defined hyperechoic lesion in the right hepatic lobe measuring 2.1 x 1.8 cm, consistent with a hemangioma.",
"intervals": [
{
"startPos": 504,
"endPos": 626
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Liver",
"content": "No focal hepatic masses or intrahepatic biliary dilatation is identified.",
"intervals": [
{
"startPos": 627,
"endPos": 700
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Liver",
"content": "Portal vein flow is normal on Doppler evaluation.",
"intervals": [
{
"startPos": 701,
"endPos": 750
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Gallbladder",
"content": "The gallbladder is distended and contains multiple echogenic foci with posterior acoustic shadowing, consistent with cholelithiasis. The largest stone measures approximately 1.5 cm.",
"intervals": [
{
"startPos": 751,
"endPos": 932
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Gallbladder",
"content": "The gallbladder wall measures 2 mm in thickness, which is within normal limits.",
"intervals": [
{
"startPos": 933,
"endPos": 1012
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Gallbladder",
"content": "No pericholecystic fluid is identified.",
"intervals": [
{
"startPos": 1013,
"endPos": 1052
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Biliary",
"content": "Common bile duct measures 4 mm, which is normal.",
"intervals": [
{
"startPos": 1053,
"endPos": 1101
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Pancreas",
"content": "The visualized portions of the pancreatic head and body appear normal in echogenicity and size. The pancreatic duct is not dilated.",
"intervals": [
{
"startPos": 1102,
"endPos": 1233
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Kidneys",
"content": "The right kidney measures 10.8 cm and the left kidney measures 11.1 cm. Both kidneys demonstrate normal cortical echogenicity and corticomedullary differentiation. No hydronephrosis, stones, or masses are identified.",
"intervals": [
{
"startPos": 1234,
"endPos": 1450
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Spleen",
"content": "The spleen is normal in size and echogenicity, measuring 10.2 cm in length.",
"intervals": [
{
"startPos": 1451,
"endPos": 1526
}
],
"significance": "normal"
},
{
"type": "suffix",
"label": "suffix",
"content": "1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic steatosis (fatty liver).\n3. 2.1 cm hepatic hemangioma in the right lobe.\n4. Normal kidneys, spleen, and visualized pancreas.",
"intervals": [
{
"startPos": 1540,
"endPos": 1734
}
],
"significance": null
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "EXAMINATION: Ultrasound of the abdomen",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Examination"
},
"char_interval": {
"start_pos": 0,
"end_pos": 38
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "CLINICAL INDICATION: Right upper quadrant pain, abnormal liver function tests",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Clinical Indication"
},
"char_interval": {
"start_pos": 39,
"end_pos": 116
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "COMPARISON: None available",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Comparison"
},
"char_interval": {
"start_pos": 117,
"end_pos": 143
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "TECHNIQUE: Real-time ultrasound examination of the abdomen was performed using a curved array transducer. Multiple images were obtained in sagittal, transverse, and oblique planes.",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Technique"
},
"char_interval": {
"start_pos": 144,
"end_pos": 324
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The liver is normal in size measuring 15.2 cm in the midclavicular line.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 336,
"end_pos": 408
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The hepatic parenchyma demonstrates increased echogenicity consistent with fatty infiltration.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 409,
"end_pos": 503
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "There is a well-defined hyperechoic lesion in the right hepatic lobe measuring 2.1 x 1.8 cm, consistent with a hemangioma.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 504,
"end_pos": 626
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No focal hepatic masses or intrahepatic biliary dilatation is identified.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 627,
"end_pos": 700
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Portal vein flow is normal on Doppler evaluation.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 701,
"end_pos": 750
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The gallbladder is distended and contains multiple echogenic foci with posterior acoustic shadowing, consistent with cholelithiasis. The largest stone measures approximately 1.5 cm.",
"extraction_class": "findings_body",
"attributes": {
"section": "Gallbladder",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 751,
"end_pos": 932
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The gallbladder wall measures 2 mm in thickness, which is within normal limits.",
"extraction_class": "findings_body",
"attributes": {
"section": "Gallbladder",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 933,
"end_pos": 1012
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No pericholecystic fluid is identified.",
"extraction_class": "findings_body",
"attributes": {
"section": "Gallbladder",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1013,
"end_pos": 1052
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Common bile duct measures 4 mm, which is normal.",
"extraction_class": "findings_body",
"attributes": {
"section": "Biliary",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1053,
"end_pos": 1101
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The visualized portions of the pancreatic head and body appear normal in echogenicity and size. The pancreatic duct is not dilated.",
"extraction_class": "findings_body",
"attributes": {
"section": "Pancreas",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1102,
"end_pos": 1233
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The right kidney measures 10.8 cm and the left kidney measures 11.1 cm. Both kidneys demonstrate normal cortical echogenicity and corticomedullary differentiation. No hydronephrosis, stones, or masses are identified.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1234,
"end_pos": 1450
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The spleen is normal in size and echogenicity, measuring 10.2 cm in length.",
"extraction_class": "findings_body",
"attributes": {
"section": "Spleen",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 1451,
"end_pos": 1526
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic steatosis (fatty liver).\n3. 2.1 cm hepatic hemangioma in the right lobe.\n4. Normal kidneys, spleen, and visualized pancreas.",
"extraction_class": "findings_suffix",
"attributes": {},
"char_interval": {
"start_pos": 1540,
"end_pos": 1734
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "EXAMINATION:\n\nUltrasound of the abdomen\n\nCLINICAL INDICATION: Right upper quadrant pain, abnormal liver function tests\n\nCOMPARISON: None available\n\nTECHNIQUE: Real-time ultrasound examination of the abdomen was performed using a curved array transducer. Multiple images were obtained in sagittal, transverse, and oblique planes.\n\n\nFINDINGS:\n\nLiver: The liver is normal in size measuring 15.2 cm in the midclavicular line. The hepatic parenchyma demonstrates increased echogenicity consistent with fatty infiltration. There is a well-defined hyperechoic lesion in the right hepatic lobe measuring 2.1 x 1.8 cm, consistent with a hemangioma. No focal hepatic masses or intrahepatic biliary dilatation is identified. Portal vein flow is normal on Doppler evaluation.\n\nGallbladder: The gallbladder is distended and contains multiple echogenic foci with posterior acoustic shadowing, consistent with cholelithiasis. The largest stone measures approximately 1.5 cm. The gallbladder wall measures 2 mm in thickness, which is within normal limits. No pericholecystic fluid is identified.\n\nBiliary: Common bile duct measures 4 mm, which is normal.\n\nPancreas: The visualized portions of the pancreatic head and body appear normal in echogenicity and size. The pancreatic duct is not dilated.\n\nKidneys: The right kidney measures 10.8 cm and the left kidney measures 11.1 cm. Both kidneys demonstrate normal cortical echogenicity and corticomedullary differentiation. No hydronephrosis, stones, or masses are identified.\n\nSpleen: The spleen is normal in size and echogenicity, measuring 10.2 cm in length.\n\nIMPRESSION:\n\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic steatosis (fatty liver).\n3. 2.1 cm hepatic hemangioma in the right lobe.\n4. Normal kidneys, spleen, and visualized pancreas.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nEXAMINATION: Ultrasound of the abdomen\nCLINICAL INDICATION: Right upper quadrant pain, abnormal liver function tests\nCOMPARISON: None available\nTECHNIQUE: Real-time ultrasound examination of the abdomen was performed using a curved array transducer. Multiple images were obtained in sagittal, transverse, and oblique planes.\n\nFINDINGS:\nThe liver is normal in size measuring 15.2 cm in the midclavicular line. The hepatic parenchyma demonstrates increased echogenicity consistent with fatty infiltration. There is a well-defined hyperechoic lesion in the right hepatic lobe measuring 2.1 x 1.8 cm, consistent with a hemangioma. No focal hepatic masses or intrahepatic biliary dilatation is identified. Portal vein flow is normal on Doppler evaluation. The gallbladder is distended and contains multiple echogenic foci with posterior acoustic shadowing, consistent with cholelithiasis. The largest stone measures approximately 1.5 cm. The gallbladder wall measures 2 mm in thickness, which is within normal limits. No pericholecystic fluid is identified. Common bile duct measures 4 mm, which is normal. The visualized portions of the pancreatic head and body appear normal in echogenicity and size. The pancreatic duct is not dilated. The right kidney measures 10.8 cm and the left kidney measures 11.1 cm. Both kidneys demonstrate normal cortical echogenicity and corticomedullary differentiation. No hydronephrosis, stones, or masses are identified. The spleen is normal in size and echogenicity, measuring 10.2 cm in length.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic steatosis (fatty liver).\n3. 2.1 cm hepatic hemangioma in the right lobe.\n4. Normal kidneys, spleen, and visualized pancreas.\n```\n\n**Expected Output:**\n"
},
"sample_cervical_spine_mri": {
"segments": [
{
"type": "prefix",
"label": "Examination",
"content": "MRI Cervical Spine:",
"intervals": [
{
"startPos": 0,
"endPos": 19
}
],
"significance": null
},
{
"type": "prefix",
"label": "Comparison",
"content": "Comparison: MRI cervical spine dated 6 months ago",
"intervals": [
{
"startPos": 20,
"endPos": 69
}
],
"significance": null
},
{
"type": "body",
"label": "Cervical Spine",
"content": "The cervical lordosis is maintained. Vertebral body heights and alignment are preserved.",
"intervals": [
{
"startPos": 71,
"endPos": 159
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Spinal Cord",
"content": "The spinal cord demonstrates normal signal intensity throughout its visualized extent.",
"intervals": [
{
"startPos": 160,
"endPos": 246
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Cervical Spine Levels: C3-C4",
"content": "At C3-C4, there is mild disc desiccation without significant canal narrowing.",
"intervals": [
{
"startPos": 247,
"endPos": 324
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Cervical Spine Levels: C4-C5",
"content": "At C4-C5, a small posterior disc osteophyte complex results in mild central canal narrowing. The neural foramina remain patent.",
"intervals": [
{
"startPos": 325,
"endPos": 452
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Cervical Spine Levels: C5-C6",
"content": "At C5-C6, there is moderate disc space narrowing with a broad-based posterior disc bulge and bilateral uncinate spurring, causing mild to moderate bilateral neural foraminal narrowing.",
"intervals": [
{
"startPos": 453,
"endPos": 637
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Cervical Spine Levels: C6-C7",
"content": "At C6-C7, mild disc desiccation is present without significant stenosis.",
"intervals": [
{
"startPos": 638,
"endPos": 710
}
],
"significance": "minor"
},
{
"type": "body",
"label": "Paraspinal Soft Tissues",
"content": "The prevertebral soft tissues are unremarkable.",
"intervals": [
{
"startPos": 711,
"endPos": 758
}
],
"significance": "normal"
},
{
"type": "suffix",
"label": "suffix",
"content": "1. Multilevel cervical spondylosis, most pronounced at C5-C6.\n2. Mild to moderate bilateral C5-C6 neural foraminal narrowing.\n3. No spinal cord compression or significant central canal stenosis.",
"intervals": [
{
"startPos": 772,
"endPos": 966
}
],
"significance": null
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "MRI Cervical Spine:",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Examination"
},
"char_interval": {
"start_pos": 0,
"end_pos": 19
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Comparison: MRI cervical spine dated 6 months ago",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Comparison"
},
"char_interval": {
"start_pos": 20,
"end_pos": 69
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The cervical lordosis is maintained. Vertebral body heights and alignment are preserved.",
"extraction_class": "findings_body",
"attributes": {
"section": "Cervical Spine",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 71,
"end_pos": 159
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The spinal cord demonstrates normal signal intensity throughout its visualized extent.",
"extraction_class": "findings_body",
"attributes": {
"section": "Spinal Cord",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 160,
"end_pos": 246
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "At C3-C4, there is mild disc desiccation without significant canal narrowing.",
"extraction_class": "findings_body",
"attributes": {
"section": "Cervical Spine Levels: C3-C4",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 247,
"end_pos": 324
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "At C4-C5, a small posterior disc osteophyte complex results in mild central canal narrowing. The neural foramina remain patent.",
"extraction_class": "findings_body",
"attributes": {
"section": "Cervical Spine Levels: C4-C5",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 325,
"end_pos": 452
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "At C5-C6, there is moderate disc space narrowing with a broad-based posterior disc bulge and bilateral uncinate spurring, causing mild to moderate bilateral neural foraminal narrowing.",
"extraction_class": "findings_body",
"attributes": {
"section": "Cervical Spine Levels: C5-C6",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 453,
"end_pos": 637
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "At C6-C7, mild disc desiccation is present without significant stenosis.",
"extraction_class": "findings_body",
"attributes": {
"section": "Cervical Spine Levels: C6-C7",
"clinical_significance": "minor"
},
"char_interval": {
"start_pos": 638,
"end_pos": 710
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "The prevertebral soft tissues are unremarkable.",
"extraction_class": "findings_body",
"attributes": {
"section": "Paraspinal Soft Tissues",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 711,
"end_pos": 758
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "1. Multilevel cervical spondylosis, most pronounced at C5-C6.\n2. Mild to moderate bilateral C5-C6 neural foraminal narrowing.\n3. No spinal cord compression or significant central canal stenosis.",
"extraction_class": "findings_suffix",
"attributes": {},
"char_interval": {
"start_pos": 772,
"end_pos": 966
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "EXAMINATION:\n\nMRI Cervical Spine:\n\nComparison: MRI cervical spine dated 6 months ago\n\n\nFINDINGS:\n\nCervical Spine: The cervical lordosis is maintained. Vertebral body heights and alignment are preserved.\n\nSpinal Cord: The spinal cord demonstrates normal signal intensity throughout its visualized extent.\n\nCervical Spine Levels: C3-C4: At C3-C4, there is mild disc desiccation without significant canal narrowing.\n\nCervical Spine Levels: C4-C5: At C4-C5, a small posterior disc osteophyte complex results in mild central canal narrowing. The neural foramina remain patent.\n\nCervical Spine Levels: C5-C6: At C5-C6, there is moderate disc space narrowing with a broad-based posterior disc bulge and bilateral uncinate spurring, causing mild to moderate bilateral neural foraminal narrowing.\n\nCervical Spine Levels: C6-C7: At C6-C7, mild disc desiccation is present without significant stenosis.\n\nParaspinal Soft Tissues: The prevertebral soft tissues are unremarkable.\n\nIMPRESSION:\n\n1. Multilevel cervical spondylosis, most pronounced at C5-C6.\n2. Mild to moderate bilateral C5-C6 neural foraminal narrowing.\n3. No spinal cord compression or significant central canal stenosis.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nMRI Cervical Spine:\nComparison: MRI cervical spine dated 6 months ago\n\nThe cervical lordosis is maintained. Vertebral body heights and alignment are preserved. The spinal cord demonstrates normal signal intensity throughout its visualized extent. At C3-C4, there is mild disc desiccation without significant canal narrowing. At C4-C5, a small posterior disc osteophyte complex results in mild central canal narrowing. The neural foramina remain patent. At C5-C6, there is moderate disc space narrowing with a broad-based posterior disc bulge and bilateral uncinate spurring, causing mild to moderate bilateral neural foraminal narrowing. At C6-C7, mild disc desiccation is present without significant stenosis. The prevertebral soft tissues are unremarkable.\n\nIMPRESSION:\n1. Multilevel cervical spondylosis, most pronounced at C5-C6.\n2. Mild to moderate bilateral C5-C6 neural foraminal narrowing.\n3. No spinal cord compression or significant central canal stenosis.\n```\n\n**Expected Output:**\n"
},
"sample_whole_body_petct": {
"segments": [
{
"type": "prefix",
"label": "Examination",
"content": "EXAMINATION: Whole-body fluorodeoxyglucose (FDG) PET/CT",
"intervals": [
{
"startPos": 0,
"endPos": 55
}
],
"significance": null
},
{
"type": "prefix",
"label": "Clinical Indication",
"content": "CLINICAL INDICATION: Staging of newly diagnosed non-small-cell lung carcinoma (NSCLC)",
"intervals": [
{
"startPos": 56,
"endPos": 141
}
],
"significance": null
},
{
"type": "prefix",
"label": "Comparison",
"content": "COMPARISON: None available",
"intervals": [
{
"startPos": 142,
"endPos": 168
}
],
"significance": null
},
{
"type": "prefix",
"label": "Technique",
"content": "TECHNIQUE: Following a 60-minute uptake period after intravenous administration of 12 mCi of FDG, low-dose non-contrast CT images were obtained for attenuation correction and anatomic localization, followed by emission PET images from the skull base to mid-thigh.",
"intervals": [
{
"startPos": 169,
"endPos": 432
}
],
"significance": null
},
{
"type": "body",
"label": "Lungs",
"content": "A 3.1 cm spiculated mass in the right upper lobe demonstrates intense FDG uptake (SUVmax 12.4).",
"intervals": [
{
"startPos": 444,
"endPos": 539
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Mediastinum/Hilar",
"content": "Ipsilateral mediastinal (station 4R) lymph node measuring 1.2 cm shows increased activity (SUVmax 6.8).",
"intervals": [
{
"startPos": 540,
"endPos": 643
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Mediastinum/Hilar",
"content": "No contralateral mediastinal or hilar hypermetabolic nodes.",
"intervals": [
{
"startPos": 644,
"endPos": 703
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Bones",
"content": "Multiple focal areas of increased FDG uptake are seen in the axial and appendicular skeleton corresponding to sclerotic lesions on CT, compatible with osseous metastases (largest in right iliac bone, SUVmax 9.1).",
"intervals": [
{
"startPos": 705,
"endPos": 917
}
],
"significance": "significant"
},
{
"type": "body",
"label": "Liver",
"content": "No abnormal activity in the liver.",
"intervals": [
{
"startPos": 918,
"endPos": 978
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Adrenal Glands",
"content": "No abnormal activity in the adrenal glands.",
"intervals": [
{
"startPos": 918,
"endPos": 978
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Brain",
"content": "No abnormal activity in the brain.",
"intervals": [
{
"startPos": 918,
"endPos": 978
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Heart",
"content": "Physiologic tracer distribution in myocardium.",
"intervals": [
{
"startPos": 979,
"endPos": 1055
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Kidneys",
"content": "Physiologic tracer distribution in kidneys.",
"intervals": [
{
"startPos": 979,
"endPos": 1055
}
],
"significance": "normal"
},
{
"type": "body",
"label": "Urinary Bladder",
"content": "Physiologic tracer distribution in urinary bladder.",
"intervals": [
{
"startPos": 979,
"endPos": 1055
}
],
"significance": "normal"
},
{
"type": "suffix",
"label": "suffix",
"content": "1. FDG-avid right upper-lobe primary lung malignancy with hypermetabolic right paratracheal nodal metastasis (consistent with at least N2 disease).\n2. Numerous FDG-avid osseous metastases consistent with Stage IV disease.",
"intervals": [
{
"startPos": 1069,
"endPos": 1290
}
],
"significance": null
}
],
"annotated_document_json": {
"extractions": [
{
"extraction_text": "EXAMINATION: Whole-body fluorodeoxyglucose (FDG) PET/CT",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Examination"
},
"char_interval": {
"start_pos": 0,
"end_pos": 55
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "CLINICAL INDICATION: Staging of newly diagnosed non-small-cell lung carcinoma (NSCLC)",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Clinical Indication"
},
"char_interval": {
"start_pos": 56,
"end_pos": 141
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "COMPARISON: None available",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Comparison"
},
"char_interval": {
"start_pos": 142,
"end_pos": 168
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "TECHNIQUE: Following a 60-minute uptake period after intravenous administration of 12 mCi of FDG, low-dose non-contrast CT images were obtained for attenuation correction and anatomic localization, followed by emission PET images from the skull base to mid-thigh.",
"extraction_class": "findings_prefix",
"attributes": {
"section": "Technique"
},
"char_interval": {
"start_pos": 169,
"end_pos": 432
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "A 3.1 cm spiculated mass in the right upper lobe demonstrates intense FDG uptake (SUVmax 12.4).",
"extraction_class": "findings_body",
"attributes": {
"section": "Lungs",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 444,
"end_pos": 539
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Ipsilateral mediastinal (station 4R) lymph node measuring 1.2 cm shows increased activity (SUVmax 6.8).",
"extraction_class": "findings_body",
"attributes": {
"section": "Mediastinum/Hilar",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 540,
"end_pos": 643
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No contralateral mediastinal or hilar hypermetabolic nodes.",
"extraction_class": "findings_body",
"attributes": {
"section": "Mediastinum/Hilar",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 644,
"end_pos": 703
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "Multiple focal areas of increased FDG uptake are seen in the axial and appendicular skeleton corresponding to sclerotic lesions on CT, compatible with osseous metastases (largest in right iliac bone, SUVmax 9.1).",
"extraction_class": "findings_body",
"attributes": {
"section": "Bones",
"clinical_significance": "significant"
},
"char_interval": {
"start_pos": 705,
"end_pos": 917
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
},
{
"extraction_text": "No abnormal activity in the liver.",
"extraction_class": "findings_body",
"attributes": {
"section": "Liver",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 918,
"end_pos": 978
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "No abnormal activity in the adrenal glands.",
"extraction_class": "findings_body",
"attributes": {
"section": "Adrenal Glands",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 918,
"end_pos": 978
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "No abnormal activity in the brain.",
"extraction_class": "findings_body",
"attributes": {
"section": "Brain",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 918,
"end_pos": 978
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "Physiologic tracer distribution in myocardium.",
"extraction_class": "findings_body",
"attributes": {
"section": "Heart",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 979,
"end_pos": 1055
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "Physiologic tracer distribution in kidneys.",
"extraction_class": "findings_body",
"attributes": {
"section": "Kidneys",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 979,
"end_pos": 1055
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "Physiologic tracer distribution in urinary bladder.",
"extraction_class": "findings_body",
"attributes": {
"section": "Urinary Bladder",
"clinical_significance": "normal"
},
"char_interval": {
"start_pos": 979,
"end_pos": 1055
},
"alignment_status": "AlignmentStatus.MATCH_FUZZY"
},
{
"extraction_text": "1. FDG-avid right upper-lobe primary lung malignancy with hypermetabolic right paratracheal nodal metastasis (consistent with at least N2 disease).\n2. Numerous FDG-avid osseous metastases consistent with Stage IV disease.",
"extraction_class": "findings_suffix",
"attributes": {},
"char_interval": {
"start_pos": 1069,
"end_pos": 1290
},
"alignment_status": "AlignmentStatus.MATCH_EXACT"
}
]
},
"text": "EXAMINATION:\n\nWhole-body fluorodeoxyglucose (FDG) PET/CT\n\nCLINICAL INDICATION: Staging of newly diagnosed non-small-cell lung carcinoma (NSCLC)\n\nCOMPARISON: None available\n\nTECHNIQUE: Following a 60-minute uptake period after intravenous administration of 12 mCi of FDG, low-dose non-contrast CT images were obtained for attenuation correction and anatomic localization, followed by emission PET images from the skull base to mid-thigh.\n\n\nFINDINGS:\n\nLungs: A 3.1 cm spiculated mass in the right upper lobe demonstrates intense FDG uptake (SUVmax 12.4).\n\nMediastinum/Hilar: Ipsilateral mediastinal (station 4R) lymph node measuring 1.2 cm shows increased activity (SUVmax 6.8). No contralateral mediastinal or hilar hypermetabolic nodes.\n\nBones: Multiple focal areas of increased FDG uptake are seen in the axial and appendicular skeleton corresponding to sclerotic lesions on CT, compatible with osseous metastases (largest in right iliac bone, SUVmax 9.1).\n\nLiver: No abnormal activity in the liver.\n\nAdrenal Glands: No abnormal activity in the adrenal glands.\n\nBrain: No abnormal activity in the brain.\n\nHeart: Physiologic tracer distribution in myocardium.\n\nKidneys: Physiologic tracer distribution in kidneys.\n\nUrinary Bladder: Physiologic tracer distribution in urinary bladder.\n\nIMPRESSION:\n\n1. FDG-avid right upper-lobe primary lung malignancy with hypermetabolic right paratracheal nodal metastasis (consistent with at least N2 disease).\n2. Numerous FDG-avid osseous metastases consistent with Stage IV disease.",
"raw_prompt": "# RadExtract Prompt\n\n## Task Description\n\nYou are a medical assistant specialized in categorizing radiology text into sections:\n\n- **findings_prefix** -- All text that appears before the actual \"findings\" content.\n- **findings_body** -- The main 'Findings' section. Each finding is classified into a possible section through a list of attributes, some of which may also be assigned to a subheader.\n- **findings_suffix** -- Any text that appears after the \"findings\" portion (such as \"Impression\" or other concluding content).\n\n### Section Categories:\n- **findings_prefix**: Use only for header information before clinical findings (examination details, clinical indication, technique). Never use for actual clinical observations or pathological findings.\n- **findings_body**: Use for all clinical findings, observations, and pathological descriptions.\n- **findings_suffix**: Use only for conclusions, impressions, or recommendations that appear after the main findings.\n\n### Critical Rule:\nIf a report contains only clinical findings without any header information, do not create a findings_prefix extraction. Start directly with findings_body extractions for the clinical content.\n\n**Example of findings-only content (NO prefix needed):**\nInput: \"There is a small joint effusion. The cartilage shows thinning.\"\nCorrect: Create only findings_body extractions for each clinical finding.\nIncorrect: Do not categorize clinical findings as findings_prefix.\n\n### Professional Output Standards:\nAll extracted text must maintain the grammatical correctness and professional coherence expected in radiology reports. Ensure that:\n- All sentences are complete and grammatically correct\n- Medical terminology is used appropriately and consistently\n- The language remains professional and clinical in tone\n- Correct obvious typos (e.g., \"splen\" → \"spleen\", \"kidny\" → \"kidney\")\n- Any modifications to the original text preserve the intended medical meaning\n- Minor typos are corrected and optimal punctuation is used\n\n### Empty prefix or suffix sections:\nOnly create extractions for sections that actually exist in the text. Do not create empty prefix or suffix sections if there is no corresponding content in the source text. If the text is findings-only without any impression/conclusion, do not create a findings_suffix extraction.\n\n### Section Usage Guidelines:\n\n**findings_prefix**: Reserved exclusively for header information that appears before clinical findings, such as:\n- Examination details (type of study, technique)\n- Clinical indication or history\n- Comparison studies referenced\n- Technical parameters\n\n**findings_body**: Contains the actual clinical findings and observations from the imaging study.\n\n**findings_suffix**: Reserved for concluding content that follows the findings, such as impressions or recommendations.\n\n**Critical Rule**: Clinical findings should never be categorized as prefix content. If a report begins directly with clinical observations without any header information, create only findings_body and findings_suffix extractions as appropriate.\n\n### Special guidance for findings_prefix organization:\nWhen the report has detailed prefix information with clear section headers (like EXAMINATION, CLINICAL INDICATION, COMPARISON, TECHNIQUE), create separate extractions for each section rather than one large block. Use the \"section\" attribute to label each part:\n- \"Examination\" for exam type/title\n- \"Clinical Indication\" for clinical history/reason for study \n- \"Comparison\" for prior studies referenced\n- \"Technique\" for imaging parameters and acquisition details\n\n**Important:** Even when examination information appears at the beginning without an explicit \"EXAMINATION:\" header, it should still be labeled with section:\"Examination\". This includes standalone exam descriptions that identify the type of imaging study being performed.\n\nAlways recognize examination-type content and use section:\"Examination\" regardless of whether it has an explicit header.\n\nThis structured approach provides better organization and readability.\n\n### Critical for findings_suffix:\nDo NOT include headers like \"IMPRESSION:\", \"CONCLUSION:\", etc. in the extraction_text. Only extract the actual content that follows these headers. The formatting system will add appropriate headers automatically. \n\n**Example:** If the text contains \"IMPRESSION: 1. Severe arthritis. 2. Labral tear.\", extract only \"1. Severe arthritis. 2. Labral tear.\" as the extraction_text.\n\n### Additional Notes for findings_body:\n- If a single sentence references multiple structures with a shared status (e.g., \"liver, gallbladder, spleen appear unremarkable\"), please split them into separate extraction lines, each referencing the relevant structure.\n- If the text mentions subheaders like \"CT ABDOMEN\" or \"CERVICAL SPINE,\" only create/retain that subheader if it clearly organizes multiple organ-structure findings under it. Do not force subheaders if only 1 or 2 lines belong there. A subheader should ideally group 3+ sections to be meaningful.\n\n### Special guidance for spine reports:\n- For spine imaging (MRI, CT), organize findings by anatomical level using the format: \"Lumbar Spine Levels: L1-L2\", \"Lumbar Spine Levels: L2-L3\", \"Cervical Spine Levels: C5-C6\", etc.\n- Separate general spine findings (alignment, lordosis, vertebral heights) from level-specific findings\n- Use dedicated sections for: \"Spinal Cord\", \"Bones\" (for marrow/vertebral body lesions), \"Paraspinal Soft Tissues\" (for muscle findings)\n- Each spinal level should get its own section when findings are described level-by-level\n- This level-by-level organization is preferred over generic \"Spine\" labeling for clinical utility\n\n### Non-spine skeletal findings:\nFor non-spine skeletal findings, unify them under a single section like \"Bones.\" Only keep laterality (Right/Left) if there is symmetry in the findings.\n\n## Required JSON Format\n\nEach final answer must be valid JSON with an array key \"extractions\". Each \"extraction\" is an object with:\n\n```json\n{\n \"text\": \"...\",\n \"category\": \"findings_prefix\" | \"findings_body\" | \"findings_suffix\",\n \"attributes\": {}\n}\n```\n\nWithin \"attributes\" each attribute should be a key-value pair as shown in the examples below. The attribute **\"clinical_significance\"** MUST be included for findings_body extractions and should be one of: **\"normal\"**, **\"minor\"**, **\"significant\"**, or **\"not_applicable\"** to indicate the importance of the finding.\n\n---\n\n# Few-Shot Examples\n\nThe following examples demonstrate how to properly structure different types of radiology reports:\n\n## Example 1\n\n**Input Text:**\n```\nEXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\nCLINICAL INDICATION: Abdominal pain.\nCOMPARISON: None.\nTECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\n\nFINDINGS:\nNo acute abnormality is seen in the visualized lung bases. The liver is normal in size and contour. There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst. The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\n\nIMPRESSION:\n1. Cholelithiasis without evidence of acute cholecystitis.\n2. Hepatic cyst.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT ABDOMEN AND PELVIS WITH IV CONTRAST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL INDICATION: Abdominal pain.\",\n \"attributes\": {\n \"section\": \"Clinical Indication\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"COMPARISON: None.\",\n \"attributes\": {\n \"section\": \"Comparison\"\n }\n },\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: Axial images of the abdomen and pelvis were obtained following the administration of intravenous contrast material. Coronal and sagittal reformations were reviewed.\",\n \"attributes\": {\n \"section\": \"Technique\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No acute abnormality is seen in the visualized lung bases.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver is normal in size and contour.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a 1.2 cm simple-appearing low-attenuation lesion in hepatic segment VII, consistent with a cyst.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The gallbladder contains numerous calcified gallstones, compatible with cholelithiasis.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Cholelithiasis without evidence of acute cholecystitis.\\n2. Hepatic cyst.\"\n }\n ]\n}\n```\n\n---\n\n## Example 2\n\n**Input Text:**\n```\nCLINICAL HISTORY:\nLow back pain, rule out disc herniation\n\nMRI LUMBAR SPINE WITHOUT CONTRAST:\n\nFINDINGS:\nThe lumbar lordosis is maintained. Vertebral body heights are preserved.\n\nThere is a small hemangioma in the L3 vertebral body.\n\nThe conus medullaris terminates at L1 and appears normal.\n\nAt L2-L3, there is mild disc desiccation without significant stenosis.\n\nAt L3-L4, a small posterior disc bulge causes mild central canal narrowing.\n\nAt L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\n\nAt L5-S1, mild disc bulge without significant stenosis.\n\nThe paraspinal musculature appears unremarkable.\n\nIMPRESSION:\nLarge L4-L5 disc herniation with severe stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"CLINICAL HISTORY:\\nLow back pain, rule out disc herniation\\n\\nMRI LUMBAR SPINE WITHOUT CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lumbar lordosis is maintained. Vertebral body heights are preserved.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a small hemangioma in the L3 vertebral body.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The conus medullaris terminates at L1 and appears normal.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L2-L3, there is mild disc desiccation without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L2-L3\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L3-L4, a small posterior disc bulge causes mild central canal narrowing.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L3-L4\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L4-L5, there is a large posterior disc herniation with severe central canal stenosis and nerve root impingement.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L4-L5\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At L5-S1, mild disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Lumbar Spine Levels: L5-S1\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The paraspinal musculature appears unremarkable.\",\n \"attributes\": {\n \"section\": \"Paraspinal Soft Tissues\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Large L4-L5 disc herniation with severe stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 3\n\n**Input Text:**\n```\nINDICATION: \nNeck pain, radiculopathy\n\nMRI CERVICAL SPINE:\n\nFINDINGS:\nNormal cervical lordosis is maintained. No vertebral body compression fractures.\n\nThe cervical spinal cord demonstrates normal signal intensity.\n\nAt C3-C4, no significant disc disease or stenosis.\n\nAt C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\n\nAt C5-C6, moderate disc herniation with moderate central canal stenosis.\n\nAt C6-C7, small disc bulge without significant stenosis.\n\nIMPRESSION:\nModerate C5-C6 disc herniation and stenosis.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION: \\nNeck pain, radiculopathy\\n\\nMRI CERVICAL SPINE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Normal cervical lordosis is maintained. No vertebral body compression fractures.\",\n \"attributes\": {\n \"section\": \"Cervical Spine\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The cervical spinal cord demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Spinal Cord\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C3-C4, no significant disc disease or stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C3-C4\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C4-C5, mild disc osteophyte complex with mild foraminal narrowing.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C4-C5\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C5-C6, moderate disc herniation with moderate central canal stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C5-C6\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"At C6-C7, small disc bulge without significant stenosis.\",\n \"attributes\": {\n \"section\": \"Cervical Spine Levels: C6-C7\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Moderate C5-C6 disc herniation and stenosis.\"\n }\n ]\n}\n```\n\n---\n\n## Example 4\n\n**Input Text:**\n```\nTECHNIQUE: \nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\n\nFINDINGS:\nLIVER/GALLBLADDER/SPLEEN: The liver has a normal appearance. Gallbladder wall appears normal. The spleen is normal in size.\n\nPANCREAS/ADRENALS: The pancreas and bilateral adrenal glands appear unremarkable.\n\nRETROPERITONEUM: No lymphadenopathy. No fluid collection.\n\nIMPRESSION:\nNormal abdominal CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"TECHNIQUE: \\nMultidetector helical CT from lung bases to adrenals with and without intravenous contrast.\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The liver has a normal appearance.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Gallbladder wall appears normal.\",\n \"attributes\": {\n \"section\": \"Gallbladder\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The spleen is normal in size.\",\n \"attributes\": {\n \"section\": \"Spleen\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The pancreas and bilateral adrenal glands appear unremarkable.\",\n \"attributes\": {\n \"section\": \"Pancreas/Adrenals\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No lymphadenopathy.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No fluid collection.\",\n \"attributes\": {\n \"section\": \"Retroperitoneum\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal abdominal CT.\"\n }\n ]\n}\n```\n\n---\n\n## Example 5\n\n**Input Text:**\n```\nHISTORY: \nLower abdominal pain\n\nCT ABDOMEN/PELVIS WITH CONTRAST:\n\nFINDINGS:\nLIVER: Multiple hepatic metastases are present, measuring up to 3.2 cm.\n\nKIDNEYS: The left kidney shows moderate hydronephrosis. The right kidney appears normal.\n\nLYMPH NODES: Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\n\nIMPRESSION:\n1. Multiple hepatic metastases\n2. Left hydronephrosis \n3. Retroperitoneal lymphadenopathy\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"HISTORY: \\nLower abdominal pain\\n\\nCT ABDOMEN/PELVIS WITH CONTRAST:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Multiple hepatic metastases are present, measuring up to 3.2 cm.\",\n \"attributes\": {\n \"section\": \"Liver\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The left kidney shows moderate hydronephrosis.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The right kidney appears normal.\",\n \"attributes\": {\n \"section\": \"Kidneys\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Enlarged retroperitoneal lymph nodes, largest measuring 2.1 cm.\",\n \"attributes\": {\n \"section\": \"Lymph Nodes\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Multiple hepatic metastases\\n2. Left hydronephrosis \\n3. Retroperitoneal lymphadenopathy\"\n }\n ]\n}\n```\n\n---\n\n## Example 6\n\n**Input Text:**\n```\nEXAMINATION:\nMRI brain without contrast\n\nCLINICAL HISTORY:\nHeadaches\n\nFINDINGS:\nThe brain parenchyma demonstrates normal signal intensity. No mass lesions are identified.\n\nThe ventricular system is normal in size and configuration.\n\nNo abnormal enhancement is seen.\n\nIMPRESSION:\nNormal brain MRI.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION:\\nMRI brain without contrast\\n\\nCLINICAL HISTORY:\\nHeadaches\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The brain parenchyma demonstrates normal signal intensity.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No mass lesions are identified.\",\n \"attributes\": {\n \"section\": \"Brain Parenchyma\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ventricular system is normal in size and configuration.\",\n \"attributes\": {\n \"section\": \"Ventricular System\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No abnormal enhancement is seen.\",\n \"attributes\": {\n \"section\": \"Enhancement\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal brain MRI.\"\n }\n ]\n}\n```\n\n---\n\n## Example 7\n\n**Input Text:**\n```\nINDICATION:\nRight knee pain\n\nMRI RIGHT KNEE:\n\nFINDINGS:\nMENISCI: There is a complex tear of the medial meniscus. The lateral meniscus appears intact.\n\nLIGAMENTS: The ACL shows complete rupture. The PCL, MCL, and LCL are intact.\n\nBONES: Mild bone marrow edema is present in the medial femoral condyle.\n\nIMPRESSION:\n1. Complex medial meniscal tear\n2. Complete ACL rupture\n3. Bone marrow edema in medial femoral condyle\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"INDICATION:\\nRight knee pain\\n\\nMRI RIGHT KNEE:\"\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"There is a complex tear of the medial meniscus.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lateral meniscus appears intact.\",\n \"attributes\": {\n \"section\": \"Menisci\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The ACL shows complete rupture.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"significant\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The PCL, MCL, and LCL are intact.\",\n \"attributes\": {\n \"section\": \"Ligaments\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"Mild bone marrow edema is present in the medial femoral condyle.\",\n \"attributes\": {\n \"section\": \"Bones\",\n \"clinical_significance\": \"minor\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"1. Complex medial meniscal tear\\n2. Complete ACL rupture\\n3. Bone marrow edema in medial femoral condyle\"\n }\n ]\n}\n```\n\n---\n\n## Example 8\n\n**Input Text:**\n```\nEXAMINATION: CT CHEST\n\nFINDINGS:\nThe longs are clear bilaterally. The hart size is normal. No pleural effushion.\n\nIMPRESSION:\nNormal chest CT.\n```\n\n**Expected Output:**\n```json\n{\n \"extractions\": [\n {\n \"extraction_class\": \"findings_prefix\",\n \"extraction_text\": \"EXAMINATION: CT CHEST\",\n \"attributes\": {\n \"section\": \"Examination\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The lungs are clear bilaterally.\",\n \"attributes\": {\n \"section\": \"Lungs\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"The heart size is normal.\",\n \"attributes\": {\n \"section\": \"Heart\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_body\",\n \"extraction_text\": \"No pleural effusion.\",\n \"attributes\": {\n \"section\": \"Pleura\",\n \"clinical_significance\": \"normal\"\n }\n },\n {\n \"extraction_class\": \"findings_suffix\",\n \"extraction_text\": \"Normal chest CT.\"\n }\n ]\n}\n```\n\n\n\n## Inference Example:\n\n**Input Text:**\n```\nEXAMINATION: Whole-body fluorodeoxyglucose (FDG) PET/CT\nCLINICAL INDICATION: Staging of newly diagnosed non-small-cell lung carcinoma (NSCLC)\nCOMPARISON: None available\nTECHNIQUE: Following a 60-minute uptake period after intravenous administration of 12 mCi of FDG, low-dose non-contrast CT images were obtained for attenuation correction and anatomic localization, followed by emission PET images from the skull base to mid-thigh.\n\nFINDINGS:\nA 3.1 cm spiculated mass in the right upper lobe demonstrates intense FDG uptake (SUVmax 12.4). Ipsilateral mediastinal (station 4R) lymph node measuring 1.2 cm shows increased activity (SUVmax 6.8). No contralateral mediastinal or hilar hypermetabolic nodes.\n\nMultiple focal areas of increased FDG uptake are seen in the axial and appendicular skeleton corresponding to sclerotic lesions on CT, compatible with osseous metastases (largest in right iliac bone, SUVmax 9.1). No abnormal activity in the liver, adrenal glands, or brain. Physiologic tracer distribution in myocardium, kidneys, and urinary bladder.\n\nIMPRESSION:\n1. FDG-avid right upper-lobe primary lung malignancy with hypermetabolic right paratracheal nodal metastasis (consistent with at least N2 disease).\n2. Numerous FDG-avid osseous metastases consistent with Stage IV disease.\n```\n\n**Expected Output:**\n"
}
} |