Ontology Working Group
Space shortcuts
Space Tools
Ontology Working Group OWL

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated Part 4 illustration to reflect actual demo patients

...

For instance, if the patient's electronic health record indicates that the patient had the procedure "Tonsillectomy with adenoidectomydiagnosis "Acute tonsillitis," then that fact needs to be recorded in the CRC database using the standard code for that particular procedure diagnosis as defined in the ONT database. In the case of using the default i2b2 Procedures Diagnoses metadata tree, that code would be "ICD9:28.3463". When a researcher makes a query in the user interface for "Tonsillectomy with adenoidectomyAcute tonsillitis," then i2b2 will query the CRC database for all patients who have the code ICD9:28.3463 in their data records.


Let's view a high-level illustration of the mechanism behind a typical query. Here's that concept's definition from the procedures diagnoses table in the ONT (metadata) database:

Excerpt from Procedures Diagnoses Table in Demo Ontology (I2B2 table in ONT metadata database)
Concept Name, displayed to userConcept Path, a unique identifierother fields
Tonsillectomy with adenoidectomyAcute tonsillitis

\i2b2\Procedures\PRC\ICD9 (Inpatient)\(21-29) Operations on nose, mouth and pharynx\(p28) Operations on tonsils and a~\(p28-3) Tonsillectomy with adenoi~Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(463) Acute tonsillitis\

...

When the user selects that Concept Name in the user interface, the i2b2 Query Tool associates that with the Concept Path. When running the query, i2b2 looks for that path in the concepts table in the CRC database, which looks like this...

Excerpt from Concepts Table in Demo Ontology (CONCEPT_DIMENSION table in CRC database)
Concept Path, a unique identifierConcept Code, used in facts tableother fields

\i2b2\Procedures\PRC\ICD9 (Inpatient)\(21-29) Operations on nose, mouth and pharynx\(p28) Operations on tonsils and a~\(p28-3) Tonsillectomy with adenoi~\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(463) Acute tonsillitis\

ICD9:463ICD9:28.3

...

...and i2b2 associates that Concept Path with the Concept Code for that concept. i2b2 then locates those patients in the facts table in the CRC database that share that Concept Code...

Excerpt from Facts Table in Demo Patient Data (OBSERVATION_FACTS table in CRC database)
Patient IDVisit IDConcept Codeother fields

1000000003

474819

ICD9:463

...

...

...

...

1050481000000003

50256475819

ICD9:28.3463

...

1000000003

483428

ICD9:463

...

...

...

...

1189531000000003

54877478327

ICD9:28.3463

...

1000000003

478484

ICD9:463

...

...

...

...

2671691000000055

39218473104

ICD9:28.3

...

...

...

... 463

...

... and reports a count of those patients back to the user at the conclusion of the query. In this illustration, there were 3 2 patients (over 6 encounters) that had this Concept Code in the facts table, so the user's query for patients with the "Tonsillectomy with adenoidectomy" procedure a diagnosis of "Acute tonsillitis" will return a count of 3 2 patients.

Info

The query mechanism illustrated above applies to most queries, but not all. For more details, see Ontologies 103 – Ontology Table Structure and Query Mechanism.

...

Ontology Working Group OWL