Skip to content

Commit

Permalink
Release 1.5.0 (#179)
Browse files Browse the repository at this point in the history
* Complete Profile Feature  (#170)

* Add new words to app_en.arb and app_de.arb.
Adjust app_en.arb and app_de.arb.

* Create new words in app_de.arb an app_en.arb.
Create updateEntry methode in backend.dart.
Complete the profile feature in profile_screen.dart.

* Create _fetchPatientFuture to call only once, if the state is initiated, and not every time the state is updated.

* Create getEntryDirect in backend.dart.
Adjust profile_screen.dart.

* Delete unused getEntryDirect methode in backend.dart.

* Improving the performance

* Bugfixes with Special character and Loading the Data in Frontend

* Execute perform tests

* Adjust profile_screen.dart

* Fetch the data every time

* Add new words in app_en.arb and app_de.arb.
Set Error/Successes Messages for all Fields.

* refactor the code (first round)

* refactor the code (second round)

* refactor the code (third round)

* refactor the code (fourth round)

* Add measureTime for testing

* refactor the code (5. round)

* The 'Birthday' field in 'PatientData' accepts birth dates up to 100 years ago. (#175)

* Study nurse Config Screen Persistence (#174)

* Bugfix: Study nurse Config Screen Persistence.

* Add comments.

* Format the Code.

* Bugfix: first page don't cached entries when you click back

* Save password (#172)

* commented code removed

* flutter secure storage introduced

* flutter secure storage class added

* checkbox implemented

* Localizations

* Lint warnings resolved

* Refactor the Code (first round)

* Refactor the Code (second round)

* Refactor the Code (third round)

---------

Co-authored-by: AzureAD\FaysalQurabi <[email protected]>

* Comma input is directly replaced by period. (#176)

* Comma input is directly replaced by period.

* ReplaceCommaFormater stored in an own file

* replace comma with period

* inputFormatters edited

* redundant file deleted (#177)

* Update yaml file (#178)

---------

Co-authored-by: mustiwebp <[email protected]>
  • Loading branch information
FaysalSolutions and mustiwebp authored Aug 25, 2023
1 parent 258eb6c commit 393c3c9
Show file tree
Hide file tree
Showing 40 changed files with 828 additions and 271 deletions.
14 changes: 0 additions & 14 deletions lib/catalog_of_items.dart

This file was deleted.

31 changes: 22 additions & 9 deletions lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,26 @@
"svO2": "zentralvenöse Sauerstoffsättigung",
"af": "Atemfrequenz",
"lungProtectiveVentilation70p": "Lungenprotektive Beatmung > 70%",
"myProfile": "Mein Profil",
"newPassword": "Neues Passwort",
"newPasswordRepeat": "Neues Passwort wiederholen",
"changePassword": "Passwort ändern",
"passwordSavedSuccessMessage": "Neues Passwort wurde erfolgreich gespeichert!",
"passwordMismatchErrorMessage": "Neue Passwörter stimmen nicht überein!",
"strongPassword": "Ihr Passwort muss aus Groß-, Kleinbuchstaben, Sonderzeichen, Zahlen und insgesamt aus mindestens 8 Zeichen bestehen!",
"passwordSavedFailureMessage": "Neues Passwort konnte nicht gespeichert werden!",
"allFieldsMustbeFilled": "Alle Felder müssen ausgefüllt sein!"
"myProfile": "Mein Profil",
"newPassword": "Neues Passwort",
"newPasswordRepeat": "Neues Passwort wiederholen",
"changePassword": "Passwort ändern",
"passwordSavedSuccessMessage": "Neues Passwort wurde erfolgreich gespeichert!",
"passwordMismatchErrorMessage": "Neue Passwörter stimmen nicht überein!",
"strongPassword": "Ihr Passwort muss aus Groß-, Kleinbuchstaben, Sonderzeichen, Zahlen und insgesamt aus mindestens 8 Zeichen bestehen!",
"passwordSavedFailureMessage": "Neues Passwort konnte nicht gespeichert werden!",
"allFieldsMustbeFilled": "Alle Felder müssen ausgefüllt sein!",
"changeTitle":"Anrede ändern",
"changeFirstname": "Vorname ändern",
"changeLastname": "Nachname ändern",
"changeAddress": "Adresse ändern",
"changePhoneNumber": "Telefonnummer ändern",
"changeEmail": "E-Mail ändern",
"unknownError": "Unbekannter Fehler",
"updateFailed": "Aktualisierung fehlgeschlagen",
"updateSuccess": "Aktualisierung erfolgreich",
"passwordChangeSuccessful": "Passwort erfolgreich geändert!",
"passwordChangeLogoutMessage": "Sie wurden automatisch abgemeldet. Bitte melden Sie sich erneut an.",
"ok": "OK",
"rememberMe": "Angemeldet bleiben?"
}
124 changes: 88 additions & 36 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -982,42 +982,6 @@
"connectionError": "Connection error",
"@connectionError": {
"description": "Connection error"
},
"myProfile": "My profile",
"@myProfile": {
"description": "My profile"
},
"newPassword": "New Password",
"@newPassword": {
"description": "New Password"
},
"newPasswordRepeat": "Repeat new Password",
"@newPasswordRepeat": {
"description": "Repeat new Password"
},
"changePassword": "Change Password",
"@changePassword": {
"description": "Change Password"
},
"passwordSavedSuccessMessage": "The new password has been successfully saved!",
"@passwordSavedSuccessMessage": {
"description": "The new password has been successfully saved!"
},
"passwordMismatchErrorMessage": "The new passwords do not match!",
"@passwordMismatchErrorMessage": {
"description": "The new passwords do not match!"
},
"strongPassword": "The new password must consist of lowercases, uppercases, special characters and at least 8 characters!",
"@strongPassword": {
"description": "The new password must consist of lowercases, uppercases, special characters and at least 8 characters!"
},
"passwordSavedFailureMessage": "New password could not be saved!",
"@passwordSavedFailureMessage": {
"description": "New password could not be saved!"
},
"allFieldsMustbeFilled": "All fields must be filled!",
"@allFieldsMustbeFilled": {
"description": "All fields must be filled!"
},
"inclusionCriteriaDistance": "Inclusion criteria DISTANCE",
"@inclusionCriteriaDistance": {
Expand Down Expand Up @@ -1370,5 +1334,93 @@
"lungProtectiveVentilation70p": "Lung Protective Ventilation > 70%",
"@lungProtectiveVentilation70p": {
"description": "Lung Protective Ventilation > 70%"
},
"myProfile": "My profile",
"@myProfile": {
"description": "My profile"
},
"newPassword": "New Password",
"@newPassword": {
"description": "New Password"
},
"newPasswordRepeat": "Repeat new Password",
"@newPasswordRepeat": {
"description": "Repeat new Password"
},
"changePassword": "Change Password",
"@changePassword": {
"description": "Change Password"
},
"passwordSavedSuccessMessage": "The new password has been successfully saved!",
"@passwordSavedSuccessMessage": {
"description": "The new password has been successfully saved!"
},
"passwordMismatchErrorMessage": "The new passwords do not match!",
"@passwordMismatchErrorMessage": {
"description": "The new passwords do not match!"
},
"strongPassword": "The new password must consist of lowercases, uppercases, special characters and at least 8 characters!",
"@strongPassword": {
"description": "The new password must consist of lowercases, uppercases, special characters and at least 8 characters!"
},
"passwordSavedFailureMessage": "New password could not be saved!",
"@passwordSavedFailureMessage": {
"description": "New password could not be saved!"
},
"allFieldsMustbeFilled": "All fields must be filled!",
"@allFieldsMustbeFilled": {
"description": "All fields must be filled!"
},
"changeTitle": "Change title",
"@changeTitle": {
"description": "Change title"
},
"changeFirstname": "Change firstname",
"@changeFirstname": {
"description": "Change firstname"
},
"changeLastname": "Change lastname ",
"@changeLastname": {
"description": "Change lastname"
},
"changeAddress": "Change Address",
"@changeAddress": {
"description": "Change Address"
},
"changePhoneNumber": "Change Phone number",
"@changePhoneNumber": {
"description": "Change Phone number"
},
"changeEmail": "Change email",
"@changeEmail": {
"description": "Change email"
},
"unknownError": "Unknown Error",
"@unknownError": {
"description": "Unknown Error"
},
"updateFailed": "Update Failed",
"@updateFailed": {
"description": "Update Failed"
},
"updateSuccess": "Update Successful",
"@updateSuccess": {
"description": "Update Successful"
},
"passwordChangeSuccessful": "Password changed successfully!",
"@passwordChangeSuccessful": {
"description": "Password changed successfully!"
},
"passwordChangeLogoutMessage": "You have been automatically logged out. Please log in again.",
"@passwordChangeLogoutMessage": {
"description": "You have been automatically logged out. Please log in again."
},
"ok": "OK",
"@ok": {
"description": "OK"
},
"rememberMe": "Remember me?",
"@rememberMe": {
"description": "Remember me?"
}
}
8 changes: 4 additions & 4 deletions lib/models/blood_gas_analysis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,27 @@ class BloodGasAnalysis extends AbstractDatabaseObject {
'Patient': <String, String>{
'objectId': patientObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
'Doctor': <String, String>{
'objectId': doctorObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
};

if (value1 != null && value1?.objectId != null) {
map['value1'] = <String, dynamic>{
'objectId': value1?.objectId,
'__type': 'Pointer',
'className': 'BloodGasAnalysis_obj'
'className': 'BloodGasAnalysis_obj',
};
}
if (value2 != null && value2?.objectId != null) {
map['value2'] = <String, dynamic>{
'objectId': value2?.objectId,
'__type': 'Pointer',
'className': 'BloodGasAnalysis_obj'
'className': 'BloodGasAnalysis_obj',
};
}
return map;
Expand Down
2 changes: 1 addition & 1 deletion lib/models/catalog_of_items_element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class CatalogOfItemsElement extends AbstractDatabaseObject {
respiratoryParameters!,
bloodGasAnalysis!,
laborParameters!,
movementData!
movementData!,
];

@override
Expand Down
8 changes: 4 additions & 4 deletions lib/models/icu_diagnosis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,26 @@ class ICUDiagnosis extends AbstractDatabaseObject {
mainDiagnosis!,
intensiveCareUnitAcquiredWeakness!,
postIntensiveCareSyndrome!,
ancillaryDiagnosis!
ancillaryDiagnosis!,
];

@override
Map<String, dynamic> get databaseMapping => <String, dynamic>{
'Patient': <String, String>{
'objectId': patientObjectId!,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
'Doctor': <String, String>{
'objectId': doctorObjectId!,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
if (mainDiagnosis != null) 'ICU_Hd': mainDiagnosis,
if (intensiveCareUnitAcquiredWeakness != null)
'ICU_AW': intensiveCareUnitAcquiredWeakness,
if (postIntensiveCareSyndrome != null)
'PICS': postIntensiveCareSyndrome,
if (ancillaryDiagnosis != null) 'Nebendiagnose': ancillaryDiagnosis
if (ancillaryDiagnosis != null) 'Nebendiagnose': ancillaryDiagnosis,
};
}
4 changes: 2 additions & 2 deletions lib/models/labor_parameters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ class LaborParameters extends AbstractDatabaseObject {
'Patient': <String, String>{
'objectId': patientObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
'Doctor': <String, String>{
'objectId': doctorObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
};
}
4 changes: 2 additions & 2 deletions lib/models/medicaments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ class Medicaments extends AbstractDatabaseObject {
'Patient': <String, String>{
'objectId': patientObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
'Doctor': <String, String>{
'objectId': doctorObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
};
}
6 changes: 3 additions & 3 deletions lib/models/patient_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class PatientData extends AbstractDatabaseObject {
@override
List<Object> get props => <Object>[
patientObjectId,
doctorObjectId
doctorObjectId,
];

@override
Expand Down Expand Up @@ -211,12 +211,12 @@ class PatientData extends AbstractDatabaseObject {
'Patient': <String, String>{
'objectId': patientObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
'Doctor': <String, String>{
'objectId': doctorObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
};
}
4 changes: 2 additions & 2 deletions lib/models/patient_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ class PatientProfile extends AbstractDatabaseObject {
'Patient': <String, String>{
'objectId': patientObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
'Doctor': <String, String>{
'objectId': doctorObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
};
}
8 changes: 4 additions & 4 deletions lib/models/respiratory_parameters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,27 @@ class RespiratoryParameters extends AbstractDatabaseObject {
'Patient': <String, String>{
'objectId': patientObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
'Doctor': <String, String>{
'objectId': doctorObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
};

if (value1 != null && value1?.objectId != null) {
map['value1'] = <String, dynamic>{
'objectId': value1?.objectId,
'__type': 'Pointer',
'className': 'RespiratoryParas_obj'
'className': 'RespiratoryParas_obj',
};
}
if (value2 != null && value2?.objectId != null) {
map['value2'] = <String, dynamic>{
'objectId': value2?.objectId,
'__type': 'Pointer',
'className': 'RespiratoryParas_obj'
'className': 'RespiratoryParas_obj',
};
}
return map;
Expand Down
8 changes: 4 additions & 4 deletions lib/models/vital_signs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,24 +95,24 @@ class VitalSigns extends AbstractDatabaseObject {
'Patient': <String, String>{
'objectId': patientObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
'Doctor': <String, String>{
'objectId': doctorObjectId,
'__type': 'Pointer',
'className': '_User'
'className': '_User',
},
if (value1 != null && value1?.objectId != null)
'value1': <String, dynamic>{
'objectId': value1?.objectId,
'__type': 'Pointer',
'className': 'VitalSigns_obj'
'className': 'VitalSigns_obj',
},
if (value2 != null && value2?.objectId != null)
'value2': <String, dynamic>{
'objectId': value2?.objectId,
'__type': 'Pointer',
'className': 'VitalSigns_obj'
'className': 'VitalSigns_obj',
},
};
}
Loading

0 comments on commit 393c3c9

Please sign in to comment.