public int AddPatientHIVEducation(int ptn_pk, int locationId, int userId, int visit_Pk, DateTime visitdate, int councellingTypeId, string councellingType, int councellingTopicId, string councellingTopic, string comments, string other) { try { return(_hiveducation.AddPatientHIVEducation(0, ptn_pk, visit_Pk, locationId, councellingTypeId, councellingTopicId, visitdate, comments, null, userId, false, 203)); } catch (Exception ex) { throw ex; } }
public int AddPatientHIVEducation(int patientId, DateTime visitdate, int councellingTypeId, string councellingType, int councellingTopicId, string councellingTopic, string comments, string other) { try { var PHEF = new HIVEducationFollowup() { PatientId = patientId, VisitDate = visitdate, CouncellingTypeId = councellingTypeId, CouncellingType = councellingType, CouncellingTopicId = councellingTopicId, CouncellingTopic = councellingTopic, Comments = comments, CouncellingTopicOther = other }; return(_hiveducation.AddPatientHIVEducation(PHEF)); // } //} //else //{ // var PCN = new PatientClinicalNotes() // { // PatientId = patientId, // PatientMasterVisitId = patientMasterVisitId, // ServiceAreaId = serviceAreaId, // ClinicalNotes = clinicalNotes, // CreatedBy = userId, // //VersionStamp = DateTime.UtcNow, // NotesCategoryId = notesCategoryId // }; // return _patientNotes.AddPatientClinicalNotes(PCN); //} } catch (Exception) { throw; } }