We're updating the issue view to help you get more done. 

Improve robustness of phenotype specificity scorer

Description

One of our users had an issue where their entire instance became virtually unusable because PT was timing out when communicating with the Monarch specificity scorer. Because the scorer is queried in a controller on every patient record save, it became almost impossible to use the instance.

Can we please consider the following changes to make the scorer service more robust?

  • Prevent the score from being recalculated on every patient save. Only recalculate the specificity score in case it needs to be recalculated.

  • Set the timeout for querying the monarch service to be very small, something like 1 second.

Environment

None

Status

Assignee

Sergiu Dumitriu

Reporter

Daniel Gross

Labels

External issue ID

None

External issue ID

None

Components

Fix versions

Priority

Medium