• Services
    LLM
    AI & ML
    Digital Healthcare
    Data Science
    DevOps
  • Products
    Jackalope
    EyeAI
  • Industries
    Healthcare
    Agriculture
    EdTech / LMS
    Retail / E-commerce
    Manufacturing
  • Resources
    Blog
    Case Studies
    Expert Guides
  • Company
    About us
    Careers
  • Contact us
logo
Services
LLMAI & MLDigital HealthcareData ScienceDevOps
Industries
HealthcareAgricultureEdTech / LMSRetail / E-commerceManufacturing
Case StudiesAbout UsBlogCareers
Our contacts
+380(66)54-32-579
sales@sciforce.tech

Get monthly digest of innovations

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Social Media:
Privacy Policy © 2026 Sciforce
5.0

Computable Phenotyping Using OMOP And Human-Governed LLM Assistance

Published: August 6, 2026
# Healthcare
# Data Science
# LLM
Our client was a U.S.-based, multi-institutional healthcare research initiative developing an AI-ready clinical data ecosystem for critical-care research. The initiative brought together several institutional data sources with differences in clinical workflows, source systems, coding practices, data availability, and OMOP ETL implementations. The client needed a systematic way to translate complex clinical research questions into reproducible computable phenotypes that could support cohort discovery, population characterization, outcome definition, and downstream analytical and machine-learning workflows. The project focused on structured electronic health record data represented primarily through the OMOP Condition, Procedure, Measurement, Observation, Device, Drug, Specimen and Visit domains. To preserve confidentiality, the organization and individual clinical use cases are not disclosed.

Challenge

1. Translating Clinical Intent into Executable Logic

The initial clinical definitions were expressed through expert knowledge, published evidence, narrative criteria, care-setting requirements, laboratory thresholds, treatment patterns, and temporal relationships. These descriptions were not directly executable. Each phenotype required an explicit definition of the index event, eligibility criteria, observation requirements, temporal windows, exclusions, cohort exit, and recurrent-event handling. A clinically plausible description could still produce an analytically incorrect cohort if these elements were implemented inconsistently.

2. Combining Evidence Across Multiple OMOP Domains

The target clinical states could not be represented reliably by diagnosis codes alone. Relevant evidence was distributed across conditions, treatments, encounters, laboratory results, and other structured clinical events. The cohort logic therefore had to combine multiple OMOP domains while preserving the correct temporal and contextual relationships between them.

3. Building Complete and Clinically Precise Concept Sets

Terminology selection was more complex than searching for matching clinical terms. Errors clustered into three root causes, shown above: scope, concept identity, and mapping or domain assignment.

Scope and concept-identity errors were usually invisible until a clinical reviewer read through sample records, since the vocabulary looked correct on its face. Mapping and domain errors, by contrast, often surfaced only once a concept set ran against real data across institutions — a source-to-standard gap or an incorrect domain assumption that produced no visible error until execution exposed it. The client needed concept sets that were clinically defensible, technically compatible with OMOP, and sufficiently documented for review and reuse.

Concept-set errors

4. Supporting Execution Across Heterogeneous Data Sources

OMOP provided a common analytical structure, but data availability and representation still varied among institutions. These differences clustered into three root causes: coding and mapping practices, data completeness, and site-specific ETL process.

Data-completeness gaps often produced silent failures — a phenotype simply returned fewer results, with no visible error. Coding, mapping, and ETL differences typically surfaced as visibly incorrect results. Successful execution at one institution therefore did not guarantee equivalent results across the network.

Cross-source heterogenity

5. Establishing Reproducibility and Governance

The client needed more than a set of queries. Each phenotype had to become a governed analytical asset with a documented clinical intent, accountable ownership, versioned concept sets, executable logic, quality-assurance evidence, review history, and change control. Without these controls, cohort definitions could not be reliably maintained, compared, or reused.

6. Integrating LLM Assistance Without Losing Expert Control

Large language models could accelerate evidence synthesis, terminology exploration, documentation, and logical review. However, unconstrained model output could introduce invented terminology, incomplete criteria, incorrect temporal assumptions, or unjustified clinical conclusions. The workflow therefore had to use LLMs selectively while keeping all clinically consequential decisions under human control.

Solution

1) Structured Phenotype Specification Framework

SciForce introduced a standardized specification template for converting clinical questions into implementable phenotype requirements. Each specification documented eleven components, grouped into the event defining cohort entry and the criteria determining analytical eligibility around that event, shown below.

Structured Phenotype Specification Framework

Narrative clinical criteria could sound plausible and still produce an analytically incorrect cohort if these two groups were implemented inconsistently. The template's separation gave reviewers a fixed checkpoint: whether a patient qualified for cohort entry, and separately, whether they remained eligible under the criteria evaluated afterward.

2) OMOP Concept-Set Engineering

We created curated concept sets supporting selected critical-care phenotype specifications. Concept sets were developed as reusable semantic assets rather than as undocumented components embedded within individual queries. The curation process included:

  • clinical scope definition;
  • vocabulary hierarchy review;
  • descendant inclusion and exclusion;
  • standardness assessment;
  • source-to-standard mapping review;
  • domain-consistency checks;
  • synonym and alternative-representation searches;
  • documentation of inclusion and exclusion rationale;
  • review of potential vocabulary-release effects.

Final concept membership remained subject to expert terminology and clinical review.

3) Executable Cohort Development

The approved phenotype specifications and concept sets were translated into executable OMOP cohort definitions developed in OHDSI ATLAS. ATLAS carried forward the entry and eligibility structure shown above, and added four implementation-specific mechanics: event-level restrictions, occurrence counts, incident and prevalent interpretations, and era construction. ATLAS definitions supported both human-readable review and export for execution.

One phenotype was implemented as a derived analytical construct built on top of its parent cohort, rather than as its own standalone definition, keeping primary cohort identification separate from downstream derivation.

4) Human-Supervised LLM Assistance

The workflow incorporated an LLM as a controlled knowledge-engineering and quality-assurance layer. The LLM supported:

  • extraction of candidate phenotype criteria from literature and narrative descriptions;
  • conversion of clinical prose into structured draft specifications;
  • generation of synonyms, abbreviations, and terminology search variants;
  • comparison of approved specifications with human-readable and executable cohort logic;
  • identification of potential omissions and undocumented assumptions;
  • drafting of concept-set rationales, review notes, and change logs;
  • structured summarization of aggregate diagnostic findings.

The model did not independently approve concepts, determine clinical validity, or deploy production cohort logic. Final decisions remained with clinical, vocabulary, methodological, and technical reviewers.

5) Multi-Layer Quality Assurance

SciForce implemented a multi-layer quality assurance framework covering terminology, cohort logic, population-level behavior, and cross-source consistency. Each phenotype was evaluated using OHDSI CohortDiagnostics to assess cohort size, inclusion-rule attrition, index-event concept utilization, demographic and temporal distributions, observation time, visit context, and other indicators of data fitness and phenotype behavior.

The review also examined concept-set scope and hierarchy expansion, standard and non-standard concept use, source-to-standard mappings, domain alignment, index-event implementation, entry-versus-inclusion semantics, temporal and observation requirements, episode construction, cohort exit and censoring, and the consistency of measurement units and value representations.

Successful cohort generation was treated as a necessary technical check, not as evidence that the phenotype was clinically valid.

6) Cross-Source Diagnostic Framework

The cohort definitions were evaluated using OHDSI CohortDiagnostics across participating institutional OMOP data sources where the required data were available. Diagnostic outputs were reviewed both within individual sites and comparatively across sites to assess differences in cohort generation, inclusion-rule attrition, concept utilization, data availability, and temporal behavior. The cross-source review was designed to identify:

  • zero or unexpectedly low cohort counts;
  • unusual inclusion-rule attrition;
  • inconsistent index-event concept distributions;
  • absent or sparsely populated clinical domains;
  • atypical demographic or temporal patterns;
  • gaps in source-to-standard mappings;
  • site-specific ETL artifacts;
  • dependencies on unavailable timestamps, measurements, or other required data elements.

Cross-source variation triggered investigation into phenotype behavior and data fitness before any implementation error was assumed.

7) Governance and Documentation

Each phenotype was supported by documentation covering:

  • clinical intent;
  • operational definition;
  • concept-set rationale;
  • implementation logic;
  • review findings;
  • known constraints;
  • change history;
  • versioning;
  • approval status.

The resulting governance model supported revision, release, and reuse as the phenotype library grew.

Features

Reusable OMOP Concept Library

The project delivered curated concept sets that could be reviewed, versioned, and reused across multiple cohort definitions. This reduced dependence on one-off code lists and established a shared semantic foundation for future phenotype development.

Executable and Human-Readable Cohort Definitions

The solution connected clinical descriptions with executable OMOP cohort logic. Researchers could review both the intended clinical meaning and its technical implementation instead of relying on opaque SQL or undocumented ATLAS configurations.

Multi-Domain Clinical Logic

The framework supported phenotype definitions based on combinations of conditions, treatments, visits, measurements, and temporal relationships. This enabled the representation of complex clinical states that could not be identified through a single code or domain.

Human-Governed LLM Workflow

The LLM was used as a human-supervised knowledge-engineering and quality-assurance assistant rather than as an autonomous phenotype generator. It supported evidence synthesis, converted narrative clinical definitions into structured phenotype specifications, expanded terminology searches, checked consistency between approved phenotype intent and ATLAS logic, drafted concept-set rationales and change documentation, and summarized cross-site diagnostic findings. Final concept selection, temporal logic, cohort implementation, and approval remained under expert control.

Cross-Database Diagnostic Readiness

The phenotype package was structured for systematic evaluation across heterogeneous OMOP data sources. Site-level differences in cohort counts, attrition, concept use, and data availability could be detected and investigated using a consistent diagnostic framework.

Versioned and Auditable Assets

Concept sets, phenotype specifications, cohort definitions, QA findings, and changes were documented as maintainable project assets. This made it possible to distinguish semantic changes from technical corrections and documentation-only updates.

Support for Primary and Derived Phenotypes

The architecture distinguished executable cohorts from analytical derivations and subphenotypes. This avoided forcing every clinical construct into the same implementation pattern and enabled more appropriate downstream analytical logic.

Privacy-Conscious LLM Integration

The LLM layer was designed to operate on non-identifiable artifacts such as literature, terminology metadata, phenotype specifications, cohort-definition files, and aggregate diagnostics. Patient-level cohort generation and analysis remained within secured institutional data environments.

Development Journey

1. Clinical Requirements Analysis

At first, we identified the intended use of each phenotype and resolving ambiguities in the clinical description. Clinical criteria were decomposed into:

  • population requirements;
  • candidate index events;
  • required and optional evidence;
  • temporal relationships;
  • exclusions;
  • recurrent-event rules;
  • baseline and follow-up requirements;
  • expected data availability.

This prevented premature concept selection before the clinical construct had been adequately defined.

2. Evidence and Data-Requirement Review

Relevant publications, clinical definitions, terminology resources, and available OMOP data elements were reviewed. We identified which clinical signals could be represented reliably in structured EHR data and which depended on missing, inconsistent, or institution-specific information.

Alternative evidence pathways were documented when the same clinical state could be represented through different combinations of events.

3. Concept-Set Curation

Candidate concepts were identified using clinical terminology knowledge, OMOP vocabulary relationships, lexical searches, mapping review, and LLM-assisted synonym expansion, then reviewed against the same criteria described under OMOP Concept-Set Engineering. Inclusion rationale was documented before the set was approved for implementation.

4. Cohort Implementation

Approved clinical logic was implemented as OMOP cohort definitions. We configured initial events, restrictions, inclusion rules, temporal relationships, observation requirements, exit criteria, and cohort-era behavior.

Derived clinical states that required post-cohort calculations were retained as downstream analytical logic rather than artificially represented as independent entry-event cohorts.

5. Technical and Semantic QA

We compared the original clinical specification with:

  • the concept sets;
  • the human-readable cohort description;
  • the executable definition;
  • generated cohort behavior.

This review identified semantic omissions, implementation inconsistencies, incorrect temporal relationships, domain mismatches, duplicate-event behavior, and dependencies on unavailable data.

6. Cross-Site Evaluation

Aggregate outputs were compared across participating data sources. The analysis focused on:

  • execution status;
  • non-zero cohort generation;
  • inclusion-rule attrition;
  • cohort-size variation;
  • index-concept distributions;
  • demographic and temporal characteristics;
  • missing clinical signals;
  • source-specific ETL behavior.

Unexpected variation triggered focused review of data availability, mappings, and implementation assumptions.

7. Multidisciplinary Review

Clinical, vocabulary, observational, and engineering review ran in parallel, each catching a different category of failure. LLM support fed into this process without an approval role of its own.

Multidisciplinary Review

Impact

  • Standardized Phenotype Development

The client gained a repeatable lifecycle covering clinical specification, evidence review, terminology engineering, cohort implementation, diagnostics, expert approval, versioning, and release.

  • Greater Transparency and Reproducibility

Clinical assumptions, terminology choices, temporal relationships, implementation decisions, and known limitations were documented explicitly instead of remaining embedded in individual queries.

  • Responsible LLM Integration

The project demonstrated how LLMs could support phenotype knowledge engineering and QA without transferring clinical authority from accountable human experts to a generative model.

  • Foundation for Scalable Research The delivered assets provided a structured basis for cohort discovery, population characterization, outcome definition, analytical labeling, and future phenotype-library development across participating institutions. The workflow was designed for transportability but did not assume identical phenotype validity at every site. Estimation of phenotype-specific sensitivity, specificity, or positive predictive value would require an independent reference standard such as systematic chart review or registry linkage.

RELATED CASE STUDIES

View all Case Studies
End-to-End ETL on Snowflake cover smallFrom Raw Claims and Clinical Data to PCORnet CDM: End-to-End ETL on Snowflake

Our client, a U.S. health insurer collaborating with multiple hospital systems, aimed to aggregate and harmonize anonymized claims and clinical data in the PCORnet Common Data Model (CDM) to support large-scale outcomes research and operational analytics. The incoming medical and billing feeds came from heterogeneous hospital and payer systems with inconsistent schemas, variable data quality, and no unified governance. The client asked SciForce to design and implement a sustainable, cloud-native ETL/ELT pipeline on Snowflake that would: 1) Continuously integrate raw source feeds into a centralized Snowflake data platform; 2) Transform them into a PCORnet-conformant CDM with strong data quality guarantees; 3) Enable near real-time analytics for patient demand forecasting, capacity planning, and revenue cycle optimization.

# Healthcare
# AI / ML
# Big Data
# Data Science
Sensor-Based Fall Detection and Monitoring for Patient SafetyReal-Time Fall Detection System for Elderly Care Facilities

The client was a residential care facility for elderly patients who were at risk of falling, relying on wearable sensor fall detection for assisted living facilities to reduce incidents and response time. Each resident wore a small motion-tracking device as part of a wearable health monitoring setup that measured their movements in three directions. Their rooms were also equipped with AI in assisted living facilities that monitored temperature, humidity, light, noise levels, and whether someone was in or out of bed. The goal was to build an AI fall detection system that could automatically detect when someone had fallen and notify staff quickly. The team focused on understanding how movement patterns could indicate a fall and explored how room data could help add context in the future.

# Healthcare
# Tech
# AI / ML
# Big Data
# Data Science
OMOP to FHIR Conversion: Scalable Healthcare Data PipelineAutomating Research-to-Care Data Integration via OMOP and FHIR

Our client is a university hospital based in Germany, aimed to enhance cross-institutional standardized healthcare data exchange through structured health data pipelines. Multiple institutions involved in observational research sought integrating observational research data into clinical systems via FHIR, including risk models and disease prevalence metrics, into operational clinical workflows. To support this goal, the client required a conversion pipeline from OMOP CDM (used in research analytics) to HL7 FHIR (used in clinical applications) to enable real-time data AI for healthcare data interoperability.

# Healthcare
# AI / ML
# Big Data
# Data Science
LLM-Powered Clinical Data Normalization & MLOps IntegrationDeploying Medical Semantic Search with Lightweight MLOps Pipelines

The client is a professional healthcare technology provider whose platform is used by multiple medical institutions to support clinical medical data interoperability. The project focused on enabling medical semantic search using LLMs and vector databases, allowing healthcare teams to structured clinical data extraction from free-text input. To achieve this, the platform integrates large language models for real-time query normalization and a locally deployed Quadrant vector database for high-performance concept retrieval. The solution was designed to deliver accurate concept mapping at scale, while aligning with MLOps and DevOps best practices to ensure reproducibility, modularity, and operational stability across environments.

# Healthcare
# AI / ML
# Data Science
# DevOps
# NLP
# LLM