Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group call: Doctor Connect #6941

Closed
aparnacoronasafe opened this issue Dec 29, 2023 · 10 comments
Closed

Group call: Doctor Connect #6941

aparnacoronasafe opened this issue Dec 29, 2023 · 10 comments

Comments

@aparnacoronasafe
Copy link
Member

Is your feature request related to a problem? Please describe.
Karnataka State will be launching Zoom calls managed by the health department for discussing COVID cases across the state. These calls will be open during designated hours.

CARE doctor connect panel to allow users to join the zoom/gmeet/any other VC.

Describe the solution you'd like
Add a section above the "Doctors" section with one button for "Join the Group VC".

Can we hard code the button to only be active during the designated hours when the VC will be live?

NOTE: this is a COVID effort. Hence we need not develop it as a full feature where admins can configure the VC link and the timings for now. However, that may come up as a requirement if the model succeeds and is established as a permanent workflow.

@Ashesh3
Copy link
Member

Ashesh3 commented Jan 2, 2024

@aparnacoronasafe Hello, I have a question regarding the proposed Group VC feature. Could you please clarify at what level the group call link will be set up? Will it be at the facility level, location level, or state level? Will there be a single universal link for all? How would you like the overall structure to be?

@aparnacoronasafe
Copy link
Member Author

For now lets just do one universal link.

In the future there could be separate links for clusters. But we will build for it when the requirement comes

@Ashesh3 Ashesh3 self-assigned this Jan 3, 2024
@Ashesh3
Copy link
Member

Ashesh3 commented Jan 4, 2024

@gigincg as discussed, should we proceed with this feature by injecting JS through Cloudflare or developing the feature and enable it with a config key?

Copy link

Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, @aparnacoronasafe, This issue has been automatically marked as stale because it has not had any recent activity.

@github-actions github-actions bot added the stale label Jan 19, 2024
@Ashesh3
Copy link
Member

Ashesh3 commented Jan 22, 2024

Discussed to inject JS through Cloudflare to deliver this feature for KR instance.

@Ashesh3 Ashesh3 removed the stale label Jan 22, 2024
@Ashesh3
Copy link
Member

Ashesh3 commented Jan 23, 2024

JS to be injected - Version 1

function isWithinTimeRange() {
    var now = new Date();
    var start = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 8, 0, 0); // 8 AM
    var end = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 20, 0, 0); // 8 PM
    return now >= start && now <= end;
}

function addButton() {
    var targetElement = document.getElementById('doctor-connect-filter-tabs');
    if (targetElement && !document.querySelector('.doctor-connect-button') && isWithinTimeRange()) {
        var button = document.createElement('button');
        button.className = 'btn btn-primary m-1 mb-4 w-full hover:text-white doctor-connect-button';
        button.textContent = 'Join Group Video Call';

        button.onclick = function() {
            window.open('https://www.zoom.com', '_blank');
        };

        targetElement.parentNode.insertBefore(button, targetElement);
    }
}

var observer = new MutationObserver(function(mutations) {
    if (document.getElementById('doctor-connect-home-doctor')) {
        addButton();
    }
});

observer.observe(document.body, { childList: true, subtree: true });

image

@rithviknishad rithviknishad moved this from Triage to Up Next in Care Jan 23, 2024
Copy link

github-actions bot commented Feb 7, 2024

Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, @aparnacoronasafe, This issue has been automatically marked as stale because it has not had any recent activity.

@github-actions github-actions bot added the stale label Feb 7, 2024
@Ashesh3
Copy link
Member

Ashesh3 commented Feb 7, 2024

Update: Feature deployment is tested and working. Waiting for the Zoom link before making it live.

@Ashesh3 Ashesh3 removed the stale label Feb 7, 2024
Copy link

Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, @aparnacoronasafe, This issue has been automatically marked as stale because it has not had any recent activity.

@github-actions github-actions bot added the stale label Feb 22, 2024
@Ashesh3
Copy link
Member

Ashesh3 commented Apr 16, 2024

Closing as the requested feature is created and tested. Waiting for the Zoom link before it's deployed live.

@Ashesh3 Ashesh3 closed this as completed Apr 16, 2024
@github-project-automation github-project-automation bot moved this from Up Next to Done in Care Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants