Many new concept* tables were added to OpenMRS 1.9.
|Table of Contents|
Concept schema diagram
Relationship between concept tables and real example
Using the example of the Leprosy concept (see Figure 2), we'll describe some of the concept tables and how this concept is represented in the database. The concept_id is used to link the various tables (in most cases).
Represented by concept_class 'Diagnosis' with concept_class_id = 4
Represented by concept_datatype 'N/A' with concept_datatype_id = 4
Leprosy where locale is 'en'
FULLY_SPECIFIED for Leprosy; NULL for Hansen's disease and Hansenosis
'1' for Leprosy, but '0' for Hansen's disease and Hansenosis
Lèpre where locale is 'fr'
The concept_id represents the question (Outpatient Diagnosis)
The concept_id for Leprosy (59), which is an answer to the question (Outpatient Diagnosis)
The description text for each locale
ICD-10-WHO (concept_source_id = 3), PIH (concept_source_id = 5)
SAME-AS (concept_map_type_id = 1), NARROWER-THAN (concept_map_type_id = 2)
A30.9 where concept_source_id = 3 (ICD-10-WHO)
Magical glue which connects concept_id (ie. 59), concept_map_type (ie. NARROWER-THAN), concept_reference_term (ie. ICD-10-WHO A30.9)
Leprosy, Hansen's, disease, Hansenosis, Lèpre are all individual rows in this table