@sunbiz I have checked on the Bensen library and its functionality. It’s looking great. First I have setup the spark which is a per-requisit for the Bensen. Then I have looked at the core APIs. Currently Bensen provides capability to imports the bundles to the system. When I checked the google test data set, most of the sample data are resources. So we will require to convert resources into the bundle first before do any analysis. Because of that I have tried SMART test data set in https://github.com/smart-on-fhir/generated-sample-data/tree/master/STU-3/SMART. I was able to perform queries on top of data. So spark allow to query based on multiple attributes.
I imported data into the spark as follow.
from bunsen.bundles import load_from_directory, extract_entry
bundles = load_from_directory(spark, ‘/home/kavindya/generated-sample-data/STU-3/SMART’)
Then I ran follow code to extract patients
patients = extract_entry(spark, bundles, ‘patient’).cache()
Then operations of patients can be perform as follow.
This is mainly based on the python. But we can utilize the Java API to build anything top of it.
@sunbiz would you like to do any further testing on this?