Esempio n. 1
0
 /// <summary>
 /// Returns list of adherences from Calendar API.
 /// </summary>
 /// <param name="customerId">The customer identifier.</param>
 /// <param name="patientId">The patient identifier.</param>
 /// <param name="searchCriteria">The search criteria.</param>
 /// <param name="bearerToken">The bearer token.</param>
 /// <returns></returns>
 public async Task <PagedResult <AdherenceDto> > GetAdherences(
     int customerId,
     Guid patientId,
     AdherencesSearchDto searchCriteria,
     string bearerToken
     )
 {
     return(await this.patientsDataProvider.GetAdherences(customerId, patientId, searchCriteria, bearerToken));
 }
Esempio n. 2
0
        /// <summary>
        /// Returns list of adherences from Calendar API.
        /// </summary>
        /// <param name="customerId">The customer identifier.</param>
        /// <param name="patientId">The patient identifier.</param>
        /// <param name="searchCriteria">The search criteria.</param>
        /// <param name="bearerToken">The bearer token.</param>
        /// <returns></returns>
        public async Task <PagedResult <AdherenceDto> > GetAdherences(
            int customerId,
            Guid patientId,
            AdherencesSearchDto searchCriteria,
            string bearerToken
            )
        {
            string endpointUrl = string.Format("/api/{0}/patient/{1}/adherences", customerId, patientId);

            return(await
                   this.apiClient.SendRequestAsync <PagedResult <AdherenceDto> >(endpointUrl, searchCriteria,
                                                                                 Method.GET, null, bearerToken));
        }