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 Awaiting feedback
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
  • Stephen Handley
    Reply
    |
    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
    Reply
    |
    Nov 20, 2024

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