Interface IPatientArchiveRepository
- Namespace
- adas_core.Application.Repositories.Interfaces
- Assembly
- adas-core.Application.dll
public interface IPatientArchiveRepository : IMongoRepository<Patient>
- Inherited Members
- Extension Methods
Methods
FindAll()
Retrieves all patients from the data source.
Task<List<Patient>> FindAll()
Returns
- Task<List<Patient>>
A task that represents the asynchronous operation, containing a list of all Patient entities.
FindByPatientNumber(string)
Retrieves a Patient matching the specified patient number, returning null if no matching patient is found.
Task<Patient?> FindByPatientNumber(string patientNumber)
Parameters
patientNumberstringThe unique patient number used to look up the patient.
Returns
SearchByPatientNumberAndDistinctUnit(string, ObjectId)
Searches for a patient by patient number within a specific distinct unit.
Task<Patient?> SearchByPatientNumberAndDistinctUnit(string patientNumber, ObjectId unitId)
Parameters
patientNumberstringThe patient number used to locate the patient.
unitIdObjectIdThe identifier of the distinct unit in which to perform the search.