Table of Contents

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

physicianId Guid

Returns

IEnumerable<PatientProfile>

GetByUsername(string)

Gets a patient by their username

public PatientProfile? GetByUsername(string username)

Parameters

username string

Returns

PatientProfile

GetUnassigned()

Gets all patients not assigned to any physician

public IEnumerable<PatientProfile> GetUnassigned()

Returns

IEnumerable<PatientProfile>

Search(string)

Searches patients by name, username, or address

public override IEnumerable<PatientProfile> Search(string query)

Parameters

query string

Returns

IEnumerable<PatientProfile>