Example #1
0
        public void GetCohortPatientsByID_WithDoubleFilterComma()
        {
            GetCohortPatientsDataRequest request = new GetCohortPatientsDataRequest
            {
                CohortID       = "528ed9b3072ef70e10099687",
                Version        = 1,
                Context        = "NG",
                SearchFilter   = "Tigue, Jonell",
                ContractNumber = "InHealth001",
                Skip           = 0,
                Take           = 100
            };

            IPatientDataManager           pm       = new PatientDataManager();
            GetCohortPatientsDataResponse response = pm.GetCohortPatients(request);

            Assert.IsTrue(response.CohortPatients.Count > 0);
        }
Example #2
0
        public void GetCohortPatientsByID_WithNoFilter()
        {
            GetCohortPatientsDataRequest request = new GetCohortPatientsDataRequest
            {
                CohortID       = "530f9cff072ef715f4b411cf",
                Version        = 1,
                Context        = "NG",
                SearchFilter   = "",
                ContractNumber = "InHealth001",
                Skip           = 0,
                Take           = 100
            };

            IPatientDataManager           pm       = new PatientDataManager();
            GetCohortPatientsDataResponse response = pm.GetCohortPatients(request);

            Assert.IsTrue(response.CohortPatients.Count > 0);
        }
Example #3
0
        public void GetCohortPatientsByID_WithStartingComma()
        {
            IPatientDataManager pm = new PatientDataManager
            {
                Factory = new PatientRepositoryFactory(),
                Helpers = new Helpers()
            };

            GetCohortPatientsDataRequest request = new GetCohortPatientsDataRequest
            {
                CohortID       = "53237514072ef709d84efe9d",
                Version        = 1,
                Context        = "NG",
                SearchFilter   = "barr",
                ContractNumber = "InHealth001",
                Skip           = 0,
                Take           = 100,
                UserId         = "0000000000000000000000000"
            };

            GetCohortPatientsDataResponse response = pm.GetCohortPatients(request);

            Assert.IsTrue(response.CohortPatients.Count > 0);
        }