ebmdatalab / outliers

repo for outlier detection work
MIT License
0 stars 0 forks source link

Link to organisation members - not the organisation #26

Closed brianmackenna closed 2 years ago

brianmackenna commented 2 years ago

Currently the hyperlinks from an organisation page link to the analyse page to display it compared to their peers (South Tyneside CCG example)

This will always show them as extreme outlier by definition and it is not giving them much extra information on the landing page (it does give time series which might be useful).

I propose that we generate the link to it takes them to the analyse page where it displays their members so in the South Tyneside example above the landing page shows the CCG user immediately that the outlier relates to a single practice.

@richiecroker you may have thoughts on preferred link.

NB I don't think the feature of displaying members works at every organisation level which is referred to in this issue https://github.com/ebmdatalab/openprescribing/issues/2281 (i'm not proposing we do any work on #2281 right now - only implement it for orgs where feature currently works)

Jongmassey commented 2 years ago

This should be relatively easy to do with the hierarchical structure that exists to support the table of contents. Is it the case the link should always go one layer down (i.e STP->CCG, CCG->PCN, PCN->Practices) or should it always just go to practice (or bespoke rules of each layer)?

brianmackenna commented 2 years ago

It actually only works for ccg->practice. probably to faffy to amend it just for this level but not the others?

Jongmassey commented 2 years ago

Not overly so