MeridianMERIDIAN

LOINC Code

Logical Observation Identifiers Names and Codes — universal standard for identifying lab observations and clinical measurements. Format: 1-5 digits, hyphen, single check digit.

LOINC Code

identity.medical.loinc

Logical Observation Identifiers Names and Codes — universal standard for identifying lab observations and clinical measurements. Format: 1-5 digits, hyphen, single check digit.

Domain
identity
Category
medical
Casts to
VARCHAR
Scope
Universal

Try it

CLI
$ finetype infer -i "2951-2"
→ identity.medical.loinc

DuckDB

Detect
SELECT finetype('2951-2');
-- → 'identity.medical.loinc'
Cast expression
CAST({col} AS VARCHAR)
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'identity.medical.loinc';

JSON Schema

finetype schema identity.medical.loinc
{
  "$id": "https://meridian.online/schemas/identity.medical.loinc",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Logical Observation Identifiers Names and Codes — universal standard for identifying lab observations and clinical measurements. Format: 1-5 digits, hyphen, single check digit.",
  "examples": [
    "2951-2",
    "718-7",
    "4548-4",
    "14749-6",
    "2345-7"
  ],
  "pattern": "^\\d{1,5}-\\d$",
  "title": "LOINC Code",
  "type": "string",
  "x-finetype-broad-type": "VARCHAR",
  "x-finetype-transform": "CAST({col} AS VARCHAR)"
}

Examples

2951-2718-74548-414749-62345-7

Aliases

lab_codeobservation_code

Type Registry