HIFIS 4 Logo - With Transparency HIFIS Community
⌘K
Mailing List
Home
Discussion
People
Events
HIFIS Changelog
Known Issues & Ideas
HIFIS Improvement Project
Homelessness Learning Hub
HIFIS Demo Site
Latest Version of HIFIS
Slack Channel
Mailing List
Votes
KN
Kristina Nickel
5 months ago
👍
LS
Laura Stanford
5 months ago
👍
ED
Emily Daniels
5 months ago
👍
AB
Amber Baines
5 months ago
👍
CS
Christie Scott
5 months ago
👍
SM
Sophie McPhail
5 months ago
👍
ME
Mariebeth Enverga
5 months ago
👍
AR
Ali Ryder
5 months ago
👍
Ideas
AR
Ali Ryder 🧑‍💼 Staff
over 2 years ago
Complete

Case end date is not mandatory

When changing the case status from Open to Closed (any), the End Date appears but is not mandatory. You can save the case status as closed without providing an end date. This causes a disconnect in the data; cases may appear ongoing (no end date) but with a status indicating they are closed. 

Note: the End Date field USED to be mandatory, and then it stopped being mandatory at some point.

  • image
8
🧙‍♂️Case Management 4.0.60.5 4.0.60.4 4.0.60.3 4.0.60.2 4.0.60.1 4.0.59 🐛Bug
👍 KN LS ED AB 8
Comments

Please log in or register to post a comment
AR
Ali Ryder 🧑‍💼 Staff

Here's the script from HICC to correct your data:

-- Setting this variable to 1 will set the new end date to all cases that have a status of closed (either directly or through custom case states). Default: 0

DECLARE @PerformUpdate BIT = 0

-- Setting this to a valid date (YYYY-MM-DD) will set the case closures to to indicated value when PerformUpdate is 1. Default: '2025-12-03'

DECLARE @NewEndDate DATE = '2025-12-03'

-- Setting this to 0 will include all cases in the SELECT statement (does not affect the UPDATE statement). Default: 1

DECLARE @ShowOnlyMissingEndDate BIT = 1

-- Setting this to 1 will call a second SELECT query in the execution that reveals the number of cases that need a new end date set. Default: 0

-- This count should be 0 after running this script with PerformUpdate = 1.

DECLARE @ShowCaseCountNeedingUpdate BIT = 0

IF @PerformUpdate = 1

BEGIN
UPDATE c
SET c.DateCaseClosed = @NewEndDate
FROM HIFIS_Cases c
JOIN HIFIS_CaseStateTypes cst ON cst.ID = c.CaseStateTypeID
WHERE (c.CaseStateTypeID IN (2,3) OR (cst.RollUpID IS NOT NULL AND cst.RollUpID IN (2,3)))
AND c.DateCaseClosed IS NULL
END

SELECT CaseID, CaseState, RollupCaseState, DateCaseOpened, DateCaseClosed, NeedsEndDateYN
FROM (
SELECT c.CaseID, c.CaseStateTypeID, cst.NameE CaseState, cst.RollUpID, rollupState.NameE RollupCaseState, c.DateCaseOpened, c.DateCaseClosed,
CASE WHEN (c.CaseStateTypeID IN (2,3) OR (cst.RollUpID IS NOT NULL AND cst.RollUpID IN (2,3)))

AND c.DateCaseClosed IS NULL THEN 'Y' ELSE 'N' END AS NeedsEndDateYN
FROM HIFIS_Cases c
JOIN HIFIS_CaseStateTypes cst ON cst.ID = c.CaseStateTypeID
LEFT JOIN HIFIS_CaseStateTypes rollupState ON rollupState.ID = cst.RollUpID
) cases
WHERE (@ShowOnlyMissingEndDate = 1 AND NeedsEndDateYN = 'Y')
OR @ShowOnlyMissingEndDate = 0;

IF @ShowCaseCountNeedingUpdate = 1

BEGIN
SELECT COUNT(*) CasesNeedingUpdate
FROM HIFIS_Cases c
JOIN HIFIS_CaseStateTypes cst ON cst.ID = c.CaseStateTypeID
WHERE (c.CaseStateTypeID IN (2,3) OR (cst.RollUpID IS NOT NULL AND cst.RollUpID IN (2,3)))
AND c.DateCaseClosed IS NULL
END

Reply 2mo ago
CS
Christie Scott

@Ali Ryder ​This doesn't update the services table too?

😔 AR
Reply 2mo ago
AR
Ali Ryder 🧑‍💼 Staff

@Christie Scott ​haha I hadn't noticed that...

Reply 2mo ago
CS
Christie Scott

@Ali Ryder ​I wrote a similar script to close case management with no activity in x days. It respects the status if there was one set, and sets the outcome to goals not met if there is no existing outcome/status. I had thought updating both the services and cases table was needed based on examining the behavior of HIFIS when you close them manually, so I am a little surprised at this lol

Reply 2mo ago
AR
Ali Ryder 🧑‍💼 Staff

Fixed in 4.0.61.1

Reply 5mo ago
AR
Ali Ryder 🧑‍💼 Staff

Note that this affects activity/inactivity, so if you're finding a lot of active clients that shouldn't be active, maybe this is why

Reply 5mo ago
HIFIS 4 Logo - With Transparency HIFIS Community
Customer service
Terms and conditions
Copyright © 2026 ACRE Consulting