Paging with FetchPatientRecordAsync #1982
-
I found that when using FetchPatientRecordAsync, not all records are being returned, and this is because if you do the same $everything call manually, it returns more than one page, Is there a way increase the count parameter on the query that gets issued, for instance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I don't think the FetchPatientRecord method has an overload to specify the _count. If you need that, you would need to set up the call using the more generic InstanceOperation and a Parameters resource: var input = new Parameters();
input.Add("_count", new Integer(1000));
var patientRecord = c.InstanceOperation(new ResourceIdentity("Patient/[id]"), "everything", input, useGet:true); That said, the server may not allow a client to increase the count, so you'll have to test this. |
Beta Was this translation helpful? Give feedback.
I don't think the FetchPatientRecord method has an overload to specify the _count. If you need that, you would need to set up the call using the more generic InstanceOperation and a Parameters resource:
That said, the server may not allow a client to increase the count, so you'll have to test this.
Once you have the result Bundle, you can use the FhirClient.Continue method to page to the next(/previous/first/last) page.