MWL thru REST - Compulsory Attributes

119 views
Skip to first unread message

Mamisoa Andriantafika

unread,
Jul 21, 2017, 5:48:03 PM7/21/17
to dcm...@googlegroups.com

Hi,

I'm trying to update a scheduled procedure in MWL thru Rest from dcm4chee-arc.

What are the compulsory attributes if I only want to update from "SCHEDULED" to "DEPARTED" ?

This simple json get an answer and seems to update:

{
 
"00100020": {
   
"vr": "LO",
   
"Value": ["22879"]
 
},
 
"0020000D": {
   
"vr": "UI",
   
"Value": ["2.25.289401306701039254349950808360341823820"]
 
},
 
"00400100": {
   
"vr": "SQ",
   
"Value": [      {
       
"00400020": {
         
"vr": "CS",
         
"Value": ["DEPARTED"]
       
}
     
}
   
]
 
}
}

Answer:

{"00080050":{"vr":"SH","Value":["A-00000010"]},"00100020":{"vr":"LO","Value":["22879"]},"0020000D":{"vr":"UI","Value":["2.25.289401306701039254349950808360341823820"]},"00400100":{"vr":"SQ","Value":[{"00400002":{"vr":"DA","Value":["20170721"]},"00400003":{"vr":"TM","Value":["214609.246"]},"00400009":{"vr":"SH","Value":["SPS-00000015"]},"00400020":{"vr":"CS","Value":["DEPARTED"]}}]},"00401001":{"vr":"SH","Value":["RP-00000010"]}}

but I still see it in MWL ...

Mike

Mamisoa Andriantafika

unread,
Jul 21, 2017, 5:51:32 PM7/21/17
to dcm4che
Ok I added the SPS and it updated.

Gunter Zeilinger

unread,
Jul 24, 2017, 5:48:38 AM7/24/17
to dcm...@googlegroups.com
The POST dcm4chee-arc/aets/{aet}/rs/mwlitems request have to contain the whole MWL Item as DICOM JSON object, not just die attribute you want to update.

To change the Patient ID you will have to use another service: POST dcm4chee-arc/aets/{aet}/rs/patients/{patientID}/changeid/{priorPatientID} .

Attribute Scheduled Procedure Step Status is not in the root Dataset, but in an item of the Scheduled Procedure Step Sequence. s. http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_K.6.html#sect_K.6.1.2.2

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

Mamisoa Andriantafika

unread,
Jul 24, 2017, 9:28:17 AM7/24/17
to dcm4che
Just to be sure to understand.

I added the item in MWL using REST. I got a JSON response.

To update this item, I update this response and send the whole item ? I thought that I could update only using patient ID and UID for this item that are specific, and the element to be updated.

But I did not want to change the patient ID, which should indeed be change through the adequate service.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

Gunter Zeilinger

unread,
Jul 24, 2017, 9:51:56 AM7/24/17
to dcm...@googlegroups.com
On Mon, Jul 24, 2017 at 3:28 PM, Mamisoa Andriantafika <m.andri...@ophtalmologiste.be> wrote:
Just to be sure to understand.

I added the item in MWL using REST. I got a JSON response.

To update this item, I update this response and send the whole item ?

Yes
 
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages