|
|
|
|
@ -74,7 +74,6 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
if (widget.mySelectedAssessment.selectedICD != null)
|
|
|
|
|
icdNameController.text = widget.mySelectedAssessment.selectedICD.code;
|
|
|
|
|
}
|
|
|
|
|
final screenSize = MediaQuery.of(context).size;
|
|
|
|
|
InputDecoration textFieldSelectorDecoration(
|
|
|
|
|
String hintText, String selectedText, bool isDropDown,
|
|
|
|
|
{IconData icon}) {
|
|
|
|
|
@ -143,24 +142,9 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
height: 55.0,
|
|
|
|
|
hintText:
|
|
|
|
|
TranslationBase.of(context).appointmentNumber,
|
|
|
|
|
//fontSize: 13.5,
|
|
|
|
|
// hintColor: Colors.black,
|
|
|
|
|
//hasLabelText: appointmentIdController.text != ''
|
|
|
|
|
// ? true
|
|
|
|
|
// : false,
|
|
|
|
|
//showLabelText: true,
|
|
|
|
|
//fontWeight: FontWeight.w600,
|
|
|
|
|
//readOnly: true,
|
|
|
|
|
isDropDown: false,
|
|
|
|
|
enabled: false,
|
|
|
|
|
controller: appointmentIdController,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// if (value == null)
|
|
|
|
|
// return TranslationBase.of(context)
|
|
|
|
|
// .emptyMessage;
|
|
|
|
|
// else
|
|
|
|
|
// return null;
|
|
|
|
|
// },
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
@ -284,25 +268,10 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
//hasLabelText:
|
|
|
|
|
// conditionController.text != '' ? true : false,
|
|
|
|
|
//showLabelText: true,
|
|
|
|
|
hintText: TranslationBase.of(context).condition,
|
|
|
|
|
//fontSize: 13.5,
|
|
|
|
|
//readOnly: true,
|
|
|
|
|
//suffixIcon: EvaIcons.arrowDown,
|
|
|
|
|
// hintColor: Colors.black,
|
|
|
|
|
//fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 2,
|
|
|
|
|
minLines: 1,
|
|
|
|
|
controller: conditionController,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// if (value == null)
|
|
|
|
|
// return TranslationBase.of(context).emptyMessage;
|
|
|
|
|
// else
|
|
|
|
|
// return null;
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
isDropDown: true,
|
|
|
|
|
enabled: false,
|
|
|
|
|
),
|
|
|
|
|
@ -324,8 +293,6 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
okFunction:
|
|
|
|
|
(MasterKeyModel selectedValue) {
|
|
|
|
|
setState(() {
|
|
|
|
|
// _selectedDiagnosisType =
|
|
|
|
|
// selectedValue;
|
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
|
.selectedDiagnosisType =
|
|
|
|
|
selectedValue;
|
|
|
|
|
@ -345,28 +312,12 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
//hasLabelText:
|
|
|
|
|
// typeController.text != '' ? true : false,
|
|
|
|
|
//prefixIcon: Icon(Icons.add),
|
|
|
|
|
//showLabelText: true,
|
|
|
|
|
hintText: TranslationBase.of(context).dType,
|
|
|
|
|
//fontSize: 13.5,
|
|
|
|
|
//readOnly: true,
|
|
|
|
|
// hintColor: Colors.black,
|
|
|
|
|
//suffixIcon: EvaIcons.arrowDown,
|
|
|
|
|
//fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 2,
|
|
|
|
|
minLines: 1,
|
|
|
|
|
enabled: false,
|
|
|
|
|
isDropDown: true,
|
|
|
|
|
|
|
|
|
|
controller: typeController,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// if (value == null)
|
|
|
|
|
// return TranslationBase.of(context).emptyMessage;
|
|
|
|
|
// else
|
|
|
|
|
// return null;
|
|
|
|
|
// },
|
|
|
|
|
),
|
|
|
|
|
if (isFormSubmitted &&
|
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
|
@ -381,7 +332,6 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
child: TextFields(
|
|
|
|
|
hintText: TranslationBase.of(context).remarks,
|
|
|
|
|
fontSize: 13.5,
|
|
|
|
|
// hintColor: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 18,
|
|
|
|
|
minLines: 5,
|
|
|
|
|
@ -518,12 +468,9 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
mySelectedAssessment.doctorName = doctorProfile.doctorName;
|
|
|
|
|
|
|
|
|
|
if (!isUpdate) {
|
|
|
|
|
// widget.mySelectedAssessmentList.add(mySelectedAssessment);
|
|
|
|
|
widget.addSelectedAssessment(mySelectedAssessment, isUpdate);
|
|
|
|
|
}
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// widget.changePageViewIndex(3);
|
|
|
|
|
}
|
|
|
|
|
}
|