diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index bc2c4d60..8489d506 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -56,6 +56,15 @@ namespace BMA.EHR.Application.Repositories.Reports return thaiYear.Substring(2); } + public async Task GetInsigniaPeriod(Guid id) + { + var period = await _dbContext.Set() + .FirstOrDefaultAsync(x => x.Id == id); + if (period == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + return period; + } + public async Task GetKhr1Report(Guid id) { var period = await _dbContext.Set()