FHIR 客户端 - 连接到 NPHIES FHIR - OBB 服务器

问题描述 投票:0回答:2

如何连接 NPHIES FHIR OBB(测试)服务器以便提交资格/预授权/索赔等。

许多公司构建了与 FHIR 服务器配合使用的工具。

  1. Firely - .Net Framework / .Net Core - 链接
  2. HAPI-JAVA-链接
hl7-fhir hapi
2个回答
0
投票

那些正在使用 Firely - .NET SDK 的人,请单击此链接查看文档。

为了将请求发送到 NPHIES OBB SERVER,您需要传递用户名、密码和内容类型

username: xxxxx 
password: yyyyy
content-type: application/fhir+json

检查以下代码以向 NPHIES - OBB FHIR 服务器发送请求

using (var handler = new HttpClientEventHandler())
                {
                    handler.OnBeforeRequest += (sender, e) =>
                    {
                        e.RawRequest.Content.Headers.ContentType.CharSet = "";
                        e.RawRequest.Content.Headers.Remove("Content-Type"); // "{application/json; charset=utf-8}"
                        e.RawRequest.Content.Headers.Add("Content-Type", "application/fhir+json");
                        e.RawRequest.Content.Headers.Add("Username", xxxx);
                        e.RawRequest.Content.Headers.Add("Password", yyyy);
                    };

                    handler.OnAfterResponse += (sender, e) =>
                    {
                    };

                    using (FhirClient fhirClient = new FhirClient(
                          nphiesServerURL, new FhirClientSettings() { PreferredFormat = ResourceFormat.Json},handler))
                    {
                    
                    
                        Bundle responseBundle = fhirClient.Transaction(bundle);
                        
                        
                    }
                }

0
投票

嗨,我需要有关上述主题的帮助。你能帮我吗

© www.soinside.com 2019 - 2024. All rights reserved.