-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAH-1093 : Tele-consultation feature merge (#149)
* Gracil/Hamza | Add 'Add Teleconsultation' button to the appointment plan component * CON-19 | Gracil - Added Join Teleconsultation button on the appointment popup * [Kaleeaswari] Deploying app to the environment * [Kaleeaswari] Deploying app to the environment - specifying correct project name * [Kaleeaswari] Deploying app to the environment - moving dist to appropriate folder * [Kaleeaswari] Deploying app to the environment - moving dist to appropriate folder * [Kaleeaswari] Deploying app to the environment - Extracting test to separate task * SM, DL: templated/standardised octo CLI commands * Temporary test to see if changes are reflected in app on env * Revert temp test * [vishal] add rename isTeleconsulationEnabled to teleconslutation * Zafar/Natheesh | #40, Added teleconsulting in list view. Co-authored-by: Natheeshkumar <natheeshece@gmail.com> * Zafar/Natheesh | #40, Fixed join teleconsultation visibility Co-authored-by: Natheeshkumar <natheeshece@gmail.com> * Zafar/Natheesh | #97, Added copy link button in list-view Co-authored-by: Natheeshkumar <natheeshece@gmail.com> * Zafar/Natheesh | #97, Added copy link button in calender-view Co-authored-by: Natheeshkumar <natheeshece@gmail.com> * Zafar/Natheesh | #97, Added title for copy link button. Co-authored-by: Natheeshkumar <natheeshece@gmail.com> * Zafar/Natheesh | #97, Refactored class name and padding for copy-clip button Co-authored-by: Natheeshkumar <natheeshece@gmail.com> * WIP Appointment UI - Separate field for Teleconsultation - pairing with @ana Karolina * Appointment UI - Separate field for Teleconsultation - Clean up code - pairing with Ana Karolina * Appointment UI - Separate field for Teleconsultation - Clean up code - Pairing with Ana Karolina * Fix Appointment Type not appearing when editing existing appointment * Open Patient summary when clicking Join Teleconsultation * Natheesh/Monica | #112 Fixed check/uncheck Teleconsultiation checkbox Signed-off-by: Natheeshkumar <natheeshkumar.r@thoughtworks.com> * Natheesh/Monica | #112 Fixed the SQL Exception Signed-off-by: natheeshsunway <natheeshece@gmail.com> Co-authored-by: monicarajendran <monicarajendran96@gmail.com> * Natheesh/Monica | #119 Added Email warning message on saving appointment Co-authored-by: monicarajendran <monicarajendran96@gmail.com> Signed-off-by: natheeshsunway <natheeshece@gmail.com> * Natheesh/Monica | #119 Refactored Email warning message showing based on teleconsultation Co-authored-by: monicarajendran <monicarajendran96@gmail.com> Signed-off-by: natheeshsunway <natheeshece@gmail.com> * make join teleconsult button enable for only scheduled meetings * Removed usage of "::set_env" from github actions * Praveena/Swati : navigation control fix * Resolve review comments * remove https from constants * Praveena | Removed github actions before merging to Bahmni product * swati|praveena: Implementation of review comments * make CopyLink internationalisation Co-authored-by: kaleeaswari <skaleeas@thoughtworks.com> Co-authored-by: Steve M <smorris@thoughtworks.com> Co-authored-by: Deedee <deedee> Co-authored-by: Zafar <momin.zafaraabid@thoughtworks.com> Co-authored-by: Natheeshkumar <natheeshece@gmail.com> Co-authored-by: Carlos Rigo <carlos.rigocano@thoughtworks.com> Co-authored-by: Natheeshkumar <natheeshkumar.r@thoughtworks.com> Co-authored-by: monicarajendran <monicarajendran96@gmail.com> Co-authored-by: Mahesh Ippili <maheshippili@Maheshs-MacBook-Pro.local> Co-authored-by: swatigogia2020 <swati.gogia@thoughtworks.com>
- Loading branch information
1 parent
6e387da
commit 44a8727
Showing
24 changed files
with
348 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
ui/react-components/components/AppointmentType/AppointmentType.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from "react"; | ||
import Label from "../Label/Label.jsx"; | ||
import {checkbox, checkboxContainer, container, appointmentTypeLabel} from "./AppointmentType.module.scss"; | ||
import classNames from "classnames"; | ||
import PropTypes from "prop-types"; | ||
import {injectIntl} from "react-intl"; | ||
import Checkbox from 'rc-checkbox'; | ||
import 'rc-checkbox/assets/index.css'; | ||
import {TELECONSULTATION_APPOINTMENT} from "../../constants"; | ||
|
||
const AppointmentType = props => { | ||
|
||
const {onChange, teleconsultation, isTeleconsultationDisabled } = props; | ||
|
||
return (<div className={classNames(container)}> | ||
<span className={classNames(appointmentTypeLabel)}><Label className={classNames(appointmentTypeLabel)} translationKey="APPOINTMENT_TYPE_LABEL" | ||
defaultValue="Appointment Type"/></span> | ||
<div className={classNames(checkboxContainer)} data-test-id="add-tele-consultation"> | ||
<Checkbox | ||
defaultChecked={false} | ||
className={classNames(checkbox)} | ||
id="teleconsultation-checkbox" | ||
onChange={onChange} | ||
checked={teleconsultation} | ||
name={TELECONSULTATION_APPOINTMENT} | ||
disabled={isTeleconsultationDisabled} | ||
/> | ||
<Label forInput="teleconsultation-checkbox" translationKey="TELECONSULTATION_APPOINTMENT_LABEL" | ||
defaultValue="Teleconsultation" | ||
disabled={isTeleconsultationDisabled}/> | ||
</div> | ||
</div>) | ||
}; | ||
|
||
AppointmentType.propTypes = { | ||
onChange: PropTypes.func, | ||
appointmentType: PropTypes.string, | ||
isTeleconsultationDisabled: PropTypes.bool | ||
}; | ||
|
||
export default injectIntl(AppointmentType); |
Oops, something went wrong.