dbo.SXAHMOccurrenceActionStatusHistory 
Default Table Name  SXAHMOccurrenceActionStatusHistory 
Definition  This Health Management patient data table stores the history of actions and status changes for individual immunization and wellness event occurrences. When an action is taken on an occurrence, both the action and any changes in status are stored here. Any reasons associated with the action are linked to the history row. 

dbo.SXAHMOccurrenceActionStatusHistory Columns 
ColumnName  Domain  Datatype  NULL  Definition 
Build    int  NO  Identifies the build number and patch level of the software that inserted/updated this row. The format is the Build number followed by 3 digits for the patch level which is typically 000. The build number is tied to specific versions of the software, e.g. Sunrise 15.3 is Build 5021, Sunrise 16.3 is Build 5503. 
TouchedBy    varchar(50)  NO  Information about the user that last updated the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
TouchedWhenUTC    datetimeoffset(3)  NO  The date and time that the row was last updated including the time zone offset from UTC, for example 2015-01-30 04:55:04.372 -05:00. The date and time is based on the Enterprise Time Zone. 
CreatedBy    varchar(50)  NO  Information about the user that created the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
CreatedWhenUTC    datetimeoffset(3)  NO  The date and time that the row was created including the time zone offset from UTC, for example 2015-01-30 04:55:04.372 -05:00. The date and time is based on the Enterprise Time Zone. 
OccurrenceActionStatusHistoryID(PK)    bigint  NO  Auto generated unique primary key value. 
ScheduledEventOccurrenceID(FK)    bigint  NO  A foreign key to the ScheduledEventOccurrenceID column in the SXAHMScheduledEventOccurrence table. 
ActionUserGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3User table. 
ActionUserDisplayName    varchar(100)  YES  PHI: Specifies the display name of the user responsible for this modification to the occurrence. 
ActionType    int  NO  An enumerated type with the following list of possible values: 0 = [Mark as Complete],1 = [Mark as Not Complete],2 = [Mark As Invalid],3 = [Delete Entry],4 = [Modify Occurrence],5 = [Reschedule],6 = [Order Placed],7 = [Order Link Removed],8 = [Save as Unreconciled Completed],9 = [Save as Unreconciled Not Completed],10 = [Accept Unreconciled],11 = [Reject Unreconciled],12 = [Receive Entered-in-Error],13 = [Update to Entered-in-Error],14 = [Ignore Update],15 = [Order Task Occurrence Link Added],16 = [Order Task Occurrence Link Removed], 
FromStatusType    int  YES  An Enumerated type value that defines the status of this occurrence BEFORE the change. The possible values are: Pending, Completed, Not Completed 
ToStatusType    int  YES  An Enumerated type value that defines the status of this occurrence AFTER the change. The possible values are: Pending, Completed, Not Completed 
FieldModificationXML    xml  YES  For any action status history rows that have modified fields associated with them, we add all of the modified fields to this column as XML. 
MSRowVersion    timestamp  NO  Optimistic lock identifier using rowversion datatype. 
ActionCodedReasonType    varchar(30)  YES  The reason type for the action. References CV3CodedReason.Type column 
ActionReasonXML    xml  YES  An XML string containing reason codes and associated reason text for each reason selected 
ActionMoreDetail    varchar(2000)  YES  Additional information indicating why the action was taken 
LocationGroupGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3Location table. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXAHMOccurrenceActionStatusHistory Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAHMOccurrenceActionStatusHistoryPK  PrimaryKey  OccurrenceActionStatusHistoryID