chronic-care / mcc-project

MCC eCare Plan project planning and documentation
Apache License 2.0
0 stars 1 forks source link

Display of history of results for Tests/Labs and Vitals - CQL #441

Closed kbertodatti closed 1 month ago

kbertodatti commented 3 months ago

As a patient, when I click on the card for one lab, it will expand to show the 10 most recent readings.

Update CQL logic to provide a list of historical summaries. Disclaimer (History from that provider)

drdavec commented 1 month ago

CQL is updated and tested, history is now included within the ObservationSummary for both labs and vitals.

export interface ObservationSummary { DisplayName: string, ConceptName: string, Date?: string, ResultText: string, ResultValue?: number, ResultUnits?: string, ReferenceRange?: string, Interpretation?: string, Flag?: boolean, Performer?: string, Notes?: string[], Provenance?: ProvenanceSummary[], LearnMore?: string, History?: ObservationHistory[] }

export interface ObservationHistory { Date?: string, ResultText: string, }

drdavec commented 1 month ago

Tested by adding the history list at the bottom of each lab or vital in the display. First screenshot from MELD CarePlanning data, second screenshot from Epic Sandbox

Screenshot 2024-09-05 at 5.57.53 PM.png Screenshot 2024-09-05 at 6.00.34 PM.png