///<summary>For each enabled bridge, if the bridge uses a file to transmit patient data to the other software, then we need to remove the files or clear the files when OD is exiting. ///Required for EHR 2014 module d.7 (as stated by proctor).</summary> public static void ScrubExportedPatientData() { //List all program links here. If there is nothing to do for that link, then create a comment stating so. string path = ""; //Apixia: ScrubFileForProperty(ProgramName.Apixia, "System path to Apixia Digital Imaging ini file", "", true); //C:\Program Files\Digirex\Switch.ini //Apteryx: Has no file paths containing outgoing patient data from Open Dental. //BioPAK: Has no file paths containing outgoing patient data from Open Dental. //CallFire: Has no file paths containing outgoing patient data from Open Dental. //Camsight: Has no file paths containing outgoing patient data from Open Dental. //CaptureLink: Has no file paths containing outgoing patient data from Open Dental. //Cerec: Has no file paths containing outgoing patient data from Open Dental. //CliniView: Has no file paths containing outgoing patient data from Open Dental. //ClioSoft: Has no file paths containing outgoing patient data from Open Dental. //DBSWin: ScrubFileForProperty(ProgramName.DBSWin, "Text file path", "", true); //C:\patdata.txt //DentalEye: Has no file paths containing outgoing patient data from Open Dental. //DentalStudio: Has no file paths containing outgoing patient data from Open Dental. //DentForms: Has no file paths containing outgoing patient data from Open Dental. //DentX: Has no file paths containing outgoing patient data from Open Dental. //Dexis: ScrubFileForProperty(ProgramName.Dexis, "InfoFile path", "", true); //InfoFile.txt //Digora: Has no file paths containing outgoing patient data from Open Dental. //Divvy: Has no file paths containing outgoing patient data from Open Dental. //Dolphin: ScrubFileForProperty(ProgramName.Dolphin, "Filename", "", true); //C:\Dolphin\Import\Import.txt //DrCeph: Has no file paths containing outgoing patient data from Open Dental. //Dxis: Has no file paths containing outgoing patient data from Open Dental. //EasyNotesPro: Has no file paths containing outgoing patient data from Open Dental. //eClinicalWorks: HL7 files are created, but eCW is supposed to consume and delete them. //EvaSoft: Has no file paths containing outgoing patient data from Open Dental. //EwooEZDent: Program program = Programs.GetCur(ProgramName.EwooEZDent); if (program.Enabled) { path = Programs.GetProgramPath(program); if (File.Exists(path)) { string dir = Path.GetDirectoryName(path); string linkage = CodeBase.ODFileUtils.CombinePaths(dir, "linkage.xml"); if (File.Exists(linkage)) { try { File.Delete(linkage); } catch { //Another instance of OD might be closing at the same time, in which case the delete will fail. Could also be a permission issue or a concurrency issue. Ignore. } } } } //FloridaProbe: Has no file paths containing outgoing patient data from Open Dental. //Guru: Has no file paths containing outgoing patient data from Open Dental. //HouseCalls: ScrubFileForProperty(ProgramName.HouseCalls, "Export Path", "Appt.txt", true); //C:\HouseCalls\Appt.txt //IAP: Has no file paths containing outgoing patient data from Open Dental. //iCat: ScrubFileForProperty(ProgramName.iCat, "XML output file path", "", true); //C:\iCat\Out\pm.xml //ImageFX: Has no file paths containing outgoing patient data from Open Dental. //Lightyear: Has no file paths containing outgoing patient data from Open Dental. //MediaDent: ScrubFileForProperty(ProgramName.MediaDent, "Text file path", "", true); //C:\MediadentInfo.txt //MiPACS: Has no file paths containing outgoing patient data from Open Dental. //Mountainside: Has no file paths containing outgoing patient data from Open Dental. //NewCrop: Has no file paths containing outgoing patient data from Open Dental. //Orion: Has no file paths containing outgoing patient data from Open Dental. //OrthoPlex: Has no file paths containing outgoing patient data from Open Dental. //Owandy: Has no file paths containing outgoing patient data from Open Dental. //PayConnect: Has no file paths containing outgoing patient data from Open Dental. //Patterson: ScrubFileForProperty(ProgramName.Patterson, "System path to Patterson Imaging ini", "", true); //C:\Program Files\PDI\Shared files\Imaging.ini //PerioPal: Has no file paths containing outgoing patient data from Open Dental. //Planmeca: Has no file paths containing outgoing patient data from Open Dental. //PracticeWebReports: Has no file paths containing outgoing patient data from Open Dental. //Progeny: Has no file paths containing outgoing patient data from Open Dental. //PT: Per our website "The files involved get deleted immediately after they are consumed." //PTupdate: Per our website "The files involved get deleted immediately after they are consumed." //RayMage: Has no file paths containing outgoing patient data from Open Dental. //Schick: Has no file paths containing outgoing patient data from Open Dental. //Sirona: program = Programs.GetCur(ProgramName.Sirona); if (program.Enabled) { path = Programs.GetProgramPath(program); //read file C:\sidexis\sifiledb.ini string iniFile = Path.GetDirectoryName(path) + "\\sifiledb.ini"; if (File.Exists(iniFile)) { string sendBox = ReadValueFromIni("FromStation0", "File", iniFile); if (File.Exists(sendBox)) { File.WriteAllText(sendBox, ""); //Clear the sendbox instead of deleting. } } } //Sopro: Has no file paths containing outgoing patient data from Open Dental. //TigerView: ScrubFileForProperty(ProgramName.TigerView, "Tiger1.ini path", "", false); //C:\Program Files\PDI\Shared files\Imaging.ini. TigerView complains if the file is not present. //Trojan: Has no file paths containing outgoing patient data from Open Dental. //Trophy: Has no file paths containing outgoing patient data from Open Dental. //TrophyEnhanced: Has no file paths containing outgoing patient data from Open Dental. //Tscan: Has no file paths containing outgoing patient data from Open Dental. //UAppoint: Has no file paths containing outgoing patient data from Open Dental. //Vipersoft: Has no file paths containing outgoing patient data from Open Dental. //VixWin: Has no file paths containing outgoing patient data from Open Dental. //VixWinBase41: Has no file paths containing outgoing patient data from Open Dental. //VixWinOld: Has no file paths containing outgoing patient data from Open Dental. //Xcharge: Has no file paths containing outgoing patient data from Open Dental. ScrubFileForProperty(ProgramName.XDR, "InfoFile path", "", true); //C:\XDRClient\Bin\infofile.txt }