Improved
Sept 13: Updates to data mart schema to reflect lens improvements
September 12th, 2025 by Nicolas Luzarraga
To reflect recent improvements in lens logic, the following changes have been made to the data mart schemas for the LENS_TRANSITION_OF_CARE and LENS_ENCOUNTER tables:
-
- Added the following fields to the LENS_TRANSITION_OF_CARE table:
admitting_location_startemergency_location_idemergency_location_endcurrent_location_idcurrent_location_startbehavioral_healthnon_elective_admissiondischarge_disposition_codedischarge_disposition_display
- Added new child tables:
- LENS_TRANSITION_OF_CARE_REASON
- LENS_TRANSITION_OF_CARE_PARTICIPANT
- Added
lens_encounter_idto LENS_TRANSITION_OF_CARE_AGGREGATED_FROM table

- Added the following fields to the LENS_TRANSITION_OF_CARE table:
-
- Added
admit_source_codeandadmit_source_displayvalues to LENS_ENCOUNTER table - Added
discharge_disposition_codeanddischarge_disposition_displayvalues to LENS_ENCOUNTER table (rather than only include in child tables) - Added LENS_ENCOUNTER_ADT_MESSAGE child table
- Added
rankanduse_codeto LENS_ENCOUNTER_DIAGNOSIS
- Added
These updates are now live in all customer data marts. Details on these new fields and tables are available in our schema diagrams and data dictionary.
