Skip to content

Instantly share code, notes, and snippets.

@mwoodbri
Created February 21, 2014 11:49
Show Gist options
  • Save mwoodbri/9132998 to your computer and use it in GitHub Desktop.
Save mwoodbri/9132998 to your computer and use it in GitHub Desktop.
Index: dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/WADOSupport.java
===================================================================
--- dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/WADOSupport.java (revision 18247)
+++ dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/WADOSupport.java (working copy)
@@ -717,6 +717,17 @@
WADODatasourceResponseObjectImpl resp = new WADODatasourceResponseObjectImpl(
ds, transferSyntax, CONTENT_TYPE_DICOM,
HttpServletResponse.SC_OK, null);
+ //if ("yes".equals(req.getRequest().getParameter("anonymize"))) {
+ d.putPN(Tags.PatientName);
+ d.putLO(Tags.PatientID);
+ d.putCS(Tags.PatientSex);
+ d.putDA(Tags.PatientBirthDate);
+ d.putLO(Tags.PatientAddress);
+ d.putPN(Tags.ReferringPhysicianName);
+ d.putLO(Tags.InstitutionName);
+ d.putSH(Tags.StationName);
+ d.putLO(Tags.ManufacturerModelName);
+ //}
resp.setPatInfo(d);
return resp;
} catch (Exception e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment