MED-89: add analysis view with doctor summary (#68)

* add analysis view with doctor summary

* remove console.log, also return null if analysis data missing

* replace orders table eye with button
This commit is contained in:
Helena
2025-09-02 12:18:18 +03:00
committed by GitHub
parent 9d62a2d86f
commit b7926f79a9
14 changed files with 284 additions and 179 deletions

View File

@@ -21,12 +21,12 @@ export async function renderDoctorSummaryReceivedEmail({
language,
recipientName,
orderNr,
orderId,
analysisOrderId,
}: {
language?: string;
recipientName: string;
orderNr: string;
orderId: number;
analysisOrderId: number;
}) {
const namespace = 'doctor-summary-received-email';
@@ -69,13 +69,13 @@ export async function renderDoctorSummaryReceivedEmail({
</Text>
<EmailButton
href={`${process.env.NEXT_PUBLIC_SITE_URL}/home/order/${orderId}`}
href={`${process.env.NEXT_PUBLIC_SITE_URL}/home/analysis-results/${analysisOrderId}`}
>
{t(`${namespace}:linkText`, { orderNr })}
</EmailButton>
<Text>
{t(`${namespace}:ifButtonDisabled`)}{' '}
{`${process.env.NEXT_PUBLIC_SITE_URL}/home/order/${orderId}`}
{`${process.env.NEXT_PUBLIC_SITE_URL}/home/analysis-results/${analysisOrderId}`}
</Text>
<CommonFooter t={t} />
</EmailContent>