We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a11ef5 commit 0afa071Copy full SHA for 0afa071
jupyterhealth_client/_client.py
@@ -159,12 +159,8 @@ def _fhir_list_api_request(
159
while True:
160
new_records = False
161
requests += 1
162
- for entry in r:
163
- # entry seems to always be a dict with one key?
164
- if isinstance(entry, dict) and len(entry) == 1:
165
- # return entry['resource'] which is ~always the only thing
166
- # in the list
167
- entry = list(entry.values())[0]
+ for result in r["results"]:
+ entry = result["resource"]
168
if entry["id"] in seen_ids:
169
# FIXME: skip duplicate records
170
# returned by server-side pagination bugs
0 commit comments