Stream: implementers
Topic: Validate FHIR Schema
Ashish_N (Sep 05 2020 at 08:46):
I'm trying to implement Google Healthcare API with Node project. I'm looking for a way to validate JSON schema passing to GCP Healthcare API from Node? Thanks.
Lloyd McKenzie (Sep 05 2020 at 13:54):
@Paul Church
Paul Church (Sep 05 2020 at 22:56):
I'm not sure I understand the question - the API validates FHIR resources being sent to create/update. Are you looking to validate the JSON schema in Node?
Ashish_N (Sep 11 2020 at 01:25):
Yes. Lets say front-end sends data to Node API. I wanted a validation at Node for JSON schema before posting it to GCP API else GCP API will throw error.
Josh Mandel (Sep 11 2020 at 03:17):
Okay -- to be clear this question isn't about GCP at all, but rather about JS client app development.
Josh Mandel (Sep 11 2020 at 03:18):
@Abigail Watson has a set of libraries that may be helpful; more discussion in #javascript
Abbie Watson (Sep 11 2020 at 03:23):
This is probably the NPM library you're looking for. R4 only.
https://www.npmjs.com/package/json-schema-resource-validation
If you're looking for DSTU2 or STU3 validation it requires a specialized toolchain (Meteor) and a non-standard package manager (Atmosphere).
Last updated: Apr 12 2022 at 19:14 UTC