December 6, 2022

📖 Provenance resources now included in Data Marts

Builders can now analyze Provenance resources, which provide metadata about the context in which the information in a FHIR resource was obtained. They describe the author organization responsible for the information, thereby enabling the assessment of the quality, reliability, and trustworthiness of that data.

For example, suppose you want to identify which locations have most contributed data on your patient population. The query below will retrieve an ordered result set.

select
	location, -- where the activity occurred, if relevant 
  contained, -- additional information (i.e. address) about the contained location
  count(*) 
from provenance 
group by 1,2 
order by 3 desc ;