-
Notifications
You must be signed in to change notification settings - Fork 24
Labels
Component: GatewayIssue/PR that handles connections, API gatewaysIssue/PR that handles connections, API gatewayshacktoberfestIssues suitable for hacktoberfestIssues suitable for hacktoberfest
Description
Description
Context
Possible Implementation
# Handle paginated results
def process_all_patients(results: Bundle):
for entry in results.entry:
yield entry.resource
# Get first page
results = await gateway.search(Patient, {"family": "Smith"}, "epic")
# Process all pages
for patient in process_all_patients(results):
print(f"Processing patient: {patient.id}")
# Get next page if available
if results.link:
next_url = next((link.url for link in results.link if link.relation == "next"), None)
if next_url:
# Handle next page...
passMetadata
Metadata
Assignees
Labels
Component: GatewayIssue/PR that handles connections, API gatewaysIssue/PR that handles connections, API gatewayshacktoberfestIssues suitable for hacktoberfestIssues suitable for hacktoberfest
Type
Projects
Status
Done