Exemplo n.º 1
0
 public void addVisit(Visit visit, int patient_id)
 {
     var sess = SessionProvider.createSession();
     PatientService patientService = new PatientService();
     Patient p = patientService.getPatientById(patient_id);
     visit.patient = p;
     sess.Save(visit);
     sess.Flush();
 }
Exemplo n.º 2
0
 public IList<Visit> getVisitsByPatientId(int patient_id)
 {
     PatientService patientService = new PatientService();
     Patient p = patientService.getPatientById(patient_id);
     return p.visits;
 }