简体   繁体   English

FHIR:根据最后一个返回患者资源列表

[英]FHIR: return a list of patient resource based on last

Need some advice and help from you! 需要您的一些建议和帮助!

Two questions. 两个问题。

  1. how can I retrieve a list of patient resources with 30 _counts and sorted by last modified date? 如何获取30个计数的患者资源列表,并按上次修改日期排序? I don't have any searching parameters such as identifier, family and given; 我没有任何搜索参数,例如标识符,家庭和给定;

  2. since my application in browser is a single page application, when the user scroll down and all the first 30 patients have been shown, I will make another call to get the next 30 patients. 由于我在浏览器中的应用程序是单页应用程序,因此当用户向下滚动并显示所有前30位患者时,我将再次致电以获取接下来的30位患者。 I don't need the first 30 patients and just want the records from 31 to 60. What parameters should I used in this paging search? 我不需要前30名患者,只需要31至60的记录。在此分页搜索中应该使用哪些参数? Do we have something like "?_count=30& _page=2 ". 我们是否有类似“?_count = 30& _page = 2 ”的内容。 Similarly, if I need the page 100, I don't want the servers sending me the first 99 pages. 同样,如果我需要第100页,则我不希望服务器向我发送前99页。

Thanks in advance. 提前致谢。 Autorun 自动运行

GET [baseUrl]/Patient?_count=30&sort=_lastUpdated GET [baseUrl] /患者?_count = 30&sort = _lastUpdated

The response will be a Bundle. 响应将是一个捆绑包。 Look at the Bundle.link with a Bundle.link.relation of "next". 用Bundle.link.relation为“ next”查看Bundle.link。 The Bundle.link.url will be the URL to use to get the next "page" of content. Bundle.link.url将是用于获取内容的下一个“页面”的URL。 The format of the URL is undefined and will be server-specific. URL的格式是不确定的,并且将是服务器特定的。

Be aware that _count only constrains the base resource. 请注意,_count仅限制基本资源。 If you query Patient and do a _revinclude on Observation, you'll get 30 patients - but you'll also get all the observations for all 30 of those patients - which could be 10k+ rows in your result set - so be careful with _include and _revinclude. 如果查询“患者”并在观察值上执行_revinclude,您将获得30位患者-但您还将获得所有30位患者的所有观察值-结果集中可能有10k +行-因此请谨慎使用_include和_revinclude。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM