Skip to content

Commit

Permalink
fixes for careevolution and anthem
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jan 18, 2024
1 parent 606081b commit 08df929
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 2 deletions.
1 change: 1 addition & 0 deletions catalog/brands.json
Original file line number Diff line number Diff line change
Expand Up @@ -474910,6 +474910,7 @@
"id": "88e06eff-c2d9-4a8c-bf4d-b4c147ea8648",
"last_updated": "2024-01-09T11:12:44-08:00",
"name": "CareEvolution",
"brand_website": "https://www.careevolution.com",
"portal_ids": [
"f015fbad-b770-488a-ad12-a816e476b833"
],
Expand Down
37 changes: 37 additions & 0 deletions catalog/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -53421,6 +53421,20 @@
"software_name": "eCW FHIR Facade",
"software_version": "1.6"
},
"577a6af3-9fb6-43e2-8bdf-920cf435fe3b": {
"id": "577a6af3-9fb6-43e2-8bdf-920cf435fe3b",
"last_updated": "2024-01-09T11:12:44-08:00",
"status": "active",
"connection_type": "hl7-fhir-rest",
"platform_type": "unitedhealthcare",
"url": "https://hsid.fhir.flex.optum.com/R4/",
"authorization_endpoint": "https://hsid.authz.flex.optum.com/oauth/authorize",
"token_endpoint": "https://hsid.authz.flex.optum.com/oauth/token",
"introspection_endpoint": "https://hsid.authz.flex.optum.com/.well-known/jwks.json",
"userinfo_endpoint": "https://hsid.authz.flex.optum.com/userinfo",
"smart_configuration_url": "https://hsid.fhir.flex.optum.com/R4/.well-known/smart-configuration",
"fhir_capabilities_url": "https://hsid.fhir.flex.optum.com/R4/metadata"
},
"577a7451-d9e0-4a66-a13d-48e47ec592c2": {
"id": "577a7451-d9e0-4a66-a13d-48e47ec592c2",
"identifiers": [
Expand Down Expand Up @@ -70300,6 +70314,17 @@
"software_name": "eCW FHIR Facade",
"software_version": "1.6"
},
"74786814-5f93-4bbf-9e2b-07030081863a": {
"id": "74786814-5f93-4bbf-9e2b-07030081863a",
"last_updated": "2024-01-09T11:12:44-08:00",
"status": "active",
"connection_type": "hl7-fhir-rest",
"platform_type": "humana",
"url": "https://fhir.humana.com/api/",
"authorization_endpoint": "https://fhir.humana.com/auth/authorize/",
"token_endpoint": "https://fhir.humana.com/auth/token/",
"fhir_capabilities_url": "https://fhir.humana.com/v1/api/metadata"
},
"747aa7cb-3f59-4093-8023-d6620ce92bf3": {
"id": "747aa7cb-3f59-4093-8023-d6620ce92bf3",
"identifiers": [
Expand Down Expand Up @@ -73079,6 +73104,18 @@
"software_version": "4.10.0.1",
"software_release_date": "2023-12-14"
},
"78c72c15-8913-4f06-8e5e-9a19bf967ea7": {
"id": "78c72c15-8913-4f06-8e5e-9a19bf967ea7",
"last_updated": "2024-01-09T11:12:44-08:00",
"status": "active",
"connection_type": "hl7-fhir-rest",
"platform_type": "medicare",
"url": "https://api.bluebutton.cms.gov/v2/fhir/",
"authorization_endpoint": "https://api.bluebutton.cms.gov/v2/o/authorize/",
"token_endpoint": "https://api.bluebutton.cms.gov/v2/o/token/",
"userinfo_endpoint": "https://api.bluebutton.cms.gov/v2/connect/userinfo",
"smart_configuration_url": "https://api.bluebutton.cms.gov/.well-known/openid-configuration-v2"
},
"78de22f7-aae8-47e2-b52b-c71a0f4c1729": {
"id": "78de22f7-aae8-47e2-b52b-c71a0f4c1729",
"identifiers": [
Expand Down
45 changes: 45 additions & 0 deletions catalog/portals.json
Original file line number Diff line number Diff line change
Expand Up @@ -157197,6 +157197,21 @@
"50d74645-9fc4-401d-816f-49e1c6df2c75"
]
},
"3f7e0791-7bab-46cb-be35-c9729c653eb0": {
"id": "3f7e0791-7bab-46cb-be35-c9729c653eb0",
"identifiers": [
{
"use": "fasten-legacy-source-type",
"system": "fasten-legacy-source-type",
"value": "unitedhealthcare"
}
],
"last_updated": "2024-01-09T11:12:44-08:00",
"name": "United Healthcare",
"endpoint_ids": [
"577a6af3-9fb6-43e2-8bdf-920cf435fe3b"
]
},
"3f80cf97-0a61-470b-8496-e8c4f9170ffc": {
"id": "3f80cf97-0a61-470b-8496-e8c4f9170ffc",
"identifiers": [
Expand Down Expand Up @@ -485139,6 +485154,21 @@
"c80fbbc2-ad04-4a3c-90a3-f94ebeb9f34e"
]
},
"c543366f-f4b2-4065-9e76-ee8dcf57053c": {
"id": "c543366f-f4b2-4065-9e76-ee8dcf57053c",
"identifiers": [
{
"use": "fasten-legacy-source-type",
"system": "fasten-legacy-source-type",
"value": "medicare"
}
],
"last_updated": "2024-01-09T11:12:44-08:00",
"name": "Medicare",
"endpoint_ids": [
"78c72c15-8913-4f06-8e5e-9a19bf967ea7"
]
},
"c5440eff-26b6-44f1-b92d-20cba7e1e479": {
"id": "c5440eff-26b6-44f1-b92d-20cba7e1e479",
"identifiers": [
Expand Down Expand Up @@ -495714,6 +495744,21 @@
"c80fbbc2-ad04-4a3c-90a3-f94ebeb9f34e"
]
},
"c8d2b4fe-cf6d-4a73-8758-2bacf975e2e7": {
"id": "c8d2b4fe-cf6d-4a73-8758-2bacf975e2e7",
"identifiers": [
{
"use": "fasten-legacy-source-type",
"system": "fasten-legacy-source-type",
"value": "humana"
}
],
"last_updated": "2024-01-09T11:12:44-08:00",
"name": "Humana",
"endpoint_ids": [
"74786814-5f93-4bbf-9e2b-07030081863a"
]
},
"c8d4e826-32c1-4832-bfeb-0c6c14a7444c": {
"id": "c8d4e826-32c1-4832-bfeb-0c6c14a7444c",
"identifiers": [
Expand Down
9 changes: 7 additions & 2 deletions definitions/models/lighthouse_endpoint_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package models
import (
"github.com/fastenhealth/fasten-sources/pkg"
"github.com/fastenhealth/fasten-sources/pkg/models/catalog"
"strings"
)

// LighthouseSource
Expand Down Expand Up @@ -76,14 +77,18 @@ func (def *LighthouseSourceDefinition) Populate(
// sourceDef.Hidden = true
//}

if !(def.PlatformType == pkg.PlatformTypeAnthem ||
def.PlatformType == pkg.PlatformTypeCigna ||
if !(def.PlatformType == pkg.PlatformTypeCigna ||
def.PlatformType == pkg.PlatformTypeNextgen ||
def.PlatformType == pkg.PlatformTypeVahealth) {
//most providers use the same url for API endpoint and Audience. These are the exceptions
def.Audience = def.Url
}

if def.PlatformType == pkg.PlatformTypeCareevolution || def.PlatformType == pkg.PlatformTypeAnthem {
//remove trailing slash for audience for CareEvolution & Anthem
def.Audience = strings.TrimSuffix(def.Audience, "/")
}

if def.PlatformType == pkg.PlatformTypeCerner {
def.IntrospectionEndpoint = "https://authorization.cerner.com/tokeninfo"
}
Expand Down

0 comments on commit 08df929

Please sign in to comment.