Variable naming guidelines#
How to name a new concept (variable) in the corr_v1 taxonomy. Propose the name when
you suggest the concept in a
GitHub issue (see
Contributing New Variables), and use it when the concept is created in the
Concepts API.
General rules#
Follow existing names: orient the name on variables that already exist (
corr concepts search, see The corr command line).snake_case: all variable names are in snake_case.
Lowercase only: no capitals (
dx_hypertension, notDx_Hypertension).Descriptive and concise: balance clarity and brevity (
dx_hypertension, notdx_high_blood_pressure_diagnosis).Avoid redundancy: leave out unnecessary or overlapping words (
blood_potassium, notblood_potassium_level).Structure:
<location/group>_<entity>_<source>_<timeframe>_<aggregation>
Prefixes for grouping variables#
Lab measurements are named by specimen (e.g.
blood_potassium,blood_glucose):blood_[component]→ central/pocblood_[component]_[central/poc]_arterial/venousurine_[component]
dx_: diagnoses (e.g.dx_hypertension,dx_heart_failure).Structure:
dx_[diagnosis_name]_[recency/certainty]
hx_: diagnoses prior to the index stay (e.g.hx_kidney_txa).med_: medications (e.g.med_antibiotics_any,med_insulin_adm).vent_: ventilation variables (e.g.vent_crs_static).score_: medical scores (e.g.score_apache2).
Suffixes for context and scope#
Often used project-specific.
_any: any occurrence. Example:dx_hypertension_any(any instance of hypertension)._adm/_disc: documented specifically at admission or discharge. Examples:smoking_status_adm(smoking status documented at admission),blood_potassium_adm(potassium level at admission)._iv/_po: route of medication administration._txa: transplant procedures._first/_last/_closest_Xprior/_Xpost/_XpostOp/_XpostICUdisc/_XpostHospdisc, where X can be min, h or d._id: unique identification variables._min/_max/_p50/_mean