Interface IPatientCarePlanService
- Namespace
- adas_core.Application.Services.Interfaces
- Assembly
- adas-core.Application.dll
public interface IPatientCarePlanService
- Extension Methods
Methods
ArchiveByPatientId(ObjectId)
Asynchronously archives records associated with the specified patient identifier.
Task ArchiveByPatientId(ObjectId patientid)
Parameters
patientidObjectIdThe unique identifier of the patient whose records are to be archived.
Returns
ArchiveCarePlanFromJob(Patient, List<OptionList>)
Archives the care plan associated with a finished procedure for the specified patient, processing the provided list of items to be archived.
Task ArchiveCarePlanFromJob(Patient patientWithFinishedProcedure, List<OptionList> itemsToArchive)
Parameters
patientWithFinishedProcedurePatientThe patient whose procedure has been completed and whose care plan should be archived.
itemsToArchiveList<OptionList>The collection of option list items to be archived as part of the care plan archival process.
Returns
FindAll()
Retrieves all patient care plans from the system.
Task<List<PatientCarePlan>> FindAll()
Returns
- Task<List<PatientCarePlan>>
A task containing a list of all PatientCarePlan records.
FindByPatientId(ObjectId)
Retrieves a list of patient 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 retrieved.
Returns
- Task<List<PatientCarePlan>>
A task that represents the asynchronous operation, containing a list of PatientCarePlan records for the given patient.
FindByUserId(ObjectId)
Retrieves a 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 retrieved.
Returns
- Task<List<PatientCarePlan>>
A task that represents the asynchronous operation. The task result contains a list of patient care plans associated with the user.
InsertOneAsync(PatientCarePlan)
Asynchronously inserts a single patient care plan into the underlying data store.
Task InsertOneAsync(PatientCarePlan patientCarePlan)
Parameters
patientCarePlanPatientCarePlanThe patient care plan to insert.
Returns
UpdateManyObjectId(string, ObjectId, ObjectId)
Updates the ObjectId references from the specified old identifier to a new one across multiple records associated with the given patient.
Task UpdateManyObjectId(string patientid, ObjectId patientId, ObjectId oldId)
Parameters
patientidstringThe string identifier of the patient whose related records will be updated.
patientIdObjectIdThe ObjectId of the patient used to locate the records to update.
oldIdObjectIdThe existing ObjectId value to be replaced in the matched records.