Nikolai Ryzhikov, CTO of Health Samurai and lead of the FHIR Storage and Analytics track. Nikolai talks about the FHIR-first development of healthcare applications and the differences between using FHIR for new healthcare solutions versus interoperability
30. 1/16/2019 fhir meetup
https://niquola.github.io/sffhir-2019-slides/?print-pdf#/ 30/33
FHIR & SQL FOR RESCUEFHIR & SQL FOR RESCUE
join storage & analytic track
SELECT DISTINCT(p.id), p.resource#>'{name,0}'
FROM patient p
JOIN observation o ON o.resource#>>'{subject,id}' = p.id
WHERE (o.resource @> '{"code": {"coding": [{"code": "72166-2"}
AND ((o.resource @> '{"value": {"CodeableConcept": { "coding
OR (o.resource @> '{"value": {"CodeableConcept": { "cod
AND (extract(year from age(now(), (p.resource->>'birthDate')
AND (p.resource->>'gender' = 'male'); -- patient gender is m