FHIR2Dataset icon indicating copy to clipboard operation
FHIR2Dataset copied to clipboard

Bug in Google Colab

Open LaRiffle opened this issue 4 years ago • 0 comments

Description

When I run in G colab

import fhir2dataset as query
sql_query = "SELECT p.name.family, p.address.city FROM Patient AS p WHERE p.birthdate=1944 AND p.gender = 'female'"
query.sql(sql_query)

I get:

 10%|█         | 100/1000 [00:00<00:07, 115.14it/s]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-d4f3918b384c> in <module>()
      1 import fhir2dataset as query
      2 sql_query = "SELECT p.name.family, p.address.city FROM Patient AS p WHERE p.birthdate=1944 AND p.gender = 'female'"
----> 3 query.sql(sql_query)

2 frames
/usr/local/lib/python3.6/dist-packages/fhir2dataset/api_caller.py in get_all(self)
    188 
    189         urls = []
--> 190         for i in range(number_calls):
    191             urls.append(
    192                 (self.auth.token, f"{self.url}&_getpagesoffset={i*PAGE_SIZE}&_count={PAGE_SIZE}")

TypeError: 'numpy.float64' object cannot be interpreted as an integer

LaRiffle avatar Oct 26 '20 16:10 LaRiffle