Skip to content

Paging with FetchPatientRecordAsync #1982

Answered by mbaltus
johnkwaters asked this question in Q&A
Discussion options

You must be logged in to vote

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.
Once you have the result Bundle, you can use the FhirClient.Continue method to page to the next(/previous/first/last) page.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@johnkwaters
Comment options

@johnkwaters
Comment options

@mbaltus
Comment options

Answer selected by johnkwaters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants