38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System.Text.Json.Serialization;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Livia.Models.Data;
|
|
|
|
public readonly record struct SearchQueryCondition
|
|
{
|
|
[JsonPropertyName("last_update_time"), UsedImplicitly]
|
|
public List<string>? ImportTime { get; init; }
|
|
|
|
[JsonPropertyName("study_date"), UsedImplicitly]
|
|
public List<string>? StudyDate { get; init; }
|
|
|
|
[JsonPropertyName("patient_id"), UsedImplicitly]
|
|
public string? PatientId { get; init; }
|
|
|
|
[JsonPropertyName("patient_name"), UsedImplicitly]
|
|
public string? PatientName { get; init; }
|
|
|
|
[JsonPropertyName("patient_age"), UsedImplicitly]
|
|
public List<int>? PatientAge { get; init; }
|
|
|
|
[JsonPropertyName("patient_sex"), UsedImplicitly]
|
|
public string? PatientSex { get; init; }
|
|
}
|
|
|
|
public readonly record struct SearchQueryJson
|
|
{
|
|
[JsonPropertyName("conditions"), UsedImplicitly]
|
|
public SearchQueryCondition Conditions { get; init; }
|
|
|
|
[JsonPropertyName("limit"), UsedImplicitly]
|
|
public int Limit { get; init; }
|
|
|
|
[JsonPropertyName("offset"), UsedImplicitly]
|
|
public int Offset { get; init; }
|
|
}
|