I am testing the Google Healthcare FHIR data store validation of resources based on a custom Implementation Guide using a straightforward IG that does the following on the Patient resource:
* name 1..1 MS
* birthDate 0..0
My problem is that every time I try to POST a Patient resource that does not comply with the profile I defined, I can create it without a problem. However, when I perform the Patient/$validate operation, I only get a warning.
I tried it using the available IG, specifically the USCORE 6.1, and the validation works fine.
Is there any additional step that I have to take to activate the proper validation of resources against my custom IG?
Thanks!
Hey Esteban!
I’d follow this tutorial to run the IG Publisher after your SUSHI build: https://fshschool.org/docs/sushi/running/#running-the-ig-publisher
That step generates the final StructureDefinitions (and other FHIR artifacts from SUSHI), runs validations, and builds the IG website via Jekyll. It uses Java (publisher) and Ruby (Jekyll), so make sure those deps are installed first.
Ways to run it:
Local: install the deps and run the publisher directly.
Docker: use an image with everything preinstalled—great if you’ll trigger builds in Cloud Build. Example Dockerfile: https://github.com/cames-be/fhir-ig-publisher-docker/blob/main/Dockerfile
GitHub Actions: a sample workflow you can copy/adapt: https://www.argentixinfo.com/archives/156
Community CI/CD (easiest for public repos): https://github.com/FHIR/auto-ig-builder
Hope that helps!
Cheers,
Maico