-
Notifications
You must be signed in to change notification settings - Fork 49
Issues while trying to query on Observation resource #91
Comments
Issue Description: I am trying to explore the Bunsen API and trying to go explore the different functions using 'getting_started.ipynb'. Environment: Bunsen version: 4.7 Please note I have tried to run the examples from the bunsen-tutorial sample docker container and I am facing similar issues as well. Working: from bunsen.stu3.bundles import load_from_directory, extract_entry, write_to_database Load and cache the bundles so we don't reload them every time.bundles = load_from_directory(spark, r'C:\Users\Sumanta\Desktop\Datasets\synthea_sample_data\test',1) Get the observation and encountersobservations = extract_entry(spark, bundles, 'observation') from pyspark.sql.functions import col encounters.select('subject.reference', Not Working: from pyspark.sql.functions import explode codes = observations.select('subject', codes.limit(10).toPandas() Error: Py4JJavaError Traceback (most recent call last) E:\Programs\spark-2.4.5-bin-hadoop2.7\python\pyspark\sql\dataframe.py in toPandas(self) E:\Programs\spark-2.4.5-bin-hadoop2.7\python\pyspark\sql\dataframe.py in collect(self) E:\Programs\Anaconda\lib\site-packages\py4j\java_gateway.py in call(self, *args) E:\Programs\spark-2.4.5-bin-hadoop2.7\python\pyspark\sql\utils.py in deco(*a, **kw) E:\Programs\Anaconda\lib\site-packages\py4j\protocol.py in get_return_value(answer, gateway_client, target_id, name) Py4JJavaError: An error occurred while calling o2586.collectToPython. Driver stacktrace: |
@SumantaSa Hi, Is your problem solved? I am trying to extract_entry() for QuestionnaireResponse but it says that FHIR R4 doesn't support this resource.. Why is it so? |
No description provided.
The text was updated successfully, but these errors were encountered: