Skip to main content

cTAKES client support for accessing cTAKES REST services

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctakesclient-5.1.0.tar.gz (92.5 kB view details)

Uploaded Source

Built Distribution

ctakesclient-5.1.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file ctakesclient-5.1.0.tar.gz.

File metadata

  • Download URL: ctakesclient-5.1.0.tar.gz
  • Upload date:
  • Size: 92.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for ctakesclient-5.1.0.tar.gz
Algorithm Hash digest
SHA256 312f3cbd09d6c3bc3b998a490c75f9723e1bdd16a33d90c3f8f7d026e97a073d
MD5 930c3691367d3b694c987b3c1d21b4f7
BLAKE2b-256 f159b5dd85b15eb08933321675795ca2f717d4d1ac55144a6cb9f0e1e03a779e

See more details on using hashes here.

File details

Details for the file ctakesclient-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: ctakesclient-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for ctakesclient-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe00862c8e915502bbf3ba23f8a7b312eada6af368995892a06b3534f6ec4c82
MD5 b2934954fff49ca2e25c65772e0d3a53
BLAKE2b-256 141666e577d4bd300da5ab193c6472e0a2f6f1d2ef5a7791975c327d7290c4cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page