-
-
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.
adding unitedhealthcare prod configuration.
- Loading branch information
Showing
10 changed files
with
206 additions
and
32 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
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
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,39 @@ | ||
// 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 source | ||
|
||
import ( | ||
models "github.com/fastenhealth/fasten-sources/definitions/models" | ||
pkg "github.com/fastenhealth/fasten-sources/pkg" | ||
) | ||
|
||
// https://healthx.fhir.flex.optum.com/R4/.well-known/smart-configuration | ||
// https://healthx.fhir.flex.optum.com/R4/metadata | ||
func GetSourcePeopleshealth(env pkg.FastenLighthouseEnvType, clientIdLookup map[pkg.SourceType]string) (models.LighthouseSourceDefinition, error) { | ||
sourceDef, err := GetSourceUnitedhealthcare(env, clientIdLookup) | ||
sourceDef.AuthorizationEndpoint = "https://healthx.authz.flex.optum.com/oauth/authorize" | ||
sourceDef.TokenEndpoint = "https://healthx.authz.flex.optum.com/oauth/token" | ||
sourceDef.IntrospectionEndpoint = "https://healthx.authz.flex.optum.com/.well-known/jwks.json" | ||
sourceDef.UserInfoEndpoint = "https://healthx.authz.flex.optum.com/userinfo" | ||
|
||
sourceDef.Issuer = "https://healthx.fhir.flex.optum.com/R4" | ||
sourceDef.Audience = "https://healthx.fhir.flex.optum.com/R4" | ||
|
||
sourceDef.ApiEndpointBaseUrl = "https://healthx.fhir.flex.optum.com/R4" | ||
// retrieve client-id, if available | ||
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypePeopleshealth]; clientIdOk { | ||
sourceDef.ClientId = clientId | ||
} | ||
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeUnitedhealthcare)) | ||
|
||
sourceDef.Display = "Peoples Health" | ||
sourceDef.SourceType = pkg.SourceTypePeopleshealth | ||
sourceDef.Category = []string{"Insurance"} | ||
sourceDef.Aliases = []string{} | ||
sourceDef.PatientAccessUrl = "https://www.peopleshealth.com/" | ||
|
||
return sourceDef, err | ||
} |
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,39 @@ | ||
// 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 source | ||
|
||
import ( | ||
models "github.com/fastenhealth/fasten-sources/definitions/models" | ||
pkg "github.com/fastenhealth/fasten-sources/pkg" | ||
) | ||
|
||
// https://rmhp.fhir.flex.optum.com/R4/.well-known/smart-configuration | ||
// https://rmhp.fhir.flex.optum.com/R4/metadata | ||
func GetSourceRockymountainhealthplans(env pkg.FastenLighthouseEnvType, clientIdLookup map[pkg.SourceType]string) (models.LighthouseSourceDefinition, error) { | ||
sourceDef, err := GetSourceUnitedhealthcare(env, clientIdLookup) | ||
sourceDef.AuthorizationEndpoint = "https://rmhp.authz.flex.optum.com/oauth/authorize" | ||
sourceDef.TokenEndpoint = "https://rmhp.authz.flex.optum.com/oauth/token" | ||
sourceDef.IntrospectionEndpoint = "https://rmhp.authz.flex.optum.com/.well-known/jwks.json" | ||
sourceDef.UserInfoEndpoint = "https://rmhp.authz.flex.optum.com/userinfo" | ||
|
||
sourceDef.Issuer = "https://rmhp.fhir.flex.optum.com/R4" | ||
sourceDef.Audience = "https://rmhp.fhir.flex.optum.com/R4" | ||
|
||
sourceDef.ApiEndpointBaseUrl = "https://rmhp.fhir.flex.optum.com/R4" | ||
// retrieve client-id, if available | ||
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeRockymountainhealthplans]; clientIdOk { | ||
sourceDef.ClientId = clientId | ||
} | ||
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeUnitedhealthcare)) | ||
|
||
sourceDef.Display = "Rocky Mountain Health Plans" | ||
sourceDef.SourceType = pkg.SourceTypeRockymountainhealthplans | ||
sourceDef.Category = []string{"Insurance"} | ||
sourceDef.Aliases = []string{} | ||
sourceDef.PatientAccessUrl = "https://www.rmhp.org/" | ||
|
||
return sourceDef, err | ||
} |
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,39 @@ | ||
// 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 source | ||
|
||
import ( | ||
models "github.com/fastenhealth/fasten-sources/definitions/models" | ||
pkg "github.com/fastenhealth/fasten-sources/pkg" | ||
) | ||
|
||
// https://sierra.fhir.flex.optum.com/R4/.well-known/smart-configuration | ||
// https://sierra.fhir.flex.optum.com/R4/metadata | ||
func GetSourceSierrahealthandlife(env pkg.FastenLighthouseEnvType, clientIdLookup map[pkg.SourceType]string) (models.LighthouseSourceDefinition, error) { | ||
sourceDef, err := GetSourceUnitedhealthcare(env, clientIdLookup) | ||
sourceDef.AuthorizationEndpoint = "https://sierra.authz.flex.optum.com/oauth/authorize" | ||
sourceDef.TokenEndpoint = "https://sierra.authz.flex.optum.com/oauth/token" | ||
sourceDef.IntrospectionEndpoint = "https://sierra.authz.flex.optum.com/.well-known/jwks.json" | ||
sourceDef.UserInfoEndpoint = "https://sierra.authz.flex.optum.com/userinfo" | ||
|
||
sourceDef.Issuer = "https://sierra.fhir.flex.optum.com/R4" | ||
sourceDef.Audience = "https://sierra.fhir.flex.optum.com/R4" | ||
|
||
sourceDef.ApiEndpointBaseUrl = "https://sierra.fhir.flex.optum.com/R4" | ||
// retrieve client-id, if available | ||
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeSierrahealthandlife]; clientIdOk { | ||
sourceDef.ClientId = clientId | ||
} | ||
sourceDef.RedirectUri = pkg.GetCallbackEndpoint(string(pkg.SourceTypeUnitedhealthcare)) | ||
|
||
sourceDef.Display = "Sierra Health and Life" | ||
sourceDef.SourceType = pkg.SourceTypeSierrahealthandlife | ||
sourceDef.Category = []string{"Insurance"} | ||
sourceDef.Aliases = []string{} | ||
sourceDef.PatientAccessUrl = "https://www.sierrahealthandlife.com/" | ||
|
||
return sourceDef, err | ||
} |
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,39 @@ | ||
// 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 source | ||
|
||
import ( | ||
platform "github.com/fastenhealth/fasten-sources/definitions/internal/platform" | ||
models "github.com/fastenhealth/fasten-sources/definitions/models" | ||
pkg "github.com/fastenhealth/fasten-sources/pkg" | ||
) | ||
|
||
// https://hsid.fhir.flex.optum.com/R4/.well-known/smart-configuration | ||
// https://hsid.fhir.flex.optum.com/R4/metadata | ||
func GetSourceUnitedhealthcare(env pkg.FastenLighthouseEnvType, clientIdLookup map[pkg.SourceType]string) (models.LighthouseSourceDefinition, error) { | ||
sourceDef, err := platform.GetSourceUnitedhealthcareSandbox(env, clientIdLookup) | ||
sourceDef.AuthorizationEndpoint = "https://hsid.authz.flex.optum.com/oauth/authorize" | ||
sourceDef.TokenEndpoint = "https://hsid.authz.flex.optum.com/oauth/token" | ||
sourceDef.IntrospectionEndpoint = "https://hsid.authz.flex.optum.com/.well-known/jwks.json" | ||
sourceDef.UserInfoEndpoint = "https://hsid.authz.flex.optum.com/userinfo" | ||
|
||
sourceDef.Issuer = "https://hsid.fhir.flex.optum.com/R4" | ||
sourceDef.Audience = "https://hsid.fhir.flex.optum.com/R4" | ||
|
||
sourceDef.ApiEndpointBaseUrl = "https://hsid.fhir.flex.optum.com/R4" | ||
// retrieve client-id, if available | ||
if clientId, clientIdOk := clientIdLookup[pkg.SourceTypeUnitedhealthcare]; clientIdOk { | ||
sourceDef.ClientId = clientId | ||
} | ||
|
||
sourceDef.Display = "United Healthcare" | ||
sourceDef.SourceType = pkg.SourceTypeUnitedhealthcare | ||
sourceDef.Category = []string{"Insurance"} | ||
sourceDef.Aliases = []string{} | ||
sourceDef.PatientAccessUrl = "https://www.uhc.com" | ||
|
||
return sourceDef, err | ||
} |
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