File path changing

167 views
Skip to first unread message

florin ghimie

unread,
Dec 31, 2019, 2:58:24 AM12/31/19
to dcm4che
Hi guys,
I’m very new to dcm4che, yesterday was my first server instalation and test with a real DICOM equipment. A success after almost 4 hours because I had to change the all AEs in JBoss app... but seems that it’s working fine.

My question is:
Is there a simple way to change the file path like Year(xxxx)/Day(xx-xx-xx)/patient name(xxxx^xxx)
This was the way that old pacs server sore the images and it’s very complicated to convince the doctors to work in an other way...

Thank you.

Gunter Zeilinger

unread,
Dec 31, 2019, 2:56:36 PM12/31/19
to dcm...@googlegroups.com
You may change Property "pathFormat" of Storage Descriptor "fs1" from

pathFormat={now,date,yyyy/MM/dd}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}

to

pathFormat={now,date,yyyy/MM-dd}/{00100010}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}





Sent with ProtonMail Secure Email.


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐


You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

Dr Suresh Viswanathan

unread,
Dec 31, 2019, 11:22:25 PM12/31/19
to dcm...@googlegroups.com
Just curious, but why are you giving file system level access to the end users? Using DICOM to retrieve images, the storage mechanism is abstracted.

Suresh.

> On 31-Dec-2019, at 13:28, florin ghimie <florin...@gmail.com> wrote:
>
> Hi guys,
> --

florin ghimie

unread,
Jan 1, 2020, 5:42:52 AM1/1/20
to dcm4che
In our country the doctors are working remote most of the time and they want to have the images locally on their machine. We are offering them via VPN the images to analyze with proper and dedicated software.
You are using the web viewer?

florin ghimie

unread,
Jan 1, 2020, 6:08:27 AM1/1/20
to dcm4che
Could you be more specific? Where I can find this setting in jmx-console?

Dr Suresh Viswanathan

unread,
Jan 2, 2020, 9:54:28 AM1/2/20
to dcm...@googlegroups.com
Yeah, we use the Web Viewer.

Direct access to the file system seems very risky. Do you restrict their rights to read only?

> On 01-Jan-2020, at 16:12, florin ghimie <florin...@gmail.com> wrote:
>
> In our country the doctors are working remote most of the time and they want to have the images locally on their machine. We are offering them via VPN the images to analyze with proper and dedicated software.
> You are using the web viewer?
>
> --
> You received this message because you are subscribed to the Google Groups "dcm4che" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dcm4che/75743da9-dbe3-4d61-bdff-d07ea890156f%40googlegroups.com.

florin ghimie

unread,
Jan 2, 2020, 10:26:25 AM1/2/20
to dcm...@googlegroups.com
Yes read only.


Sent from my iPhone

> On 2 Jan 2020, at 16:54, Dr Suresh Viswanathan <sur...@raster.in> wrote:
>
> Yeah, we use the Web Viewer.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dcm4che/3F39CC10-ECE1-492E-B0C5-847E1290D24C%40raster.in.

florin ghimie

unread,
Jan 22, 2020, 4:48:37 PM1/22/20
to dcm...@googlegroups.com
Hi,
I successfully install dcm4chee arc 5 in docker and now I made some test using format that you provided but I get one error using STORESCU tool:
STORESCU->DCM4CHEE(1) >> 15:C-STORE-RSP[pcid=5, status=110H, errorComment=java.lang.IllegalArgumentException: Illegal character in path at
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian]

If I use Patient ID {00100020} it’s fine but using the name no… might be the ^ character from name?
Thanks


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

Gunter Zeilinger

unread,
Jan 23, 2020, 2:51:49 AM1/23/20
to dcm...@googlegroups.com
You may try {00100010,urlencoded}.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

florin ghimie

unread,
Jan 23, 2020, 6:42:53 AM1/23/20
to dcm...@googlegroups.com

florin ghimie

unread,
Feb 2, 2020, 5:10:00 AM2/2/20
to dcm4che
Hi,
I have a new requirement now after one week of testing... in one day one doctor forget to send the images to ARC and sent it next day.
The solution we are using is somehow based on direct file access not using some web viewer and that is the reason we need to have images in correct path and easy to be found by the doctors.
Ring now I'm using this path format: {Patient name_Patient ID}

pathFormat={now,date,yyyy/MM/dd}/{00100010,urlencoded}_{00100020}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}

The requirement now is if it's possible to change the path to use instead of {now,date,yyyy/MM/dd} to have Study Date (00080020)
Something like:

pathFormat={00080020,yyyy/MM/dd}/{00100010,urlencoded}_{00100020}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}

Thank you.

Gunter Zeilinger

unread,
Feb 2, 2020, 4:35:55 PM2/2/20
to dcm...@googlegroups.com

pathFormat={00080020,yyyy/MM/dd}/{00100010,urlencoded}_{00100020}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}

Just
pathFormat={00080020}/{00100010,urlencoded}_{00100020}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}

Gunter Zeilinger

unread,
Feb 2, 2020, 4:38:58 PM2/2/20
to dcm...@googlegroups.com



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
or

pathFormat={00080020,data,yyyy/MM/dd}/{00100010,urlencoded}_{00100020}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}

if you want to group studies by year and month...



Gunter Zeilinger

unread,
Feb 2, 2020, 4:40:05 PM2/2/20
to dcm...@googlegroups.com



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
pathFormat={00080020,date,yyyy/MM/dd}/{00100010,urlencoded}_{00100020}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}

florin ghimie

unread,
Feb 2, 2020, 7:47:47 PM2/2/20
to dcm4che
Working like a charm!
Thanks.

florin ghimie

unread,
Jan 14, 2023, 7:06:32 PM1/14/23
to dcm4che
Hi Gunter,
I have one question regarding pathFormat, I tried to add in storage path also the modality but I wasn't able to find a way to do it.
First I tried to use the Modality (0008,0060) but instead of creating a directory with ../CT/.. or ../MR/.. it creates ../CT/..  ../SR/..  ../MR/..  ../PR/.. with information in different folders.
Second I tried to use the Station Name  (0008,1010), here the CT was fine but the MR sent also files outside desired folder.
Third time I tried to us the Sending Application Entity Title of Series  (7777,1037) but the folder created was ../null/..

Any idea how to split in 2 big directories one for CT and one for MR?

Thank you!

Gunter Zeilinger

unread,
Jan 15, 2023, 4:44:51 AM1/15/23
to dcm4che
You may configure a second archive network AE for storage, associated with a different storage directory, and configure the modalities to address the archive by different (called) AE Titles.
Reply all
Reply to author
Forward
0 new messages