Skip to content

Commit

Permalink
sutter health is using epic legacy connector.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Nov 8, 2023
1 parent a152c03 commit 972f0c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion SOURCE_LIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -24089,7 +24089,7 @@ and may change frequently.
| SUSTAINABLE HEALTHCARE | `sustainable-healthcare` | athena | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/sustainable-healthcare.png" /> |
| Sutherland Family Practice | `sutherland-family-practice` | athena | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/sutherland-family-practice.png" /> |
| Sutter Family Medicine | `sutter-family-medicine` | eclinicalworks | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/sutter-family-medicine.png" /> |
| Sutter Health | `sutter-health` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/sutter-health.png" /> |
| Sutter Health | `sutter-health` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/sutter-health.png" /> |
| Suwanahoochee Pediatrics | `suwanahoochee-pediatrics` | athena | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/suwanahoochee-pediatrics.png" /> |
| Suying L Song Md | `suying-l-song-md` | allscripts | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/suying-l-song-md.png" /> |
| Suzanne Gharb | `suzanne-gharb` | eclinicalworks | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/suzanne-gharb.png" /> |
Expand Down
18 changes: 9 additions & 9 deletions clients/factory/factory.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions definitions/internal/source/sutter_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://apiservices.sutterhealth.org/ifs/api/FHIR/R4/metadata
func GetSourceSutterHealth(env pkg.FastenLighthouseEnvType, clientIdLookup map[pkg.SourceType]string) (models.LighthouseSourceDefinition, error) {
sourceDef, err := platform.GetSourceEpic(env, clientIdLookup)
sourceDef, err := platform.GetSourceEpicLegacy(env, clientIdLookup)
sourceDef.AuthorizationEndpoint = "https://apiservices.sutterhealth.org/ifs/oauth2/authorize"
sourceDef.TokenEndpoint = "https://apiservices.sutterhealth.org/ifs/oauth2/token"
sourceDef.RegistrationEndpoint = "https://apiservices.sutterhealth.org/ifs/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceSutterHealth(env pkg.FastenLighthouseEnvType, clientIdLookup map[p
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeSutterHealth]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Sutter Health"
sourceDef.SourceType = pkg.SourceTypeSutterHealth
Expand Down

0 comments on commit 972f0c5

Please sign in to comment.