Beispiel #1
0
        public void TEST_IF_UPDATE_AND_CREATE()
        {
            PatientsRepository repo = new PatientsRepository(CONNECTION_STRING, DB_NAME);

            var patient = repo.GetPatients(new FindPatientModel {
                PatientId = "333333333"
            }, 1, 0);

            Console.WriteLine(patient.Result);

            var added = repo.AddOrUpdateDiagnoseAsync(new PatientDiagnoseDTO
            {
                PatientId = "333333333",
                General   = "Short, Too short.",
                Symptoms  = new System.Collections.Generic.Dictionary <string, dynamic> {
                    ["Age"] = 13
                },
                DoctorId     = "5e",
                InOutPatient = true
            });

            Console.WriteLine(added.Result);
        }