fhir-data-pipes
fhir-data-pipes copied to clipboard
Incorrect column used
The condition here should reference value.codeableConcept.coding
should be replaced with valueCoding
, since we flatten value.codeableConcept.coding
in _flatten_obs
function. If we do not use that flattened version, then we end up dealing with incompatible types during comparison.
https://github.com/GoogleCloudPlatform/openmrs-fhir-analytics/blob/d68e7d858bedf8d07b97fa45057cfd7e0809dc60/dwh/query_lib.py#L112-L113