Skip to content

Commit

Permalink
Fix cast in SeriesNumber mostly affecting C-FIND and C-MOVE services (#…
Browse files Browse the repository at this point in the history
…662)

* Fix cast in SeriesNumber mostly affecting C-FIND and C-MOVE services

* Update dicoogle/src/main/java/pt/ua/dicoogle/server/SearchDicomResult.java

Co-authored-by: Eduardo Pinho <enet4mikeenet@gmail.com>

---------

Co-authored-by: Eduardo Pinho <enet4mikeenet@gmail.com>
  • Loading branch information
bastiao and Enet4 authored Aug 10, 2023
1 parent 1b3cd02 commit c594989
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ public DicomObject next() {

result.putString(Tag.Modality, VR.CS, (String) sR.get("Modality"));

result.putString(Tag.SeriesNumber, VR.IS, "" + (String) sR.get("SeriesNumber"));
String seriesNumber = String.valueOf(sR.get("SeriesNumber"));
if (seriesNumber.endsWith(".0")) {
seriesNumber = seriesNumber.substring(0, seriesNumber.length() - 2);
}
result.putString(Tag.SeriesNumber, VR.IS, seriesNumber);


return result;
Expand Down

0 comments on commit c594989

Please sign in to comment.