Triggers
Description
Triggers are used to send information to an external system via the REST API using the POST method.
There are two triggers:
- Stable Study: Sends the study data when it is considered stable. It may be sent multiple times as the study is updated.
- MPPS Complete: Sends study data received by the DICOM MPPS service.
Stable Study
The following steps explain how to configure it with an example application that receives the study and then generates a link so the patient can access the viewer.
-
Download the example application from the link below and follow the installation steps. https://github.com/ForzaSoft/pacs-callback-server
-
Create a new role in the roles tab by clicking Add role and filling in:
- Name: test
- Description: test
- Type: Token
- In rule #1, fill in:
- Object: /api/v1/dicom/token
- Action: POST
-
Create a new token in the tokens tab by clicking Add token and filling in:
- Description: test
- Roles: test
- Leave No expiration selected.
-
Click Apply changes so the system activates the new security configuration.
-
Click the Token icon in the token list to copy the code to the clipboard. Paste this code into the
REMOTE_PACS_TOKENvariable in theindex.jsfile. -
Start the server application with the npm start command.
-
In the PACS, enable message sending from the triggers tab in the system configuration. The server does not need to be restarted for the change to take effect.
-
To generate a new message, upload a new DICOM study or modify an existing one.
If everything is configured correctly, the server should receive the following JSON:
Study received: {
studyDbId: '67349ae004b70fc862c6ede4',
studyDate: '2023011',
studyTime: '112628.000',
accessionNo: 'ACCESSION_NUMBER',
modsInStudy: [ 'US' ],
cuidsInStudy: [ '1.2.840.10008.5.1.4.1.1.3.1', '1.2.840.10008.5.1.4.1.1.6.1' ],
instName: 'INSTITUTION_NAME',
refPhysician: 'REF_PHYSICIAN',
stationName: 'STATION_NAME',
studyDesc: 'STUDY_DESCRIPTION',
deptName: 'DEPARTMENT_NAME',
perfPhysician: 'PERFORMING_PHYSICIAN',
readPhysician: 'READING_PHYSICIAN',
patDbId: '67349ae004b70fc862c6ede1',
patName: 'PATIENT_NAME',
patId: 'PATIENT_ID',
patIdIssuer: 'PATIENT_ID_ISSUER',
patBirthDate: '19830622',
patSex: 'F',
studyIuid: '1.2.826.0.1.3680043.10.426.02134.199',
studyId: 'STUDY_ID',
studyInstCount: 10,
seriesCount: 10,
aeTitle: 'AE_TITLE',
link: 'http://localhost:8080/view?mode=session&ids=xx.xx.xx.xx&auth=xxxxxxxxxxxxxx'
}