Paging with HealthRecordSearcher.GetTransformedItems? possible?

Unanswered Paging with HealthRecordSearcher.GetTransformedItems? possible?

  • Friday, March 02, 2012 4:22 PM
     
      Has Code

    Is it possible to achieve paged query when using the HealthRecordSearcher.GetTransformedItems() method like it is possible with the HealthRecordSearcher.GetMatchingItems() method which returns a collection of HealthRecordItemCollection?

    e.g. In the code sample below, since MaxFullItemsReturnedPerRequest is set to 10, is there a way to get subsequent sets of 10 items after the initial call to GetTransformedItems() ?

    HealthRecordSearcher searcher = PersonInfo.SelectedRecord.CreateSearcher();
                
    HealthRecordFilter filter = new HealthRecordFilter();
    filter.TypeIds.Add(Condition.TypeId);
    filter.TypeIds.Add(Allergy.TypeId);    
    searcher.Filters.Add(filter);
    
    //Limit number of full-items per request
    filter.MaxFullItemsReturnedPerRequest = 10;
    
    //Now request for the data with the transformation
    string xmlHVData = searcher.GetTransformedItems(xslFragment);


    Manish