Automatic Generation of TMP entries

From CCMDB Wiki
Revision as of 14:01, 1 March 2020 by Ttenbergen (talk | contribs) (cleaned up legacy info that was only about implementation and is no longer relevant)
Jump to navigation Jump to search

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 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_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

Implemenation

Sub add_automatic_tmp_entries

Related articles

Related articles: