Search code examples
google-healthcare-apigoogle-cloud-healthcare

Configure custom FHIR profile for Google Healthcare API


I am trying to setup a Google Healthcare FHIR data store using the International Patient Summary (IPS) FHIR IG. I have done the following:

  • downloaded the json specification files and unzipped it
  • deleted spec.internals file from the definitions.json
  • compiled a bundle using the bundler Python tool
  • uploaded the resulting bundle.json to a bucket associated with the dataset
  • trying to create a dataset with this custom IG, which seems to work ok because I can now select the IPS as a customer IG enter image description here

But when I try to complete the data store creation, I get an error in the Google Cloud console enter image description here

I have filed this issue for feedback. Does anyone have a hint/pointer as to how to validate the bundle?


Solution

  • I think the problem is with certain StructuredDefinitions in the package above that are not for resources (e.g. there are SDs for data types like Ranges). SDs are linked to the ImplementationGuide resource via the ImplementationGuide.global array, which takes in FHIR ResourceTypes in its type field, so SDs not meant for a type of resource won't be associated with one.

    That being said, do you know if for the IPS IG package, the data type SDs are meant for specific resource types, or are meant to be applied globally to all resources?