bsoetaer / CMPUT391Project

0 stars 0 forks source link

Search Module #5

Open bsoetaer opened 9 years ago

bsoetaer commented 9 years ago

This module will be used by all the registered users to search the database for a list of relevant radiology records and to view medical images with the zoom-in facility.

The search condition includes

a list of key words, and/or
a time periods

The search module, upon receiving the above condition, will display a list of all radiology records that

satisfy the search condition, and
are accessible to the user by the security module.

Each record displayed shall contain all the information, including the list of thumbnails of medical images, of the record.

By the zoom-in facility we mean to view an image in various resolutions. For simplicity, this can be implemented by modifying the displaying size of the image or by retrieving different size of the same image.) (see an example and the sample code.)

The viewer shall first display all the relevant radiology records according to the search specification, together with the thumbnails of the medical images. It will then display the specified medical image in a separate browser upon an explicit request from its user.

The security module of your system shall guarantee proper accesses to radiology records. That is, a patient can only view his/her own records; a doctor can only view records of their patients; a radiologist can only review records conducted by oneself; and an administrator can view any records.

The radiology records must be ranked according to the following schema:

If the client indicates that the ranking shall be based on timing, i.e., most-recent-first or most-recent-last, then the ranking shall be done accordingly.
Otherwise, the ranking shall be based on the value of the following function with the largest first.

 Rank(record_id) = 6*frequency(patient_name) + 3*frequency(diagnosis) + frequency(description)

where the term frequency(column_name) represents the value returned by the SCORE function of the corresponding CONTAINS function. Note that the value returned by SCORE(n) is propositional to, but not exactly, the number of occurrences of the key word(s) in the respective column.
vzphung commented 9 years ago

Aight , guess i will work on this part then.