Skip to main content

Purpose: Extract Medical Concepts from Physician Notes

This package simplifies communication with cTAKES NLP servers which produce matches with UMLS Concepts.

  • Clinical Text and Knowledge Extraction System (cTAKES)
  • Unified Medical Language System (UMLS)

Quickstart

Clinical text fragment or entire physician note.

physician_note = 'Chief Complaint: Patient c/o cough, denies fever, recent COVID test negative. Denies smoking.'
output = await ctakesclient.client.post(physician_note)

Note that ctakesclient uses an async API. If your code is not async, you can simply wrap calls in asyncio.run():

output = asyncio.run(ctakesclient.client.post(physician_note))

Output

This client parses responses into lists of MatchText and UmlsConcept.

CtakesJSON(output)

list_match() -> List[MatchText]

list_concept() -> List[UmlsConcept]

list_sign_symptom() -> List[MatchText]

list_disease_disorder() -> List[MatchText]

list_medication() -> List[MatchText]

list_procedure() -> List[MatchText]

list_anatomical_site() -> List[MatchText]

MatchText: Physician Notes

MatchText(s) are the character positions in the physician note where a UmlsConcept was found.

MatchText::= begin end text polarity UmlsConcept+

MatchText: Polarity

UMLS Concept

UMLS Vocabulary

UMLS Semantic Types and Groups

You can browse the list of UMLS Semantic Types at the National Library of Medicine.

Metadata

Release files for ctakesclient 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ctakesclient 5.1.0
File Size Uploaded
ctakesclient-5.1.0.tar.gz 92.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ctakesclient 5.1.0
File Interpreter ABI Platform
ctakesclient-5.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 115.4 kB

Release files / ctakesclient-5.1.0.tar.gz

Download URL ctakesclient-5.1.0.tar.gz
Size 92.5 kB
Tags Source
SHA-256 checksum
How to use checksums
312f3cbd09d6c3bc3b998a490c75f9723e1bdd16a33d90c3f8f7d026e97a073d
BLAKE2b-256 checksum
How to use checksums
f159b5dd85b15eb08933321675795ca2f717d4d1ac55144a6cb9f0e1e03a779e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / ctakesclient-5.1.0-py3-none-any.whl

Download URL ctakesclient-5.1.0-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe00862c8e915502bbf3ba23f8a7b312eada6af368995892a06b3534f6ec4c82
BLAKE2b-256 checksum
How to use checksums
141666e577d4bd300da5ab193c6472e0a2f6f1d2ef5a7791975c327d7290c4cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

5.1.0 This release

2 release files

5.0.0

2 release files

4.0.0

2 release files

3.0.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page