|
|
|
@ -235,7 +235,7 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> implements
|
|
|
|
model.complaintsControllerError = '';
|
|
|
|
model.complaintsControllerError = '';
|
|
|
|
model.medicationControllerError = '';
|
|
|
|
model.medicationControllerError = '';
|
|
|
|
model.illnessControllerError = '';
|
|
|
|
model.illnessControllerError = '';
|
|
|
|
if (complaintsController.text.isNotEmpty && illnessController.text.isNotEmpty) {
|
|
|
|
if (complaintsController.text.isNotEmpty && complaintsController.text.length > 25 && illnessController.text.isNotEmpty && illnessController.text.length >25) {
|
|
|
|
await model.postSubjectServices(
|
|
|
|
await model.postSubjectServices(
|
|
|
|
patientInfo: widget.patientInfo,
|
|
|
|
patientInfo: widget.patientInfo,
|
|
|
|
complaintsText: complaintsController.text,
|
|
|
|
complaintsText: complaintsController.text,
|
|
|
|
@ -252,10 +252,14 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> implements
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
if (complaintsController.text.isEmpty) {
|
|
|
|
if (complaintsController.text.isEmpty) {
|
|
|
|
model.complaintsControllerError = TranslationBase.of(context).emptyMessage;
|
|
|
|
model.complaintsControllerError = TranslationBase.of(context).emptyMessage;
|
|
|
|
|
|
|
|
} else if(complaintsController.text.length < 25) {
|
|
|
|
|
|
|
|
model.complaintsControllerError = TranslationBase.of(context).chiefComplaintLengthErrorMsg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (illnessController.text.isEmpty) {
|
|
|
|
if (illnessController.text.isEmpty) {
|
|
|
|
model.illnessControllerError = TranslationBase.of(context).emptyMessage;
|
|
|
|
model.illnessControllerError = TranslationBase.of(context).emptyMessage;
|
|
|
|
|
|
|
|
} else if(illnessController.text.length < 25) {
|
|
|
|
|
|
|
|
model.illnessControllerError = TranslationBase.of(context).chiefComplaintLengthErrorMsg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (medicationController.text.isEmpty) {
|
|
|
|
if (medicationController.text.isEmpty) {
|
|
|
|
|