FHIR UK Core NodeJS package

Hi,
Anyone has experience working with FHIR UK Core with node.js typescript?
We are looking for a library that can be used for validating FHIR resources against the UK Core profile. My research so far brought me to the validators in MedPlum client which perform validation via a FHIR server. However, Ideally, we want a library/package that can be standalone validating resources against UK profiles, offline without the need of a FHIR server.

Any advice would be appreciated.
Shawn

Hi Shawn,

Not sure if you were above to get an answer to this query you asked here a while ago.

The short answer is that there currently no fully supported native Node.js / TypeScript library that can perform a complete offline validation against UK Core profiles in the same way the reference Java validator can. Most teams end up combining approaches.

You could try using the HL7 FHIR Validator (Java) for validating against UK Core profiles and NHS England FHIR profiles and use TypeScript models/lightweight checks in Node for structure validations.

Additional resource: Validation - FHIR v5.0.0

Hope the above helps.

Thanks,

NHS England API Platform team

Please note: The API Platform team can only address queries relevant to the NHS England API platform, including security, rate limiting, logging, monitoring and alerting. For any API, CIS2, NHS Login specific queries, please reach out the relevant API / Service teams.

I’m not aware of anyone who has done this.

What I do is use https://www.npmjs.com/package/@types/fhir and ensure I’m FHIR schema compliant.

For testing against UK-Core I then using the FHIR command line validator. i.e. Testing - NHS North West Genomics v0.1.0

You would need to change the -ig parameter to UKCore e.g.
fhir.r4.ukcore.stu3.currentbuild#0.0.19-pre-release

You can also use a terminology server with this but the NHS England one doesn’t work with this (when I last looked due to authentication issues)