smart-on-fhir / growth-chart-app

Other
67 stars 98 forks source link

Check the status property on Observations to ensure only final and amended data are being displayed within the application #32

Closed zplata closed 7 years ago

zplata commented 7 years ago

Currently, the growth chart application will read through all Observations returned from FHIR and display them within the application accordingly on the chart and graph view. However, if an Observation is marked with a status of "entered-in-error" or even "cancelled", we should not expect to pull in these data points into the application.

To better filter through the Observations during data retrieval, there should be a conditional to check on the status property of an Observation value. One such check is for the status on an Observation value to be final or amended, as these values would most likely be accurate to display within the growth chart. The rest of the Observations that don't match those status values would then be ignored.