예제 #1
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);
        }
예제 #2
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();
      }
예제 #3
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();
      }