NEW: Patient Manager Provider Setup pt4

This commit is contained in:
2025-10-31 11:55:49 +02:00
parent 771d809ce2
commit cb25b932ba
9 changed files with 306 additions and 315 deletions

View File

@@ -274,12 +274,10 @@ class MIHApiCalls {
/// Patameters: String dsearch.
///
/// Returns List<Patient>.
static Future<List<Patient>> fetchPatients(String search) async {
final response = await http
.get(Uri.parse("${AppEnviroment.baseApiUrl}/patients/search/$search"));
// errorCode = response.statusCode.toString();
// errorBody = response.body;
if (response.statusCode == 200) {
Iterable l = jsonDecode(response.body);
List<Patient> patients =