Skip to content

Commit

Permalink
add _count of 200 when pulling fhir data
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaban committed Oct 6, 2020
1 parent 4e43790 commit 2a0f7d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fhir2es",
"version": "1.2.7",
"version": "1.2.8",
"description": "Reads and caches fhir data to elasticsearch",
"main": "reports.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,9 @@ class CacheFhirToES {
let url = URI(this.FHIRBaseURL)
.segment(orderedResource.resource)
.segment('_history')
.addQuery('_since', this.lastIndexingTime);
url = url.toString();
.addQuery('_since', this.lastIndexingTime)
.addQuery('_count', 200)
.toString();
let resourceData = [];
logger.info(`Getting data for resource ${orderedResource.name}`);
async.whilst(
Expand Down

0 comments on commit 2a0f7d7

Please sign in to comment.