SkillsReviewed · maziyarpanahi

OpenMed exporting-to-fhir

OpenMed exporting-to-fhir is an assistant skill for healthcare software developers converting detected clinical mentions into exchangeable records, but clinical interpretation and medical code mapping remain your responsibility. It documents Python helpers for FHIR R4 resources, coded concepts, references and issue reporting.

Researched 17 Nov 2026

In short.

OpenMed exporting-to-fhir is an assistant skill for developers exporting clinical entity detections into healthcare records, but it requires separate clinical interpretation and terminology mapping. It explains how to build FHIR R4 resource dictionaries using OpenMed helpers for CodeableConcept fields, transaction bundles, stable references and OperationOutcome reports. The supplied documentation does not establish runtime compatibility, clinical accuracy or acceptance by a receiving system. No code was executed.

Researched and written by an AI model and checked by a second AI model. How it works

The supplied folder scope consists of skills/exporting-to-fhir/SKILL.md at commit e8325586e1ce2da73e9e865f34bd0345bb64301a, with repository-root LICENSE and NOTICE as related notices. No additional folder files are listed. Other OpenMed implementation files, companion skills, dependencies, models, terminology resources and external standards documents are outside the supplied contents. No code, installation, terminology lookup, FHIR validation, privacy evaluation or EHR integration was executed.

The overview

Identity

exporting-to-fhir is an instruction skill in maziyarpanahi/openmed, declared as version 1.0 under the fhir-interop category. It guides an assistant or developer through using OpenMed exporter helpers; the skill file itself does not contain their implementation.

The original resource location is [https://github.com/maziyarpanahi/openmed/tree/master/skills/exporting-to-fhir]. Its scope is converting named entity recognition output, meaning detected text mentions and their positions, into FHIR R4 healthcare resources.

Assessment

The useful part is its explicit boundary between formatting records and interpreting clinical meaning. It supplies concrete examples for Conditions, MedicationStatements and Observations while leaving resource choice, clinical status and terminology grounding to the caller.

It is a practical implementation guide for someone already building an OpenMed pipeline. Its description of APIs as verified is a source claim: implementation correctness, successful imports, standards conformance and EHR acceptance are not established by the supplied evidence.

Users

The clearest audience is developers connecting OpenMed clinical text extraction to an EHR, registry or FHIR data store. Beginners get examples showing where text, codes, status and patient references belong; experienced developers get module paths, helper names and documented failure cases.

Users still need Python skills, familiarity with their receiving system's FHIR requirements and access to appropriate clinical interpretation. The skill does not establish a route from an arbitrary clinical note to an automatically trustworthy patient record.

Capabilities

The documented codeable_concept_simple module provides system_uri, coding and codeable_concept. These map vocabulary identifiers to system URIs and construct coded fields. Recognized identifiers include rxnorm, icd-10-cm, loinc, snomed, hpo and mesh; full HTTP or HTTPS system URIs pass through.

The documented fhir module provides to_bundle, deterministic_fullurl, OperationOutcomeIssue, to_operation_outcome and from_validation_result. The guide also shows resource shells and suggests preserving detection confidence and character offsets in an extension or side log. These capabilities are documented rather than demonstrated through execution evidence.

Using it

Requirements

Following the examples requires an environment that can import OpenMed and its documented exporter modules. Running the extraction example also requires the disease_detection_superclinical model. Supported Python versions, compatible OpenMed releases, dependency versions, hardware requirements and model download size are not specified.

The caller must supply patient references, relevant dates and clinical status decisions. Medical code lookup happens through an external terminology service or the user's own mapping table. The guide says restricted terminology is not bundled; credentials and access arrangements depend on the chosen terminology source.

Mechanism

The workflow starts with result.entities from openmed.analyze_text. Each span contains text, a label, confidence and start/end offsets. The caller interprets the mention, chooses a resource type, obtains any terminology code and inserts a CodeableConcept into the appropriate field of a Python dictionary.

The guide documents deterministic ordering of codings, stable urn:uuid references derived from a document identifier and index, and rejection of duplicate ResourceType/id pairs during bundling. Ordering coded entries can aid reproducibility, but complete serialized JSON byte stability is not independently established.

Setup

The file begins with imports and examples rather than package installation or assistant-specific registration instructions. It does not identify a compatible package version, installation command or dependency lockfile.

For implementation, first establish an OpenMed environment with the named modules, then choose a terminology source and receiving FHIR profile. Start with synthetic text, build a resource dictionary, and validate its fields, codes and references before attempting integration. Successful setup and validation remain unassessed.

Example

The main example extracts a disease mention from the synthetic sentence 'Assessment: type 2 diabetes mellitus, stable.' It supplies ICD-10-CM E11.9 and SNOMED 44054006 as example mappings, builds a CodeableConcept and places it in Condition.code with a Patient/patient-1 reference.

The resource shell explicitly sets active and confirmed statuses. Those example choices do not demonstrate that extraction inferred clinical status or verification. The terminology lookup is also represented by assigned example values, rather than a demonstrated server response. Further examples show metformin in MedicationStatement and an HbA1c measurement in Observation; none was executed.

Assessment & evidence

Limitations

There are no documented to_condition or to_observation convenience functions: callers construct the resource shells. Entity detection alone does not resolve negation, historical context or assertion. A mention such as 'no diabetes' therefore needs interpretation before becoming a patient condition.

The guide proposes a text-only CodeableConcept when grounding fails and warns that US Core may still require coding. Unknown short vocabulary identifiers raise an error. Resource validity and target-profile conformance require separate assessment.

The referenced resource de-identification helpers reportedly leave codes, references and temporal values untouched. Their use alone therefore does not establish that a resource is anonymous. Extraction quality, mapping accuracy, privacy protection and clinical suitability were not assessed.

Reasoning

The skill's value is making the bridge from detected text to structured records explicit. Small helpers handle coding structure and references while caller-written dictionaries expose the clinical choices. This can support traceability when confidence and offsets are retained, although traceability does not establish correctness.

It fits work where developers can supply terminology mapping and clinical context. Projects expecting unattended conversion must account for those unresolved responsibilities; the supplied examples offer no measurements of end-to-end accuracy or reliability.

Alternatives

The document names extracting-clinical-entities for upstream extraction, querying-terminology-service for code lookup, assembling-fhir-bundles for packaging and validating-us-core for profile validation. It also points to resolving-clinical-context for assertion and temporality.

These companion skills address different pipeline steps. Their contents are not supplied, and the evidence provides no comparison with another FHIR library or complete clinical export system. Relative capability, compatibility and cost are unknown.

Evidence

The available resource evidence is skills/exporting-to-fhir/SKILL.md, accompanied by the repository's root LICENSE and NOTICE. The instruction file contains API descriptions, synthetic examples, workflow guidance and links to HL7 references. Exporter implementation, dependency metadata, model documentation, validator results and receiving-system responses are absent.

The immutable instruction-file source is [https://raw.githubusercontent.com/maziyarpanahi/openmed/e8325586e1ce2da73e9e865f34bd0345bb64301a/skills/exporting-to-fhir/SKILL.md]. Its linked standards pages are references named by the author; their contents were not supplied. Documentation claims have not been confirmed by running code.

Access & freshness

Costs

Apache-2.0 grants no-charge, royalty-free permissions for the covered work, subject to its terms. This does not establish the total cost of using the workflow.

Compute, storage, model access, terminology services, validation infrastructure, integration and support costs are unknown. The skill provides no pricing, resource measurements or operational cost estimates.

Rights

The skill declares Apache-2.0, supported by the repository LICENSE and NOTICE. Redistribution requires providing the license, retaining applicable notices and marking modified files when changes are made. The license includes patent provisions, excludes general trademark permission and supplies the work without warranties.

The repository NOTICE covers broader OpenMed assets, including optional and planned integrations; their listing does not establish that they are included in this skill. The skill's license does not establish access rights to external terminology or datasets. Redistribution should retain the captured LICENSE and NOTICE with the instruction file.

Freshness

The source snapshot is repository commit e8325586e1ce2da73e9e865f34bd0345bb64301a, captured on 17 November 2026 at 12:37:49.191 UTC. The skill declares version 1.0 and targets FHIR R4; that version does not identify an OpenMed package release.

The supplied material does not establish the skill's last author update, compatibility with currently installed OpenMed packages or changes after this commit. The original master-branch address can change independently of the captured version.

Actions

Before adoption, confirm that your OpenMed installation exposes the documented helpers and that the receiving system accepts the intended R4 resources and profiles. Use synthetic examples to check resource construction, references, duplicate identifiers and OperationOutcome reporting.

Define how negated, historical and uncertain mentions are handled, and obtain terminology mappings without inventing codes. Validate text-only concepts against the target profile, retain source-span provenance appropriately, and assess privacy across the complete resource, including references and dates. These remain implementation and validation tasks; no successful execution is established.

Evidence for this report

LICENSEnotice · checked 2026-11-17
NOTICEnotice · checked 2026-11-17
skills/exporting-to-fhir/SKILL.mdselected · checked 2026-11-17