Automatic Generation of TMP entries: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
m (cleaned up legacy info that was only about implementation and is no longer relevant)
m (Text replacement - "S_Tmp" to "s_tmp table")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[CCMDB.mdb]] will automatically enter Tmp lines if the entry in s_tmp
[[CCMDB.mdb]] will automatically enter Tmp lines if the entry in s_tmp
* applies to this site
* applies to this [[Site]]
* applies to this program
* applies to this [[Program]]
* active = true
* active = true
* auto_add_at_patient_creation = true
* auto_add_at_patient_creation = true
Line 7: Line 7:
Further, the program can programmatically enter values for s_tmp entries. If we want to restrict ability to edit those, '''auto_cant_add_manually''' and/or '''auto_cant_edit''' can be set.
Further, the program can programmatically enter values for s_tmp entries. If we want to restrict ability to edit those, '''auto_cant_add_manually''' and/or '''auto_cant_edit''' can be set.


== [[S_Tmp]] table usage ==
== [[s_tmp table]] table usage ==
* '''auto_add_at_patient_creation''' - if true then the line is auto-added at patient creation time if applicable for a [[Laptop location]]
* '''auto_add_at_patient_creation''' - if true then the line is auto-added at patient creation time if applicable for a laptop's [[Site]] and [[Program]]
* '''auto_cant_add_manually''' - entry can't be ''added'' manually, ie. will show up in dropdowns
* '''auto_cant_add_manually''' - entry can't be ''added'' manually, ie. will show up in dropdowns
* '''auto_cant_edit''' - entry will not be visible in tmp tab to be ''edited'' manually
* '''auto_cant_edit''' - entry will not be visible in tmp tab to be ''edited'' manually


== Implemenation ==
== Implementation ==
Sub ''add_automatic_tmp_entries''
* Sub ''add_automatic_tmp_entries''
* query ''s_tmp__auto_record_adder''


== Related articles ==  
== Related articles ==  
Line 20: Line 21:


[[Category: TmpV2]]
[[Category: TmpV2]]
[[Category: Laptop location]]

Latest revision as of 09:41, 2023 May 18

CCMDB.mdb will automatically enter Tmp lines if the entry in s_tmp

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

Further, the program can programmatically enter values for s_tmp entries. If we want to restrict ability to edit those, auto_cant_add_manually and/or auto_cant_edit can be set.

s_tmp table table usage

  • auto_add_at_patient_creation - if true then the line is auto-added at patient creation time if applicable for a laptop's Site and Program
  • auto_cant_add_manually - entry can't be added manually, ie. will show up in dropdowns
  • auto_cant_edit - entry will not be visible in tmp tab to be edited manually

Implementation

  • Sub add_automatic_tmp_entries
  • query s_tmp__auto_record_adder

Related articles

Related articles: