Numeric Reference Ranges
Add Range
{#if refnum?.length === 0}
No numeric ranges defined
Add First Range
{/if} {#each refnum || [] as ref, index (index)}
Range {index + 1}
{getFlagLabel(ref.Flag)}
{getRangePreview(ref)}
removeRefRange(index)}>
Lower Bound
Upper Bound
Sex
{#each sexOptions as option (option.value)}
{option.label}
{/each}
Flag
{#each flagOptions as option (option.value)}
{option.label} - {option.description}
{/each}
toggleAgeExpand(index)} >
Age Range
{#if ref.AgeStart !== 0 || ref.AgeEnd !== 120}
({ref.AgeStart}-{ref.AgeEnd})
{:else}
(All ages)
{/if}
{#if expandedRanges[index]?.age}
{:else}
{/if}
{#if expandedRanges[index]?.age}
From (years)
To (years)
{/if}
toggleInterpExpand(index)} >
Interpretation
{#if ref.Interpretation}
({ref.Interpretation})
{/if}
{#if expandedRanges[index]?.interpretation}
{:else}
{/if}
{#if expandedRanges[index]?.interpretation}
{/if}
toggleSpecimenExpand(index)} >
Specimen & Criteria
{#if ref.SpcType || ref.Criteria}
(Custom)
{:else}
(Optional)
{/if}
{#if expandedRanges[index]?.specimen}
{:else}
{/if}
{#if expandedRanges[index]?.specimen}
Specimen Type
Any specimen
{#each specimenTypeOptions as option}
{option.label}
{/each}
Criteria
{/if}
{/each}