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); }
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(); }
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(); }