I will get the data from the service and then show this data in ListView. Here, the number of patients,…