Пример #1
0
        public List <PatientRegimenLookup> GetPatientRegimenList(int patientId)
        {
            LookupPatientRegimenMapRepository patientRegimenMapLookup = new LookupPatientRegimenMapRepository();
            var regimenList = patientRegimenMapLookup.FindBy(x => x.Id == patientId).OrderBy(x => x.Id).ToList();

            return(regimenList);
        }
Пример #2
0
        public PatientRegimenLookup GetPatientCurrentRegimen(int patientId)
        {
            LookupPatientRegimenMapRepository patientRegimenMapLookup = new LookupPatientRegimenMapRepository();
            var regimen =
                patientRegimenMapLookup.FindBy(x => x.Id == patientId).OrderByDescending(x => x.Id).FirstOrDefault();

            return(regimen);
        }