Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }