Interface IDiagnosisService
- Namespace
- adas_core.Application.Services.Interfaces
- Assembly
- adas-core.Application.dll
public interface IDiagnosisService : IApiRequestService
- Inherited Members
- Extension Methods
Methods
Archive(Patient)
Asynchronously archives the specified patient, marking the patient record as archived rather than permanently deleting it.
Task Archive(Patient patient)
Parameters
patientPatientThe patient to archive.
Returns
ArchiveByPatientId(ObjectId)
Archives the records associated with the specified patient identifier.
Task ArchiveByPatientId(ObjectId id)
Parameters
idObjectIdThe unique identifier of the patient whose records will be archived.
Returns
DeleteByPatientId(ObjectId)
Deletes records associated with the specified patient identifier.
Task DeleteByPatientId(ObjectId id)
Parameters
idObjectIdThe unique identifier of the patient whose related records should be removed.
Returns
GetByPatientId(ObjectId)
Retrieves all diagnoses associated with the specified patient identifier.
Task<List<PatientDiagnosis>> GetByPatientId(ObjectId patientId)
Parameters
patientIdObjectIdThe unique identifier of the patient whose diagnoses are being retrieved.
Returns
- Task<List<PatientDiagnosis>>
A task representing the asynchronous operation, containing a list of PatientDiagnosis records for the specified patient; an empty list is returned if no diagnoses are found.
ProcessDiagnosis(List<PatientDiagnosis>, Patient, DateTime)
Processes the provided list of patient diagnoses for the specified patient at the given message time.
Task ProcessDiagnosis(List<PatientDiagnosis> diagnosis, Patient patient, DateTime messageTime)
Parameters
diagnosisList<PatientDiagnosis>The list of patient diagnoses to be processed.
patientPatientThe patient associated with the diagnoses.
messageTimeDateTimeThe timestamp of the message triggering the diagnosis processing.
Returns
ProcessDiagnosisObservation(ApiRequest, Patient)
Processes a diagnosis observation for the specified patient based on the supplied API request data.
Task ProcessDiagnosisObservation(ApiRequest apiRequest, Patient patient)
Parameters
apiRequestApiRequestThe API request containing the diagnosis observation payload and contextual information to process.
patientPatientThe patient to whom the diagnosis observation pertains.
Returns
SaveRequest(ApiRequest, Patient)
Persists the specified API request along with its associated patient data.
Task SaveRequest(ApiRequest apiRequest, Patient patient)
Parameters
apiRequestApiRequestThe API request to be saved.
patientPatientThe patient associated with the API request.
Returns
UpdateManyObjectId(string, ObjectId, ObjectId)
Updates multiple records by replacing the oldId with the new id in the field identified by nameId.
Task UpdateManyObjectId(string nameId, ObjectId id, ObjectId oldId)
Parameters
nameIdstringThe identifier of the field or property whose ObjectId values will be updated.
idObjectIdThe new ObjectId value to assign to the matching records.
oldIdObjectIdThe existing ObjectId value to be replaced in the matching records.