HS.IHE.ATNA.Repository.Exclusion

persistent class HS.IHE.ATNA.Repository.Exclusion extends %Library.Persistent, HS.Sync.BaseClass, %Library.GlobalIdentifier

SQL Table Name: HS_IHE_ATNA_Repository.Exclusion

Property Inventory

Method Inventory

Properties

property EventType as %String) [ Required ];
Property methods: EventTypeDisplayToLogical(), EventTypeGet(), EventTypeGetStored(), EventTypeIsValid(), EventTypeLogicalToDisplay(), EventTypeLogicalToOdbc(), EventTypeNormalize(), EventTypeSet()

Methods

classmethod DaysToCurrentDate(pDate As %TimeStamp) as %Integer
Given a prev date, return the difference between that date and current date If a future date is provided, it should return 0
classmethod OKToPurge() as %Boolean
classmethod PurgeATNA(pATNAId)
Used by HS.IHE.ATNA.Repository.Conversion to convert existing messages that use the old AuditMessage structure
classmethod PurgeActPar(pActPar As HS.IHE.ATNA.Repository.Data.ActiveParticipant)
classmethod PurgeAudSrc(pSrc As HS.IHE.ATNA.Repository.Data.AuditSourceIdentificationType)
classmethod PurgeByBlock(pRS As %SQL.StatementResult, pDisableJournaling As %Boolean = 0) as %Status
classmethod PurgeByEventTypesAndDate(pEventTypeList As %Library.List, pDate As %TimeStamp, pDisableJournaling As %Boolean = 0)
API for purging by both list of event types and timestamp @API.Method @Argument pEventTypeList: $LB of strings, which are event types in HS_IHE_ATNA_Repository.Exclusion table @Argument pDate: String in %TimeStamp format of the date. Purge events of type among pEventTypeList prior to this date pDate corresponds to the IndexedDate field of HS_IHE_ATNA_Repository.Aggregation table pDate should be of the format: "YYYY-MM-DD HH:MM:SS[.nnnnnnnnn]" or simply "YYYY-MM-DD" @Argument pDisableJournaling: Boolean value(default is 0). If set to 1, journaling for the purge action is disabled; Otherwise it will keep the default database journaling setting
classmethod PurgeByEventTypesAndDaysToKeep(pEventTypeList As %Library.List, pDaysToKeep As %Integer, pDisableJournaling As %Boolean = 0)
Purge all audit events in list of event types and before an integer number of days @API.Method @Argument pEventTypeList: $LISTBUILD of strings, which are event types in HS_IHE_ATNA_Repository.Exclusion table @Argument pDaysToKeep: A non-negative integer value x. All events within the most recent x days will be kept @Argument pDisableJournaling: Boolean value(default is 0). If set to 1, journaling for the purge action is disabled; Otherwise it will keep the default database journaling setting
classmethod PurgeEventType(pEventType, pShowQuestionPrompt As %Boolean = 1, pDisableJournaling As %Boolean = 0)
@API.Method @Argument pEventType: A string of an event type exists in HS_IHE_ATNA_Repository.Exclusion table @Argument pShowQuestionPrompt: A boolean value asking whether or not to display the question prompt @Argument pDisableJournaling: Boolean value(default is 0). If set to 1, journaling for the purge action is disabled; Otherwise it will keep the default database journaling setting
classmethod PurgeEventsByDate(pDate As %TimeStamp, pDisableJournaling As %Boolean = 0)
Purge all audit events before the given date @API.Method @Argument pDate: String in %TimeStamp format of the date. Purge events prior to this date pDate corresponds to the IndexedDate field of HS_IHE_ATNA_Repository.Aggregation table pDate should be of the format: "YYYY-MM-DD HH:MM:SS[.nnnnnnnnn]" or simply "YYYY-MM-DD" @Argument pDisableJournaling: Boolean value(default is 0). If set to 1, journaling for the purge action is disabled; Otherwise it will keep the default database journaling setting
classmethod PurgeEventsByDaysToKeep(pDaysToKeep As %Integer, pDisableJournaling As %Boolean = 0)
Purge all audit events before an integer number of days @API.Method @Argument pDaysToKeep: A non-negative integer value x. All events within the most recent x days will be kept @Argument pDisableJournaling: Boolean value(default is 0). If set to 1, journaling for the purge action is disabled; Otherwise it will keep the default database journaling setting
classmethod PurgeExcludedEvents(pDisableJournaling As %Boolean = 0)
@API.Method @Argument pDisableJournaling: Boolean value(default is 0). If set to 1, journaling for the purge action is disabled; Otherwise it will keep the default database journaling setting
classmethod PurgePar(pPar As HS.IHE.ATNA.Repository.Data.ParticipantObjectIdentificationType)

Queries

query ListExcludedEvents()
SQL Query:
SELECT EventType FROM Exclusion ORDER BY Upper(EventType)

Indexes

index (Event on EventType) [IdKey, PrimaryKey, Type = key, Unique];
Index methods: EventCheck(), EventDelete(), EventExists(), EventOpen(), EventSQLCheckUnique(), EventSQLExists(), EventSQLFindPKeyByConstraint(), EventSQLFindRowIDByConstraint(), EventTypeDisplayToLogical(), EventTypeGet(), EventTypeGetStored(), EventTypeIsValid(), EventTypeLogicalToDisplay(), EventTypeLogicalToOdbc(), EventTypeNormalize(), EventTypeSet()

Inherited Members

Inherited Methods

Storage

Storage Model: Storage (HS.IHE.ATNA.Repository.Exclusion)

^HS.IHE.ATNA.Repos1C5.ExclusionD(ID)
=
%%CLASSNAME
Feedback