public async Task <JObject> GetPatient(string id)
        {
            _logger.LogInfo("Class: PatientService, Method: GetPatient");
            JObject jObject = await _resource.GetSinglePage($"{requestOption}{id}");

            return(jObject);
        }
Exemplo n.º 2
0
        public async Task <JObject> GetPatient(string id)
        {
            _logger.LogInfo("Class: PatientService, Method: GetPatient");
            JObject jObject = await _resource.GetSinglePage($"{requestOption}{id}");

            Process process = new Process()
            {
                StartInfo = new ProcessStartInfo {
                    FileName              = "python3",
                    Arguments             = "patient.py",
                    WorkingDirectory      = Directory.GetCurrentDirectory(),
                    RedirectStandardInput = true
                }
            };

            process.Start();
            process.StandardInput.WriteLine(jObject.ToString());
            process.StandardInput.Close();
            return(jObject);
        }
Exemplo n.º 3
0
 public async Task <JObject> GetSingleObservation(string id)
 {
     _logger.LogInfo("Class: ObservationService, Method: GetSingleObservation");
     return(await _resource.GetSinglePage($"{requestOption[0]}{id}"));
 }