diff --git a/endpointmanager/pkg/chplendpointquerier/alteraquerier.go b/endpointmanager/pkg/chplendpointquerier/alteraquerier.go index 90926ba3c..7426bad51 100644 --- a/endpointmanager/pkg/chplendpointquerier/alteraquerier.go +++ b/endpointmanager/pkg/chplendpointquerier/alteraquerier.go @@ -6,25 +6,14 @@ import ( ) func AlteraQuerier(chplURL string, fileToWriteTo string) { - DSTU2URL := chplURL + "/download/DSTU2" - R4URL := chplURL + "/download/R4" - var endpointEntryList EndpointList - respBody, err := helpers.QueryEndpointList(DSTU2URL) + respBody, err := helpers.QueryEndpointList(chplURL) if err != nil { log.Fatal(err) } endpointEntryList.Endpoints = BundleToLanternFormat(respBody) - - respBody, err = helpers.QueryEndpointList(R4URL) - if err != nil { - log.Fatal(err) - } - - endpointEntryList.Endpoints = append(endpointEntryList.Endpoints, BundleToLanternFormat(respBody)...) - err = WriteCHPLFile(endpointEntryList, fileToWriteTo) if err != nil { log.Fatal(err) diff --git a/endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go b/endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go index 245a66d9b..75f6d1f60 100644 --- a/endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go +++ b/endpointmanager/pkg/chplendpointquerier/chplendpointquerier.go @@ -22,7 +22,7 @@ type LanternEntry struct { var MedHostURL = "https://api.mhdi10xasayd.com/medhost-developer-composition/v1/fhir-base-urls.json" var NextGenURL = "https://nextgen.com/api/practice-search" var CanvasURL = "https://docs.canvasmedical.com/reference/service-base-urls" -var AlteraURL = "https://open.allscripts.com/fhirendpoints" +var AlteraURL = "https://open.allscripts.com/fhirendpoints/download/R4?endpointFilter=Patient" var EpicURL = "https://open.epic.com/MyApps/Endpoints" var MeditechURL = "https://fhir.meditech.com/explorer/endpoints" var DocsAthenaURL = "https://docs.athenahealth.com/api/base-fhir-urls"