Skip to content

Commit

Permalink
Updated Altera Querier to use patient-facing R4 source endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
daedalus-s committed Jan 15, 2025
1 parent 64bf489 commit e5aef14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions endpointmanager/pkg/chplendpointquerier/alteraquerier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e5aef14

Please sign in to comment.