Inherited description: DSINTERVAL is the number of seconds between one DSTIME value and the next. The DSTIME value for DSINTERVAL > 0 is computed from $ZTIMESTAMP
and is the number of seconds from day 0, time 0 to the nearest interval, rounded down. Using an interval has the effect of grouping
all DSTIME entries for the class in some number of seconds.
parameter DSTIME = AUTO;
Inherited description: If the DSTIME parameter is set to AUTO then the most recent filing operation in the current DSTIME value
for each object will be recorded in a global, ^OBJ.DSTIME:
^OBJ.DSTIME(ExtentName,DSTIME,objectID) = filing operation
For DSTIME=AUTO the DSTIME value is recorded in ^OBJ.DSTIME and is set by the consumer of DSTIME data.
Refer to %DeepSee documentation for more information on how DSTIME is used by %DeepSee.
The filing operations are:
If the DSTIME parameter is set to MANUAL then the user is responsible for journaling object filing operations.
If DSTIME is set to "CONDITIONAL", the user is expected to define the parameter DSCONDITION setting it to an expression which
will determine if the actions performed when DSTIME is set to AUTO will execute or not
classmethod CheckEmailDuplication(pExportToFile As %Boolean = 1)
For all existing user/clinician, check the duplication of Email Addresses associated with different users
pExportToFile: boolean value to choose whether to export the result to a file under directory /Mgr//
classmethod CopyEmailAddressToEmailID(pClassName As %String, pMethodName As %String, pLogFileName As %String = "CopyEmailAddressToEmailIDLog.txt")
Method to copy Email Addresses to Email IDs based on user-defined mapping method
perform in background
pClassName: name of the class where the user-defined mapping method exists
pMethodName: name of the user-defined mapping method
pLogFileName: name of the file to write the log messages to. By default, the file will be created in /mgr/ directory.
Checks permissions (parameter-based) on a particular operation + object.
If pHandled is set to true, CheckPermission() will be bypassed. pOperation is "C" (create), "R" (read), "U" (update), or "D" (delete) pID is the ID of the object being operated on (empty for new objects) pObject is the object being operated on (for create/read/update; empty for delete)
Returns $$$ERROR($$$AccessDenied) if the user does not have the requisite permission.
classmethod ResolveClinicianGroup(ByRef pClinicianId As %String = "") as %String
Resolve a clinician group ID
classmethod ResolveUserClinician(ByRef pClinicianId As %String = "", pRequestingUser As %String = "") as %Status
This example method maps Email Addresses to Email IDs based on security domain and email type
pUser: an object HS.Registry.Person.User
pUserLoginIDList: the list of HS.Registry.Person.UserLoginID objects for that user
User should assume that all LoginID objects passed to this method have an empty Email ID field
In this example, in HS default domain, only emails of EmailType Secure ("S") are mapped to Email IDs
In other domains, primary emails are mapped to Email IDs. If no email is marked as primary, then use any of the existing emails
NOTE: Please do not call %Save() on the modified LoginID objects in this method. This will be handled in CopyEmailAddressToEmailID() method
classmethod UpdateMessageRepositoryForAllUsers(pOldRepository As %String, pNewRepository As %String)
Updates the MessageRepository of every record of HS.Registry.Person.User
that currently has pOldRepository as it's repository to be
pNewRepository. Both arguments MUST match the "Name" property of
existing entries in the Gateways Registry i.e. in table HS_Gateway.Config.
This method can be run either directly from terminal OR as a background job
using the Job command.
Throws errors when run from terminal. Writes errors to the Application Error
Log as well so they can be viewed when run using the Job command.
classmethod UserHasFacility(pRegistryId) as %Integer
Helper method to check whether an exisiting user has facility
Return -1 to indicate failure
classmethod UserHasLoginID(pRegistryId) as %Integer
Helper method to check whether an exisiting user has loginid
Return -1 to indicate failure