|
|
@ -382,6 +382,10 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
if (model.listOfDiagnosisType.length == 0) {
|
|
|
|
if (model.listOfDiagnosisType.length == 0) {
|
|
|
|
await model.getMasterLookup(MasterKeysService.DiagnosisType);
|
|
|
|
await model.getMasterLookup(MasterKeysService.DiagnosisType);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// todo return it back when service is fixed.
|
|
|
|
|
|
|
|
// if (model.listOfICD10.length == 0) {
|
|
|
|
|
|
|
|
// await model.getMasterLookup(MasterKeysService.ICD10);
|
|
|
|
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
builder: (_, model, w) =>
|
|
|
|
builder: (_, model, w) =>
|
|
|
|
AppScaffold(
|
|
|
|
AppScaffold(
|
|
|
@ -431,47 +435,43 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: screenSize.height * 0.070,
|
|
|
|
height: screenSize.height * 0.070,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: model.listOfDiagnosisCondition !=
|
|
|
|
onTap: model.listOfDiagnosisType != null
|
|
|
|
null
|
|
|
|
? () {
|
|
|
|
? () {
|
|
|
|
MasterKeyDailog dialog = MasterKeyDailog(
|
|
|
|
MasterKeyDailog dialog = MasterKeyDailog(
|
|
|
|
list: model.listOfDiagnosisType,
|
|
|
|
list: model.listOfDiagnosisCondition,
|
|
|
|
selectedValue: widget
|
|
|
|
selectedValue: widget.mySelectedAssessment
|
|
|
|
.mySelectedAssessment
|
|
|
|
.selectedDiagnosisCondition,
|
|
|
|
.selectedICD,
|
|
|
|
okText: TranslationBase
|
|
|
|
okText: TranslationBase.of(context).ok,
|
|
|
|
.of(context)
|
|
|
|
okFunction:
|
|
|
|
.ok,
|
|
|
|
(MasterKeyModel selectedValue) {
|
|
|
|
okFunction: (
|
|
|
|
setState(() {
|
|
|
|
MasterKeyModel selectedValue) {
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
|
|
|
|
.selectedDiagnosisCondition =
|
|
|
|
|
|
|
|
selectedValue;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
showDialog(
|
|
|
|
|
|
|
|
barrierDismissible: false,
|
|
|
|
|
|
|
|
context: context,
|
|
|
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
|
|
|
|
return dialog;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
child: TextField(
|
|
|
|
|
|
|
|
decoration: textFieldSelectorDecoration(
|
|
|
|
|
|
|
|
"Condition",
|
|
|
|
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
.selectedDiagnosisCondition != null
|
|
|
|
.selectedICD = selectedValue;
|
|
|
|
? widget.mySelectedAssessment
|
|
|
|
});
|
|
|
|
.selectedDiagnosisCondition
|
|
|
|
},
|
|
|
|
.nameEn
|
|
|
|
);
|
|
|
|
: null,
|
|
|
|
showDialog(
|
|
|
|
true),
|
|
|
|
barrierDismissible: false,
|
|
|
|
enabled: false,
|
|
|
|
context: context,
|
|
|
|
),
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
),
|
|
|
|
return dialog;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
child: TextField(
|
|
|
|
|
|
|
|
decoration: textFieldSelectorDecoration(
|
|
|
|
|
|
|
|
"Name / ICD",
|
|
|
|
|
|
|
|
widget.mySelectedAssessment.selectedICD !=
|
|
|
|
|
|
|
|
null
|
|
|
|
|
|
|
|
? widget.mySelectedAssessment
|
|
|
|
|
|
|
|
.selectedICD.nameEn
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
true),
|
|
|
|
|
|
|
|
enabled: false,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 10,
|
|
|
|
height: 10,
|
|
|
|