fhir-data-pipes icon indicating copy to clipboard operation
fhir-data-pipes copied to clipboard

Incorrect column used

Open gdevanla opened this issue 2 years ago • 2 comments

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

gdevanla avatar May 25 '22 16:05 gdevanla