QOL: Patient Manager Package performance improvements
This commit is contained in:
parent
c16d8b6e91
commit
47bc23c029
3 changed files with 33 additions and 14 deletions
|
|
@ -29,6 +29,10 @@ class PatientProfile extends StatefulWidget {
|
|||
|
||||
class _PatientProfileState extends State<PatientProfile> {
|
||||
bool _isLoadingInitialData = true;
|
||||
late final PatientInfo _patientInfo;
|
||||
late final PatientConsultation _patienConsultation;
|
||||
late final PatientDocuments _patientDocuments;
|
||||
late final PatientClaimOrStatement _patientClaimOrStatement;
|
||||
|
||||
Future<void> _loadInitialData() async {
|
||||
setState(() {
|
||||
|
|
@ -75,6 +79,10 @@ class _PatientProfileState extends State<PatientProfile> {
|
|||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_patientInfo = PatientInfo();
|
||||
_patienConsultation = PatientConsultation();
|
||||
_patientDocuments = PatientDocuments();
|
||||
_patientClaimOrStatement = PatientClaimOrStatement();
|
||||
_loadInitialData();
|
||||
}
|
||||
|
||||
|
|
@ -151,13 +159,12 @@ class _PatientProfileState extends State<PatientProfile> {
|
|||
}
|
||||
|
||||
List<Widget> getToolBody() {
|
||||
List<Widget> toolBodies = [
|
||||
PatientInfo(),
|
||||
PatientConsultation(),
|
||||
PatientDocuments(),
|
||||
PatientClaimOrStatement(),
|
||||
return [
|
||||
_patientInfo,
|
||||
_patienConsultation,
|
||||
_patientDocuments,
|
||||
_patientClaimOrStatement,
|
||||
];
|
||||
return toolBodies;
|
||||
}
|
||||
|
||||
List<String> getToolTitle() {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,14 @@ class PatientSetUp extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _PatientSetUpState extends State<PatientSetUp> {
|
||||
late final PatientSetupForm _patientSetupForm;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_patientSetupForm = PatientSetupForm();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MihPackage(
|
||||
|
|
@ -57,10 +65,9 @@ class _PatientSetUpState extends State<PatientSetUp> {
|
|||
}
|
||||
|
||||
List<Widget> getToolBody() {
|
||||
List<Widget> toolBodies = [
|
||||
PatientSetupForm(),
|
||||
return [
|
||||
_patientSetupForm,
|
||||
];
|
||||
return toolBodies;
|
||||
}
|
||||
|
||||
List<String> getToolTitle() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue