示例#1
0
        public static ListModel <PatientCommunicationModel> Search(
            IServerAuthentication restClientAuthenticator,
            bool?alreadySent             = null,
            string creationDateOperator  = "",
            DateTime?utcCreationDate1    = null,
            DateTime?utcCreationDate2    = null,
            string patientExternalId     = "",
            string appointmentExternalId = "",
            bool?outgoing    = null,
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("creationDateOperator", creationDateOperator);
            criteria.Add("utcCreationDate1", utcCreationDate1.ToString());
            criteria.Add("utcCreationDate2", utcCreationDate2.ToString());
            criteria.Add("alreadySent", alreadySent.ToString());
            criteria.Add("patientExternalId", patientExternalId);
            criteria.Add("appointmentExternalId", appointmentExternalId);
            criteria.Add("outgoing", outgoing.ToString());
            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <PatientCommunicationModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
示例#2
0
        public static List <DirectMessageModel> Search(IServerAuthentication restClientAuthenticator, int page = 1, int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <DirectMessageModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
        public static ListModel <AppointmentCancelRequestModel> Search(
            IServerAuthentication restClientAuthenticator,
            bool?alreadySent = null,
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("alreadySent", alreadySent.ToString());
            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <AppointmentCancelRequestModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
示例#4
0
        public static ListModel <PortalPatientModel> Search(
            IServerAuthentication restClientAuthenticator,
            string firstName = "",
            string lastName  = "",
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("firstName", firstName);
            criteria.Add("lastName", lastName);
            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <PortalPatientModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
        public static ListModel <OrderStatusModel> Search(
            IServerAuthentication restClientAuthenticator,
            string ID        = "",
            string name      = "",
            int page         = 1,
            int itemsPerPage = 10
            )
        {
            var criteria = new SearchCriteria();

            criteria.Add("name", name);
            criteria.Add("externalId", ID);
            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <OrderStatusModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
示例#6
0
        public static ListModel <AppointmentRequestReasonModel> Search(
            IServerAuthentication restClientAuthenticator,
            bool?changed     = null,
            bool?isDeleted   = null,
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("changed", changed.ToString());
            criteria.Add("isDeleted", isDeleted.ToString());

            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <AppointmentRequestReasonModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
        public static ListModel <PatientUpdateModel> Search(
            IServerAuthentication restClientAuthenticator,
            string patientExternalID = "",
            string method            = "",
            bool?alreadySent         = null,
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());
            criteria.Add("patientExternalID", patientExternalID);
            criteria.Add("method", method);
            criteria.Add("AlreadySent", alreadySent.ToString());

            return(ApiClientGenericObject <PatientUpdateModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
        public static ListModel <PatientModel> Search(
            IServerAuthentication restClientAuthenticator,

            string fullName   = "",
            DateTime?birthday = null,

            bool?active      = null,
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("FullName", fullName);
            criteria.Add("Birthday", birthday.ToString());
            criteria.Add("Active", active.ToString());
            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <PatientModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
示例#9
0
        public static ListModel <UserModel> Search(
            IServerAuthentication restClientAuthenticator,
            string username  = "",
            bool?active      = null,
            string firstName = "",
            string lastName  = "",
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("username", username);
            criteria.Add("active", active.ToString());
            criteria.Add("firstName", firstName);
            criteria.Add("lastname", lastName);
            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <UserModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
示例#10
0
        public static ListModel <LocationModel> Search(
            IServerAuthentication restClientAuthenticator,
            string name      = "",
            string ID        = "",
            bool?active      = null,
            string city      = "",
            string state     = "",
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("name", name);
            criteria.Add("externalId", ID);
            criteria.Add("active", active.ToString());
            criteria.Add("city", city);
            criteria.Add("state", state);
            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <LocationModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
示例#11
0
        public static ListModel <AppointmentModel> Search(IServerAuthentication restClientAuthenticator, string appointmentExternalId = "",
                                                          DateTime?patientBirthday = null, string status                = "", string startDateOperator = "", DateTime?start1 = null,
                                                          DateTime?start2          = null, string portalCreatedOperator = "", DateTime?portalCreated1  = null, DateTime?portalCreated2 = null,
                                                          int page = 1, int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("appointmentExternalId", appointmentExternalId);
            criteria.Add("patientBirthday", patientBirthday.ToString());
            criteria.Add("status", status);
            criteria.Add("startDateOperator", startDateOperator);
            criteria.Add("start1", start1.ToString());
            criteria.Add("start2", start2.ToString());
            criteria.Add("portalCreatedOperator", portalCreatedOperator);
            criteria.Add("portalCreated1", portalCreated1.ToString());
            criteria.Add("portalCreated2", portalCreated2.ToString());

            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <AppointmentModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
示例#12
0
        public static ListModel <OrderModel> Search(
            IServerAuthentication restClientAuthenticator,
            string patientID         = null,
            string locationID        = null,
            string ID                = "",
            DateTime?utcCreationDate = null,
            DateTime?utcPickupDate   = null,
            decimal?patientBalance   = null,
            int page         = 1,
            int itemsPerPage = 10)
        {
            var criteria = new SearchCriteria();

            criteria.Add("patientExternalId", patientID);
            criteria.Add("locationExternalId", locationID);
            criteria.Add("externalId", ID);
            criteria.Add("creationDate", utcCreationDate.ToString());
            criteria.Add("pickupDate", utcPickupDate.ToString());
            criteria.Add("patientBalance", patientBalance.ToString());
            criteria.Add("page", page.ToString());
            criteria.Add("itemsPerPage", itemsPerPage.ToString());

            return(ApiClientGenericObject <OrderModel> .Search(restClientAuthenticator, ControllerName, criteria));
        }
 public static bool Save(IServerAuthentication restClientAuthenticator, SocialHistoryAlcoholModel model)
 {
     return(ApiClientGenericObject <SocialHistoryAlcoholModel> .Save(restClientAuthenticator, ControllerName, model));
 }
示例#14
0
 public static bool Save(IServerAuthentication restClientAuthenticator, MedicationModel model)
 {
     return(ApiClientGenericObject <MedicationModel> .Save(restClientAuthenticator, ControllerName, model));
 }
 /// Sets the status for the appointment cancellation request to approved or denied. (To do) Triggers an email to inform patient of the results of the cancellation request.
 public static bool ApplyResult(IServerAuthentication restClientAuthenticator, AppointmentRequestResultModel model)
 {
     return(ApiClientGenericObject <AppointmentRequestResultModel> .Save(restClientAuthenticator, ControllerName, model));
 }
示例#16
0
 public static DirectMessageModel Get(IServerAuthentication restClientAuthenticator, Guid id)
 {
     return(ApiClientGenericObject <DirectMessageModel> .Get(restClientAuthenticator, ControllerName, id.ToString()));
 }
示例#17
0
 public static OpenFormModel Get(IServerAuthentication restClientAuthenticator, string ID)
 {
     return(ApiClientGenericObject <OpenFormModel> .Get(restClientAuthenticator, ControllerName, ID, "internalId"));
 }
 public static bool Delete(IServerAuthentication restClientAuthenticator, string ID)
 {
     return(ApiClientGenericObject <OrderStatusModel> .Delete(restClientAuthenticator, ControllerName, ID));
 }
示例#19
0
 public static bool Update(IServerAuthentication restClientAuthenticator, PortalPatientUpdateModel model)
 {
     return(ApiClientGenericObject <PortalPatientUpdateModel> .Save(restClientAuthenticator, PortalPatientUpdateControllerName, model));
 }
示例#20
0
 public static PortalPatientModel Get(IServerAuthentication restClientAuthenticator, string ID)
 {
     return(ApiClientGenericObject <PortalPatientModel> .Get(restClientAuthenticator, ControllerName, ID, "id"));
 }
 public static bool Delete(IServerAuthentication restClientAuthenticator, string ID)
 {
     return(ApiClientGenericObject <SocialHistoryAlcoholModel> .Delete(restClientAuthenticator, ControllerName, ID));
 }
 public static bool Save(IServerAuthentication restClientAuthenticator, ExamFieldMappingDetailModel model)
 {
     return(ApiClientGenericObject <ExamFieldMappingDetailModel> .Save(restClientAuthenticator, ControllerName, model));
 }
 public static bool Delete(IServerAuthentication restClientAuthenticator, string ID)
 {
     return(ApiClientGenericObject <DoctorAvailabilitySlotModel> .Delete(restClientAuthenticator, ControllerName, ID));
 }
 public static bool Save(IServerAuthentication restClientAuthenticator, DoctorAvailabilitySlotModel model)
 {
     return(ApiClientGenericObject <DoctorAvailabilitySlotModel> .Save(restClientAuthenticator, ControllerName, model));
 }
示例#25
0
 public static LocationModel Get(IServerAuthentication restClientAuthenticator, string ID)
 {
     return(ApiClientGenericObject <LocationModel> .Get(restClientAuthenticator, ControllerName, ID));
 }
示例#26
0
 public static bool Save(IServerAuthentication restClientAuthenticator, AppointmentAllowedTimeInAdvanceModel model)
 {
     return(ApiClientGenericObject <AppointmentAllowedTimeInAdvanceModel> .Save(restClientAuthenticator, ControllerName, model));
 }
 public static bool Delete(IServerAuthentication restClientAuthenticator, string ID)
 {
     return(ApiClientGenericObject <ExamFieldMappingDetailModel> .Delete(restClientAuthenticator, ControllerName, ID));
 }
 public static ServiceTypeDurationModel Get(IServerAuthentication restClientAuthenticator, Guid Id)
 {
     return(ApiClientGenericObject <ServiceTypeDurationModel> .Get(restClientAuthenticator, ControllerName, Id.ToString(), "patientServiceTypeId"));
 }