=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -29,6 +29,7 @@ public class AdasProvider(IOptions<ProvidersSettings> providerSettings, IHttpCli
|
||||
/// </summary>
|
||||
/// <param name="patient">The patient for whom observations are being calculated.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, returning a list of patient observations.</returns>
|
||||
/// <!-- aidoc:v1 sig=ab999e4 body=ac14195 -->
|
||||
public override async Task<List<PatientObservation>> GetObservations(Patient patient)
|
||||
{
|
||||
var calculatedObservations = new List<PatientObservation>();
|
||||
@@ -88,6 +89,7 @@ public class AdasProvider(IOptions<ProvidersSettings> providerSettings, IHttpCli
|
||||
/// </summary>
|
||||
/// <param name="medicationPredict">The list of ADAS medication prediction results to be serialized. Only the first five entries are included.</param>
|
||||
/// <returns>A string containing the selected medication prediction entries joined by the "^" delimiter.</returns>
|
||||
/// <!-- aidoc:v1 sig=4474eb5 body=ea7295b -->
|
||||
private static string ParseAdasMedicationsToMedicationObservation(
|
||||
List<ResultModelPredictMedicationAdas> medicationPredict)
|
||||
{
|
||||
@@ -100,6 +102,7 @@ public class AdasProvider(IOptions<ProvidersSettings> providerSettings, IHttpCli
|
||||
/// </summary>
|
||||
/// <param name="patientNumber">The unique identifier of the patient whose ADAS stay prediction is being requested.</param>
|
||||
/// <returns>A task containing the deserialized <see cref="ResultModelPredictOfStayAdas"/> result on success, or null if the patient number is null, the response is unsuccessful, or the call throws.</returns>
|
||||
/// <!-- aidoc:v1 sig=7c8fb5e body=5aa481c -->
|
||||
private async Task<ResultModelPredictOfStayAdas?> GetPredictOfStay(string? patientNumber)
|
||||
{
|
||||
if (patientNumber == null)
|
||||
@@ -140,6 +143,7 @@ public class AdasProvider(IOptions<ProvidersSettings> providerSettings, IHttpCli
|
||||
/// </summary>
|
||||
/// <param name="patientNumber">The unique identifier of the patient whose ADAS medication predictions are being retrieved.</param>
|
||||
/// <returns>A task containing a list of <see cref="ResultModelPredictMedicationAdas"/> with the predicted medication data, or null if the request fails or the patient number is null.</returns>
|
||||
/// <!-- aidoc:v1 sig=1381cb8 body=f17df11 -->
|
||||
private async Task<List<ResultModelPredictMedicationAdas>?> GetPredictMedications(string? patientNumber)
|
||||
{
|
||||
if (patientNumber == null)
|
||||
@@ -176,6 +180,7 @@ public class AdasProvider(IOptions<ProvidersSettings> providerSettings, IHttpCli
|
||||
/// Creates a new <see cref="HttpClient"/> instance and configures it with the configured base address URL.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="HttpClient"/> with its <see cref="HttpClient.BaseAddress"/> set to the configured <c>Url</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=12d10b8 body=3c7c671 -->
|
||||
private HttpClient GetClient()
|
||||
{
|
||||
var client = HttpClientFactory.CreateClient();
|
||||
|
||||
@@ -21,5 +21,6 @@ public abstract class BaseProvider(
|
||||
/// </summary>
|
||||
/// <param name="patient">The patient whose observations are being requested.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing a list of <see cref="PatientObservation"/> entries for the patient.</returns>
|
||||
/// <!-- aidoc:v1 sig=a880577 -->
|
||||
public abstract Task<List<PatientObservation>> GetObservations(Patient patient);
|
||||
}
|
||||
Reference in New Issue
Block a user