0

如何从 AppOrchard 获取 Auth Token?有没有比下面更简单/更好的方法?

" https://apporchard.epic.com/interconnect-aofeb18prd-oauth/authorize?response_type=code&redirect_uri=https://localhost:8080&client_id=myID&state=abc123 ";

背景:我有一个来自 AppOrchard 的客户端 ID,并且有一个正在测试的客户端应用程序(独立启动),它能够从 Epic FHIR Sandlot 获取所需的数据。但是 OAuth2 测试没有收到 Auth Token 的问题。

FHIR 客户端应用程序(Windows 桌面应用程序,.NetCore,而不是 Web 应用程序)我正在使用 Visual Studio Express C# 2017 和 2019 以及用于 FHIR DSTU2 的 NuGet 包(Core、ElementModel、序列化、Support.Poco、FhirPath)。

对于 Epic 的 OAuth2,我使用的是 Systen.Net.Http.HttpClient: HttpClient MyHttpClient = new HttpClient();

对于 Sandlot 数据,我使用了 HL7.Fhir.Rest.FhirClient: getting Bundles,然后我循环遍历数据。公共 FhirClient 客户端 = new Hl7.Fhir.Rest.FhirClient(@" https://open-ic.epic.com/FHIR/api/FHIR/DSTU2 ");

4

1 回答 1

0

看起来你做了很多正确的步骤,但是很难说清楚你的客户 ID 设置等的更多细节。

我建议联系 apporchard@epic.com 电子邮件地址 - 他们可以帮助您深入了解您的特定问题,使用您的特定客户 ID,并让您与 Epic 的合适人员/专家建立联系。

希望有帮助,丹妮尔

于 2020-03-11T21:54:23.133 回答