lzim / teampsd

Team PSD is using GitHub, R and RMarkdown as part of our free and open science workflow.
GNU General Public License v3.0
9 stars 23 forks source link

wk3 oct_epic: ANDON Appointment Supply DAX Code in 3.0 Release of Team (AGG) Care not consistent w/Prior Releases #2743

Closed dlkibbe closed 1 year ago

dlkibbe commented 2 years ago

1. Add description:

Team data in Aggregate Module for blue team needs review and validation. Appointment Supply numbers in Agg module are considerably lower than in the individual modules of Care Coordination (CC), Psychotherapy (Psy) or Medication Management (MM). The team suggested the Appointment Supply (AS) showing in Agg was less than actual. Screenshots for AS for CC, MM, Psy and Agg for comparison of AS numbers. The AS definitions from the "Descriptions" and "Details" section of the Data UI are pasted below for reference: DETAILS in the Data UI indicate: Appointment Supply (median and 75th percentile) – These estimates were calculated from the weekly visit counts by the patient cohort with the team over one year. The model uses the 75th percentile. DESCRIPTIONS in the Data UI indicate: Appointment Supply (median and 75th percentile) – An estimate of the median total weekly number of medication management appointments available with this team. The estimate is calculated using the volume of medication management visits completed with he team over one year. (appt/wk)

Use of data in SIM UI will begin October 17, 2022.

<< Paste screenshots here>>

AS-CC-Alexandria AS-Psy-Alexandria AS-MM-Alexandria AS-Agg-Alexandria
  1. When was the bug discovered?
    • 9-24-2022 during prep session with Klocek, Nappi, Askerlund, and Kibbe.
  2. Is this an invidivual or shared world?
    • not in SIM UI, Data UI
  3. What is the name of the experiment?
    • Not an experiment, Data UI only
lzim commented 2 years ago

@emilymetcalf114 & @lzim discussed at support_workflow wk4 sept_epic

Next Steps:

User Persona

emilymetcalf114 commented 2 years ago

First step: @emilymetcalf114 looked at a comparison MTL blue site (Tuesdays at 11am PST) on the morning on 9/29 and witnessed the same effect, where Agg Care appt supply #'s are lower and do not add up to appt supplies of MM, CC, Psy, etc. image Psy: image image image

emilymetcalf114 commented 2 years ago

@emilymetcalf114 compared with another MTL blue site (Thursdays at 11am PST) on 9/30 am and witnessed the same effect, where Agg Care appt supply #'s are lower and do not add up to appt supplies of MM, CC, Psy, etc.

image image

Psy:

image image
emilymetcalf114 commented 2 years ago

Definitions for appt supply are different between CC, MM, etc. and in the Agg care model. Here are the definitions in the Data_UI: CC, MM & Psy:

image

Agg Care:

image image
emilymetcalf114 commented 2 years ago

Documentation from mtl.how/demo:

lzim commented 1 year ago

Thanks for reviewing docuementation @emilymetcalf114 💪🏽 It's very helpful to have it all in one place, and it confirms what I expected was happening. But, wanted to double-check our documentation to confirm, before confusing any learners/facilitators.

In MTL time for these variables will always be in weeks because the clinical decision-makers told us that was the most useful period of time for upgrading team care decisions.

But, for unit checking we have to review and confirm the validity of any unit conversions: unit/wk. For example, appt/wk is not hrs/wk.

From the sim image

From your post above image

So, the conclusion is that the documentation needs to be clearer that:

CC, MM, PSY are using appt/wk for appointment supply (75%ile, etc.) in any given week and Team (AGG) care is using hrs/wk for appointment supply (see equation from documentation above),

So, the next step would be:

image

@emilymetcalf114 Does that make sense to you?

FYI: @dlkibbe Does this make sense to you?

emilymetcalf114 commented 1 year ago

I pulled up the archived MTL 2.0 data_ui documentation for how Agg appointment supply was calculated, and the definition is identical to what we see in the current 3.0 documentation on the data_ui.

lzim commented 1 year ago

@epearman We talked about Story A2 R01 as a top research priority for oct_epic. Once we establish your access, reviewing this operations bug would be helpful!

We want to double-check the estimation procedures for appointment supply between (CC, MM, PSY) Care modules and the Team (AGG) Care module.

FYI: @emilymetcalf114

ghost commented 1 year ago

I see two different things going on.

1) CPT codes used to define the encounter type (CC, MM, and PSY) in the AGG model vs. the individual CC, MM and PSY models. See SQL code here:


  1. Formula to convert from appts./week to hrs./week in the AGG model. See DAX code here.

Emily's Recommendation for next steps:

  1. Review CPT codes used to categorize CC, MM, and PSY in both the individual and the AGG models in the SQL scripts.
  2. Review the formula to convert median appointment supply from appts./week to hrs./week in the DAX scripts.
dlkibbe commented 1 year ago

@emilymetcalf114 @lzim Thank you @epearman for the information above. @jwklocek and I shared the information in our team discussion. Questions below from QIICs:

The following are CPT codes for Psychotherapy: 90832, 90834, 90837 (90832 is included in care coordination, although we have certainly seen this used for short session psychotherapy like follow-up CBT-I sessions) 90839 (psychotherapy for crisis - It looks like this is called care coordination as well)

The couples/ family psychotherapy codes are missing (90846, 90847). Maybe this was intentional, but it could impact extent to which data reflects what is happening given some sites do a fair amount of evidence based couples psychotherapy?

The following are CPT codes for Psychotherapy (add on) when it is conducted with a Medication Management Visit. It seems that if you include these with PSY, it will muddy the waters with Medication Management. It would be helpful to understand why a decision was made to include these in PSY.
90833 90836 90838

Carla tried clicking on the SQL code link and was sent to a page with an error message indicating page not found so she is unable to assess the CPT codes for Agg Visit Details.

Can we have explanation of why 99201-99205 are assigned to Intake? Related to intake, it does appear that Intake is capturing codes 90791 and 90792 so it seems strange that data UI TeamAgg for ALX PCT team is showing only 1.25 appt supply yet dataEnc shows them using this code.

emilymetcalf114 commented 1 year ago

During Live MTL prep session today, @emilymetcalf114 and @epearman met with facilitators:

Why is intake true missed appt % = 0 for all teams? @epearman looked at dax/sql code and saw it was written to be set to 0 (not calculated). This is also inline with the legacy code, not sure the decision behind this.

Further Clarification: We do not upload the missed appointment rate intake parameters into the SIM UI. So this variable is set to 0 on purpose.

lzim commented 1 year ago

@lzim discussed briefly with @emilymetcalf114 @epearman wk3 oct_epic support_workflow

DECISION: wk4 oct_epic will track functional requirements on #2753 so this can be closed

  • [x] DECISION this is a feature request: Cross-ref #2753 documentation issue task card where we will improve the documentation of these definitions. e.g.,
  • [x] Describe Missed Appointment for Intake to 0 and provide rationale. #crossref #2773
  • [x] ... [list task "functional requirements"] on documentation card #crossref #2753
ghost commented 1 year ago

Scoping of Bug:

ghost commented 1 year ago

I have made the appropriate DAX code changes on a new personal version of Data UI - Master on power BI desktop.

Next Steps:

ghost commented 1 year ago

I cannot connect my test reports to the PTSD OHMO database through the Gateway connection in the testing pipeline. Gateway access to PTSD_OMHO must be granted Per-user through LEAF (add user to gateway).

ghost commented 1 year ago

The testing Pipeline is currently ready for Review. Crossref #2764 QA Test Card.

emilymetcalf114 commented 1 year ago

1st test: Monday Blue MTL live team: NEW RESULTS using NEW code in TEST Pipeline HERE (followed by updated results in PROD using OLD code below): image

For easy comparison, here are the updated results in PROD using OLD code image

File for sim attached: Mon_Blue_MTL_data for sim_TEST.xlsx

emilymetcalf114 commented 1 year ago

FYI @epearman Test #2: Thurs Blue MTL live team: NEW RESULTS using NEW code in TEST pipeline HERE (Followed by updated results in PROD using OLD code below): Appointment Supply increased across all services image

For easy comparison, here are the updated results in PROD using OLD code: image

@lzim File for sim attached: Thurs_Blue_MTL_data for sim_TEST.xlsx

emilymetcalf114 commented 1 year ago

FYI @epearman I updated the clinic selections for the second test (above). The numbers match how we would expect them to now.

For documentation:

Next Steps:

emilymetcalf114 commented 1 year ago

@lzim The new test data file for Thursday's MTL live session prep tomorrow has been uploaded to the sim for you.

lzim commented 1 year ago

@epearman Can you check off any functional requirement or task list boxes above that you believe are done from all the updates above? Or is this current?

It looks like we might be ready to move on to #2753 and #2509 💥

ghost commented 1 year ago

Crossref #2764 QA Test Card.

ghost commented 1 year ago
lzim commented 1 year ago

@epearman Testing in the Sim UI now and will update #2764 QA Test Card when done.

ghost commented 1 year ago

This issue has been closed: