How Do I Configure Prefetching of Priors?
To set up Prefetching of Priors you will need to open the Relevant Prior Prefetching dialog. This dialog is accessible by clicking Settings > Server Settings > Workflow and then clicking the Relevant Prior Matching tab on the Setup Workflow screen.

The first thing you will need to create is a Query Model. In order to do this, click the New Model button at the bottom left of the screen. This will open up the Define Query Model dialog.
The Query Model is used to retrieve studies to the server during the Fetching stage. To create a query model:
-
Enter a name in the Query Model Name field. This should be something that will allow you to easily identify what constraints this query model uses.
-
Check any of the Patient Name, Patient ID, Issuer of Patient ID, Modality, or Facility boxes. Any boxes chosen will become constraints, meaning that only studies that have the same value for those fields as the reference study will be fetched to the server.
-
If the query model should only retrieve studies done within a specific time frame, check the Study Date Within box and select the number of weeks to cover.
-
If the search should only retrieve studies that are in a certain status, check the Study Status Values box and enter the desired study statuses. Multiple statuses can be separated by a \ (i.e. COMPLETED \ READ).
-
Click OK to close the dialog. This will bring you back to the Relevant Prior Matching form.
Note: You will notice that the query tags that were configured will now be checked. The Query Model Details can be changed at any time by clicking on the Edit Query Details button.
The next step is to configure the Match Details. In order to do this, click the Edit Match Details button. This will bring up the following screen:

There are three levels to determine at this stage. A Group is composed of multiple Constraints. Each Constraint can be composed of multiple Field Matching Definitions.
1. Configuring Groups
Now you are ready to create groups that will be used for identifying prior studies as relevant priors.
The Groups list box displays all the groups that are defined in the system. To create a new Group:
-
Click on the New button immediately below Groups list box. The Edit Group dialog will appear.
-
Enter a Group Name and Group Order and click OK to make it part of the Query Model.
-
If there is already an existing Group that you would like to associate with the current Query Model, simply click on the check box located immediately to the left of the Group Name. Make sure that a check mark appears.
-
Create and associate as many Groups as needed for the selected Query Model.
2. Configuring Constraints
Next, we need to define and associate Constraints with a particular Group. In order to do this, select a Group in the Groups list box. All of the Constraints associated with the selected Group will contain a check mark beside it.
To create a new Constraint:
-
Click on the New button immediately below the Constraints list box. The Edit Constraint dialog will appear.
-
Enter a name for the new Constraint and click OK to make it a part of the Group.
-
If there is already an existing Constraint that you would like to associate with the current Group, simply click on the check box located immediately to the left of the Constraint Name. Make sure that a check mark appears.
-
Create and associate as many Constraints as needed for the selected Group.
3. Configuring Field Matching Definitions
Lastly, we need to define and associate Field Matching Definitions. In order to do this, select a Constraint in the Constraints list box. All of the Field Matching Definitions associated with the selected Constraint will contain a check mark beside it.
To create a new Field:
-
Click on the New button immediately below the Field Matching Definitions list box. The Edit Field Matching Definition will appear.
-
Enter a name for this new definition into the Field Name column.
-
From the Field drop down menu, select the field that the matching will be performed against.
-
Under Source Location choose either the Match Study or Match Literal option. Match Study indicates that this field will be compared against the same field on the reference study. Match Literal means that this field will be compared against the Literal Value that is specified in the last column. If the Match Study option is chosen, do not enter a value into the Literal Value column.
-
If there is already an existing Field Matching Definition that you would like to associate with the current Constraint, simply click on the check box located immediately to the left of the Constraint Name. Make sure that a check mark appears.
-
Create and associate as many Field Matching Definitions as needed for the selected Constraint.
The relevant prior mechanism has now been set up. In order to become activated it needs to be associated with a routing rule. More information on this can be found in the Configuring Routing topic.