Hacker News new | past | comments | ask | show | jobs | submit login
NHS.UK frontend (github.com)
244 points by DanBC 6 months ago | hide | past | web | favorite | 109 comments



This project has obviously been carefully planned out, well defined ahead of time, and overseen with a militant eye for detail and style. That has lead to a neat, tidy, and immediately accessible code base that delivers what look like rock solid UI components.

Compare and contrast that to every private sector project I've worked on (for global household names none the less) and this sort of thoughtfulness and consideration simply is not compatible with the business objectives, and as such is the first thing to get the chop, leading to code bases that grow increasingly incoherent over time and deliver flakey solutions at best.

The next time anyone tries to sell me on the notion that the public sector can't do anything as well as the private sector, this is what I'll point them to. They wont understand what they're looking at of course, but that won't make them any less wrong.


The remarkable success of British public sector IT largely stems from the disastrous failure of the NHS National Programme for IT. We spent £10bn on a hugely ambitious project and ended up with nothing to show for it. This disaster was the worst of many expensive failures in public sector tech procurement.

Eventually, it became apparent to even the most out-of-touch politicians and civil servants that the weird nerds talking about "agile" and "lean" might have a point. The Government Digital Service proved that a small team could get huge results by using the right methodologies; we haven't looked back since.

https://www.theguardian.com/society/2013/sep/18/nhs-records-...

https://en.wikipedia.org/wiki/Government_Digital_Service


And even GDS isn't getting it right. Some mind-blowing examples of that are the Government Gateway replacement, Office of the Public Guardian, Border Force and Home Office...

GDS does really good work. Not denying that, and it's awesome to see that in the public sector. However when your only(!) tool is a web app, every project starts looking like a thumb.

It should also be noted that others like the MoD have had even bigger successes than GDS, that simply cannot be publicised.

Even the NHS Digital Service is struggling with spend. The still-born Type 1 Diabetes project from a year or so ago a is prime example of writing off months of work without a word.


>And even GDS isn't getting it right. Some mind-blowing examples of that are the Government Gateway replacement, Office of the Public Guardian, Border Force and Home Office...

Yeah - I used money claim online this year to take a non paying client to court. It was a really nasty experience - the login is needlessly complex and had I not made manual notes I wouldn't have been able to log back in. Awful.



The old one is, iirc, a clone of the PCOL (Possession Claims Online) system - another MoJ project centred around small claims.

PCOL dates from 2006 (I should know, I helped work on it, mostly performance testing using CompuWare to locate & iron out horrible Hibernate-on-Oracle issues...)

All of this was delivered by EDS, completely pre-dates the GDS stuff and shouldn't be considered anything to do with it. :)


It was the old one. Awful!


I think MoJ is not using GDS because they want independence from government.


> Government Gateway replacement

Both Government Gateway and GOV.UK Verify aren't great. Verify seems be slightly better, if you can pick a decent verification company.


Apologies for the late reply - with Xmas and so on I've only just seen this. That said,

I suspect you're familiar with neither the scope nor scenarios and clients that Government Gateway services. Verify only does SAML. No ADFS/WS-* (so no support for the NHS, for example), no Chip & PIN (both Identify and Respond, on Java and .NET silicon -- this is important because provisioning), and assorted side-scenarios required by the security cluster.

The idea of a verification company is laughable. Forgive me. Digital identity systems must be designed so the disclosure of identifying information is limited to parties having a necessary and justifiable place in a given identity relationship (see law 3 of the laws of identity, https://www.identityblog.com/stories/2005/05/13/TheLawsOfIde...).

What justifiable role does a bank or credit agency play when I require meds for an STD? Amongst some very, very personal and private transactions some of us make? A credit agency's purpose is to provide a credit rating, and not to verify identity.

Also note that many banks and credit verification agencies GDS proposes are HQ'd outside the EU, which makes Verify impossible to use by many organisations in the UK - and can therefore never replace the Government Gateway.

Verify's technical shortcomings can be built out and addresed. The use of commercial, unjustifiable verification companies with poor security records to boot (Experian, HSBC, and so on) cannot. This is Verify's single biggest failing.


Although estimates have ranged up to £20 billion:

https://en.wikipedia.org/wiki/NHS_Connecting_for_Health#Crit...


I think you’re right to say that this is an existance proof of good public sector work.

But you have to then ask for the specifics of how this project came about. You have to dive into how the Government Digital Service build a culture which could not just develop this product but could spread to other organizations.


Not to downplay the quality of this work, but being able to extensively plan and specify requirements ahead of time is a luxury that a lot of engineering teams at private companies would love to have.


Having done a lot of work in both spaces, trust me -- there's nothing luxury about getting this work done in the public space.

Also, extensively planning and specifying requirements ahead of time is exactly the opposite of how you pull off delivering well-designed public UX like this.

In the public space you inherently never have a single person who can call all the shots, because organizationally you're accountable to all of the public. Orgs have to be set up to carry on operations resiliently outside having a controlled lineage of management. How you do things is far more directly and heavily influenced by legislation, and that landscape is constantly shifting over the course of your project.

BY FAR the private sector is where engineers can enjoy far more luxury.


I second this sentiment. I would like to add that in public sector, deadlines are absolute. That new law? It will be effective from January 1st. So you have a deadline. Now the law is not in effect yet on _any_ of your dependency systems until the deadline so testing is a nightmare. And if you make a mistake, someone might not get their benefits or miss their parole. And the public will be furious.

In private sector I have met a lot more understanding with regards to managing risk in a smart and scalable way.


Yes, they would love to have the luxury. I doubt the parent comment is saying that engineering teams would not want to be able to produce something like that, but rather given the confines of the lust for ever increasing profit, they can't.


“Lust for ever increasing profit” is one way to put it. You could also say that private companies have requirements that are constantly moving as the market changes and must be discovered and adapted, rather than legal requirements that are roughly static and well-specified.


I would _love_ to know where are those public sector projects where the requirements are “roughly static and well-specified”.


How about every single one of them?

They gotta fill a request for proposal in order to outsource a project, then there can be multiple rounds of back and forth to review and revise proposals. That includes quite a few documents, covering requirements among many other things.


Yet doing it lowers costs, improves quality and reduces development time. It's not so much a luxury as an investment; an investment that, true enough, a lot of engineering teams can't afford - they need to churn out something awful right NOW because the investment wasn't made when it should have been.

It is astounding how high the quality of software can be, if what the software is meant to do is known before it's written.


It would be utterly useless too, since the requirements would change a day after you start building.


You seem to be under the impression that the NHS requirements remained static?


Not at all, I’m just saying that speccing out a whole system before you start building is a great way to waste a lot of time.


I work in the Danish public sector and we’re miles ahead on some areas. Our authentication and user-role setup, around a national SAML token and context handler, which functions with ADFS seamlessly is one example. It works, we integrate with it and it makes security plug and play.

Except very few companies in the private sector knows what ADFS or even token based authentication is. So we have to sell them schooling in how to build what is essentially basic user authentication.

The internal services we get to build are also miles ahead of anything you’ll see in the Danish private sector. Probably because we can move a lot faster because we don’t expect our customers to pay for our updates. Our goal is to provide efficient, secure and stable software at the lowest price, and if that means we move things to the cloud, then that’s what we’ll do as soon as possible.

That’s the positive side. The negative side is the big failures, and we certainly have those. Mostly on a national basis, but that doesn’t make the seriousness of them any less severe.


A big reason for this is include that public IT projects tends to have more relaxed deadlines than private sector projects. Private sector projects are often managed by people who has chainsaws fitted to their elbows and that has zero tolerance for delays. There is a degree of flexibility in public IT projects that I rarely come across on private projects.

On the other hands, I have seen more huge project failures on the public sector jobs than on private sector projects. Those elbow chainsaw people often catch fundamental flaws earlier than their public sector counterparts.

Given the choice I would pick to work on public sector projects than private sector simply because the much lower stress level and that you have more time to produce quality;Like the NHS guys has been able to on this project.

Disclosure: I have spent the last 18 years working as systems architect / technical leads on countless large government and private sector projects (web/intranet)


I'm the tech lead for the NHS website (www.nhs.uk) and I oversee the team who are building this frontend library.

I largely agree with what you have written above, however things work very differently now in NHS Digital.

Every piece of work we embark upon is based on strict requirements from a commissioning body (typically NHS England or Public Health England) and is managed tightly according to budget and demonstrated realised benefits.

We have a highly capable layer of delivery managers who help translate and interpret these "business goals" into things which our agile teams of developers can work towards.

It's not perfect, but we're improving all the time. If we fail then the money taps get turned off quickly, and we move onto something else.


Not to be curmudgeonly but this is exactly what I would expect from public sector.

- Odd technology choices. It took me a long time to figure out what .njk files were.

- Misapplication of popular technologies. They're using webpack for... something? But most of the actual bundling is done by hand with gulp, and a lot of the JavaScript is operating in the global scope.

- Overselling. It's just a bunch of scss with some mostly-HTML components.


>It took me a long time to figure out what .njk files were.

Nunjucks is a very popular JS templating language (more or less a straight port of the even more popular jinja2) - it's not an odd choice at all.

https://github.com/mozilla/nunjucks


This entire thing will compile down to regular HTML/CSS. This is about as future proof as you can get.


Would this be more impressive to you if it were React or Angular? Your users don’t care that it’s Nunjucks or Sass. Nunjucks and Sass are perfectly fine.


But obviously the users are not the only or even major constituency here. These are UI components to be used by other developers and (like all software) to be modified down the road to satisfy new and changed requirements. Technology choices matters greatly.


The NHS is probably concerned with stability, accessibility and performance. Also I would like you to please explain why sass and Nunjucks are not good for “satisfying changed requirements”

Edit:

Also, are you serious that GDS should consider front end developers their constituents and not their users?


As it’s a open project, have you considered opening a GitHub issue or even a pull request with some recommendations on better approaches/tools?


> It took me a long time to figure out what .njk files were.

https://www.google.com/search?client=firefox-b-ab&q=.njk+fil... I mean how long are talking here? 5s or 2 days?.


> The next time anyone tries to sell me on the notion that the public sector can't do anything as well as the private sector

The Soviets sent the first rocket to space in 1961. Twenty-one years later the first private space company launched its rocket using repurposed government technology.

There is no doubt that governments can do things. They are, after all, just groups of people; the same as private enterprises.

But while the Soviets were launching rockets, their citizens waited hours in line for their day's rations.

"The accepted norm is that the Soviet woman daily spends two hours in line, seven days a week, daily going through double the gauntlet that the American housewife undergoes at her supermarket once, maybe twice a week." Hedrick Smith.

When you marshal the entirety of society towards a goal you can accomplish great things. But always at a cost.

When a private business makes a terrible app, I can sleep soundly at night knowing I never gave anything up for that app's creation. If I see a beautiful, well-constructed, publicly funded app, I might be pleased at the attention to detail and admire the construction of the thing. But I have to wonder, what did I give up in return? How many people with broken arms waited in an over-burdened system for the prestige of a beautiful website?

The problem isn't that the government can or can not. Its the choice to do or do not. Its the opportunity cost to the society that poisons the government's action.


Well NASA put a man on the Moon and America's economy boomed at the same time.

Also, your tax dollars are absolutely being handed over to private organisations in one way or another. Either through subsidies, tax breaks, welfare, economic initiatives, or direct investment.


> Well NASA put a man on the Moon and America's economy boomed at the same time.

Yes but you've missed the point. Those billions have turned out to be a net positive for the world. But at the time, why should someone dying of cancer fund a literal moonshot? Why should we antagonize the nuclear armed Soviets over a dead rock? Why this, why that?

> Also, your tax dollars are absolutely being handed over to private organisations in one way or another.

Then it incurs the same penalties! The opportunity cost argument still applies. "Why did we fund this business over that business?"

The majority of private businesses have no exclusive government support. They are free to fail with zero impact to society. This means their apps are crappier but no one had to suffer to make it happen.


A tax break isn’t handing money to anyone— it’s not taking it in the first place. There is a difference.


Not to socialists


You make good points about the opportunity costs of fund allocation. However, large bureaucracies are often so inefficient and ineffectual, that well allocated funds can still result in no useful outcome. That makes the positive outcome here more impressive.


> The next time anyone tries to sell me on the notion that the public sector can't do anything as well as the private sector

What if I try to sell you on the notion that getting quality this high out of the public sector is extremely unlikely?


What if I just ask pointless hypothetical questions and follow them up with no substance at all?


This is what the whole digital government movement is trying to change. Public sector organization's in the UK (GDS), Canada (CDS, ODS etc), Singapore (GovTech Singapore), even 18F in the US, are all trying (and relatively succeeding even if incrementally) to change the public sector's ability to put out quality technology services.


It doesn't happen most of the time yet, but that doesn't mean it's a gamble. I wouldn't describe it as "extremely unlikely"

We actually have figured out how to run public sector software projects successfully. It's not a mystery anymore.

There's a lot of barriers still to practicing agile service design within the constraints of most government organizations, but good results are consistent where you can carve out the space to implement it.

Look at "digital services" teams at every level of gov:

- UK Originals: https://gds.blog.gov.uk/ - US Stormers: https://18f.gsa.gov/ - US Normers: https://www.usds.gov/

- CA State Child Welfare: https://cwds.ca.gov/ - CA Benefits Enrollment: https://www.getcalfresh.org/ - CA Digital Services: https://github.com/CDTgithub/DigitalServiceOpportunities - MA Digital Services: https://www.mass.gov/orgs/digital-services

- Philadelphia: https://www.phila.gov/departments/office-of-open-data-and-di... - San Francisco: https://digitalservices.sfgov.org/ - NYC: https://playbook.cityofnewyork.us/ - Boston: https://www.boston.gov/departments/digital-team


What if I try to sell you on the notion that getting high quality is extremely unlikely by definition, otherwise it would be called average quality?


I think the argument of private sector vs public sector for quality also comes with a price. As in, how much did that fancy UI cost the public, vs. how much (edit: it would have cost) the private sector to build.


I'm the tech lead for the NHS website (www.nhs.uk) and I oversee the team who are building this frontend library.

We have a full-time and fully-staffed team comprising developers, designers, user researchers, product/project managers etc. focussed purely on this piece of work.

In our role working to deliver health content to the general public we take very seriously the need for our content to be accessible to users and we invest accordingly. This frontend library is something we hope to push to other healthcare providers as part of a wider drive towards standards adoption.

None of this work has come cheap, but in the public sector we work to very strict budgets (and some would say lower pay) and I would say the public are getting very good value for money here. (We are judged by and required to provide proof of "benefits realisation".)


Congratulations to you and your team sir, this is very good work.


I run Torchbox, a small, private tech agency in the UK. We were commissioned by NHS Digital (the state sector organisation behind these tools) to support two related projects: moving NHS.uk to https://github.com/wagtail/wagtail and setting up https://beta.nhs.uk/service-manual/ on Wagtail.

NHS Digital's procurement processes are tight and focused. They have an expert in-house team of developers and delivery managers, and they only used us on where we could accelerate the project.

As a business owner, I would have liked a bigger contract. As a tax-payer and frequent user of the NHS, I'm very happy with their efficiency.


The impression I get is that the NHS is pretty efficient budget wise but with a budget so large it's easy to make the inefficiencies sound bad "NHS wastes millions on Foo" sounds much worse than "NHS wastes 0.001% of it's budget on Foo".

For people who don't know the NHS budget is approx £130bn (~$165bn US), they are a huge organisation that provides healthcare to 66 million people.

It's impressive.


It didn't cost the private sector to build it... because they didn't and wouldn't.


Are you really missing the point?

The cost to build something in the private sector is almost always cheaper than asking government employees to do it. The public sector "didn't build it" like you said, but if they had, it would have been cheaper. This is almost always the case.


It's worth noting that whilst the cost of producing something in the private sector is cheaper than the public sector, the cost of the public sector acquiring something from the private sector is orders of magnitude larger than the cost of doing it in the private sector. I always think it's rather odd that people who propagate the idea that the private sector can do things much better than the public sector simultaneously need to believe the public sector is better at negotiating contracts in order to believe that contracting out work makes sense. I think the key here is that the British government have reproducibly found of way of creating high quality sites. That should be examined, embraced and extended.


I'm guessing from the mention of "dollars" in your profile that you're American. Maybe don't extrapolate your experience in the US to a completely different country?

(I worked to set up a UK public sector website back in 2004/05. We cut our costs by 90% - genuinely, 90% - by bringing all development in-house rather than using private sector contractors. I do not believe your assertions to be consistently true in the UK.)


Nonsense.

In the private sector, shareholders take money out of the system in the form of profit. Something that costs £X in labour and consumables must be charged at £X+Y% in order to make that happen and still give money to investors. If they can do it cheaper, they still charge £X+Y%, and give the surplus to the shareholders.

In the public sector, there is no shareholder. If it costs £X in labour and consumables, then the cost to the public purse is £X. If they manage to do it cheaper, then that money remains in the system and can be used to either improve the offering, or subsidise another project.

Public sector workers are also often paid considerably less than their private sector peers, and departments are often highly restricted in their ability to pay market rates for specialist employees.

Although the total benefits package for public sector workers has historically been equal to or better than their private sector peers, this has typically been due to Final Salary pensions, which have been mostly phased out in favour of Career Average or even Defined Contribution pensions, all without a corresponding increase in salary.


just fyi, nearly all government projects are contracted out to your accenture's, deloitte's, and booz allen's. most government agencies don't carry out and execute, they just put up the RFP and take whichever one greases the committee members best. that's usually how an actual 4-week front end project turns into a 40-person, 12-week contract.


No, that's just not how these new-style digital projects work in the UK (and the few that work the old way have a habit of hitting the headlines for all the wrong reasons). I've been the delivery manager on two of them myself and advised a third. They're highly iterative, very committed to user research, user testing, and continued evolution based on real feedback. Contractors are certainly involved in most of them but there are also staff members in the teams in key roles. They start not with a big spec but with a goal and a discovery exercise.


For background, this is done by NHS digital: https://digital.nhs.uk

They are a cultural descendant of GDS, who make GOV.UK amongst other things: https://gds.blog.gov.uk/about/

All of GOV.UK is open source in a similar way: https://github.com/alphagov

(Source: I worked for GDS.)


I feel the need to mention, since I've found someone that worked on gov.uk, that I think it is an absolutely remarkable accomplishment. I'm not from the UK, but live and work here (and thus have needed to use the gov.uk website probably more than the average UK citizen). It is a pleasure to use; the UX is great, the copy well written, and invariably I find what I'm looking for. No other govt website that I've used has come close to being as good (and on the contrary they are generally absolutely awful). Thanks for whatever role you played in helping make this happen.


What is it about GDS that lets them do IT well? Most government IT projects end up complete disasters - the digitisation of the NHS and the fire service "firecontrol" scheme were two recent really insanely expensive projects that ended in utter failure. That seems to be the norm. What do you think makes GDS different?


I think most government projects are contracted out to huge bloated dinosaur companies with crony connections and more people on staff that know how to navigate government purchasing buerocracy than know how to code.

In the US we also have a new in house team of coders, led, I believe by xoogler Matt Cutts that has been doing an excellent job as far as I have heard.

I think the key here is that outsourcing your tech is rarely superior to highering talent in house.


Having been on the receiving end while working at a contracting company, I wouldn't say that.

The process seemed fairly open. The government send requests for proposals and contracting companies can bid. There is no trick involved. I found the requirements to be surprisingly well written on a few I had to read.


The key is also that you hire talent :)


The government embraced an agile transformation as a legacy enterprise software company would that wanted to remain relevant and compete in the private sector.

Because they have the right approach to software development and the services were so far behind and costing so much it couldn't really be objected to as a strategy.

The other big factor was that all 3 major political parties agreed at the time and it wasn't blocked. It was moved to focus on the needs of citizens owned by civil servants rather than the convenience of government and farmed out.


Most government IT projects are given to contractors after a bidding process, the GDS and NHS Digital are teams of skilled developers working within the government.


Amongst others, there's fine work being done at DVLA, DVSA, MOJ, DWP and Home Office Digital are in good shape too


Worked at three of those. Yes contractors, but also staff. Part of one my roles as delivery manager at one of the 'exemplar' projects was to train up my replacement (which was cool). I'm a massive fan.


Disclosure - I work on the team. The GDS equivalent, GOV.UK Frontend, is part of the GOV.UK Design System:

- https://design-system.service.gov.uk/

- https://github.com/alphagov/govuk-frontend


Does the GDS do the gov.uk universal credit website? That mostly-stable-but-plenty-flaky site that I have to use, that has numerous stupidities to it which I've reported but they don't do anything about? Perhaps you can tell me: how do I get their attention? TIA (edit: because I'd be embarrassed to release something so clunky and sometimes even user-hostile - seriously, how?)


That's the DWP, and they know about it and will eventually get to fixing it but it'll take a while


Then why won't they even acknowledge it?

In fact one of the first things I reported is the banner at the top of the page saying "BETA This is a new service - your feedback will help us to improve it" - but it does nothing - it's just text, and there's no way of giving feedback. I reported that 3+ weeks ago and it's still useless.

How about the very-less-than-perfect UI? If they'd done even the most basic user testing they would have found lots of problems already, and that they didn't do such testing shows they weren't looking for problems (which is not a UI problem, it's a systemic dev/management problem). I even sent them a link on how to do UI testing, of course that's not been acknowledged.

And the UI will happily hide info you need. Or log you out, losing all the info you've entered because you've not hit the Save button. It's a bit pathetic - I'm a DB guy but I know more about front end usability than they do. And I really doubt they have a test suite of any comprehensiveness.

I could go on - I know the staff at the job centers also have had at least one issue (small but avoidable), I was there when it happened.

For a service intended for use by millions of people, it's not acceptable, not even close.

Shall I go on? I can give specifics, and the total time I've been interacting with this system is probably a couple of hours tops, and I've run into so much.


This is only tangentially related, but I'd just like to thank the NHS for their excellent news site [1] which soberly reviews health related news, and is outsourced to part of the Economist Group.

They could certainly do with improving its accessibility, though. I wish there was some way to subscribe to it. I have to use a third party service to create an RSS feed from it.

[1] https://www.nhs.uk/news/


I'm the tech lead for the NHS website (www.nhs.uk) and I oversee the team who are building this frontend library.

I will pass on your comments about RSS to our architect (who gets to decide these things).

We do syndicate all of our content via a service which requires registration. Maybe you could try this as a workaround?

https://developer.api.nhs.uk/


Ah, thank you. RSS would be great for me (and that API looks really neat!), but I meant more generally - perhaps for people who don't browse HN.

The content on Behind the Headlines is fantastic, but the page seems a bit unloved. If I search for "health news" on Google it doesn't appear at all (I checked the first 7 pages of results). The SEO for the individual articles is admittedly much better. I think I personally found the page by accident when I was looking for some news about the NHS.

So, I'm not sure what I'd recommend (other than perhaps an email newsletter for the less technically-inclined). It seems like you have a real diamond in the rough there with great content which is let down by presentation.


Parliament.uk beta , this NHS beta design, GOV.WALES beta, etc. all look like GOV.UK. Are they related in any way (same developers?), or did they just thought 'hey the main gov website looks great and is open-source, let's do the same'?


The UK has the "Government Digital Service", who have been going around all the branches of the government consulting on best practises for web UX, accessibility, coding, style, etc. They're doing a brilliant job of updating the government's Web presence and unifying everything under a more coherent "brand".

Interesting fact I heard from one of their UX people - they write their html using a "screenreader first" paradigm. Eg they make the html work for screenreaders and the style it to work on mobile devices, and then desktop computers. It's a great approach for accessibility.


The US has a really similar program that’s also doing great work! https://www.usds.gov/


I recall they built https://collegescorecard.ed.gov/ which is simply amazing, particularly the data itself which provides a lot more detail in case you want to dig in yourself:

https://collegescorecard.ed.gov/data/


That was specifically born out of the UK GDS programme if I remember correctly


>all look about the same.

They look the same and they look great! Also they are functional, lightweight, accessible, etc. One pearl in the sea of bad design that is the Web :)


I remember that there are guidelines for development of government websites, also on Github—concerning accessibility stuff and, I think, readymade client-side resources. Only I'm not sure if that was the UK government.

That was published pretty long ago, like a year or two.


I'm the tech lead for the NHS website (www.nhs.uk) and I oversee the team who are building this frontend library.

NHS Digital are working on a "Standards Library" encompassing how to go about building healthcare websites and services (as opposed to generic government services) which encompasses not only the design of a website but also the whole lifecycle of the service.

We still have work to do, but I think 2019 will see the release and adoption of our ideas across the UK!


There's some excellent passive aggressive comments in that style guide.


Why oh Why do not they care about security ?

Website scores an F for Fail on mozilla's

https://observatory.mozilla.org/analyze/www.nhs.uk

hosting platform is not secure :

https://internet.nl/site/www.nhs.uk/431794/

email is not secure :

https://internet.nl/mail/nhs.uk/179122/

Please fix this and not let it drop into bureaucracy


Dead link when I click on the logo at https://nhsuk.github.io/nhsuk-frontend/ - Please fix.


Big ups to these people and this institution! This is so cool.


Out of the loop. What is this?

Front end template for allowing people or doctors or someone to use NHS backend?


>NHS.UK frontend contains the code you need to start building user interfaces for NHS websites and services.


Yes. I read that. But as an American who doesn’t fully understand NHS... what is this?

Why are people making NHS Websites? That’s the part I don’t get, who is using this code and for what? Isn’t NHS a government run service and they run their own websites?


Hospitals, doctors surgeries, pharmacies, research units etc etc are all part of the NHS. Presumably this will help them build consistent website across the whole NHS.

They are a bit of a hudgepodge at the moment - one at random http://www.cityandhackneyccg.nhs.uk/about-us/member-gp-pract...


The NHS isn't really a single body (1), it's perhaps easier to think of it like the US army in terms of structure rather than a single organisation.

There is a central organisation that sets overall directions and can give orders. But then there are lots of other organisations that are within it or attached in some way or even privately owned groups that operate in association with it.

Each group usually creates its own web sites and the central organisation doesn't usually interfere unless something is wrong.

The following is AFAIK correct, but it's my personal experience, and I'm not claiming to be an expert on the NHS!

As a simplified example, I am covered by the NHS. In my case NHS Scotland, which is separate from the similar system in England or others in Wales and Northern Ireland.

I am registered with the local NHS GP surgery which puts me on the system and provides most non-emergency access to care.

That GP's surgery is (probably) a private partnership of doctors who own the building and employ themselves and the other staff (nurses, admin, etc).

They get paid by the NHS system as a whole to provide me healthcare, but are not direct government employees.

I actually picked this GP's practice over several others, each of which have their own websites, because its website showed that it was open to new patients and because they offered open clinic times that matched my requirements.

On the other hand, the local hospital is owned (2) by the regional NHS hospital group as a government owned facility which employs the staff there as direct NHS/government employees. Except in emergency, I would go to my GP first, then be referred to the hospital.

However this is a separate organisation from the regional hospital group that operates hospitals in the next major city.

(1) NHS structure and funding: https://www.kingsfund.org.uk/sites/default/files/2017-10/NHS...

(2) Though see https://en.wikipedia.org/wiki/Private_finance_initiative for a more complicated explanation


I'm the tech lead for the NHS website (www.nhs.uk) and I oversee the team who are building this frontend library.

Your comment is a good explanation of how things work.

My employer, NHS Digital, is working on this frontend library as a way to spread good practice throughout the federated health and care system you describe.

In short, we spend money doing the research on how best to provide information to users/patients and then we promote the uptake of the technology we develop to best satisfy them - with the overall goal of improving self-care and reducing the need for costly GP appointments and hospital visits.


It's used for the sites we as patients look out (maybe also for staff as well?). Often you can google symptoms or an illness and a nice, clear NHS site is in the results. It does other things like gives directions to hospitals, and basically explains everything you need to know to use the NHS (like prescription charge exemption certificates etc.)

It looks like it's inspired or follows the same guidelines as most of our modern government websites (not all have been updated)

See https://www.nhs.uk/


The NHS is gigantic - it is the umbrella term for publicly funded (universal) healthcare in the UK. There are lots of agencies within this that will have a web presence who can now (if they like) use this UI library for accessible and usable components.


I'm also an American who doesn't fully understand NHS, so this is wear I will have to leave you. :)


[flagged]


I'm the tech lead for the NHS website (www.nhs.uk) and I oversee the team who are building this frontend library.

With respect, I think you fail to appreciate the importance of effective communication of health and care information to members of the public.

The NHS is under incredible financial strain due to an ageing population and one of the UK government's key strategic goals is to reduce demand on GPs and hospitals through channel shift, i.e. providing much better information online so that citizens can prevent illness and also find better avenues for care (e.g. their pharmacist).

This is much more difficult than you might think. For example, a very large number of people seeking health and care advice in the UK are "old" and not used to using the internet. At NHS Digital we have had to carry out extensive research into how best to communicate advice in a way that is suitable for all audiences.

NHS Digital has a key role in the UK health and care system and our goal is to share (and perhaps mandate) our technical solutions to these communication problems. Through this we aim to save the NHS money and promote better citizen health and care.


In addition to NHS.UK there is the Empower the Person programme that is all about supporting patients to access the right service first time. Have a look at www.nhs.uk/transformation Recent example of improvements shows a GP Practice reducing many weeks wait times for GP appointments to a day or two by introducing triage and Online Consultations. There is also 'channel shift' by pointing patients at more appropriate services: 111 Online, Community Pharmacist etc


Frontend boilerplate/template code and examples of use would be exactly how you get a consistent user experience.


I think the title should be "State offers frontend templates and documentation" to make it clear how the public sector is helping an industry and how that's a beneficial use of resources


jQuery, gulp... Makes me sad and probably I won't use this. But their UX is good.


I'm the tech lead for the NHS website (www.nhs.uk) and I oversee the team who are building this frontend library.

I'll be making sure we remove our jQuery dependency when I can. For now the team is simply aiming to get to an MVP that we can iterate on :-)


As it’s a open project, have you considered opening a GitHub issue or even a pull request with some recommendations on better approaches/tools?


Nicely written codebase but I can't get past the fact that they use JQuery...


I don't understand the problem with it? If your needs are simple why would you drag in the JavaScript meme of the week?


I'm the tech lead for the NHS website (www.nhs.uk) and I oversee the team who are building this frontend library.

I'll be making sure we remove our jQuery dependency when I can. For now the team is simply aiming to get to an MVP that we can iterate on :-)


What does the backend stack consist of?


This is a very difficult question to answer comprehensively because our "website" does a lot more than just present information to people! Most of the content you can see on www.nhs.uk is Python/Django/Wagtail plus a whole heap of infrastructure. But there are aspects of our service written in C# or JS for example.


Exactly...


I can't believe how this made it to the top of the HN homepage.




Registration is open for Startup School 2019. Classes start July 22nd.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: