Hi, for now the task is to look at the below and ask me questions on slack etc until you feel you understand it clearly. Then to give me as accurate a time estimate as you can to complete the task. I know we can’t be sure – but it will at least give the client an idea what he is looking at. I understand that this will take some of your time just to understand the task and find a time estimate – so please attach any hours taken in research to this task to bill them.
The purpose of this is to provide a second (electronic) system for patients to sign a contract. Currently they have to upload many pages to their ‘data’ tan – then their ‘traffic light’ contract status in the users panel goes green and they are enabled to buy hour long sessions.
In the new system they will EITHER be able to sign a docusign contract OR upload their data.
1. top of partials/patient/tab-documents.php – We need a section ‘Electronic Contract’ (this is the data tab in a user’s profile on the front end)
IF state is: Patient Contract Unsigned
Please sign your electronic contract here. Alternatively you can upload the documents below if they were signed in person on paper.
IF state is: Patient Contract Signed
Thank you for signing. Contract is available to view here
In this state, all three traffic lights returned by $usr->get_contract_status(); go green and the below data section does not display.
IF state is: All three traffic lights from current version of $usr->get_contract_status(); are set to green.
Electronic Contract section does not display.
2. We need another docusign contract.
– inc/docusign/class.docusign.php – in the documents section in the ‘patient’ element we need another array element – call it patient_data (id from docusign to be supplied)
– probably for testing purposes we’ll need another one in the development environment array of contracts also. Likely I’ll need to provide you with a way to login to docusign like I did for karan last time.
Then the test for part one to see if state is ‘Patient Contract Signed’ is: $needsToSign = $user->needs_to_sign_contract( ‘patient_data’ );
The code to get a contract signing link is: $current_user->get_sign_url(‘patient_data’)
The code to display an already-signed contract is: $user->get_contract_preview( ‘patient_data’ );
3. The contacts tab need another entry:
partials/shared/tab-rules.php
Hi, for now the task is to look at the below and ask me questions on slack etc until you feel you understand it clearly. Then to give me as accurate a time estimate as you can to complete the task. I know we can’t be sure – but it will at least give the client an idea what he is looking at. I understand that this will take some of your time just to understand the task and find a time estimate – so please attach any hours taken in research to this task to bill them.
The purpose of this is to provide a second (electronic) system for patients to sign a contract. Currently they have to upload many pages to their ‘data’ tan – then their ‘traffic light’ contract status in the users panel goes green and they are enabled to buy hour long sessions.
In the new system they will EITHER be able to sign a docusign contract OR upload their data.
1. top of partials/patient/tab-documents.php – We need a section ‘Electronic Contract’ (this is the data tab in a user’s profile on the front end)
IF state is: Patient Contract Unsigned
Please sign your electronic contract here. Alternatively you can upload the documents below if they were signed in person on paper.
IF state is: Patient Contract Signed
Thank you for signing. Contract is available to view here
In this state, all three traffic lights returned by $usr->get_contract_status(); go green and the below data section does not display.
IF state is: All three traffic lights from current version of $usr->get_contract_status(); are set to green.
Electronic Contract section does not display.
2. We need another docusign contract.
– inc/docusign/class.docusign.php – in the documents section in the ‘patient’ element we need another array element – call it patient_data (id from docusign to be supplied)
– probably for testing purposes we’ll need another one in the development environment array of contracts also. Likely I’ll need to provide you with a way to login to docusign like I did for karan last time.
Then the test for part one to see if state is ‘Patient Contract Signed’ is: $needsToSign = $user->needs_to_sign_contract( ‘patient_data’ );
The code to get a contract signing link is: $current_user->get_sign_url(‘patient_data’)
The code to display an already-signed contract is: $user->get_contract_preview( ‘patient_data’ );
3. The contacts tab need another entry:
partials/shared/tab-rules.php