You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is in favour of a first_published_date that used to appear in details.metadata.first_published_at. Looking at older drug safety updates you see something like this:
However, in those published more recently (I don't know when the change occurred), the field is missing. This means the page displays without any published date:
We are switching rendering from specialist-frontend to government-frontend, we haven't ported the specific date logic which means dates show correctly for new DSUs, but are duplicated on older ones:
Never show a "Published" date for Drug Safety Updates (this is the "issued_date" in the actual document metadata, which appears at the top of the document). Show an "Updated" date if the document isn't the first edition.
DSU is unique in that they don't display any date metadata in the footer
if it's the first edition as we would then get a duplicate Published
(which is really first_published_at) and Published, which will change to
Updated when the document is updated. When it's not the first edition we
see Published (which is really first_published_at) and Updated, so
it's not a problem in that state.
specialist-frontend has specific logic for drug safety updates that hides the default published dates:
https://github.com/alphagov/specialist-frontend/blob/923530fd4b4a9e641ef4f94d4d2cb211a9f25821/app/presenters/drug_safety_update_presenter.rb#L4
This is in favour of a
first_published_date
that used to appear indetails.metadata.first_published_at
. Looking at older drug safety updates you see something like this:Example: https://www.gov.uk/drug-safety-update/ivabradine-procoralan-in-the-symptomatic-treatment-of-angina-risk-of-cardiac-side-effects
However, in those published more recently (I don't know when the change occurred), the field is missing. This means the page displays without any published date:
Example: https://www.gov.uk/drug-safety-update/valproate-and-developmental-disorders-new-alert-asking-for-patient-review-and-further-consideration-of-risk-minimisation-measures
We are switching rendering from specialist-frontend to government-frontend, we haven't ported the specific date logic which means dates show correctly for new DSUs, but are duplicated on older ones:
Screenshot of this content rendered by government-frontend: https://www.gov.uk/drug-safety-update/nitrofurantoin-now-contraindicated-in-most-patients-with-an-estimated-glomerular-filtration-rate-egfr-of-less-than-45-ml-min-1-73m2
More context:
alphagov/specialist-frontend#74
alphagov/specialist-frontend@923530f
cc @tijmenb @whoojemaflip
The text was updated successfully, but these errors were encountered: