i want to change workitem's status using n-action
See original GitHub issuei have tried to change status for workitems in uwl using n-action.
but i got status code - 0x0123(No such action).
i am new to dicom and couldn’t find references about changing workitem’s status with pynetdicom.
please let me know what is the problem in below code.
or are there examples?
thank you in advance.
n-action document: http://dicom.nema.org/dicom/2013/output/chtml/part04/sect_CC.2.html
from pydicom.dataset import Dataset
from pynetdicom import AE
from pynetdicom.sop_class import (
UnifiedProcedureStepPushSOPClass
)
from pynetdicom.presentation import (
UnifiedProcedurePresentationContexts
)
from pydicom.uid import generate_uid
ae = AE(ae_title='calling_ae')
assoc = ae.associate(
ip,
port,
contexts=UnifiedProcedurePresentationContexts,
ae_title='called_ae'
)
ds = Dataset()
ds.TransactionUID = generate_uid()
ds.ProcedureStepState = 'IN PROGRESS'
(status, reply) = assoc.send_n_action(
ds,
1,
UnifiedProcedureStepPushSOPClass,
sop_instance_uid
)
assoc.release()
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (10 by maintainers)
Top Results From Across the Web
Move work items and change the work item type in Azure Boards
Learn how to change the work item type or bulk move work items to another project in Azure Boards.
Read more >Workflow work item, two agents, and status IN PROCESS
If you want to change the status, selct the workitem which has already status 'IN PROCESS', then rightclick on it, you will get...
Read more >Configure Work Item Workflow - Siemens PLM
Field changes and workflow functions only take place when the Action is invoked manually by changing the Work Item's status. The Conditions and...
Read more >Work items - IBM
The status and number of work items are indicators of the condition of your project. Work item types. The Scrum process is ready...
Read more >Work Item States in Azure DevOps - Medium
For example if you want to change the Agile template to include a state called Approved under the Proposed category you can just...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, I think this is a pynetdicom issue. The DICOM Standard says:
In essence, dcm4chee wants the requested presentation context to be UPS Pull and the N-ACTION-RQ’s Requested SOP Class UID to be UPS Push. pynetdicom doesn’t allow that with
Association.send_n_action()
, when I patch it then everything works as expected. dcm4chee doesn’t like having an association with all the UPS presentation contexts, either, it just wants one.I’ll double check my reasoning and probably put out a patch release. If you need it working sooner rather than later then this branch should work with:
Thanks!