RSC repository banner
PROTOTYPE SITE UNDER CONSTRUCTION

RSC Phenotype RSC-PH32

Phenotypes Help

Measurements [T]

Brief description

Template phenotype for identifying measurement events for a specified quantity

Overview

This template phenotype identifies measurement events for a specified quantity from longitudinal primary care records using a SNOMED CT codelist. The phenotype returns a list of events per patient. Applied across populations, it supports estimation of monitoring rates, cohort construction, and derivation of a patient-level variable for downstream analysis.

Input

Parameter Description
patient_record A single patient's longitudinal record
observation_window Timeframe within which events are to be identified
measurement_codelist SNOMED CT codes identifying measurement of the specific quantity

Output

  • Description: A list of measurement events including date and the recorded numerical value for the specified quantity within the observation window.

Pseudocode

  • Let candidate_events be all events in patient_record with codes from measurement_codelist within observation_window that have an associated recorded value.

  • Return the list of all candidate_events including the associated recorded value.

Notes on use

  • Applying this phenotype across a collection of patients can produce:
    • counts of subjects for whom measurements have been made
    • patient-level variables (for example, patient has had the quantity measured at least once)
    • cohorts (for example, all patients with at least one measurement of the specified quantity, or a measurement within a specific range)

Template note

Section will be removed