Skip to content

Commit

Permalink
adding support for Epic Legacy provider, which doesnt support dynamic…
Browse files Browse the repository at this point in the history
… client registration. Moving Kaiser Permanente providers to use Epic Legacy platform.
  • Loading branch information
AnalogJ committed Nov 5, 2023
1 parent a13d58c commit f52d284
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 30 deletions.
16 changes: 8 additions & 8 deletions SOURCE_LIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -13096,14 +13096,14 @@ and may change frequently.
| KAI SPORTS MEDICINE LLC | `kai-sports-medicine-llc` | athena | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kai-sports-medicine-llc.png" /> |
| Kairos Health Center of Frisco | `kairos-health-center-of-frisco` | athena | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kairos-health-center-of-frisco.png" /> |
| Kairos Multispecialty Group | `kairos-multispecialty-group` | athena | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kairos-multispecialty-group.png" /> |
| Kaiser Permanente - California - Northern | `kaiser-permanente-california-northern` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-california-northern.png" /> |
| Kaiser Permanente - California - Southern | `kaiser-permanente-california-southern` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-california-southern.png" /> |
| Kaiser Permanente - Colorado | `kaiser-permanente-colorado` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-colorado.png" /> |
| Kaiser Permanente – Georgia | `kaiser-permanente-georgia` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-georgia.png" /> |
| Kaiser Permanente Hawaii / Maui Health System | `kaiser-permanente-hawaii-maui-health-system` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-hawaii-maui-health-system.png" /> |
| Kaiser Permanente - Maryland/Virginia/Washington D.C. | `kaiser-permanente-maryland-virginia-washington-d-c` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-maryland-virginia-washington-d-c.png" /> |
| Kaiser Permanente – Oregon – SW Washington | `kaiser-permanente-oregon-sw-washington` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-oregon-sw-washington.png" /> |
| Kaiser Permanente - Washington | `kaiser-permanente-washington` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-washington.png" /> |
| Kaiser Permanente - California - Northern | `kaiser-permanente-california-northern` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-california-northern.png" /> |
| Kaiser Permanente - California - Southern | `kaiser-permanente-california-southern` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-california-southern.png" /> |
| Kaiser Permanente - Colorado | `kaiser-permanente-colorado` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-colorado.png" /> |
| Kaiser Permanente – Georgia | `kaiser-permanente-georgia` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-georgia.png" /> |
| Kaiser Permanente Hawaii / Maui Health System | `kaiser-permanente-hawaii-maui-health-system` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-hawaii-maui-health-system.png" /> |
| Kaiser Permanente - Maryland/Virginia/Washington D.C. | `kaiser-permanente-maryland-virginia-washington-d-c` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-maryland-virginia-washington-d-c.png" /> |
| Kaiser Permanente – Oregon – SW Washington | `kaiser-permanente-oregon-sw-washington` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-oregon-sw-washington.png" /> |
| Kaiser Permanente - Washington | `kaiser-permanente-washington` | epic-legacy | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kaiser-permanente-washington.png" /> |
| Kalamazoo College Student Health Center | `kalamazoo-college-student-health-center` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kalamazoo-college-student-health-center.png" /> |
| Kalamazoo Foot Surgery PC | `kalamazoo-foot-surgery-pc` | athena | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kalamazoo-foot-surgery-pc.png" /> |
| Kalamazoo Foot Surgery | `kalamazoo-foot-surgery` | epic | <img height="50" src="https://raw.githubusercontent.com/fastenhealth/fasten-onprem/main/frontend/src/assets/sources/kalamazoo-foot-surgery.png" /> |
Expand Down
14 changes: 9 additions & 5 deletions clients/factory/factory.go

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion definitions/factory/factory.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/312/api/FHIR/R4/metadata
func GetSourceKaiserPermanenteCaliforniaNorthern(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://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/320/oauth2/authorize"
sourceDef.TokenEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/320/oauth2/token"
sourceDef.RegistrationEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/320/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceKaiserPermanenteCaliforniaNorthern(env pkg.FastenLighthouseEnvType
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeKaiserPermanenteCaliforniaNorthern]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Kaiser Permanente - California - Northern"
sourceDef.SourceType = pkg.SourceTypeKaiserPermanenteCaliforniaNorthern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://fhir.kp.org/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/212/api/FHIR/R4/metadata
func GetSourceKaiserPermanenteCaliforniaSouthern(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://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/212/oauth2/authorize"
sourceDef.TokenEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/212/oauth2/token"
sourceDef.RegistrationEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/212/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceKaiserPermanenteCaliforniaSouthern(env pkg.FastenLighthouseEnvType
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeKaiserPermanenteCaliforniaSouthern]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Kaiser Permanente - California - Southern"
sourceDef.SourceType = pkg.SourceTypeKaiserPermanenteCaliforniaSouthern
Expand Down
4 changes: 2 additions & 2 deletions definitions/internal/source/kaiser_permanente_colorado.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://fhir.kp.org/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/140/api/FHIR/R4/metadata
func GetSourceKaiserPermanenteColorado(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://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/140/oauth2/authorize"
sourceDef.TokenEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/140/oauth2/token"
sourceDef.RegistrationEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/140/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceKaiserPermanenteColorado(env pkg.FastenLighthouseEnvType, clientId
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeKaiserPermanenteColorado]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Kaiser Permanente - Colorado"
sourceDef.SourceType = pkg.SourceTypeKaiserPermanenteColorado
Expand Down
4 changes: 2 additions & 2 deletions definitions/internal/source/kaiser_permanente_georgia.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://fhir.kp.org/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/200/api/FHIR/R4/metadata
func GetSourceKaiserPermanenteGeorgia(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://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/200/oauth2/authorize"
sourceDef.TokenEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/200/oauth2/token"
sourceDef.RegistrationEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/200/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceKaiserPermanenteGeorgia(env pkg.FastenLighthouseEnvType, clientIdL
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeKaiserPermanenteGeorgia]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Kaiser Permanente – Georgia"
sourceDef.SourceType = pkg.SourceTypeKaiserPermanenteGeorgia
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://fhir.kp.org/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/130/api/FHIR/R4/metadata
func GetSourceKaiserPermanenteHawaiiMauiHealthSystem(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://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/130/oauth2/authorize"
sourceDef.TokenEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/130/oauth2/token"
sourceDef.RegistrationEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/130/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceKaiserPermanenteHawaiiMauiHealthSystem(env pkg.FastenLighthouseEnv
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeKaiserPermanenteHawaiiMauiHealthSystem]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Kaiser Permanente Hawaii / Maui Health System"
sourceDef.SourceType = pkg.SourceTypeKaiserPermanenteHawaiiMauiHealthSystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://fhir.kp.org/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/170/api/FHIR/R4/metadata
func GetSourceKaiserPermanenteMarylandVirginiaWashingtonDC(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://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/170/oauth2/authorize"
sourceDef.TokenEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/170/oauth2/token"
sourceDef.RegistrationEndpoint = "https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/170/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceKaiserPermanenteMarylandVirginiaWashingtonDC(env pkg.FastenLightho
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeKaiserPermanenteMarylandVirginiaWashingtonDC]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Kaiser Permanente - Maryland/Virginia/Washington D.C."
sourceDef.SourceType = pkg.SourceTypeKaiserPermanenteMarylandVirginiaWashingtonDC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://FHIR.KP.ORG/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/190/api/FHIR/R4/metadata
func GetSourceKaiserPermanenteOregonSwWashington(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://fhir.kp.org/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/190/oauth2/authorize"
sourceDef.TokenEndpoint = "https://fhir.kp.org/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/190/oauth2/token"
sourceDef.RegistrationEndpoint = "https://fhir.kp.org/service/ptnt_care/EpicEdiFhirRoutingSvc/v2014/esb-envlbl/190/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceKaiserPermanenteOregonSwWashington(env pkg.FastenLighthouseEnvType
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeKaiserPermanenteOregonSwWashington]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Kaiser Permanente – Oregon – SW Washington"
sourceDef.SourceType = pkg.SourceTypeKaiserPermanenteOregonSwWashington
Expand Down
4 changes: 2 additions & 2 deletions definitions/internal/source/kaiser_permanente_washington.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// https://fhir.kp.org/Interconnect-FHIR-PRD/api/FHIR/R4/metadata
func GetSourceKaiserPermanenteWashington(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://fhir.kp.org/Interconnect-FHIR-PRD/oauth2/authorize"
sourceDef.TokenEndpoint = "https://fhir.kp.org/Interconnect-FHIR-PRD/oauth2/token"
sourceDef.RegistrationEndpoint = "https://fhir.kp.org/Interconnect-FHIR-PRD/oauth2/register"
Expand All @@ -25,7 +25,7 @@ func GetSourceKaiserPermanenteWashington(env pkg.FastenLighthouseEnvType, client
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeKaiserPermanenteWashington]; clientIdOk {
sourceDef.ClientId = clientId
}
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpic))
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeEpicLegacy))

sourceDef.Display = "Kaiser Permanente - Washington"
sourceDef.SourceType = pkg.SourceTypeKaiserPermanenteWashington
Expand Down
1 change: 1 addition & 0 deletions pkg/source_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
SourceTypeCigna SourceType = "cigna"
SourceTypeEclinicalworks SourceType = "eclinicalworks"
SourceTypeEdifecs SourceType = "edifecs"
SourceTypeEpicLegacy SourceType = "epic-legacy"
SourceTypeEpic SourceType = "epic"
SourceTypeHumana SourceType = "humana"
SourceTypeMedicare SourceType = "medicare"
Expand Down

0 comments on commit f52d284

Please sign in to comment.