startDate h-7
This commit is contained in:
@@ -2,7 +2,7 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
dicomweb-proxy:
|
dicomweb-proxy:
|
||||||
image: dicomweb-proxy:2.0
|
image: dicomweb-proxy:3.0.1
|
||||||
container_name: dicomweb-proxy
|
container_name: dicomweb-proxy
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
|
|||||||
@@ -51,8 +51,7 @@ module.exports = function (server: FastifyInstance, opts: unknown, done: () => v
|
|||||||
const hasStudyDate = query.StudyDate !== undefined;
|
const hasStudyDate = query.StudyDate !== undefined;
|
||||||
|
|
||||||
if (!hasMedicalRecord && !hasAccessionNumber && !hasPatientName && !hasStudyInstanceUID && !hasStudyDate) {
|
if (!hasMedicalRecord && !hasAccessionNumber && !hasPatientName && !hasStudyInstanceUID && !hasStudyDate) {
|
||||||
// TODO: buat startDate tgl H-1 karena terkadang kena Bug beda timezone +-7 di file DICOM nya
|
const startDate = moment().subtract(7, 'days').format('YYYYMMDD');
|
||||||
const startDate = moment().format('YYYYMMDD');
|
|
||||||
const endDate = moment().format('YYYYMMDD');
|
const endDate = moment().format('YYYYMMDD');
|
||||||
query.StudyDate = `${startDate}-${endDate}`;
|
query.StudyDate = `${startDate}-${endDate}`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user