Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feature(COR-1952): Added missing metadata for patienten-in-beeld
Browse files Browse the repository at this point in the history
  • Loading branch information
VWSCoronaDashboard30 committed Mar 22, 2024
1 parent d31c639 commit 6029b4f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/app/src/pages/gemeente/[code]/patienten-in-beeld.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ function IntakeHospital(props: StaticProps<typeof getStaticProps>) {
}),
};

const hospitalNiceTimeframePeriod = {
start: data.hospital_nice_archived_20240228.values[0].date_start_unix,
end: data.hospital_nice_archived_20240228.values[data.hospital_nice_archived_20240228.values.length - 1].date_end_unix,
};

const lastInsertionDateOfPage = getLastInsertionDateOfPage(data, pageMetrics);

return (
Expand Down Expand Up @@ -156,7 +161,11 @@ function IntakeHospital(props: StaticProps<typeof getStaticProps>) {
</KpiTile>
</TwoKpiSection>

<ChartTile title={textGm.linechart_titel} description={textGm.linechart_description} metadata={{ source: textGm.bronnen.rivm }}>
<ChartTile
title={textGm.linechart_titel}
description={textGm.linechart_description}
metadata={{ source: textGm.bronnen.rivm, dateOfInsertion: lastInsertionDateOfPage, timeframePeriod: hospitalNiceTimeframePeriod, isArchived: true }}
>
<TimeSeriesChart
accessibility={{
key: 'hospital_admissions_over_time_chart',
Expand Down

0 comments on commit 6029b4f

Please sign in to comment.