Skip to Main Content

R4 APIs (Millennium)

Announcement

For information related to the Oracle Partner Network (OPN) Industry Healthcare Track please visit our OPN Industry Healthcare Program page.

For specific questions related to Oracle Partner Network (OPN), please contact Partner Assistance.

Millennium FHIR and non-FHIR API Specifications and Supporting Documents can be found HERE on docs.oracle.com
Soarian FHIR API Specifications and Supporting Documents can be found HERE on docs.oracle.com.

Limit functionality

Scott JosephsonAug 31 2025

Hello.

I am using the Python library fhirpy to make Search calls to the Cerner Sandbox. Here is an example of one of the calls:

conditions_raw = fhir.resources("Condition").search(
             patient=patient_id, category="encounter-diagnosis", clinicalStatus="active", lastUpdated=f"ge{(now - years_past).isoformat()}"
            ).limit(10).fetch()

My goal is to return only 10 records. However, this is not working. The function is acting like I did not use it. So, in other words, it is behaving as if I were running instead:

conditions_raw = fhir.resources("Condition").search(
             patient=patient_id, category="encounter-diagnosis", clinicalStatus="active", lastUpdated=f"ge{(now - years_past).isoformat()}"
            ).fetch_all()

This looks to be an issue with Cerner FHIR. I am claiming that because the limit() function DOES work when retrieving data from Epic FHIR servers.

Has anyone else run into this issue? Is there a query parameter I can pass in to achieve the limit functionality, which I am not seeing?

Thanks.

Scott

Background Information:

Failure to provide answers will impact our ability to respond in a timely and effective manner
Developer questions:

Are you an OPN Member? Yes / No
Have you signed up to be in the Healthcare Developer Track? Yes / No
Are you a registered Code Program member? Yes / No
Does your App have a presence on the Oracle Healthcare App Marketplace? Yes / No

Are you developing on behalf of an Oracle Health client? No

Expected Result: a maximum of 10 search results

Actual Result: more than the maximum search results

This post has been answered by Scott Josephson on Sep 2 2025
Jump to Answer
Comments
Post Details
Added on Aug 31 2025
10 comments
35 views