dbo.CV3OrderTask 
Default Table Name  CV3OrderTask 
Definition  A task associated to a particular order. It contains the necessary information for generating an order task occurrence. 

dbo.CV3OrderTask Columns 
ColumnName  Domain  Datatype  NULL  Definition 
SiteID    smallint  YES  Identifies the unique distributed database ID where the row was inserted. Distributed databases are no longer supported so this column is deprecated. 
RepFlags    tinyint  YES  Indicates the action in a distributed database environment. Distributed databases are no longer supported so this column is deprecated. 
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)  YES  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. 
TouchedWhen    datetime  YES  The date and time that the row was last updated and will be based on the Enterprise time zone. 
CreatedBy    varchar(50)  YES  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. 
CreatedWhen    datetime  YES  The date and time that the row was created and will be based on the Enterprise time zone. 
Active    bit  NO  Denotes whether the row is active or not, 0 means the row has been soft deleted or deactivated. 
GUID(PK)    HVCIDdt  NO  Unique primary key value. 
ClientGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3Client table. 
ChartGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3Chart table. 
OrderGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3Order table. 
OrderCatalogMasterItemGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3OrderCatalogMasterItem table. 
CatalogItemTaskGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3CatalogItemTask table. 
StartDtm    datetime  YES  Visit TimeZone - The start date and time of the task. 
StopDtm    datetime  YES  Visit TimeZone - The stop date and time of the task. 
LastScheduledDtm    datetime  YES  Visit TimeZone - The scheduled date and time of the last scheduled task occurrence. 
ScheduleTypeCode    varchar(30)  YES  The schedule type of the task. 
ProcessType    int  NO  An enumerated type with the following list of possible values: 1 = [One Time],2 = [Recurring],3 = [Manual Schedule],4 = [Start When First Given],5 = [Based On Peformed Date], 
TaskState    int  NO  An enumerated type with the following list of possible values: 0 = [None],1 = [Suspended],2 = [Complete],3 = [Canceled],4 = [Temporary], 
TaskName    varchar(370)  YES  The name of the task. This is copied from the catalog. 
TaskDocType    int  NO  The type of documents to be used to mark the task as done. 
TaskFormGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3OrderEntryForm table. 
PatientCareDocumentGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3PatientCareDocument table. 
GenIntoFutureHour    int  NO  The number of hours that tasks are generated into the future. 
OverdueMinute    int  NO  The number of minutes past the scheduled time that the user is alerted to reschedule the rest of the occurrences. 
OverdueMustReschedMinute    int  NO  The number of minutes after the scheduled date and time that will flag this occurrence as overdue. 
IsAutoCompletable    tinyint  YES  Indicates whether completion of all the tasks associated with the order completes the order. 
IsTrackVariance    tinyint  YES  Indicates whether variance tracking is required if this task is marked as not done. 
FixedScheduleType    int  NO  An enumerated type with the following list of possible values: 0 = [None],1 = [Timeframe],2 = [Duration],3 = [Variable Interval],4 = [Every x Days], 
HasAttachedSchedule    tinyint  YES  Indicates whether there are any schedules attached to this task. 
TimeFromValue    int  NO  The time from. 
TimeToValue    int  NO  The time to. 
TimeUom    varchar(30)  YES  The unit of measure associated with the Time columns. 
EventModifierType    int  NO  Indicates the modifier of event code. It can be Before or After. 
EventCode(FK)    varchar(30)  YES  A foreign key to the Code column in the CV3ScheduleEvent table. 
WakingBeginTime    int  NO  The start time of the waking hours. Must be in the range of 0000 to 2359 
WakingEndTime    int  NO  The end time of the waking hours. Must be in the range of 0000 to 2359 
ShiftStartTime    int  NO  The start time of the shift. Must be in the range of 0000 to 2359 
ShiftDuration    real  NO  The length of the shift in hours. 
IsLastOccurGenerated    tinyint  YES  Indicates if the last task occurrence has been generated for this task. 
ReviewRequired    int  YES  An enumerated type with the following list of possible values: 0 = [None],1 = [Location Schedule Change], 
ProcessingInProgress    int  YES  An enumerated type with the following list of possible values: 0 = [None],1 = [Discontinuing/Canceling Task],2 = [Suspending Task],3 = [Unsuspending Task],4 = [Creating Schedule],5 = [Changing Schedule],6 = [Changing Start Date],7 = [Changing Stop Date],8 = [Changing Summary Line],9 = [Order Modified - Checking Schedule],10 = [Changing task information],11 = [Auto-Completing Task],12 = [Changing Schedule Type], 
IsCurrent    tinyint  YES  Indicates if the task is the current task to which the most current changes should be applied. 
OrderNameSummaryLine    varchar(255)  YES  The order name + summary line concatenated together up to 255 characters. 
OrderDosageLow    varchar(10)  YES  The order's DosageLow value. 
OrderDosageHigh    varchar(10)  YES  The order's DosageHigh value. 
OrderUom    varchar(30)  YES  The order's UOM. 
OrderRoute    varchar(30)  YES  The order's route code. 
OrderRouteModifier    varchar(30)  YES  The order's route modifier. 
OrderForm    varchar(30)  YES  The form code of the medication. 
OrderFrequency    varchar(30)  YES  The order's frequency code. 
ApplicSource    varchar(5)  YES  Identifies which Eclipsys application was used to enter the information. Either CV (Sunrise Clinical Manager), ADT (ADT interface), or LAB (LAB interface) 
StopAfterValue    int  YES  Stores the value of the stop after 
StopAfterOption    int  YES  Stores the Stop After option0 = None1 = Days2 = Hours3 = Minutes4 = Times 
MSrepl_tran_version    uniqueidentifier  YES  Optimistic lock identifier. 
TaskOrderSummaryLine    varchar(2000)  YES  The Task name + summary line concatenated together up to 2000 chars 
StopAfterAdminAdjustment    int  YES  Stores the number of occurrences that were administered on paper, which must be taken into account by Stop After functionality. 
TaskScheduleDisplay    varchar(1000)  YES  New and modified tasks will now store their schedule here in a formatted string, rather than generating it dynamically. 
PrimaryParentOccurrenceGUID    HVCIDdt  YES  Identifies the primary task occurrence of this Follow-up Task. 
TaskSeqNum    int  YES  Add a column to the task to identify it as a Follow-up task called, TaskSeqNum. This Sequence number will be an integer equivalent to the sequence number from the Follow-up task’s CatalogTaskItem. Tasks that are not Follow-up tasks (i.e. Primary/external) will always have a TaskSeqNum of 0. This id will be used to determine the display order of the tasks, in combination with the tasks StartDtm (which will be the primary performed dtm + the offset time). 0 indicates this is a primary task. >0 indicates this is a followup task 
HasFollowupTask    bit  YES  A boolean set to true the first time we generate a follow-up task on the primary task. Only internal primary tasks should ever have this set to true. At the task level, this is true if ANY of its occurrences have a follow-up task. Reset to False if the primary is reset to pending/Not done and the follow-up task is deleted. Copy to new task when the original primary is cancelled. 
MaxAdminID    int  YES  Maximum Administration ID used for all occurrences for this task. Set only on primary tasks (TaskSeqNum = 0). 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.CV3OrderTask Primary and Unique Keys 
Key Name  Key Type  Keys 
CV3OrderTaskPK  PrimaryKey  GUID