static void GetAllConditions() { string appId = ConfigurationManager.AppSettings["App-Id"]; string appKey = ConfigurationManager.AppSettings["App-Key"]; Infermedica infermedica = new Infermedica(new InfermedicaDataCache(new InfermedicaDataProvider(appId, appKey), @"..\..\Cache")); List <InfermedicaCondition> conditions = infermedica.GetConditions(); Console.WriteLine("Conditions count: {0}", conditions.Count); InfermedicaExport.ToCsvFile(@"conditions.csv", conditions); }
static void GetAllLabTests() { string appId = ConfigurationManager.AppSettings["App-Id"]; string appKey = ConfigurationManager.AppSettings["App-Key"]; Infermedica infermedica = new Infermedica(new InfermedicaDataCache(new InfermedicaDataProvider(appId, appKey), @"..\..\Cache")); List <InfermedicaLabTest> labTests = infermedica.GetLabTests(); Console.WriteLine("Lab tests count: {0}", labTests.Count); InfermedicaExport.ToCsvFile(@"labTests.csv", labTests); }
static void GetAllRiskFactors() { string appId = ConfigurationManager.AppSettings["App-Id"]; string appKey = ConfigurationManager.AppSettings["App-Key"]; Infermedica infermedica = new Infermedica(new InfermedicaDataCache(new InfermedicaDataProvider(appId, appKey), @"..\..\Cache")); List <InfermedicaRiskFactor> riskFactors = infermedica.GetRiskFactors(); Console.WriteLine("Risk factors count: {0}", riskFactors.Count); InfermedicaExport.ToCsvFile(@"riskFactors.csv", riskFactors); }