public void WriteToFiles()
 {
     if (Patients != null && Patients.Any())
     {
         File.WriteAllLines(@"Patients.txt", Patients);
     }
     else
     {
         if (File.Exists(@"Patients.txt"))
         {
             File.Delete(@"Patients.txt");
         }
     }
     if (MedicationOrders != null && MedicationOrders.Any())
     {
         File.WriteAllLines(@"MedicationOrders.txt", MedicationOrders);
     }
     else
     {
         if (File.Exists(@"MedicationOrders.txt"))
         {
             File.Delete(@"MedicationOrders.txt");
         }
     }
     if (NotInFormulary != null && NotInFormulary.Any())
     {
         File.WriteAllLines(@"Items.txt", NotInFormulary);
     }
     else
     {
         if (File.Exists(@"Items.txt"))
         {
             File.Delete(@"Items.txt");
         }
     }
 }
 public void AddNotInFormulary(NotInFormulary item)
 {
     NotInFormulary.Add($"\\osi:{_session.OmniId}\\item:{item.GenericName}\\ina:{item.Alias}\\dssa:{item.Strength}\\dssu:{item.StrengthUnit}\\dsva:{item.TotalContainerVolume}\\dsa:{item.Volume}\\dsu:{item.VolumeUnit}\\dsf:{item.Route}");
 }