Skip to content

Commit

Permalink
Generalize Attribute Coercion and enable to apply multiple matching …
Browse files Browse the repository at this point in the history
…Attribute Coercions in configurable order #2967
  • Loading branch information
gunterze committed Dec 1, 2021
1 parent 175e320 commit c0ef58f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3174,7 +3174,7 @@ dicomTransferRole: SCU
dicomDeviceName: dicomDeviceName=mppsscu,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
dcmProperty: SendingApplicationEntityTitle=MPPSSCU
objectClass: dcmArchiveAttributeCoercion2
dcmURI: suppl-from-device:MPPSSCU
dcmURI: sup-from-dev:MPPSSCU
cn: Supplement MPPS

dn: dcmEntity=Instance,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
Expand Down Expand Up @@ -3560,7 +3560,7 @@ dicomTransferRole: SCU
dicomDeviceName: dicomDeviceName=storescu,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
dcmProperty: SendingApplicationEntityTitle=STORESCU
objectClass: dcmArchiveAttributeCoercion2
dcmURI: suppl-from-device:STORESCU
dcmURI: sup-from-dev:STORESCU
cn: Supplement Composite

dn: dcmExporterID=QIDO-JSON,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
* @since Nov 2021
*/
@ApplicationScoped
@Named("suppl-from-device")
@Named("sup-from-dev")
public class SupplementFromDeviceCoercionProcessor implements CoercionProcessor {
static final Logger LOG = LoggerFactory.getLogger(SupplementFromDeviceCoercionProcessor.class);
private static final ElementDictionary DICT = ElementDictionary.getStandardElementDictionary();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2115,15 +2115,15 @@ private static void addArchiveDeviceExtension(Device device, ConfigType configTy

ext.addAttributeCoercion2(new ArchiveAttributeCoercion2()
.setCommonName("Supplement Composite")
.setURI("suppl-from-device:STORESCU")
.setURI("sup-from-dev:STORESCU")
.setDIMSE(Dimse.C_STORE_RQ)
.setRole(SCU)
.setSendingAETitle("STORESCU")
.setOtherDevice(storescu));

ext.addAttributeCoercion2(new ArchiveAttributeCoercion2()
.setCommonName("Supplement MPPS")
.setURI("suppl-from-device:MPPSSCU")
.setURI("sup-from-dev:MPPSSCU")
.setDIMSE(Dimse.N_CREATE_RQ)
.setRole(SCU)
.setSendingAETitle("MPPSSCU")
Expand Down

0 comments on commit c0ef58f

Please sign in to comment.