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
httpClientHttpClient
Methods
Add(PatientProfile)
public void Add(PatientProfile entity)
Parameters
entityPatientProfile
Delete(Guid)
public void Delete(Guid id)
Parameters
idGuid
GetAll()
public IEnumerable<PatientProfile> GetAll()
Returns
GetById(Guid)
public PatientProfile? GetById(Guid id)
Parameters
idGuid
Returns
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)
public IEnumerable<PatientProfile> Search(string query)
Parameters
querystring
Returns
Update(PatientProfile)
public void Update(PatientProfile entity)
Parameters
entityPatientProfile