Example #1
0
 public static WadoServiceConfig From(RemoteQueryServiceConfig config)
 {
     if (config.ServiceClass != "WadoServiceConfig")
     {
         throw new ArgumentException();
     }
     return(config.ServerInfo as WadoServiceConfig);
 }
Example #2
0
        public async Task <Stream> RetrieveDatasetRendered(RemoteQueryServiceConfig serviceConfig, QueryOptions query, Size?size)
        {
            var config = WadoServiceConfig.From(serviceConfig);
            var rs     = new WadoRSClient(config);
            var wquery = WadoDataSetAdapter.ReadQueryOptions(query);

            var result = await rs.RetrieveDatasetRendered(wquery, size);

            return(result);
        }
Example #3
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();
      }
Example #4
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();
      }
Example #5
0
 public string Ping(RemoteQueryServiceConfig service)
 {
     throw new NotImplementedException();
 }