Nikolai Ryzhikov, PhD is the CTO of Health Samurai and lead of the FHIR Storage and Analytics track.
Nikolai will speak about the Development of FHIR-based systems. How to store FHIR resources in a database efficiently so that you can use FHIR data for application development, analytics, and data mining.
28. 6/6/2019 fhir db
https://niquola.github.io/fhir-devdays-2019-slides/?print-pdf#/ 28/41
FHIRBASE/AIDBOX SEARCHFHIRBASE/AIDBOX SEARCH
search expressions in db
SELECT * FROM patient
WHERE
timestamp(res->>'birthDate') > '1950'
AND timestamp(res->>'birthDate') > '1950'
AND extract(res, 'identifier.where(system = "mrn"))' = '1234
36. 6/6/2019 fhir db
https://niquola.github.io/fhir-devdays-2019-slides/?print-pdf#/ 36/41
SQL ON FHIRSQL ON FHIR
SELECT subject.reference,
AVG(value.quantity.value) avg_hdl
FROM observation o,
UNNEST(o.code.coding) c
WHERE c.system = 'http://loinc.org' AND
c.code = '2085-9' AND
o.effective.datetime > '2017'
GROUP BY subject.reference