Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Filters are used in many places in OnePacs for the purpose of selecting studies that meet certain criteria. (They are processed similar to database SQL query strings) Filters are created through a common interface, which appears as follows:

Image Removed
Image Added

The user has the option of either creating a filter through use of the GUI-based elements at the top portion of the screen, that is, through the selection of Facilities, modalities, study description, date, and other criteria, or though use of the “Advanced Expression” text edit box at the bottom, into which a OnePacs query string can be entered. Additionally, the “Filter string” button at the bottom of the window generates the text value of the filter string generated through use of the GUI elements and allows the user to copy that string

...

  • Limiting user access to cases. For example, a filter can be applied to a user account to restrict a user to only see cases for which their name is listed as the referring physician in the DICOM data. This may be useful for creating accounts to give to clinicians, so that they may only view their own patients.  Examples of how to apply filters to limit users' access to studies are provided here.
  • Determining which studies will be pre-fetched by the OnePacs workstation software
  • Determining which studies will be automatically placed into study folders as they arrive to OnePacs
  • Quickly finding a case on the worklist
  • Setting up which cases will send out case notifications
  • Setting up which cases will be automatically assigned to interpreting physicians.

Sample Advanced Filters

...


FunctionFilter stringNotes
Select all series with a workflow status of “Ready to read”, “Assigned”, or “In transmission” to the local workstation, which have completed transmission to OnePacs, which have 900 or fewer images, and which are assigned to the current user. This is the default download filter for the OnePacs Study Retriever.StudyStatusID in ('READY_TO_READ', 'ASSIGNED', 'IN_TRANSMIT') and age(CreatedTime) < '3d') and numberOfSeriesRelatedInstances < '1200' and assignedToUser = '$USER'
 

Limit studies to those for whom the DICOM referring physician name field contains SCHWARZ, in all upper case lettersreferringPhysicianName like '%SCHWARZ%'Useful for a user’s access filter, in this case, to limit a referring physician named Schwarz to viewing reports only for patients s/he referred
Limit studies to those for whom the referring physician name field contains “Schwarz”, regardless of upper/lower casereferringPhysicianName contains 'schwarz'
 

Study date within the past 3 days (72 hours)age(createdTime) < '3d'
 

Select studies from one of three facilities (identified by the Gateway’s AE title)callingAETitle in ('A', ‘B', C’)
 

Select studies for minorspatientAge < '18y'
 

Patient DOB is empty( patientBirthDate is null or patientBirthDate = '' )
 

 



Keywords available for use in filters


 

LevelKeywordDescriptionType DICOM Tag Notes
patientpatientNamePatient Name in DICOM format.string(0010,0010)
 

-patientIdPatient Idstring(0010,0020)
 

-patientBirthDatePatient Birth Datestring(0010,0030)
 

-patientSexPatient Sexstring(0010,0040)
 

studyaccessionNumberStudy accession numberstring(0008,0050)
 

-facilityPkIdentifier for the OnePacs facility the study was stored tointegerN/A
-studyIuidStudy Uidstring(0020,000D)
 

-referringPhysicianNameReferring physician name in DICOM format.string(0008,0090)
 

-physicianNamesReferring physician name AND ordering physician namestring(0008,0090)plus the ordering physician specified during the confirmation process
-studyDescriptionStudy Descriptionstring(0008,1030)
 

-bodyPartsInStudyBody Partsstring(0018,0015)An aggregation of the series-level bodyPartExamined.  It is recommend that queries for body part search on this study-level value for most use cases.
-studyIdStudy Idstring(0020,0010)
 

-studyDateTimeStudy Performed Datedate(0008,0020)
 

-normalizedStudyDateTimeStudy Performed Datedate(0008,0020)Normalized to user's time zone
-createdTimeTime the study was sent to OnePacs.dateN/A
-receivedTimeTime
study received
the study was recieved by OnePacs.dateN/A
-confirmationTimeThe time the study was confirmed in OnePacs.date
NA
N/A
-modalitiesInStudyList of all modalities in the study separated by a slash (”/”)string(0008,0060)
 

-studyStatusIdStudy Statestring
NA
N/AEnumerated values of IN_TRANSMIT, READY_TO_READ, ASSIGNED, READ, DISREGARD, FOR_COMPARISON, DICTATED, TRANSCRIBED
-numberOfStudyRelatedInstancesNumber of instances in the studystring(0020,1208)
-numberOfStudyRelatedSeriesNumber of series in the studynumber(0020,1206)
-patientAge The age of the patient at time of study in yearsstring(0010,1010)May be calculated from DOB and study date.  Ex:  17y
-patientInstitutionResidence The patient's institution residence at the time of studystring(0038,0400)
 

-assignedToUser The username that the study is presently assigned tostring
NA
N/AMay be null if unassigned
-uploadedByThe
username
OnePacs user id that manually updated the studystring
NA
N/AMay be null
if unassigned
the study was not manually uploaded via the web interface.
-institutionNameInstitution name from DICOM headerstring(0008,0080)Hint: Consider using Source AE to filter by Gateway
-statStatusThe stat status of the study.string
NA
N/AEnumerated values of STAT, SUPER_STAT (critical).  To search for non-routine cases use "statStatus is not null"
-deadlineTImeThe deadline time of the study.
string
date
NA
N/AStudy
warning
target/deadline times are configured at the facility level based on priority designation, turn-around-time configuration, and the received/confirmation time of the study.  Only unreported studies requiring interpretation will have a
warning
target / deadline time.
-warnTImeThe warning/target time of the study.date
NA
N/A
-sizeOnDiskThe size of the study in bytesnumber
NA 
N/AA sum of all the DICOM images in the study in present transfer syntax.  Does not include further reduction from zipping. Includes duplicates.
hasAddendaThe study has a clinical addendaboolean
NA
N/A
-requiresResultsReportingThe study requires results reportingboolean
NA 
N/A
-studyConfirmationWhether or not the study has been confirmed for interpretation in OnePacsintegerN/A

(studyConfirmation is null) will be TRUE when the study has not been confirmed

(studyConfirmation is not null) will be TRUE when the study has been confirmed

-flagStatusWhether or not certain flags are set for the studyenumN/A

Values include NONE, RED, BLUE, RED_BLUE, GREEN, RED_GREEN, BLUE_GREEN, RED_BLUE_GREEN

Example to identify studies with green flags:

Code Block
flagState in ('GREEN', 'BLUE_GREEN', 'RED_GREEN', 'RED_BLUE_GREEN')


seriesbodyPartExaminedBody Partstring(0018,0015)

Use the study level bodyPartsInStudy unless explicitly trying to exclude individual series in study retriever queries.

-modalityModalitystring(0008,0060)
 

-seriesIuidSeries Uidstring(0020,000E)
 

-numberOfSeriesRelatedInstancesNumber of series instancesnumber(0020,1209)
 

-lateralityLateralitystring(0020,0060)
 

-stationNameStation Namestring(0008,1010)
 

-institutionalDepartmentNameDepartment Namestring(0008,1040)
 

-seriesSizeThe size of the series in bytes
number
integer
NA 
N/AA sum of all the DICOM images in the series in present transfer syntax.  Does not include further reduction from zipping.  Includes duplicates.
facilityfacilityNameThe name of the source facility.string
NA
N/A
-facilityStateThe State code of the source facility. string
NA
N/A
 -callingAETitleThe AE title of the source facility.stringNA 

-facilityIdThe ID of the study's facility.string
NA  
N/A
reportreportCompletedTimeThe time the primary report was completed.date
NA
N/A
-primaryReportReadTypeThe read type of the primary reportstring
NA
N/AEnumerated values of PRELIMINARY, FINAL, OTHER
 


Logical operators available for use in filters

...


ComparisonCharacter
Equal=
Not Equal<> or !=
Less Than<
Less Than Or Equal
Greater Than>
Greater Than Or Equal>=
contains ABCDlike ‘%ABCD%’(note the single quotes)
contains Abcd (case insensitive)contains ‘ABCD
starts with Abcd (case insensitive)startswith ‘ABCD
ends with Abcd (case insensitive)endswith ‘ABCD
not contains Abcd (case insensitive)not contains ‘ABCD
not starts with Abcd (case insensitive)not startswith ‘ABCD
not ends with Abcd (case insensitive)not endswith ‘ABCD
Wildcard%
Comparison Grouping()
Andand
Oror
nullis null
not nullis not null
 


Functions available for use in filters

...


FunctionPurposeUsage example
property in (list)Property value is included in a list of valuescallingAETitle in ('A', ‘B', C’)
property not in (list)Property value is not included in a list of valuescallingAETitle not in ('A', ‘B', C’)
upper(property)Convert property value to all uppercase (for the purpose of making case-insensitive comparisons)upper(studyDescription) = ‘ABCD’
age(property)Returns the amount of time that has elapsed since a given time interval ('3d' for 3 days, '2h' for 2 hours, '10m' for 10 minutes, etc)age(CreatedTime) < '3d' to yield studies less than 72 hours old
timeOfDay(property)Returns the time of day for a temporal propery name in format HH:MM [(timezone)].  Timezone is optional, defaults to ETtimeOfDay(createdTime) >= '9:00 (EST)'  to filter by studies created after 9am EST
dayOfWeek(property)Returns the day of week 1-7 [(timezone)] where 1=Monday, 7=Sunday.  Timezone is optional, defaults to ET
dayOfWeek(createdTime) <= '5(EST)' to filter on cases created Monday - Friday
 


Using filters to limit users' access to studies

...