Interface IPatientCarePlanRepository
- Namespace
- adas_core.Application.Repositories.Interfaces
- Assembly
- adas-core.Application.dll
public interface IPatientCarePlanRepository : IMongoRepository<PatientCarePlan>
- Inherited Members
- Extension Methods
Methods
FindAll()
Asynchronously retrieves all patient care plans from the data store.
Task<List<PatientCarePlan>> FindAll()
Returns
- Task<List<PatientCarePlan>>
A task representing the asynchronous operation, containing a list of all PatientCarePlan records.
FindByPatientId(ObjectId)
Retrieves the list of care plans associated with the specified patient identifier.
Task<List<PatientCarePlan>> FindByPatientId(ObjectId patientId)
Parameters
patientIdObjectIdThe unique identifier of the patient whose care plans are being requested.
Returns
- Task<List<PatientCarePlan>>
A task that represents the asynchronous operation, containing a list of PatientCarePlan records for the patient, or an empty list if no care plans are found.
FindByUserId(ObjectId)
Asynchronously retrieves the list of patient care plans associated with the specified user identifier.
Task<List<PatientCarePlan>> FindByUserId(ObjectId userId)
Parameters
userIdObjectIdThe unique identifier of the user whose patient care plans are being requested.
Returns
- Task<List<PatientCarePlan>>
A task that represents the asynchronous operation, containing a list of PatientCarePlan objects linked to the specified user.
UpdateManyObjectId(string, ObjectId, ObjectId)
Updates all records that reference the specified old ObjectId so they are associated with the new patient ObjectId.
Task UpdateManyObjectId(string patientid, ObjectId patientId, ObjectId oldId)
Parameters
patientidstringThe string identifier of the patient whose related records will be updated.
patientIdObjectIdThe new ObjectId that will replace the previous identifier in the matching records.
oldIdObjectIdThe previous ObjectId whose references should be replaced across the matching records.