STOW RS Exporter - dcm4che/dcm4chee-arc-light GitHub Wiki
An exporter is needed if one intends to store objects from archive to a remote destination using the Export queue.
An export of objects can be done in two ways :
-
Configure a remote Web Application for each of the system(s) acting as STOW-RS server(s). Archive is pre-configured by default with a
stowrsddevice which can act as a remote STOW-RS server emulating the stowrsd tool where DICOM objects can be stored. -
Optionally, configure one or more properties to this web application
Name Description Default Value Example chunkedIndicates to send STOW-RS requests in chunked transfer mode falsechunked=trueconcurrencySpecifies maximal number of concurrently invoked STOW-RS requests. 1 concurrency=5transfer-syntaxComma separated list of Transfer Syntax identified by its UID or keyword acceptable by the STOW-RS service. If absent or if the Transfer Syntax of object stored at archive matches with one of the configured values, send the object in the Transfer Syntax as it is stored at the archive. Otherwise send the object decompressed to Explicit VR Little Endian. If the specified list does not include Explicit VR Little Endian, but Implicit VR Little Endian, the objects will be send decompressed to Implicit VR Little Endian. - transfer-syntax=JPEGLosslessSV1bearer-tokenSend specified token in HTTP header Authorization: Bearer<TokenValue>- bearer-token=UmFuZG9tbHkgdG9rZW4ubasic-authUse HTTP Basic Authentication with specified <user> :<password>- basic-auth=admin:secretallow-any-hostnameIf HTTPS is used you may set this property to trueto accept server certificates which does not match the actual host name of the server.falseallow-any-hostname=truedisable-trust-managerIf HTTPS is used you may set this property to trueto do not need to configure a truststore for verifying the server certificatefalsedisable-trust-manager=true
There are two ways to Create an Exporter using the Configuration page of Archive UI.
- Using
Create Exporterwizard :- Use
Configurationpage ->Devicestab. InMore FunctionsselectCreate Exporter. Select the archive device to which Exporter needs to be connected to. OnExportersection, enter the values forExporter ID,URI(eg.stowrs:stowrsd. Note thatSTORESCPhere is the Remote AE acting as destination),Queue NameandApplication Entity (AE) title. Optionally choose to configure one or more optional configurations andApply. - If one wants to add more optional values to the
Exporter, useConfigurationpage ->Devicestab. Selectdcm4chee-arc -> Extensions -> Edit extension -> Device Extension -> Extensions -> Edit extension -> Archive Device. In itsChild objectsfrom the list ofExporter Descriptorselect theExportercreated above. Choose to optionally configure one or more of the other configurations andSave.
- Use
- Create Exporter via Configurator :
- Use
Configurationpage ->Devicestab. Selectdcm4chee-arc -> Extensions -> Edit extension -> Device Extension -> Extensions -> Edit extension -> Archive Device. - In its
Child objectsselect+ Add a new Exporteragainst the fieldExporter Descriptor. - Enter the values for
Exporter ID,URI(eg.dicom:STORESCP. Note thatSTORESCPhere is the Remote AE acting as destination),Queue NameandApplication Entity (AE) title. Optionally choose to configure one or more of the other configurations andSave.
- Use
One may either
-
create a LDIF file (e.g.):
version: 1 # The Exporter object, specifies the type and destination of the export, # which local AE shall perform the forward, and which JMS Queue shall be used to queue Export # Tasks ready to be performed, and optionally to defer the export to specified times dn: dcmExporterID=StowExporter,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org objectClass: dcmExporter dcmExporterID: StowExporter dcmURI: stow:DCM4CHEE dicomAETitle: DCM4CHEE1 dcmQueueName: Export1 dicomDescription: Export objects using STOW-RS service # defer export after business hours (between 6 pm and 6 am, or at any time on Saturday and Sunday) #dcmSchedule: hour=18-6 dayOfWeek=* #dcmSchedule: hour=* dayOfWeek=0,6
and import it to the LDAP Server by using the ldapadd command line utility or the LDIF Import... function of Apache Directory Studio
- or directly use the New Entry... function to create corresponding Exporter entries.
DCM4CHEE mentioned in the dcmURI is acting as the STOW server destination of objects exported from
intermediary archive (DCM4CHEE1).
Some attributes in the above example have been commented out. They only show possible configurations (one may choose to add them or set with different values based on one's application needs) related to schedules and properties.
Refer Exporter Descriptor to understand the description of attributes.
Go to the Control tab on Configuration page in archive UI and reload the configuration.