-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing Epic clients that do not support dynamic client registration.
- Loading branch information
Showing
26 changed files
with
140 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (C) Fasten Health, Inc. - All Rights Reserved. | ||
// | ||
// THIS FILE IS GENERATED BY https://github.com/fastenhealth/fasten-sources-gen | ||
// PLEASE DO NOT EDIT BY HAND | ||
|
||
package platform | ||
|
||
import ( | ||
"context" | ||
base "github.com/fastenhealth/fasten-sources/clients/internal/base" | ||
models "github.com/fastenhealth/fasten-sources/clients/models" | ||
pkg "github.com/fastenhealth/fasten-sources/pkg" | ||
logrus "github.com/sirupsen/logrus" | ||
"net/http" | ||
) | ||
|
||
// https://providerapi-stage.advancedmd.com/v1/r4/.well-known/smart-configuration | ||
// https://providerapi-stage.advancedmd.com/v1/r4/metadata | ||
/* | ||
https://developers.advancedmd.com/fhir/base-urls | ||
*/ | ||
func GetSourceClientAdvancedmdSandbox(env pkg.FastenLighthouseEnvType, ctx context.Context, globalLogger logrus.FieldLogger, sourceCreds models.SourceCredential, testHttpClient ...*http.Client) (models.SourceClient, error) { | ||
baseClient, err := base.GetSourceClientFHIR401(env, ctx, globalLogger, sourceCreds, testHttpClient...) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return struct { | ||
models.SourceClient | ||
}{baseClient}, err | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright (C) Fasten Health, Inc. - All Rights Reserved. | ||
// | ||
// THIS FILE IS GENERATED BY https://github.com/fastenhealth/fasten-sources-gen | ||
// PLEASE DO NOT EDIT BY HAND | ||
|
||
package platform | ||
|
||
import ( | ||
models "github.com/fastenhealth/fasten-sources/definitions/models" | ||
pkg "github.com/fastenhealth/fasten-sources/pkg" | ||
) | ||
|
||
// https://providerapi-stage.advancedmd.com/v1/r4/.well-known/smart-configuration | ||
// https://providerapi-stage.advancedmd.com/v1/r4/metadata | ||
/* | ||
https://developers.advancedmd.com/fhir/base-urls | ||
*/ | ||
func GetSourceAdvancedmdSandbox(env pkg.FastenLighthouseEnvType, clientIdLookup map[pkg.SourceType]string) (models.LighthouseSourceDefinition, error) { | ||
sourceDef := models.LighthouseSourceDefinition{} | ||
sourceDef.AuthorizationEndpoint = "https://providerapi-stage.advancedmd.com/v1/oauth2/authorize" | ||
sourceDef.TokenEndpoint = "https://providerapi-stage.advancedmd.com/v1/oauth2/token" | ||
sourceDef.IntrospectionEndpoint = "https://providerapi-stage.advancedmd.com/v1/oauth2/introspect" | ||
|
||
sourceDef.Issuer = "https://providerapi-stage.advancedmd.com/v1/r4" | ||
sourceDef.Scopes = []string{"fhirUser", "offline_access", "openid", "patient/*.read"} | ||
sourceDef.GrantTypesSupported = []string{"authorization_code"} | ||
sourceDef.ResponseType = []string{"code"} | ||
sourceDef.ResponseModesSupported = []string{"query"} | ||
sourceDef.Audience = "https://providerapi-stage.advancedmd.com/v1/r4" | ||
sourceDef.CodeChallengeMethodsSupported = []string{"S256"} | ||
|
||
sourceDef.ApiEndpointBaseUrl = "https://providerapi-stage.advancedmd.com/v1/r4" | ||
// retrieve client-id, if available | ||
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeAdvancedmdSandbox]; clientIdOk { | ||
sourceDef.ClientId = clientId | ||
} | ||
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeAdvancedmdSandbox)) | ||
sourceDef.Confidential = true | ||
|
||
sourceDef.Display = "AdvancedMD" | ||
sourceDef.PlatformType = pkg.SourceTypeAdvancedmdSandbox | ||
sourceDef.SourceType = pkg.SourceTypeAdvancedmdSandbox | ||
sourceDef.Category = []string{"Insurance"} | ||
sourceDef.Aliases = []string{} | ||
sourceDef.PatientAccessUrl = "https://www.advancedmd.com" | ||
|
||
return sourceDef, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.