Table of Contents

Class RemotePatientRepository

Namespace
Core.CliniCore.Repositories.Remote
Assembly
Core.CliniCore.dll

Remote repository implementation that calls the API for patient operations. Uses ApiRoutes for all endpoint paths (single source of truth).

public class RemotePatientRepository : RemoteRepositoryBase, IPatientRepository, IRepository<PatientProfile>
Inheritance
RemotePatientRepository
Implements
Inherited Members

Constructors

RemotePatientRepository(HttpClient)

public RemotePatientRepository(HttpClient httpClient)

Parameters

httpClient HttpClient

Methods

Add(PatientProfile)

public void Add(PatientProfile entity)

Parameters

entity PatientProfile

Delete(Guid)

public void Delete(Guid id)

Parameters

id Guid

GetAll()

public IEnumerable<PatientProfile> GetAll()

Returns

IEnumerable<PatientProfile>

GetById(Guid)

public PatientProfile? GetById(Guid id)

Parameters

id Guid

Returns

PatientProfile

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)

public IEnumerable<PatientProfile> Search(string query)

Parameters

query string

Returns

IEnumerable<PatientProfile>

Update(PatientProfile)

public void Update(PatientProfile entity)

Parameters

entity PatientProfile