dbo.CV3CatalogItemTask 
Default Table Name  CV3CatalogItemTask 
Definition  Tasks which are to be performed when an order is placed. 

dbo.CV3CatalogItemTask 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. 
Name    varchar(255)  YES  Comprised of Order Name + Summary Line. 
LevelNum    int  NO  An enumerated type with the following list of possible values: 0 = [Primary],1 = [Secondary], 
OrderCatalogMasterItemGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3OrderCatalogMasterItem table. 
TaskTypeGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3TaskType table. 
TaskReviewCategoryGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3TaskReviewCategory table. 
TaskPerformancePolicyGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3TaskPerformancePolicy table. 
TaskSignaturePolicyGUID    HVCIDdt  YES  The link to a task signature policy. 
PatientCareDocumentGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3PatientCareDocument table. 
TaskEntryFormGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3OrderEntryForm table. 
TransmitPolicyGUID    HVCIDdt  YES  The link to the transmit policy. 
TaskDocType    int  NO  An enumerated type with the following list of possible values: 0 = [None],1 = [Task Entry Form],2 = [Patient Care Document],3 = [Specimen Collected], 
CanReschedule    tinyint  YES  Indicates whether the task can be rescheduled. 1 = True; 0 = False 
IsExternallyGenerated    tinyint  YES  Indicate if the schedule for this task is generated by another system. 1 = True; 0 = False 
IsForAllLocations    tinyint  YES  Indicate if the task can be performed in all locations. 1 = True; 0 = False 
NumOfUOMOverdueMustResched    int  NO  The number of units passed the scheduled time that the user is alerted to Reschedule. 
OverdueMustReschedUom(FK)    varchar(30)  YES  A foreign key to the Code column in the CV3UnitOfMeasure table. 
IsContinuous    tinyint  YES  Indicates if this is a continuous task. 
DocPointFreqCode(FK)    varchar(30)  YES  A foreign key to the Code column in the CV3Frequency table. 
SecondaryFreqType    int  NO  An enumerated type with the following list of possible values: 0 = [None],1 = [One Time],2 = [Recurring], 
SecondaryRefDateType    int  NO  An enumerated type with the following list of possible values: 0 = [None],1 = [Scheduled Date Time],2 = [Performed Date Time], 
SecondaryRefDateModifier    int  NO  An enumerated type with the following list of possible values: 0 = [None],1 = [Before],2 = [After], 
SecondaryTimeValue    int  NO  Defines the number of time units. 
SecondaryTimeUom    varchar(30)  YES  Defines the unit of measure. Only supports Minute, Hour 
DuplicatePolicyGUID    HVCIDdt  YES  Duplicated policy used for checking task duplicates. 
ExternTaskEntryFormGUID    HVCIDdt  YES  The link to the entry form used to display task information received via the HL7 Interface. 
MSrepl_tran_version    uniqueidentifier  YES  Optimistic lock identifier. 
FollowupFrequencyCode    varchar(30)  YES  Also stored in the Follow-up task’s Order Frequency 
FollowupFreqClassCode    varchar(30)  YES  FollowupFrequencyCode – becomes the new task’s frequency. Also stored in the Follow-up task's Order Frequency 
FollowupStopAfterValue    int  YES  This will be stored in the task’s StopAfterValue column when it is generated – potentially used during task generation on MAD, to determine the new FollowupTask’s StopDtm? 0-999 
FollowupStopAfterOptionType    int  YES  Linked to Forms'UserDefinedDataDictionary'HVC-Frequency (CV3UserDictionaryValue table) Frequency Class must also be selected if a frequency is chosen, so that the correct Coded Frequency Translation is used. See Master? Order information 2. This is where the order links to the frequency class. 
IsToBeStoppedAtNextPrimary    bit  YES  used during task generation on MAD, to determine the new FollowupTask’s StopDtm - Its possible that the next primary will not exist, so we may need to store this value on the task. We could add this to the StopAfterOption enum. 
IsPRN    bit  YES  used during task generation on MAD, to determine if the new FollowupTask is PRN. Will determine the ScheduleTypeCode on the Task. 
IsOnlyGeneratedOnFirstPrimary    bit  YES  (T= only on first, F= generate on every primary) The primary task will retrieve this value on each of its Follow-up tasks, on MAD, to see if it needs to generate or not. 
TaskSeqNum    int  NO  Unique Sort sequence of each FollowupTask generated. Only the primary will ever be 0. LevelNum is the true indicator though. - Also used in CV3OrderTaskItem to determine the display order. 
IsGroupedWithPrimary    bit  YES  Used in CV3OrderTaskItem to determine if this follow-up task is display beneath its primary, independent of the worklist criteria sorting. It this option is true, then the TaskSeqNum is used to sort these tasks, in combination with the Task Start Dtm. 
IsDisplayedOnOneLine    bit  YES  Used in CV3OrderTaskItem to determine if all followup tasks linked to this order and this catalog item task, will be displayed on the same line. Each CatalogItemTask still has its own line, and these lines are sorted using the 
IsTranslatedUsingTCRules    bit  YES  Flag to indicate whether or not we are using the Time Critical rules when translating the Followup Task. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.CV3CatalogItemTask Primary and Unique Keys 
Key Name  Key Type  Keys 
CV3CatalogItemTaskPK  PrimaryKey  GUID