Class FHIRProviderCH


  • public class FHIRProviderCH
    extends FHIRProvider
    Useful documentation:
    • Create/Update
      • https://cloud.google.com/healthcare/docs/samples/healthcare-update-resource#healthcare_update_resource-java
      • https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#healthcare-create-patient-java
      • https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#updating_a_fhir_resource
      • https://hapifhir.io/hapi-fhir/docs/client/examples.html
      • https://build.fhir.org/ig/HL7/us-bulk-data/
    • Config
      • https://cloud.google.com/healthcare/docs/how-tos/fhir#healthcare-get-metadata-java
      • https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/healthcare_fhir_store
    • Search
      • https://cloud.google.com/healthcare/docs/how-tos/fhir-search
      • https://cloud.google.com/healthcare/docs/samples/healthcare-search-resources-post
      • https://cloud.google.com/healthcare/docs/reference/rest/v1/projects.locations.datasets.fhirStores.fhir/search
      • https://hl7.org/implement/standards/fhir/R4/search.html
      • https://hl7.org/fhir/search.html
      • https://www.devdays.com/wp-content/uploads/2019/03/DD18-EU-Alexander-Zautke-Searching-in-FHIR-resources-2018-11-14.pdf
    • Entities
      • https://www.hl7.org/fhir/patient.html
      • https://www.hl7.org/fhir/references.html#Reference
      • https://www.hl7.org/fhir/observation.html
    • Misc
      • https://vneilley.medium.com/are-all-fhir-apis-the-same-48be75ac4ac5
    Author:
    Laurent Hasson
    • Field Detail

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
      • _gc

        protected com.google.auth.oauth2.GoogleCredentials _gc
      • _ch

        protected com.google.api.services.healthcare.v1.CloudHealthcare _ch
      • _token

        protected java.lang.String _token
      • _fhirStoreUri

        protected java.lang.String _fhirStoreUri
    • Constructor Detail

      • FHIRProviderCH

        public FHIRProviderCH​(java.lang.String projectName,
                              java.lang.String fhirStoreUri,
                              java.lang.String applicationName)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getCloudHealthcare

        protected static com.google.api.services.healthcare.v1.CloudHealthcare getCloudHealthcare​(com.google.auth.oauth2.GoogleCredentials creds,
                                                                                                  java.lang.String dataProjectName,
                                                                                                  java.lang.String clientApplicationName)
                                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • fhirStoreCapabilities

        public com.google.gson.JsonObject fhirStoreCapabilities()
                                                         throws java.lang.Exception
        Specified by:
        fhirStoreCapabilities in class FHIRProvider
        Throws:
        java.lang.Exception
      • getRootUrl

        public java.lang.String getRootUrl()
                                    throws java.lang.Exception
        Specified by:
        getRootUrl in class FHIRProvider
        Throws:
        java.lang.Exception
      • getToken

        public java.lang.String getToken()
                                  throws java.lang.Exception
        Specified by:
        getToken in class FHIRProvider
        Throws:
        java.lang.Exception
      • fhirResourceSearch

        public com.google.gson.JsonObject fhirResourceSearch​(java.lang.String resourceType,
                                                             java.util.List<StringStringPair> params)
                                                      throws java.lang.Exception
        Specified by:
        fhirResourceSearch in class FHIRProvider
        Throws:
        java.lang.Exception