feature: Barcode/QR Cover Sheet System
This commit is contained in:
@@ -5,8 +5,10 @@ public class CreateBatchForm
|
||||
[Required]
|
||||
public IFormFile File { get; set; } = null!;
|
||||
|
||||
[Required]
|
||||
public string BatchType { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// Required unless <see cref="CoverSheetCode"/> is provided; cover sheet values override when both are sent.
|
||||
/// </summary>
|
||||
public string? BatchType { get; set; }
|
||||
|
||||
public string? Track { get; set; }
|
||||
|
||||
@@ -15,5 +17,8 @@ public class CreateBatchForm
|
||||
public Guid? SupersedesBatchId { get; set; }
|
||||
|
||||
public CreateBatchRequest ToMetadata() =>
|
||||
new(BatchType, Track, PatientId, SupersedesBatchId);
|
||||
new(BatchType ?? throw new InvalidOperationException("BatchType is required."),
|
||||
Track, PatientId, SupersedesBatchId);
|
||||
|
||||
public string? CoverSheetCode { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user