In short.
OpenMed’s Extracting Clinical Entities is an assistant skill for clinical NLP developers, but useful results depend on selecting and validating a model for the required entity types. It explains installation, Python and CLI calls, output formats, confidence filtering, span grouping and sentence detection. The documentation describes on-device inference after a model download. Accuracy, runtime compatibility, hardware requirements and operating costs are unknown. Nothing was executed, and the supplied material contains no measured extraction results.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to skills/extracting-clinical-entities/SKILL.md in maziyarpanahi/openmed at revision e8325586e1ce2da73e9e865f34bd0345bb64301a, together with the repository-level LICENSE and NOTICE. The supplied manifest reports complete coverage of that skill folder and lists one skill file. OpenMed implementation code, companion skills, model weights, model cards, datasets and linked documentation are outside this evidence. No installation, extraction, benchmark or privacy test was performed.
The overview
identity
Extracting Clinical Entities is an instruction skill in the maziyarpanahi/openmed repository. It teaches an assistant how to use OpenMed’s clinical named-entity recognition API and CLI. Its frontmatter identifies the skill as extracting-clinical-entities, with metadata version 1.0; that is not an established OpenMed package version.
The original folder is [https://github.com/maziyarpanahi/openmed/tree/master/skills/extracting-clinical-entities]. The captured skill file is pinned to revision e8325586e1ce2da73e9e865f34bd0345bb64301a at [https://raw.githubusercontent.com/maziyarpanahi/openmed/e8325586e1ce2da73e9e865f34bd0345bb64301a/skills/extracting-clinical-entities/SKILL.md].
assessment
The skill provides a concrete recipe for adding entity extraction to an OpenMed pipeline. Its useful details include the distinction between a PredictionResult object and serialized output, the correct confidence attribute, and how character offsets relate to the input text.
Its suitability depends on the target labels and the selected model. The examples establish intended usage, but provide no precision, recall, latency or clinical validation results. Clinical reliability and implementation correctness are not assessed.
users
The intended users are developers building clinical or biomedical text-processing pipelines who need labeled mentions of diseases, medications, anatomy, genes or other model-supported entities. The Python and CLI examples offer entry points for both application integration and file-based processing.
Beginners need enough Python or command-line knowledge to install a package and inspect results. Experienced developers get guidance on reusable model loaders, JSONL exports and batch-processing handoffs. The referenced companion skills are not included in the supplied material.
capabilities
The documented API returns entity text, labels, confidence scores and start/end character offsets. It accepts an OpenMed registry key, Hugging Face model identifier or local model path. Supported entity types depend on that model.
The skill describes confidence filtering, subword aggregation, merging adjacent spans with the same label, sentence detection and optional confidence values in formatted output. The dict format returns a PredictionResult object; json, html and csv return strings.
It also demonstrates JSONL export and CLI analysis of inline text or a file. Batch processing and terminology grounding are described as handoffs; this skill does not establish their implementation or performance.
Using it
requirements
The documented installation is pip install "openmed[hf]". Extraction requires a suitable token-classification model. The skill states that inference runs on-device after a one-time model download.
Sentence detection requires pySBD. If it is unavailable, the documented behavior is a silent fallback to whole-text inference. Supported Python and OpenMed versions, operating systems, memory requirements and accelerator requirements are unknown.
For text containing protected health information, the skill recommends a separate de-identification step before extraction. Restricted terminology services, such as those used for terminology grounding, are not bundled and require separate access and applicable rights.
mechanism
Named-entity recognition labels spans of text with categories such as disease or drug. The skill describes openmed.analyze_text as running a token-classification model, aggregating token predictions and returning structured entities.
Documented defaults include simple subword aggregation, sentence detection enabled and English sentence splitting. Adjacent same-label spans can be merged with group_entities=True. A confidence threshold removes lower-scoring predictions, but score calibration is not established.
Offsets index result.text, while entity text is whitespace-trimmed. If extraction follows de-identification, those offsets refer to the deidentified input passed to analyze_text; mapping them back to an earlier version of the note is not documented.
setup
Install the documented openmed[hf] extra, choose a model covering the required entity types, and call openmed.analyze_text with the text, model_name and desired output_format. The examples use disease_detection_superclinical with confidence_threshold=0.5.
For programmatic access, use output_format="dict" and inspect result.entities. Entity scores are exposed as .confidence, not .score. For repeated calls, the skill recommends passing a reused ModelLoader through loader=.
The CLI example uses openmed analyze with --text or --input-file, plus model, format, threshold and grouping options. Assistant-specific skill installation steps and compatibility requirements are not supplied.
example
The quick start supplies a note mentioning metformin, type 2 diabetes, chest pain and ruled-out myocardial infarction. It calls analyze_text with model_name="disease_detection_superclinical", output_format="dict" and confidence_threshold=0.5, then reads each entity’s label, text, confidence and offsets.
No resulting entity list is supplied, so this example demonstrates the call pattern without establishing what the model detects. A disease-focused model should not be assumed to produce medication labels. Recognition of a disease mention also does not establish that the patient has that disease; negation handling is not demonstrated.
Assessment & evidence
limitations
Label coverage is model-specific. The skill explicitly warns that a disease model will not provide unrelated categories such as gene labels or oncology staging. Accuracy across specialties, languages and note styles is unknown, as are confidence calibration and handling of negation, temporality and experiencer.
Long notes may be truncated when sentence detection is disabled. Missing pySBD causes a silent fallback, so requesting sentence detection alone does not establish long-document behavior.
PredictionResult retains the input text, and the JSONL example writes that text to disk. HTML, CSV and other outputs can also expose sensitive content. Local inference does not by itself establish adequate de-identification or safe logging. The skill characterizes NER as decision support rather than diagnosis. Nothing was executed.
reasoning
This skill fits work that needs traceable entity mentions: offsets connect labels to specific passages, and multiple output formats support application code, visual inspection and exports. Shared-loader guidance is relevant when processing many notes.
The main decision is whether an available model covers the required labels with acceptable errors on representative text. The example threshold of 0.5 is a starting configuration, not an established clinical acceptance threshold. Grouping can combine fragments, but does not establish clinical meaning or correctness.
alternatives
Developers seeking a lower-level implementation route can investigate the Hugging Face token-classification guide linked by the skill [https://huggingface.co/docs/transformers/tasks/token_classification]. The supplied material does not compare that route’s effort, features or extraction quality with OpenMed.
The skill also points to choosing-openmed-models, loading-openmed-models and deidentifying-clinical-text for adjacent tasks. Their contents are not supplied, so their behavior and compatibility are unknown. No evidence supports ranking competing clinical NER tools.
evidence
The available material consists of skills/extracting-clinical-entities/SKILL.md and the repository-level LICENSE and NOTICE at revision e8325586e1ce2da73e9e865f34bd0345bb64301a. The supplied manifest identifies SKILL.md as the only file within the covered skill folder.
The captured SKILL.md has SHA-256 59394e842bd79a06fb876ecfc3c61da6e3e86c0d5a3bf3dc93f575352ecfd4dc. The material supplies documentation and examples, without implementation code, model cards, execution logs or measured results. API behavior, privacy properties and runtime performance remain unverified.
Access & freshness
costs
No package price, hosted-service price or model-access charge is specified. The documented execution path uses local inference after downloading a model. Download size, hardware needs, throughput and compute, storage and integration costs are unknown.
Apache 2.0 grants no-charge rights for the covered work subject to its terms. This does not establish the cost or licensing terms of a separately selected model or terminology service.
rights
The skill frontmatter declares Apache-2.0, and the repository LICENSE supplies the Apache License 2.0 text. It permits use, modification and redistribution subject to its conditions, including providing the license, marking modified files, retaining applicable notices and carrying forward applicable NOTICE attributions.
The repository NOTICE identifies third-party assets with differing terms and includes optional or planned integrations. Those listings do not establish that these assets are dependencies of this skill. The skill’s license does not establish rights to separately downloaded model weights, datasets or restricted medical terminologies.
freshness
The supplied capture is dated 2026-11-17T09:01:31.273Z and pins all three files to revision e8325586e1ce2da73e9e865f34bd0345bb64301a. The skill metadata says version 1.0.
The capture date does not establish when the skill was last maintained. The current master branch, compatible OpenMed releases and current availability or behavior of referenced models are unknown.
actions
Confirm the chosen model’s entity types, terms and runtime requirements, then begin with synthetic or appropriately deidentified text. Evaluate missed and incorrect entities, confidence thresholds, offset alignment and long-note behavior on examples representative of the intended work.
Check whether sentence splitting is actually available. For sensitive workflows, assess de-identification separately and inspect logs and exports, particularly the JSONL example’s inclusion of input text. Establish suitable validation and human review before using extracted mentions in clinical decisions.
