{#if patient}

{patientName}

ID: {patient.PatientID}

{#if loading}
{:else if !hasOrders}

No orders found

This patient has no lab orders.

{:else}
{#each orders as order (order.OrderID || order.OrderNumber)} onViewOrder(order)} onPrintBarcode={() => onPrintBarcode(order)} /> {/each}
{/if}
{:else}

Select a patient

Click "Show Orders" on a patient to view lab orders

{/if}