chronic-care / mcc-project

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

MyCarePlanner 2.4.0 displaying empty / phantom Home Blood Pressure reading from SDS #472

Open mattStorer opened 1 week ago

mattStorer commented 1 week ago

Loading MyCarePlanner 2.4.0 in POC for the OHSU POC patient Andrew Fhir, we see the following:

image

It appears that this 127/89 reading correlates to the identified resource coming in from the Observation call to epicmobile.ohsu.edu for code=http://loinc.org/72076-3 (Blood pressure home reading), which makes sense.

What does not make sense is the Home Blood Pressure reading above it, which purports to come from the SDS.

Note that no readings have been shared for this user to the SDS, so there aren't any resources in the SDS for this user, aside from those required for application bootstrapping, i.e. the two Patient resources and one Linkage.

Searching network logs for where this might come from, I find this query:

image

So it looks like MyCarePlanner is querying the SDS for resources (I thought it wasn't supposed to do that? Isn't MyCarePlanner intended to only read resources from third-party endpoints directly?)

Curiously, the response to this query contains no entries, so it doesn't actually return any resources.

Where is this empty Home Blood Pressure reading coming from?

And why is MyCarePlanner reading resources from the SDS at all, isn't it supposed to only display resources received directly from third-party endpoints?

kbertodatti commented 6 days ago

@drdavec to update. Don't show card if there are no values.

drdavec commented 6 days ago

I added logic into CQL to omit any Home BP that do not have systolic or diastolic values. This should hide the "phantom" values.

But I'm guessing that Matt was testing with Cerner or other third-party that had a Home BP Observation, but since the systolic and diastolic values are only using OSHU Epic codes, no values from other endpoints.

Still does not explain the "SDS" source, but could be related to the extra Linkage issues. Believe this is resolved by one or both issues fixes.

mattStorer commented 5 days ago

@drdavec - I'm not actually testing with Cerner or any other third-party endpoints. This is seen after logging into the MyCarePlanner app and just clicking on tabs.

Loading for Andrew Fhir, who has no data in the SDS:

image

Tabbing over to look at Vitals, I see this:

image

kbertodatti commented 4 days ago

Dave committed to develop on tuesday. @swmuir