Medical Specialties

Manage medical specialty codes and their hierarchical relationships

{#if searchQuery} {/if}
{#if filteredSpecialties.length === 0 && !loading}

{searchQuery ? 'No specialties match your search' : 'No specialties yet'}

{searchQuery ? 'Try adjusting your search terms or clear the filter to see all specialties.' : 'Get started by adding your first medical specialty to the system.'}

{#if searchQuery} {:else} {/if}
{:else} ({ ...s, ParentLabel: s.Parent === '0' || !s.Parent ? '-' : specialtyMap[s.Parent] || '-', hasParent: s.Parent && s.Parent !== '0', }))} {loading} emptyMessage="No specialties found" hover={true} bordered={false} > {#snippet cell({ column, row, value })} {#if column.key === 'actions'}
{:else if column.key === 'SpecialtyText'}
{#if row.hasParent} └─ {/if} {value} {#if row.hasParent} Child {/if}
{:else} {value} {/if} {/snippet}
{/if}
{ e.preventDefault(); handleSave(); }}>
{#snippet footer()} {/snippet}

Are you sure you want to delete this specialty?

{deleteItem?.SpecialtyText} {#if deleteItem?.Title} ({deleteItem?.Title}) {/if}

Warning: This action cannot be undone. If this specialty has child specialties, they may become orphaned and need to be reassigned.

{#snippet footer()} {/snippet}