Class InMemoryPatientRepository
- Namespace
- Core.CliniCore.Repositories.InMemory
- Assembly
- Core.CliniCore.dll
In-memory implementation of IPatientRepository. Provides patient-specific query operations.
public class InMemoryPatientRepository : InMemoryRepositoryBase<PatientProfile>, IPatientRepository, IRepository<PatientProfile>
- Inheritance
-
InMemoryPatientRepository
- Implements
- Inherited Members
Methods
GetByPhysician(Guid)
Gets all patients assigned to a specific physician
public IEnumerable<PatientProfile> GetByPhysician(Guid physicianId)
Parameters
physicianIdGuid
Returns
GetByUsername(string)
Gets a patient by their username
public PatientProfile? GetByUsername(string username)
Parameters
usernamestring
Returns
GetUnassigned()
Gets all patients not assigned to any physician
public IEnumerable<PatientProfile> GetUnassigned()
Returns
Search(string)
Searches patients by name, username, or address
public override IEnumerable<PatientProfile> Search(string query)
Parameters
querystring