首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在单次请求中从合成( $everything )中获取多个患者的syntheticmass.mitre.org?

如何在单次请求中从合成( $everything )中获取多个患者的syntheticmass.mitre.org?
EN

Stack Overflow用户
提问于 2022-01-20 09:39:44
回答 1查看 75关注 0票数 0

Synthea (syntheticmass.mitre.org)是否支持在一个请求中获得多个专利?$everything资源?

我尝试了以下的一些排列,但我无法让它返回多个病人在同一请求。

请求(POST)

https://syntheticmass.mitre.org/v1/fhir/$export?apikey=API_KEY_GOES_HERE

https://syntheticmass.mitre.org/v1/fhir?apikey=API_KEY_GOES_HERE

https://syntheticmass.mitre.org/v1/fhir/Bundle?apikey=API_KEY_GOES_HERE

https://syntheticmass.mitre.org/v1/fhir/Bundle/$export?apikey=API_KEY_GOES_HERE

请求体

代码语言:javascript
复制
{
  "resourceType": "Bundle",
  "id": "bundle-request-simplesummary",
  "type": "batch",
  "entry": [
    {
      "request": {
        "method": "GET",
        "url": "/Patient/6f7acde5-db81-4361-82cf-886893a3280c?apikey=<API_KEY_GOES_HERE>"
      }
    },
    {
      "request": {
        "method": "GET",
        "url": "/Patient/6f7acde5-db81-4361-82cf-886893a3280c?apikey=<API_KEY_GOES_HERE>"
      }
    }
  ]
}

响应(未找到资源)

代码语言:javascript
复制
{
    "resourceType": "OperationOutcome",
    "text": {
        "status": "generated",
        "div": "<div><h1>Operation Outcome</h1><table border='1'><tr><td style='font-weight: bold;'>error</td><td>[]</td><td><pre>The requested resource was not found on this server.</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
    },
    "issue": [
        {
            "severity": "error",
            "code": "not-found",
            "details": "The requested resource was not found on this server."
        }
    ]
}

响应(无法在服务器上创建资源)

代码语言:javascript
复制
{
  "issue": [
    {
      "code": "security",
      "details": {
        "text": "permission_denied"
      },
      "diagnostics": "Permission healthcare.fhirResources.create denied on resource projects/synthea/locations/us-central1/datasets/201902/fhirStores/synthetic-mass (or it may be malformed or not exist)",
      "severity": "error"
    }
  ],
  "resourceType": "OperationOutcome"
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-01-28 21:05:50

SyntheticMass不支持批量数据导出。

如果需要所有数据,请从下载部分下载数据:https://synthea.mitre.org/downloads

资料来源:我负责这个系统。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70783870

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档