コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }