Sub add automatic tmp entries: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
Line 11: Line 11:
* '''auto_cant_add_manually'''  
* '''auto_cant_add_manually'''  
* '''auto_cant_edit'''
* '''auto_cant_edit'''
The function uses query s_tmp__auto_record_adder.


== Related articles ==  
== Related articles ==  

Revision as of 16:32, 23 October 2025

Sub in _Unique_CCMDB module in CCMDB.mdb that 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: