Skip to content

Commit

Permalink
updating unitedhealthcare sandbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Nov 13, 2023
1 parent 3475f5e commit 72e349c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions clients/internal/platform/unitedhealthcare.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ func GetSourceClientUnitedhealthcare(env pkg.FastenLighthouseEnvType, ctx contex
return sourceClientUnitedhealthcare{baseClient}, err
}

// Operation-PatientEverything uses non-standard endpoint - https://build.fhir.org/operation-patient-everything.html
// Operation-PatientEverything is not supported - https://build.fhir.org/operation-patient-everything.html
// Manually processing individual resources
func (c sourceClientUnitedhealthcare) SyncAll(db models.DatabaseRepository) (models.UpsertSummary, error) {
bundle, err := c.GetResourceBundle("Patient")
if err != nil {
return models.UpsertSummary{UpdatedResources: []string{}}, err
}
return c.SyncAllByPatientEverythingBundle(db, bundle)
supportedResources := append(c.GetUsCoreResources(), []string{"MedicationDispense"}...)
return c.SyncAllByResourceName(db, supportedResources)
}
4 changes: 2 additions & 2 deletions definitions/internal/platform/unitedhealthcare.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ func GetSourceUnitedhealthcare(env pkg.FastenLighthouseEnvType, clientIdLookup m
sourceDef.UserInfoEndpoint = "https://sandbox.authz.flex.optum.com/userinfo"

sourceDef.Issuer = "https://sandbox.fhir.flex.optum.com/R4"
sourceDef.Scopes = []string{"fhirUser", "openid", "patient/Condition.read", "patient/Coverage.read", "patient/Encounter.read", "patient/ExplanationOfBenefit.read", "patient/Immunization.read", "patient/MedicationDispense.read", "patient/MedicationRequest.read", "patient/Observation.read", "patient/Patient.read", "patient/Procedure.read", "public/Endpoint.read", "public/HealthcareService.read", "public/InsurancePlan.read", "public/Location.read", "public/Network.read", "public/Organization.read", "public/OrganizationAffiliation.read", "public/Practitioner.read", "public/PractitionerRole.read"}
sourceDef.Scopes = []string{"fhirUser", "openid", "patient/Condition.read", "patient/Coverage.read", "patient/Encounter.read", "patient/ExplanationOfBenefit.read", "patient/Immunization.read", "patient/MedicationDispense.read", "patient/MedicationRequest.read", "patient/Observation.read", "patient/Patient.read", "patient/Procedure.read", "profile"}
sourceDef.GrantTypesSupported = []string{"authorization_code"}
sourceDef.ResponseType = []string{"code"}
sourceDef.ResponseModesSupported = []string{"query"}
sourceDef.ResponseModesSupported = []string{"fragment", "query"}
sourceDef.Audience = "https://sandbox.fhir.flex.optum.com/R4"
sourceDef.CodeChallengeMethodsSupported = []string{"S256"}

Expand Down

0 comments on commit 72e349c

Please sign in to comment.