From d7938e0a91527a583babea8b82f127d9722cc368 Mon Sep 17 00:00:00 2001 From: archita-ekkirala Date: Wed, 4 Dec 2024 22:26:09 -0600 Subject: [PATCH] LANTERN-804: Adding bundleparser for fhirpt --- endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go b/endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go index efad48361..856d8d033 100644 --- a/endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go +++ b/endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go @@ -197,6 +197,7 @@ var curemdURL = "https://www.curemd.com/developer/base-fhir-urls/" var emdscloudURL = "https://identity.emdscloud.com/api/api-resource/fhir" var betaAfoundriaURL = "https://beta.afoundria.com/api/fhir/urls" var ehealthlineURL = "http://ehealthline.com/dev/pdf/FHIR%20API%20Endpoints.htm" +var fhirptURL = "https://fhirpt-stage.officeally.com/fhir/r4/endpoints" var bundleQuerierArray = [30]string{"https://ac-fhir.harrisambulatory.com/endpoints/r4", "https://dynamicfhirpresentation.dynamicfhirsandbox.com/fhir/r4/endpoints", "https://ct-fhir.harrisambulatory.com/Endpoints/R4", "https://kantime.com/wp-content/uploads/2024/03/fhir-base-urls.json", @@ -588,6 +589,8 @@ func QueryCHPLEndpointList(chplURL string, fileToWriteTo string) { CSVParser(chplURL, fileToWriteTo, "./endpoints.csv", -1, 0, true, 1, 0) } else if URLsEqual(chplURL, ehealthlineURL) { EhealthlineWebscraper(ehealthlineURL, fileToWriteTo) + } else if URLsEqual(chplURL, fhirptURL) { + BundleQuerierParser(chplURL, fileToWriteTo) } else { log.Warnf("Handler is required for url %s", chplURL) }