Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GN-105 Standards and indicators content #128

Merged
merged 8 commits into from
Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/Footer/Services/__snapshots__/Services.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ exports[`Services Matches snapshot 1`] = `
NICE Pathways
</TrackedLink>
</li>
<li
key="standards-and-indicators"
>
<TrackedLink
aria-current={null}
className="link"
eventAction="Footer click"
eventCategory="TopHat and footer"
eventLabel="Standards and indicators"
href="https://www.nice.org.uk/standards-and-indicators/"
>
Standards and indicators
</TrackedLink>
</li>
<li
key="life-sciences"
>
Expand Down
4 changes: 4 additions & 0 deletions src/Header/Nav/Dropdown/Components/Components.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
margin-left: 0;
max-width: none; // To override max-width of 66ch set on lists
padding: 0;

li {
margin-bottom: rem($nds-spacing-small);
wa-rren-dev marked this conversation as resolved.
Show resolved Hide resolved
}
}

.alphabet {
Expand Down
28 changes: 4 additions & 24 deletions src/Header/Nav/Dropdown/Components/More.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function More() {
return (
<section aria-label="More NICE services">
<Grid gutter="loose">
<GridItem cols={12} md={4}>
<GridItem cols={12} md={6}>
<h3>Evidence search</h3>
<p>
Evidence search helps you make better, faster evidence-based
Expand All @@ -15,32 +15,12 @@ export function More() {
go.
</p>
<p>
<Button variant="cta" to="https://evidence.nhs.uk">
<Button variant="primary" to="https://evidence.nhs.uk">
Evidence search
</Button>
</p>
</GridItem>
<GridItem cols={12} md={4}>
<h3>Standards and indicators</h3>
<p>
Quality standards set out the priority areas for quality improvement
in health and social care. They cover areas where there is variation
in care. Each standard gives you:
</p>
<ul>
<li>a set of statements to help you</li>
<li>improve quality information on how to measure progress.</li>
</ul>
<p>
<Button
variant="cta"
to="https://www.nice.org.uk/standards-and-indicators"
>
Standards and indicators
</Button>
</p>
</GridItem>
<GridItem cols={12} md={4}>
<GridItem cols={12} md={6}>
<h3>Journals and databases</h3>
<p>
Quick access to a range of journals and other evidence-based
Expand All @@ -57,7 +37,7 @@ export function More() {
</p>
<p>
<Button
variant="cta"
variant="primary"
to="https://www.nice.org.uk/about/what-we-do/evidence-services/journals-and-databases"
>
Journals and databases
Expand Down
117 changes: 117 additions & 0 deletions src/Header/Nav/Dropdown/Components/StandardsAndIndicators.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import React from "react";
import { Button } from "@nice-digital/nds-button";
import { Grid, GridItem } from "@nice-digital/nds-grid";
import styles from "./Components.module.scss";
import services from "../../../../services.json";
import classnames from "classnames";

export function StandardsAndIndicators() {
const baseUrl = services.external.find(
(service) => service.text == "Standards and indicators"
).href;

return (
<section aria-label="Standards and indicators - dropdown navigation">
<Grid gutter="loose">
<GridItem cols={12} md={6}>
<h3>Quality standards</h3>
<p>
Quality standards set out the priority areas for quality improvement
in health and social care.
</p>
<Button
variant="primary"
to="https://www.nice.org.uk/guidance/published?type=QS"
>
View quality standards
</Button>

<ol className={classnames(styles.listUnstyled, "mt--d")}>
<li>
<a href={`${baseUrl}how-to-use-quality-standards`}>
How we use quality standards
</a>
</li>
<li>
<a href={`${baseUrl}timeline-developing-quality-standards`}>
Timeline-quality standards development
</a>
</li>
<li>
<a href={`${baseUrl}get-involved`}>
Help develop quality standards
</a>
</li>
<li>
<a
href={`${baseUrl}selecting-and-prioritising-quality-standard-topics`}
>
Selecting and prioritising quality standards topics
</a>
</li>
<li>
<a
href={`${baseUrl}developing-nice-quality-standards-/quality-standards-topic-library`}
>
Quality standard topic library
</a>
</li>
<li>
<a href="https://www.nice.org.uk/Media/Default/Standards-and-indicators/qs-forward-planner.xlsx">
Upcoming quality standards - forward planner
</a>
</li>
<li>
<a href="https://www.nice.org.uk/about/what-we-do/into-practice/measuring-the-uptake-of-nice-guidance">
Measuring uptake of quality standards
</a>
</li>
</ol>
</GridItem>
<GridItem cols={12} md={6}>
<h3>Indicators</h3>
<p>
NICE indicators measure outcomes that reflect the quality of care,
or processes linked, by evidence, to improved outcomes.
</p>
<Button variant="primary" to={`${baseUrl}index`}>
View indicators
</Button>

<ol className={classnames(styles.listUnstyled, "mt--d")}>
<li>
<a href="https://www.nice.org.uk/media/default/Get-involved/Meetings-In-Public/indicator-advisory-committee/ioc-process-guide.pdf">
How we develop indicators for the NICE menu (PDF)
</a>
</li>
<li>
<a href="https://www.nice.org.uk/get-involved/meetings-in-public/indicator-advisory-committee">
Learn about the committee that develops indicators
</a>
</li>
<li>
<a href="https://www.nice.org.uk/Media/Default/Standards-and-indicators/new-updated-retired-indicators.docx">
New, updated and retired indicators: September 2020 (Word)
</a>
</li>
<li>
<a href="https://www.nice.org.uk/Media/Default/Standards-and-indicators/full-indicator-menu.docx">
NICE indicator menu (Word)
</a>
</li>
<li>
<a href="https://www.nice.org.uk/Media/Default/Standards-and-indicators/hypertension-indicator-pack.pptx">
Hypertension indicator pack (PowerPoint)
</a>
</li>
<li>
<a href="https://www.nice.org.uk/Media/Default/Standards-and-indicators/qof-indicator-assessment-report.pdf">
QOF indicator assessment report (PDF)
</a>
</li>
</ol>
</GridItem>
</Grid>
</section>
);
}
1 change: 1 addition & 0 deletions src/Header/Nav/Dropdown/Components/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { Guidance } from "./Guidance";
export { More } from "./More";
export { StandardsAndIndicators } from "./StandardsAndIndicators";
export { BNF } from "./BNF";
export { BNFc } from "./BNFc";
4 changes: 3 additions & 1 deletion src/Header/Nav/Dropdown/Dropdown.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from "react";
import PropTypes from "prop-types";
import styles from "./Dropdown.module.scss";
import { Guidance, More, BNF, BNFc } from "./Components/";
import { Guidance, More, StandardsAndIndicators, BNF, BNFc } from "./Components/";

import Remove from "@nice-digital/icons/lib/Remove";

export function Dropdown({
Expand All @@ -15,6 +16,7 @@ export function Dropdown({
const components = {
Guidance: Guidance,
More: More,
StandardsAndIndicators: StandardsAndIndicators,
BNF: BNF,
BNFc: BNFc,
};
Expand Down
7 changes: 7 additions & 0 deletions src/services.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
}
]
},
{
"href": "https://www.nice.org.uk/standards-and-indicators/",
"text": "Standards and indicators",
"id": "standards-and-indicators",
"dropdown": true,
"dropdownComponent": "StandardsAndIndicators"
},
{
"href": "https://www.nice.org.uk/about/what-we-do/life-sciences",
"text": "Life sciences",
Expand Down