Beispiel #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            PatientAssesment h = new PatientAssesment();

            h.PatientAssesmentPatientId = viewEMRPatientId;
            h.Show();
        }
 private void button5_Click(object sender, EventArgs e)
 {
    PatientAssesment h = new PatientAssesment();
    h.PatientAssesmentPatientId = viewEMRPatientId;
    h.Show();
   
 }
Beispiel #3
0
        private void button10_Click(object sender, EventArgs e)
        {
            PatientAssesment assesment = new PatientAssesment();

            assesment.PatientAssesmentPatientId = viewEMRPatientId;
            assesment.patid = patId;
            assesment.Show();
        }
 public void testFormatDate()
 {
     PatientAssesment pa = new PatientAssesment();
     Assert.IsNotNull(pa);
     DateTime dt = new DateTime();
     string formattedDate = pa.formatDate(dt);
     Assert.IsNotNull(formattedDate);
  
     
 }
 public void testCreateGetPatientAssesmentDictionary()
 {
     String assesmentId = "1";
     PatientAssesment pa = new PatientAssesment();
     Assert.IsNotNull(pa);
     Dictionary<String, String> dict = pa.createGetPatientDictionary(assesmentId);
     Assert.IsNotNull(dict);
     Assert.IsTrue(dict.ContainsKey("@patientId"));
     Assert.AreSame(dict["@patientId"], assesmentId);
 }
 public void testcreateEmrRequest()
 {
     PatientAssesment pa = new PatientAssesment();
     Assert.IsNotNull(pa);
     String emrDate = "11/23/2013";
     String assesmentId = "1";
     Dictionary<String, String> d=pa.createEmrRequest(assesmentId,emrDate);
     Assert.IsNotNull(d);
     Assert.IsTrue(d.ContainsKey("@patientId"));
     Assert.IsTrue(d.ContainsKey("@emrDate"));
     Assert.AreSame(d["@patientId"],assesmentId);
     Assert.AreSame(d["@emrDate"], emrDate);
     
    
 }
 public void getPatientEMRAccordingToDate()
 {
     PatientAssesment pa = new PatientAssesment();
     Assert.IsNotNull(pa);
      String emrDate = "2011/11/11";
     String assesmentId = "1";
     
     Dictionary<String, String> d=pa.createEmrRequest(assesmentId,emrDate);
    // DatabaseConnector con=new DatabaseConnector();
    // DataTable dat = pa.getPatientEMRAccordingToDate(d,con);
    // Assert.IsNotNull(dat);
     // testing for just for one value
    // Assert.AreEqual(dat.Rows[0][1].ToString(),"2");
 }
 public void testPatientAssesmentObjects()
 {
     PatientAssesment pa = new PatientAssesment();
     Assert.IsNotNull(pa);
 }
 public void testPatientAssesmentCreate()
 {
     PatientAssesment pa = new PatientAssesment();
     Assert.IsNotNull(pa);
 }
 private void button10_Click(object sender, EventArgs e)
 {
     PatientAssesment assesment=new PatientAssesment();
     assesment.PatientAssesmentPatientId = viewEMRPatientId;
     assesment.patid = patId;
     assesment.Show();
 }