
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@umessen/dicom-deidentifier
Advanced tools
đź§° DICOM de-identification library for TypeScript.
A configurable TypeScript port of DicomDeidentify to deidentify DICOM files according to http://dicom.nema.org/medical/dicom/current/output/html/part15.html#table_E.1-1
npm i @umessen/dicom-deidentifier
Usage is similar to DicomDeidentify.
const deidentifier = new Deidentifier({
profileOptions: [RetainDeviceIdentOption, RetainLongModifDatesOption],
dummies: {
default: 'removed',
lookup: {
[Tag.forName("PatientName")]: 'JOHN^DOE',
},
},
keep: [Tag.forName("PatientAddress")],
})
const result = deidentifier.deidentify(new Uint8Array(dicomFile));
writeFileSync('deidentified.dcm', result);
You can add special handlers for custom processing:
new Deidentifier({
/* ... */
specialHandlers: [
// Special handler that removes all date elements
(element, options) => {
if (element.getVR() === 'DA' || element.getVR() === 'DT') {
element.delete();
// Return true to skip the default deidentification logic and any futher special handlers for this element.
return true;
} else {
// Return false if you want to run further special handlers, including the default deidentification logic.
return false;
}
},
// Logging special handler
// Note: This will not run for date elements as the previous special handler will return early.
(element, options) => {
console.log(element);
return false;
}
],
});
This project is Open Source Software provided under the terms of the MIT License. More information is available in embedded licensing files.
FAQs
DICOM de-identification library for TypeScript
We found that @umessen/dicom-deidentifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies