update_tables.pl looks at request.created_at date and left-joins request_followup and pack_dispatch so all outreach requests included, not just when follow-up option and pack dispatch date decided; added session: Cookie to config file - was default for dev but not production; included status = reported to packs.tt request_status.match list - no requests now fail to match a pack status definition
patched pack_dispatches query to return 0 for NULL section_data_count to avoid tt undefined value error; patched _autoinflate_dates() to handle zero values (ie false but still defined); changed method of formatting year from String plugin - test script can't handle it; new test script to grep 'current pack status' content for all patients
new lab_sections_data table for update_tables; new get /login route so config loaded for webapp_name
10 years ago
README.md
Outreach patient access demo
============================
* user1@email.net : Walter MELON : Next assessment is due on dd.Mon.yyyy [today + 2d]
* user2@email.net : Justin CASE : A pack was sent on 21.May.2015 [xx days ago] but has not been received.
* user3@email.net : Orsen CART : A pack was received on 12.May.2015 and initial results indicate that no urgent action is required.
* user4@email.net : Hazel NUTT : A pack was received on 13.May.2015 and laboratory tests have been initiated.
* user5@email.net : Sandy SHORE : A pack was sent on dd.Mon.yyyy [3 days ago]
* user6@email.net : Rose PETAL : Return to clinic
Pack status rules:
IF request_status = complete
IF pack_due >= today
Next assessment is due on <date>
ELSIF pack_sent < today;
A pack was sent on <date> [<days> ago]
IF > 7 days
but has not been received. Please call us to discuss.
ELSIF pack_due AND NOT pack_sent
Pack was due for dispatch on <date> but has not been sent. Please call us to discuss.
ELSE # ? no pack_due date ?
<outcome eg return-to-clinic>
ELSIF flow AND outreach data
A pack was received on <date> and initial results indicate that no urgent action is required.
It may take three weeks to obtain all the laboratory test results but we will contact your GP
if there are any issues.
ELSIF request_status = new, screened or reported
A pack was received on <date> and laboratory tests have been initiated.
ELSE
** UNKNOWN RECORD STATUS - CHECK DETAILS **