{#if selection}
{datetime_datestr(selection._ts)}@{datetime_timestr(selection._ts)} {selection.accession} {selection.specimen}
selection = null}>❌
{@html pattern ? filter_mark(pattern, escapeHTML(selection.body)) : escapeHTML(selection.body)}
{/if}
Labs
{#if query}
query = ''}>❌
{/if}
{#if pattern} {#each all_reports as row} {#if filter_test(pattern, row._content)} {@const abs = abstract(row.body)}
selection = selection !== row ? row : null}>
{datetime_datestr(row._ts)}@{datetime_timestr(row._ts)} {row.accession} {row.specimen}
{#if abs.length > 0}
{abs.join(', ')}
{/if}
{#each filter_snippets_lines(pattern, escapeHTML(row.body), undefined, 3, 6) as match}
{@html match}
{/each}
{/if} {/each} {:else} {#each all_reports as row} {@const abs = abstract(row.body)}
selection = selection !== row ? row : null}>
{datetime_datestr(row._ts)}@{datetime_timestr(row._ts)} {row.accession} {row.specimen}
{#if abs.length > 0}
{abs.join(', ')}
{/if}
{/each} {/if}
{#if loadmore.loading}
Loading...
{:else}
Load more
{/if}