OMOP_5.4_ER_ALL

OMOP_5.4_ER : Model

Entity - note link

Properties
Name Value
Description

 

NOTE

Table Description

The NOTE table captures unstructured information that was recorded by a provider about a patient in free text (in ASCII, or preferably in UTF8 format) notes on a given date. The type of note_text is CLOB or varchar(MAX) depending on RDBMS.

ETL Conventions

HL7/LOINC CDO is a standard for consistent naming of documents to support a range of use cases: retrieval, organization, display, and exchange. It guides the creation of LOINC codes for clinical notes. CDO annotates each document with 5 dimensions:

  • Kind of Document: Characterizes the general structure of the document at a macro level (e.g. Anesthesia Consent)
  • Type of Service: Characterizes the kind of service or activity (e.g. evaluations, consultations, and summaries). The notion of time sequence, e.g., at the beginning (admission) at the end (discharge) is subsumed in this axis. Example: Discharge Teaching.
  • Setting: Setting is an extension of CMS’s definitions (e.g. Inpatient, Outpatient)
  • Subject Matter Domain (SMD): Characterizes the subject matter domain of a note (e.g. Anesthesiology)
  • Role: Characterizes the training or professional level of the author of the document, but does not break down to specialty or subspecialty (e.g. Physician) Each combination of these 5 dimensions rolls up to a unique LOINC code.

According to CDO requirements, only 2 of the 5 dimensions are required to properly annotate a document; Kind of Document and any one of the other 4 dimensions. However, not all the permutations of the CDO dimensions will necessarily yield an existing LOINC code. Each of these dimensions are contained in the OMOP Vocabulary under the domain of ‘Meas Value’ with each dimension represented as a Concept Class.

CDM Field User Guide ETL Conventions Datatype Required Primary Key Foreign Key FK Table FK Domain
note_id A unique identifier for each note. integer Yes Yes No
person_id integer Yes No Yes PERSON
note_date The date the note was recorded. date Yes No No
note_datetime If time is not given set the time to midnight. datetime No No No
note_type_concept_id The provenance of the note. Most likely this will be EHR. Put the source system of the note, as in EHR record. Accepted Concepts. A more detailed explanation of each Type Concept can be found on the vocabulary wiki. integer Yes No Yes CONCEPT Type Concept
note_class_concept_id A Standard Concept Id representing the HL7 LOINC Document Type Vocabulary classification of the note. Map the note classification to a Standard Concept. For more information see the ETL Conventions in the description of the NOTE table. Accepted Concepts. This Concept can alternatively be represented by concepts with the relationship ‘Kind of (LOINC)’ to 706391 (Note). integer Yes No Yes CONCEPT
note_title The title of the note. varchar(250) No No No
note_text The content of the note. varchar(MAX) Yes No No
encoding_concept_id This is the Concept representing the character encoding type. Put the Concept Id that represents the encoding character type here. Currently the only option is UTF-8 (32678). It the note is encoded in any other type, like ASCII then put 0. integer Yes No Yes CONCEPT
language_concept_id The language of the note. Use Concepts that are descendants of the concept 4182347 (World Languages). integer Yes No Yes CONCEPT
provider_id The Provider who wrote the note. The ETL may need to make a determination on which provider to put here. integer No No Yes PROVIDER
visit_occurrence_id The Visit during which the note was written. integer No No Yes VISIT_OCCURRENCE
visit_detail_id The Visit Detail during which the note was written. integer No No Yes VISIT_DETAIL
note_source_value The source value mapped to the NOTE_CLASS_CONCEPT_ID. varchar(50) No No No
note_event_id If the Note record is related to another record in the database, this field is the primary key of the linked record. Put the primary key of the linked record, if applicable, here. integer No No No
note_event_field_concept_id If the Note record is related to another record in the database, this field is the CONCEPT_ID that identifies which table the primary key of the linked record came from. Put the CONCEPT_ID that identifies which table and field the NOTE_EVENT_ID came from. integer No No Yes CONCEPT

 

Data Model Physical
Primary Key Constraint Name xpk_note
Primary Key Clustered Unspecified
Unlogged false

Columns Summary
Column Name Data Type PK / FK Nullable Description
note_id int4 PK No
person_id int4 PK / FK No
provider_id int4 PK / FK No
visit_occurrence_id int4 PK / FK No
visit_detail_id int4 PK / FK No
note_date date No
note_datetime timestamp(0) Yes
note_type_concept_id int4 PK / FK No
note_class_concept_id int4 PK / FK No
note_title varchar(250) Yes
note_text text No
encoding_concept_id int4 PK / FK No
language_concept_id int4 PK / FK No
note_source_value varchar(50) Yes
note_event_id int8 Yes
note_event_field_concept_id int4 PK / FK No

Relationships Summary
Name Begin End
 fpk_note_person_id : Relationship
 person : Entity
 note : Entity
 fpk_note_note_type_concept_id : Relationship
 concept : Entity
 note : Entity
 fpk_note_note_class_concept_id : Relationship
 concept : Entity
 note : Entity
 fpk_note_encoding_concept_id : Relationship
 concept : Entity
 note : Entity
 fpk_note_language_concept_id : Relationship
 concept : Entity
 note : Entity
 fpk_note_provider_id : Relationship
 provider : Entity
 note : Entity
 fpk_note_visit_occurrence_id : Relationship
 visit_occurrence : Entity
 note : Entity
 fpk_note_visit_detail_id : Relationship
 visit_detail : Entity
 note : Entity
 fpk_note_note_event_field_concept_id : Relationship
 concept : Entity
 note : Entity

Columns Detail
Name Value
Name note_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key false
Generated Unspecified
Sync To Attribute Yes

Name Value
Name person_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name provider_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name visit_occurrence_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name visit_detail_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_date
Type date
Nullable false
Unique false
Primary Key false
Index false
Type Name date
Length 0
Scale 0
Id Generator native
Foreign Key false
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_datetime
Type timestamp
Nullable true
Unique false
Primary Key false
Index false
Type Name timestamp
Length 0
Scale 0
Id Generator native
Foreign Key false
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_type_concept_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_class_concept_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_title
Type varchar
Nullable true
Unique false
Primary Key false
Index false
Type Name varchar
Length 250
Scale 0
Id Generator native
Foreign Key false
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_text
Type text
Nullable false
Unique false
Primary Key false
Index false
Type Name text
Length 0
Scale 0
Id Generator native
Foreign Key false
Generated Unspecified
Sync To Attribute Yes

Name Value
Name encoding_concept_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name language_concept_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_source_value
Type varchar
Nullable true
Unique false
Primary Key false
Index false
Type Name varchar
Length 50
Scale 0
Id Generator native
Foreign Key false
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_event_id
Type int8
Nullable true
Unique false
Primary Key false
Index false
Type Name int8
Length 0
Scale 0
Id Generator native
Foreign Key false
Generated Unspecified
Sync To Attribute Yes

Name Value
Name note_event_field_concept_id
Type int4
Nullable false
Unique false
Primary Key true
Index false
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Relationships Detail
Name Value
Name fpk_note_person_id
Foreign Key
note
 person_id : Column
Primary Key
person
 person_id : Column
To Multiplicity 0..*
From Multiplicity 1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_note_note_type_concept_id
Foreign Key
note
 note_type_concept_id : Column
Primary Key
concept
 concept_id : Column
To Multiplicity 0..*
From Multiplicity 0..1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_note_note_class_concept_id
Foreign Key
note
 note_class_concept_id : Column
Primary Key
concept
 concept_id : Column
To Multiplicity 0..*
From Multiplicity 0..1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_note_encoding_concept_id
Foreign Key
note
 encoding_concept_id : Column
Primary Key
concept
 concept_id : Column
To Multiplicity 0..*
From Multiplicity 0..1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_note_language_concept_id
Foreign Key
note
 language_concept_id : Column
Primary Key
concept
 concept_id : Column
To Multiplicity 0..*
From Multiplicity 0..1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_note_provider_id
Foreign Key
note
 provider_id : Column
Primary Key
provider
 provider_id : Column
To Multiplicity 0..*
From Multiplicity 1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_note_visit_occurrence_id
Foreign Key
note
 visit_occurrence_id : Column
Primary Key
visit_occurrence
 visit_occurrence_id : Column
To Multiplicity 0..*
From Multiplicity 1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_note_visit_detail_id
Foreign Key
note
 visit_detail_id : Column
Primary Key
visit_detail
 visit_detail_id : Column
To Multiplicity 0..*
From Multiplicity 1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_note_note_event_field_concept_id
Foreign Key
note
 note_event_field_concept_id : Column
Primary Key
concept
 concept_id : Column
To Multiplicity 0..*
From Multiplicity 1
Sync To Association Yes
Data Model Physical

Appears In
Diagram
 Standardized_Tables : Entity Relationship Diagram
 Vocabulary_With_Standard : Entity Relationship Diagram
OMOP_5.4_ER_ALL