Rapidly query clinical notes in Elasticsearch for mentions of diseases
Project description
rapid-elastic
Disease Synonyms Curation
- Disease names and synonyms were HUMAN expert curated and assisted via ChatGPT with additional checks within NLM GeneReviews, OrphaNet, and Google searches.
- disease_names_expanded.json is pre-built and recommended for use without modification.
- disease_names.py assists curation if changes need to be made: read spreadsheet CSV, write disease names JSON, recommend GPT4 prompts, find duplicates, and merges curated JSON.
Quickstart
-
configure ENV variables query your Elasticsearch server (within your VPN/firewall)
ELASTIC_HOST: default http://localhost:9200ELASTIC_USER: basic authELASTIC_PASS: basic auth
-
pipx install rapid-elastic
-
rapid-elastic
Elasticsearch server
Read the server setup docs.
KQL (Kibana Query Language)
- By default, synonyms used to match any "exact phrase" in the note.
- see
kql_syntax.pyfor alternate methods of building Elasticsearch queries.
Each Elasticsearch hit is saved to "output" folder
subject_ref(FHIR Patient.id)encounter_ref(FHIR Encounter.id)document_ref(FHIR DocumentReference.id)group_name(optional)document_title(optional)
SQL Athena
SQL tables are generated from spreadsheet CSV files
disease_nameorpha_codeicd10_code
FHIR resources are referenced using
subject_ref(FHIR Patient.id)encounter_ref(FHIR Encounter.id)documentreference_ref(FHIR DocumentReference.id)
FHIR Condition.code is selected using
icd10_code
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rapid_elastic-1.0.1.tar.gz.
File metadata
- Download URL: rapid_elastic-1.0.1.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e37c20bd233c7356c21be72c880fff21cc8d76c7d3265b26de3020b018750ae1
|
|
| MD5 |
9a0e8d1c335b9df2d3f0a392129720d0
|
|
| BLAKE2b-256 |
f2f89e682f42bd977e1638b68a0d5d11411fc10ddad202b026815b0f1f082155
|
Provenance
The following attestation bundles were made for rapid_elastic-1.0.1.tar.gz:
Publisher:
pypi.yaml on smart-on-fhir/rapid-elastic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rapid_elastic-1.0.1.tar.gz -
Subject digest:
e37c20bd233c7356c21be72c880fff21cc8d76c7d3265b26de3020b018750ae1 - Sigstore transparency entry: 198217238
- Sigstore integration time:
-
Permalink:
smart-on-fhir/rapid-elastic@944e488fe74a9e4a1e1b8b7b24fd2cb388a23a9d -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/smart-on-fhir
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@944e488fe74a9e4a1e1b8b7b24fd2cb388a23a9d -
Trigger Event:
release
-
Statement type:
File details
Details for the file rapid_elastic-1.0.1-py3-none-any.whl.
File metadata
- Download URL: rapid_elastic-1.0.1-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73333c691f1775cb4c6768a972336cff10dcbfc60b48a322e204b2f7ccbf97e6
|
|
| MD5 |
3f1206273cc2ec419da0189b370c5d10
|
|
| BLAKE2b-256 |
347ece7885f3aa340da2f185f9abd00321b2d9aa34757e53b8d9eb3be8beb5ca
|
Provenance
The following attestation bundles were made for rapid_elastic-1.0.1-py3-none-any.whl:
Publisher:
pypi.yaml on smart-on-fhir/rapid-elastic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rapid_elastic-1.0.1-py3-none-any.whl -
Subject digest:
73333c691f1775cb4c6768a972336cff10dcbfc60b48a322e204b2f7ccbf97e6 - Sigstore transparency entry: 198217239
- Sigstore integration time:
-
Permalink:
smart-on-fhir/rapid-elastic@944e488fe74a9e4a1e1b8b7b24fd2cb388a23a9d -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/smart-on-fhir
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@944e488fe74a9e4a1e1b8b7b24fd2cb388a23a9d -
Trigger Event:
release
-
Statement type: