Skip to Main Content
Interweave Portal - Ideas

This portal provides an open platform for user feedback and product change requests. Anyone can add an idea and remain as a Guest, but please consider signing up so that others can see who has created the ideas!

Note: this is a public facing web portal, any text here can be viewed by anyone over the internet, so please consider carefully the content you wish to share and please do not post anything of a sensitive nature.

Status Future consideration
Created by Toby Page
Created on Nov 18, 2024

Remove one type of resource from a data provider based on another

[Amended to remove solution]

For our Local Authority maturity work we’re developing the Flags resource for sharing. However, the persistence of a Flag needs to based on the date of the Social Care Assessment resource, as below:

Remove Flags for patients whose most recent assessments are over a year old

To support this business rule (as resources become older than a year), a mechanism is needed that can refer to other resources rather than the one it’s acting on. This could possibly be done by the local data provider but this buries logic in each organisation rather than being easily configurable (the culling service currently does this with Episode of Care resources).

The logic would need to be:

  • Get all patients whose last assessment was over a year ago.

  • Retrieve all flag resources associate with patients from the first query.

  • Delete those flags.

  • Attach files
  • Admin
    Marc Baulk
    Jun 5, 2025

    Hi @Toby Page

    Spent a little bit of time looking at this, and have a few questions.

    I believe Steve has touched on this in his comment, but how can we be sure all of the Flags associated with a person derive from their social care assessment? If some don't and we wipe all flags one year on from the last social care assessment date, we could be removing important information (please let me know if I've misunderstood this).

    If the above is a valid concern, do we need to consider how we might preserve other flags by targeting flags specifically associated with the social care assessments?


  • Stephen Handley
    Nov 20, 2024

    Suggest the retrieval/deletion of flags for these patients should have the option of being based on some other rule (e.g. date or code/category of flag). For example a Safeguarding Flag may have been recently added by MASH team, however we may not want that Flag to be deleted just because the last assessment was over a yar ago

  • Admin
    Marc Baulk
    Nov 20, 2024

    Marked as awaiting feedback as the workshop identified more work that needs to be done to understand this better.