Speech and Language Therapy

Hi,

First I’ll give you a quick overview of the Stroke Solutions site then I’ll describe the task.

Stroke Solutions has two types of user: Instructor and Patient.

Instructors and patients have to sign a contract before they can give/receive Physiotherapy. They also need to have admin user enable them in the dashboard then sign separate contracts before they can give telesession (teleconference) rehab.

Admin user can see them all on the strokesolutions.co.uk/users page and assign Instructors to Patients. Instructors then get a message telling them they’ve been assigned a patient and they can accept/decline.

Once an Instructor and Patient are assigned to eachother, the patient can purchase sessions via the /plans page. If they are enabled and have signed the contracts (contracts are signed via a docusign api…) then both face to face physiotherapy and telessions sessions are available for purchase.

Upon purchase, prices are calculated via the formula in the testing document. And using the stripe Connect API, the money is split between the Instructor and Stroke Solutions Admin. (how cool is that?!:)

There is then a scheduler that lets instructors timetable in sessions. This system sends auto-notifications via email and SMS to patients as well as keeping track of how many sessions are remaining. It then sends auto-warnings when people are running low on sessions.

That’s Stroke Solutions in a few paragraphs;-)

SLT Contracts: (Speech and Language therapy)
————–

SLT is offered via video conferencing so essentially works the same as the existing telesessions.

The most important point to note for our upcoming task is that currently Instructors are assigned one to one with patients. So if there is a patient who does both face to face and telesessions – but with two separate instructors, then the patient has to have two Stroke Solutions User accounts. There are many cases of this right now…

Our task is to implement a toggle in the Stroke Solutions admin dashboard for Instructors. (See shot ‘A’ for location on /profile/username/?action=edit – just edit account on the /users page) which enables/disables ‘Telesessions is SLT’ for that Instructor.

Once this is enabled, the telesessions contract will be replaced with a (supplied) SLT contract. There will be one for instructors and one for patients just as there is for the existing telesessions.

The Instructor contact becomes available to sign when admin enables telesessions in their dashboard. The patient contract appears in the patient’s telesessions tab when they are accepted by an instructor who is enabled for telesessions. Both should be the SLT contract rather than the oroginal Telesessions contract if admin has toggled the SLT toggle for that instructor!

Instructors will EITHER offer physiotherapy via telessessions OR SLT. They’ll never need to be able to do both. Patients sadly will need to have one account for telesessions and one for SLT if they want both. Potentially in a few cases they’ll even need 3 accounts if they want 2 different instructors for face to face vs tele physiotherapy!

Additionally over the coming week I will look through the various email notifications for telesessions and see where we need to add additional placeholders so that ‘telesessions’ becomes ‘speech and language sessions’ – probably we need to add these to the plans page and scheduler page also. I’ll details this for you with screenshots/urls.

Given Tom’s been waiting for this for a couple of months now with no progress, we’ve chosen this route as a quick(ish) was of implementing. I also figured your learning curve would be steep enough as it is so hopefully this is a good way to start. In future I would like to break the one to one link between instructors and patients so that people can have one account with one face to face physio, one telesessions physio and one speech/language instrutor potentially. But that task is for another day.

There is a staging site for stroke solutions on the same hosting ‘dev.strokesolutions.co.uk’ (I’ll give you a dashboard login) I think Vlado/Ivan have been deploying directly from github using some connection in the dashboard. I will ask Ivan again to give you access to the stroke solutions git repo so you can work with some similar system.

So essentially at this point I owe you:
git repo access
changes to placeholders for email notifications etc to make telesessions suddenly look like SLT.

I realise a call may be helpful. Tom will pay both of us by the hour for this – he needs it done ‘quick and dirty’ (his words, not mine;). Actually probably the site is too complicated to do anything dirty but we can at least use the shortcut I’ve proposed of having separate users for patients to do SLT rather than having a one to many relationship between instructors and patients (for now…). That should speed things up to his satisfaction I hope.

Any questions, need a call etc then let me know. Also, Ivan is available for code questions if you believe it’ll speed you up at any point.

Status:

Project:

Stroke Solutions

Priority:

Created On:

Jun 26, 2022

Created By:

robFOS

Hourly Logs
Date Hours Description Added By
No data found

Comments

  1. hiya – how’s this looking? Doable? (fingers crossed – gotta be better than rhythm passport i’m hoping;) – I realise you can’t give me any serious time estimate but if you had a wild guess it’d be helpful… I can mention it when I invoice him for 10hrs or whatever…

  2. Issues Found:

    1. Contract just whirrs for regular telessesions user
    Steps to reproduce:
    a) create new instructor user
    b) activate him for telesessions
    c) log in as instructor and got to contracts section. Then click to sign.
    Result:
    – blank page except for close box and whirring thing in middle
    Questions:
    – has this impacted live site also as changes were made in docusign?
    – do other stroke solutions contracts still work? I could not sign the regular stroke solutions contract for my instructor either

    2. Instructor Link exists to sign contract that does not change upon activating SLT
    Steps to reproduce:
    a) activate an instructor for SLT
    b) log in as that instructor and go to the ‘telesessions’ tab
    c) click on the option ‘here’ to go to the telesessions welcome page
    d) click to sign up for telesessions
    Result:
    – blank page as above – I presume because this link does not change
    Notes:
    – I believe this link is generated by a shortcode if that helps…

    3. Multiple warnings on Intructor dashboard
    Steps to reproduce:
    a) log in as instructor
    Result:
    – warning: attempt to read [roperty ID on null in…
    Questions:
    – is this only because we’re in debug mode (ie won’t show on live)?
    – does it matter? 🙂

    4. Multiple warnings on Patient Dashboard
    a) create new patient and don’t assign to anyone yet – just log in
    Result:
    – warning undefined array key ‘in person’ in…
    Questions:
    – nothing to do with us this one right? 🙂
    – do you think it matters or even shows on live without debug mode?

    5. Patient Link exists to sign contract that does not change upon activating SLT
    a) Create patient and connect to instructor signed up as SLT
    b) log in as patient and got to telesessions tab
    c) click to say you’re ready to sign up for telesessions (and go to the patient telesessions welcome page)
    d) click to sign contract for telesessions
    Result:
    – blank/close box whirring screen

    6. No ‘Contract’ tab between orders and transactions when you log in as patient
    Steps to reproduce:
    a) log in as rob@littleguybigheart.net,testpassword
    Notes:
    – have I missed something – I can see it’s there in your screenshot… ?

    1. Also, the ‘Instructor Assigned’ email needs disabling for Slt patients… I missed that one… Maybe best we get the rest fixed and live first as its not critical. Looking at the above again I’m wondering if a lot of it is ‘dev site’ related issues. But we have to know for sure…

  3. Dev site is bit different from live site because wp_Debug is set to true and lot of upload documents are not available.

    3 and 4 are related to wp_debug

    1 is occuring because a new instructor has to be approved by admin before any contract signing

    I will check the rest and get back to you

  4. I have added fixed for 1 and 6

    for 1 since it was using new demo account of docusign on dev site so all template documents were not uploaded which I had to take from live.

    6 was an actual bug for SLT in patients profile and has been fixed

    1. that’s awesome thanks. Tom’s agreed to try to get contracts/new email details for next week for us. So I’ll oheck monday morn. email notification for this comment arrived this time:)

    2. Hiya, I tested again and all looks fixed thankyou. Please ping me asap for when you can put it live (in a morning before I get up if possible so I can do a few checks). Only small thing I saw was when you’ve signed a contract as an instructor, the instructor telesessions welcome page says ‘contract signed thankyou’ instead of giving you a link to sign one. Whereas when you’ve signed as a patient (for slt at least – i haven’t tested upper limb) it just continues to offer you the possibility to sign. Probably not worth delaying going live but will need fixing at some point I think. I’ll attach a screenshot of logged in patient.

      OK Forget my bug reportand screenshot! It was me gettin, confused. It’s all good to go!!

      Screenshot_20220820-100420

Leave a Reply to robFOS Cancel reply

Your email address will not be published. Required fields are marked *


The maximum upload file size: 2 MB.
You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code.