public void InitializeTest() { InitializeMappings(); var pi = new PatientsImportUow { RepositoryFactory = new RepositoryFactory() }; pi.Initialize("HILLCREST001"); }
public void TestModifyPatientBackground() { InitializeMappings(); var pi = new PatientsImportUow { RepositoryFactory = new RepositoryFactory() }; //pi.Initialize("HILLCREST001"); pi.PatientBackgroundModification("HILLCREST001", "http://azurePhytel.cloudapp.net:59901/Patient"); }
static void Main(string[] args) { Console.WriteLine("Engage Data fix initializing..."); InitializeMappings(); Console.WriteLine("complete!"); var pi = new PatientsImportUow { RepositoryFactory = new RepositoryFactory() }; Console.WriteLine("getting repository..."); //pi.Initialize("HILLCREST001"); Console.WriteLine("Executing Data modification process..."); var patientUrl = ConfigurationManager.AppSettings["DDPatientServiceUrl"]; pi.PatientBackgroundModification("HILLCREST001", patientUrl); Console.WriteLine("Complete!"); Console.ReadLine(); }
public void Commit() { var Patients = new List <PatientData> { new PatientData { FirstName = "Ted", ExternalRecordId = "111111", DataSource = "P-Reg" }, new PatientData { FirstName = "Mammy", ExternalRecordId = "2222", DataSource = "P-Reg" }, new PatientData { FirstName = "Lisa", ExternalRecordId = "3333", DataSource = "P-Reg" }, new PatientData { FirstName = "George", ExternalRecordId = "44444", DataSource = "P-Reg" }, new PatientData { FirstName = "xavier", ExternalRecordId = "555555", DataSource = "P-Reg" }, new PatientData { FirstName = "pablo", ExternalRecordId = "666666", DataSource = "P-Reg" }, new PatientData { FirstName = "jimmy", ExternalRecordId = "7777777", DataSource = "P-Reg" }, new PatientData { FirstName = "eric", ExternalRecordId = "8888888", DataSource = "P-Reg" }, new PatientData { FirstName = "jane", ExternalRecordId = "9999999", DataSource = "P-Reg" }, new PatientData { FirstName = "bobby", ExternalRecordId = "100000", DataSource = "P-Reg" } }; var uow = new PatientsImportUow { Patients = Patients }; uow.Commit("HILLCREST001"); }
public void GetPatientSystemsToLoad() { var uow = new PatientsImportUow(); var psys = new List <PatientSystemData> { new PatientSystemData { ExternalRecordId = "12345", Value = "testing" }, new PatientSystemData { ExternalRecordId = "11111", Value = "testing2" }, new PatientSystemData { ExternalRecordId = "12345", Value = "testing3" }, new PatientSystemData { ExternalRecordId = "55555", Value = "testing4" }, new PatientSystemData { ExternalRecordId = "44444", Value = "testing5" }, new PatientSystemData { ExternalRecordId = "44444", Value = "testing6" }, new PatientSystemData { ExternalRecordId = "44444", Value = "testing7" }, new PatientSystemData { ExternalRecordId = "44444", Value = "testing8" }, new PatientSystemData { ExternalRecordId = "44444", Value = "testing9" } }; var httpReponse = new HttpObjectResponse <PatientData>(); httpReponse.Body = new PatientData { ExternalRecordId = "12345", FirstName = "Mel" }; httpReponse.Code = System.Net.HttpStatusCode.InternalServerError; var httpReponse2 = new HttpObjectResponse <PatientData>(); httpReponse2.Body = new PatientData { ExternalRecordId = "11111", FirstName = "Jenny" }; httpReponse2.Code = System.Net.HttpStatusCode.InternalServerError; var httpReponse3 = new HttpObjectResponse <PatientData>(); httpReponse3.Body = new PatientData { ExternalRecordId = "44444", FirstName = "Elise" }; httpReponse3.Code = System.Net.HttpStatusCode.OK; var prsl = new List <HttpObjectResponse <PatientData> > { httpReponse, httpReponse2, httpReponse3 }; var psdata = uow.GetPatientSystemsToLoad(psys, prsl); }