Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Business Logic Flow

 

...

 Schema changes

Note that the main This section details the new tables and relationships added to the OpenMRS data model to support factor-based concept ranges.

Note: The complete data model is documented here: Concept Data Model . Therefore, this page shows only the new changes in the data model. This document only highlights the new schema additions relevant to factor-based concept ranges.

...

1. concept_reference_range Table

The concept_reference_range table is designed to store detailed reference ranges for concepts, along with criteria that determine when these ranges apply. The criteria are dynamic and can involve multiple patient factors.

Table Structure:

Column Name

Data Type

Description

concept_reference_range_id

INT

Primary key. Unique identifier for each concept reference range.

concept_id

INT

Foreign key linking to concept_numeric.

criteria

VARCHAR

An expression that specifies conditions for when the reference range is applicable.

hi_critical

DOUBLE

The high critical for the concept.

hi_normal

DOUBLE

The high normal for the concept.

hi_absolute

DOUBLE

The upper absolute for the concept.

low_critical

DOUBLE

The lower critical for the concept.

low_normal

DOUBLE

The lower normal for the concept.

low_absolute

DOUBLE

The lower absolute for the concept.

Relationships:

1:N relationship with concept_numeric: A single concept can have multiple reference ranges based on different criteria.

...

2. obs_reference_range Table

The obs_reference_range table records the validated reference range for a specific observation (Obs).

Table Structure:

Column Name

Data Type

Description

obs_reference_range_id

INT

Primary key. Unique identifier for each observation reference range.

obs_id

INT

Foreign key linking to the obs table.

hi_critical

DOUBLE

The high critical limit for the observation.

hi_normal

DOUBLE

The high normal limit for the observation.

hi_absolute

DOUBLE

The high absolute limit for the observation.

low_critical

DOUBLE

The low critical limit for the observation.

low_normal

DOUBLE

The low normal limit for the observation.

low_absolute

DOUBLE

The low absolute limit for the observation.

Relationships:

Has 1:1 relationship with obs: Each observation has one associated reference range.