diff --git a/docker-compose.yml b/docker-compose.yml index fd27c37..49305c6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: dicomweb-proxy: - image: dicomweb-proxy:2.0 + image: dicomweb-proxy:3.0.1 container_name: dicomweb-proxy ports: - "5000:5000" diff --git a/src/routes/routes.ts b/src/routes/routes.ts index ed70bcb..0245682 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -51,8 +51,7 @@ module.exports = function (server: FastifyInstance, opts: unknown, done: () => v const hasStudyDate = query.StudyDate !== undefined; 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().format('YYYYMMDD'); + const startDate = moment().subtract(7, 'days').format('YYYYMMDD'); const endDate = moment().format('YYYYMMDD'); query.StudyDate = `${startDate}-${endDate}`;