Пример #1
0
      public async Task<InstanceData[]> FindInstances(RemoteQueryServiceConfig serviceConfig, QueryOptions query)
      {
         var config = WadoServiceConfig.From(serviceConfig);
         var qido = new QidoRSClient(config);
         var wquery = WadoDataSetAdapter.ReadQueryOptions(query);

         var results = await qido.InstanceLevel(wquery);
         var instanceResults = new List<InstanceData>();
         foreach (var result in results)
         {
            instanceResults.Add(WadoDataSetAdapter.ReadInstanceData(result));
         }
         return instanceResults.ToArray();
      }
Пример #2
0
      public async Task<PatientData[]> FindPatients(RemoteQueryServiceConfig serviceConfig, QueryOptions query)
      {
         var config = WadoServiceConfig.From(serviceConfig);
         var qido = new QidoRSClient(config);
         var wquery = WadoDataSetAdapter.ReadQueryOptions(query);

         var results = await qido.PatientLevel(wquery);
         var patientResults = new List<PatientData>();
         foreach (var result in results)
         {
            patientResults.Add(WadoDataSetAdapter.ReadPatientData(result));
         }
         return patientResults.ToArray();
      }