improvement: lab/clinic commiunication flow completely overhauled. no more shit.

This commit is contained in:
2026-07-13 22:53:23 +03:30
parent 2ad572f4c8
commit 27eae25f61
30 changed files with 1805 additions and 696 deletions

View File

@@ -12,6 +12,7 @@ interface TreatmentPreviewCardProps {
labDependentCodes: Set<string>;
treatmentCatalog: TreatmentCatalogEntry[];
orgs?: LinkedOrganizationOption[];
embedded?: boolean;
}
export function TreatmentPreviewCard({
@@ -20,12 +21,13 @@ export function TreatmentPreviewCard({
labDependentCodes,
treatmentCatalog,
orgs,
embedded = false,
}: TreatmentPreviewCardProps) {
const t = useTranslations('treatment');
return (
<div className="surface-card p-4 space-y-3">
<h3 className="text-sm font-semibold text-text-primary">{heading}</h3>
<div className={embedded ? 'space-y-3' : 'surface-card p-4 space-y-3'}>
{heading ? <h3 className="text-sm font-semibold text-text-primary">{heading}</h3> : null}
{!treatment ? (
<p className="text-sm text-text-muted">{t('selectAppointment')}</p>