Sub add_automatic_tmp_entries

From CCMDB Wiki
Revision as of 16:35, 23 October 2025 by Ttenbergen (talk | contribs)
Jump to navigation Jump to search

The Sub add automatic tmp entries in _Unique_CCMDB module in CCMDB.mdb handles Automatic Generation of TMP entries in the L TmpV2 table to facilitate Tmp Project Collection of data under the Entity–attribute–value model of the L Tmp V2 table based on parameters in the s_tmp table.

Description

Sub add automatic tmp entries will automatically enter a line in L TmpV2 table if there is a record in s_tmp table where :

  • applies to this Site
  • applies to this Program
  • active = true
  • auto_add_at_patient_creation = true

To restrict ability to edit those from the data collector GUI in Patient Viewer Tab Tmp set the applicable parameter in s_tmp table to true:

  • auto_cant_add_manually
  • auto_cant_edit

The function uses query s_tmp__auto_record_adder.

Related articles

Related articles: