Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage of objects with multiple items in (0010,1002) Other Patient IDs Sequence may fail #3159

Closed
gunterze opened this issue Apr 23, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@gunterze
Copy link
Member

gunterze commented Apr 23, 2021

Storage of objects with multiple items in (0010,1002) Other Patient IDs Sequence may fail:

14:23:57,084 ERROR [org.jboss.as.ejb3.invocation] (EE-ManagedExecutorService-default-Thread-7) WFLYEJB0034:
 Jakarta Enterprise Beans Invocation failed on component StoreServiceEJB for method
  public void org.dcm4chee.arc.store.impl.StoreServiceEJB.checkDuplicatePatientCreated(
   org.dcm4chee.arc.store.StoreContext,org.dcm4che3.data.IDWithIssuer,
   org.dcm4chee.arc.store.impl.UpdateDBResult):
  javax.ejb.EJBException: java.lang.IllegalArgumentException: Keys contain Sequence (0010,1002) with 2 Items

Reproducible by:

  1. add (0010,1002) Other Patient IDs Sequence with multiple items to DICOM object without (0010,0021) Issuer of Patient ID:
    json2dcm -i in.dcm -o out.dcm -j - <<< '{"00101002":{"vr":"SQ","Value":[{"00100020":{"vr":"LO","Value":["888"]}},{"00100020":{"vr":"LO","Value":["999"]}}]}}'
    
  2. send object with supplemented (0010,0021) Issuer of Patient ID and modified UIDs:
    storescu -s00100021=A --uid-suffix=.1 -cDCM4CHEE@localhost:11112 out.dcm
    
  3. send object with other supplemented (0010,0021) Issuer of Patient ID and other modified UIDs:
    storescu -s00100021=B --uid-suffix=.2 -cDCM4CHEE@localhost:11112 out.dcm
    
  4. sending object without (0010,0021) Issuer of Patient ID and original UIDs fails:
    $ storescu -cDCM4CHEE@localhost:11112 out.dcm
    :
    E"ERROR: Received C-STORE-RSP with Status 0110H for /tmp/out.dcm"
    (0000,0100) US [32769] CommandField
    (0000,0120) US [1] MessageIDBeingRespondedTo
    (0000,0800) US [257] CommandDataSetType
    (0000,0900) US [272] Status
    (0000,0902) LO [javax.ejb.EJBTransactionRolledbackException: Keys contain Sequ
    

Introduced by #2851

@gunterze gunterze added the bug Something isn't working label Apr 23, 2021
@gunterze gunterze added this to the 5.23.3 milestone Apr 23, 2021
@gunterze gunterze self-assigned this Apr 23, 2021
@gunterze
Copy link
Member Author

Solved by dcm4che/dcm4che#945

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant