{#if patient}

{patientName}

ID: {patient.PatientID}

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

No orders found

This patient has no lab orders.

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

Select a patient

Click a patient to view lab orders

{/if}