Home Applications VectorSearchOnPatientSimilarity

VectorSearchOnPatientSimilarity

by Lin Zhu
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
4.5
1 reviews
0
Awards
59
Views
0
IPM installs
0
0
Details
Releases  (1)
Reviews  (1)
Issues
Articles  (1)
A Patient similarity comparison demo running on IRIS for Health

What's new in this version

Initial Release

EMPIDemo

A Patient similarity comparison demo running on IRIS for Health with vector search.
The similarity is calculated using vector search to compare vectorized personal attributes such as name, DOB, address, etc. between different patients. The higher the score is, the more likely the compared patients are the same person.
This demo is referring to sentence-transformers model to convert text into vectors then use IRIS vector functions to store,read and compare the vectors.

Installation

  1. Clone this repo
  2. text2vec-base-chinese is referred in this demo but not included because of it’s size. You may want to download it to any directory on your local machine. i.e, D:\Coding\EMPIDemo\image-iris\llm\text2vec-base-chinese in this demo, then change the directory in volumes section of the docker-compose.yml file. Theoretically any other sentence-transformers model who can be ran alone should work too, while you may need to adjust the initiating parameters according to its document.
  3. Start the Docker container
    Please be aware that the program will download and install Python sentence-transformers module and also install a FHIR repository to store patient info, consequentely it will take about 15~16GB disk storage.

Try the demo

  1. A demo patient info input UI
  2. IRIS Procuction handling the requests
  3. Related codes
    Embedded python is used to invoke the sentence-transformer to perform vectorization, which can be found in MPIDemo.Util.Vector
    Vector search is used to calculate similarity between patients, which can be found in EMPIDemo.REST.Service
Made with
Version
1.0.023 Sep, 2024
Category
Technology Example
Works with
InterSystems IRIS for HealthInterSystems Vector SearchInterSystems FHIR
First published
23 Sep, 2024