Here is a working flow
Use CTRL+I to import it.
[{"id":"089792404c9ee4b8","type":"function","z":"a55f8f0f93e84992","name":"get patient summary","func":"const dicomFileAsBuffer = msg.payload;\n\ntry {\n const dataSet = dicomParser.parseDicom(dicomFileAsBuffer);\n const patient = {\n modality: dataSet.string('x00080060'),\n studyDescription: dataSet.string('x00081030'),\n seriesDescription: dataSet.string('x0008103E'),\n patientID: dataSet.string('x00100020'),\n gender: dataSet.string('x00100040'),\n patientName: dataSet.string('x00100010'),\n }\n msg.payload = patient;\n return msg;\n} catch (ex) {\n node.error(ex, msg);\n}\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[{"var":"dicomParser","module":"dicom-parser"}],"x":1820,"y":180,"wires":[["7afc5bd18b143ef5"]]},{"id":"23968a7add27a810","type":"inject","z":"a55f8f0f93e84992","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1760,"y":120,"wires":[["80a182546358da7d"]]},{"id":"7afc5bd18b143ef5","type":"debug","z":"a55f8f0f93e84992","name":"summary","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":2020,"y":180,"wires":[]},{"id":"80a182546358da7d","type":"http request","z":"a55f8f0f93e84992","name":"http get bbmri-53323851.dcm","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://raw.githubusercontent.com/ivmartel/dwv/master/tests/data/bbmri-53323851.dcm","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":1980,"y":120,"wires":[["089792404c9ee4b8"]]},{"id":"a1cc17ca8be86649","type":"inject","z":"a55f8f0f93e84992","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1760,"y":260,"wires":[["3637bb4fca24b108"]]},{"id":"3637bb4fca24b108","type":"http request","z":"a55f8f0f93e84992","name":"http get bbmri-53323851.dcm","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://raw.githubusercontent.com/ivmartel/dwv/master/tests/data/bbmri-53323851.dcm","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":1980,"y":260,"wires":[["d8033b34f47d86dc"]]},{"id":"d8033b34f47d86dc","type":"function","z":"a55f8f0f93e84992","name":"get all values","func":"const dicomFileAsBuffer = msg.payload;\ntry {\n const dataSet = dicomParser.parseDicom(dicomFileAsBuffer);\n const data = {};\n Object.values(dataSet.elements).forEach(e => { \n data[e.tag] = dataSet.string(e.tag);\n }) \n msg.payload = data;\n return msg;\n} catch (ex) {\n node.error(ex, msg);\n}\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[{"var":"dicomParser","module":"dicom-parser"}],"x":1790,"y":320,"wires":[["482e04d16227f0f6"]]},{"id":"482e04d16227f0f6","type":"debug","z":"a55f8f0f93e84992","name":"all values","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":2020,"y":320,"wires":[]}]