对不起,我是Visual Basic和SODA的新手。我正在尝试查询/导入数据
http://data.cms.gov/resource/qcn7-gc3g.json
添加到VB项目中。
例如,如果用户输入一个NPI编号,我希望应用程序自动填充名字和姓氏。我不需要后者的帮助,但我确实需要在与SODA API数据集对话方面的帮助。提前感谢!
发布于 2015-06-09 05:30:55
这是旧的,所以也许你已经向前看了,但是...
在你的帖子发布大约一个月后,我们发布了SODA.NET库,它也是一个Nuget包。这是一个在SODA之上编写的SDK,包含一些辅助方法和类。
示例代码是用C#编写的,但是在VB.NET中,您应该能够执行相同类型的操作
'client provides access to a given host (data.cms.gov)
Dim client as New SodaClient("data.cms.gov", "YOUR_APP_TOKEN")
'a resource reference provides access to that resource's data (using the 4x4)
'we are modeling each record in the resource as a Dictionary(Of String, Object)
Dim resource = client.GetResource(Of Dictionary(Of String, Object))("qcn7-gc3g")
'a SoqlQuery defines how you want to query a given resource
Dim queryForNPI as New SoqlQuery().Where("npi = 1801093968")
'execute a query and get the results back as a Dictionary(Of String, Object)
Dim results = resource.Query(Of Dictionary(Of String, Object))(queryForNPI)发布于 2014-07-04 06:55:27
我自己对Visual Basic不是很有经验,但似乎有一些关于如何从VB应用程序访问简单的REST API的很好的示例:
http://www.visualstudio.com/en-us/integrate/get-started/get-started-rest-basics-vsi.aspx
这是一个相当大的数据集,所以您需要通过NPI号直接查找医生,使用如下URL:
https://stackoverflow.com/questions/24538287
复制相似问题