Skip to content

Commit

Permalink
fix: missing require logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed May 22, 2022
1 parent a439538 commit 8205ae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/dicom-web/controller/qido-rs-instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const _ =require('lodash');
const moment = require('moment');
const {qidorsFunc} = require('./qido-rs');
const { setRetrieveURL } = require('../../../models/DICOMWeb');
const { logger } = require("../../../utils/log");

module.exports = async function (req , res) {
logger.info(`[QIDO-RS] [Path: /series, Retrieve all of instances in the database] [Request query: ${JSON.stringify(req.query)}]`);
Expand Down
3 changes: 2 additions & 1 deletion api/dicom-web/controller/qido-rs-series.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const _ =require('lodash');
const moment = require('moment');
const {qidorsFunc} = require('./qido-rs');
const { setRetrieveURL } = require('../../../models/DICOMWeb');
const { logger } = require("../../../utils/log");

module.exports = async function (req , res) {
logger.info(`[QIDO-RS] [Path: /series, Retrieve all of series in the database] [Request query: ${JSON.stringify(req.query)}]`);
Expand Down Expand Up @@ -36,7 +37,7 @@ module.exports = async function (req , res) {
if (!paramsStr) {
paramsStr = "studyID";
}
/*let QIDOFunc = {"studyID" :getStudyDicomJson , "studyIDseriesID":getSeriesDicomJson , "studyIDseriesIDinstanceID": getInstanceDicomJson};*/

let docs = await getStudiesInstanceDicomJson(newQS , req.params , parseInt(limit) , parseInt(skip));
for (let i in docs) {
let studyDate = _.get(docs[i] , "00080020.Value");
Expand Down

0 comments on commit 8205ae9

Please sign in to comment.