Skip to content

Centralize the medical code-system OIDs/URIs (LOINC/SNOMED) into one source #671

Description

@nickclyde

Problem

The LOINC OID 2.16.840.1.113883.6.1 (and SNOMED/LOINC URIs) are hardcoded in multiple places that must stay in sync:

Proposed scope

  • Add a small constants module (e.g. shared_models.code_systems with LOINC_OID, LOINC_URI, SNOMED_OID, SNOMED_URI, names) since both augmentation and text-to-code already depend on shared-models.
  • Replace the hardcoded literals at the sites above with the shared constants; have evaluator.CodeSystemValues reference them too.

Acceptance criteria

  • No raw LOINC/SNOMED OID string literals remain in the listed files; rg '113883\.6\.1' across packages/ resolves to the single constants module. Existing tests still pass.

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions