public ActionResult PrintCertificate(int MedcertificateId)
        {
            PatientConsultationDetails med = new PatientConsultationDetails();

            med.MedCert = ee.GetallMedCert().Find(x => x.MedcertificateId == MedcertificateId);
            return(new PdfResult(med, "PrintCertificate"));
        }
        // GET: MedicalCertificate
        public ActionResult PrintCertificate(int PatientId)
        {
            PatientConsultationDetails med = new PatientConsultationDetails();

            med.MedCert = ee.GetAllCertificates().Find(x => x.PatientId == PatientId);
            return(new PdfResult(med, "PrintCertificate"));
        }
Esempio n. 3
0
        public ActionResult PrintReferal(int PatientId)
        {
            PatientConsultationDetails pc = new PatientConsultationDetails();

            pc.Referrals = rb.GetAll().Find(x => x.PatientId == PatientId);
            return(new PdfResult(pc, "PrintReferal"));
        }
        public ActionResult PrintHistory(int PatientId)
        {
            ConsultationBusiness cb = new ConsultationBusiness();
            var con = new Consultation();

            PatientConsultationDetails pd = new PatientConsultationDetails();

            // pass in Model, then View name

            //Find Patient with the associated consultation
            pd._Consultation = cb.GetConsultations().FindAll(x => x.PatientId == PatientId).OrderByDescending(x => x.ConsultId).ToList();
            //Find patient and display details
            pd.Patient = pb.GetPatients().Find(x => x.PatientId == PatientId);
            //pd._Xray = tb.GetAll().Where(x => x.PatientId == PatientId).ToList();
            pd._HIV = htb.GetAllTest().Where(x => x.PatientId == PatientId).ToList();
            //rm._HIV =
            // With no Model and default view name.  Pdf is always the default view name
            //return new PdfResult();
            return(new PdfResult(pd, "PrintHistory"));
        }