Skip to content

Commit

Permalink
RT-1614 (mme) Pain Score Timeline (#260)
Browse files Browse the repository at this point in the history
* Handled the optional values

* RT-1614: Resolve the comment on PR
  • Loading branch information
yashpmohod authored Nov 4, 2024
1 parent 03d343e commit 7767bbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/ngx-charts-on-fhir/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@elimuinformatics/ngx-charts-on-fhir",
"version": "6.0.0",
"version": "6.0.1",
"description": "Charts-on-FHIR: A data visualization library for SMART-on-FHIR healthcare applications",
"license": "Apache-2.0",
"homepage": "https://elimuinformatics.github.io/charts-on-fhir",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export type SimpleObservation = {
effectiveDateTime: string;
valueQuantity: {
value: number;
unit: string;
code: string;
unit?: string;
code?: string;
};
} & Observation;
export function isSimpleObservation(resource: Observation): resource is SimpleObservation {
Expand Down Expand Up @@ -71,7 +71,7 @@ export class SimpleObservationMapper implements Mapper<SimpleObservation> {
],
scale: merge({}, this.linearScaleOptions, {
id: layerName,
title: { text: [layerName, resource.valueQuantity.code] },
title: { text: [layerName, resource.valueQuantity?.code].filter(isDefined) },
}),
annotations: resource.referenceRange
?.map((range) => this.referenceRangeService.createReferenceRangeAnnotation(range, layerName, layerName))
Expand Down

0 comments on commit 7767bbc

Please sign in to comment.