Support displaying non-numerical observation results #453
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Right now Fasten is only trying to display values from valueString and valueQuantity in bar chart form. Since the bar chart only displays numerical values, string and boolean values are not displayed requiring the user to dig into the individual observation through the debug json.
This PR adds a new ObservationVisualization component that will switch between a bar chart and a table based on the value type of the observation.
This PR also adds support for more Observation value types.
Fixes #360
Also fixes a few minor unlikely but possible bugs in the bar chart:
Not sure if an observation value of
> x
is an actual thing, but if it is, it should display properly now.Changes
valueQuantity
,valueString
,valueInteger
,valueBoolean
,valueCodeableConcept
,dataAbsentReason
valueRange
,valueRatio
,valueSampledData
,valueTime
,valueDateTime
,valuePeriod
,component
values