TreatmentType and ProsthesisType database shcema and data updated. Lab dispatch wired through new data.
This commit is contained in:
@@ -3,12 +3,15 @@
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { DetailLabSendBadge } from '@/components/ui/treatment/DetailLabSendBadge';
|
||||
import { TreatmentTypeBadge } from '@/components/ui/treatment/TreatmentTypeBadge';
|
||||
import { treatmentTypeLabelFromCatalog } from '@/components/ui/treatment/treatmentTypeDisplay';
|
||||
import type { TreatmentCatalogEntry } from '@/types/treatment-catalog';
|
||||
import type { LinkedOrganizationOption, PastTreatmentDetail } from '@/types/treatment';
|
||||
|
||||
interface TreatmentDetailSummaryRowProps {
|
||||
detail: PastTreatmentDetail;
|
||||
detailNumber: number;
|
||||
labDependentCodes: Set<string>;
|
||||
treatmentCatalog: TreatmentCatalogEntry[];
|
||||
orgs?: LinkedOrganizationOption[];
|
||||
compact?: boolean;
|
||||
}
|
||||
@@ -17,6 +20,7 @@ export function TreatmentDetailSummaryRow({
|
||||
detail,
|
||||
detailNumber,
|
||||
labDependentCodes,
|
||||
treatmentCatalog,
|
||||
orgs,
|
||||
compact = false,
|
||||
}: TreatmentDetailSummaryRowProps) {
|
||||
@@ -35,7 +39,10 @@ export function TreatmentDetailSummaryRow({
|
||||
<span className={`text-text-muted tabular-nums ${compact ? 'text-[11px]' : 'text-xs'}`}>
|
||||
{t('detailLabel', { n: detailNumber })}
|
||||
</span>
|
||||
<TreatmentTypeBadge type={detail.treatmentType} />
|
||||
<TreatmentTypeBadge
|
||||
type={detail.treatmentType}
|
||||
label={treatmentTypeLabelFromCatalog(detail.treatmentType, treatmentCatalog)}
|
||||
/>
|
||||
</div>
|
||||
<DetailLabSendBadge detail={detail} labDependentCodes={labDependentCodes} orgs={orgs} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user