dbo.CV3OrderStatusHistory |
Default Table Name | CV3OrderStatusHistory |
Definition | The history of status changes to an order (for example, the history of when an order was placed, completed, etc.).
|
dbo.CV3OrderStatusHistory 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![]() |
HVCIDdt | NO | Unique primary key value. | |
OrderStatusCode | varchar(5) | YES | The order status. | |
ReasonText | varchar(2000) | YES | The reason for the status change. | |
CreatedByDisplayName | varchar(60) | YES | PHI: The display name of the person who made this modification. | |
OrderGUID![]() |
HVCIDdt | YES | A foreign key to the GUID column in the CV3Order table. | |
UserGUID![]() |
HVCIDdt | YES | A foreign key to the GUID column in the CV3User table. | |
ClientGUID![]() |
HVCIDdt | YES | A foreign key to the GUID column in the CV3Client table. | |
RequestedByGUID![]() |
HVCIDdt | YES | A foreign key to the GUID column in the CV3CareProvider table. | |
SourceCode![]() |
varchar(30) | YES | A foreign key to the Code column in the CV3Source table. | |
ToBeSigned | int | YES | Indicates if this status change requires order to be signed. | |
ArrivalDtm | datetime | YES | Visit TimeZone - The time the data was written into the Master Active database. | |
OrderMaintIDCode | int | YES | The ID code for the order maintenance instance. | |
OrderMaintFunctionCode | varchar(30) | YES | A code for the order maintenance function. | |
ReqByDisplayName | varchar(60) | YES | PHI: The requesting providers name. | |
OrderMaintSummaryLine | varchar(2000) | YES | The summary line of order maintenance function at the time when the function was performed. | |
FunctionCodeNum | int | YES | An enumerated type with the following list of possible values: 5 = [New],6 = [New from Conditional],7 = [New from Reorder],8 = [New from Reinstate],9 = [New (external)],10 = [Resulted],11 = [Performed],12 = [Specimen Received],50 = [Suspended],51 = [Suspended (external)],52 = [Unsuspended],53 = [Modified],54 = [Canceled],55 = [Canceled (external)],56 = [Discontinued],57 = [Discontinued (external)],58 = [Discontinued Future],59 = [Discontinued and Reorder],60 = [Updated],61 = [Entered in Error],62 = [Deleted],65 = [Task Schedule Modified],100 = [Signed],101 = [Verified],102 = [Activated Conditional],103 = [Reordered],104 = [Reinstated],105 = [Release Hold],106 = [Collected],107 = [Auto Activated],108 = [Auto Completed],109 = [Completed],110 = [Completed (external)],111 = [Acknowledged],120 = [Refused],121 = [Reassigned],122 = [Signature Unavailable],123 = [Results Acknowledged],124 = [Task Generation Override],125 = [Named Provider Modified],126 = [Pending verify Discontinue],127 = [Pending Verify Suspend],128 = [Pending Verify Unsuspend],129 = [Decline Verify],130 = [Modify Verify Info],131 = [Mark As Reviewed],132 = [Updated By Task],133 = [Rx Verified Only],134 = [Future suspend],135 = [Future suspend modified],136 = [Future unsuspend],137 = [Future unsuspend modified],138 = [Verified Discontinue],139 = [Verified Suspend],140 = [Verified Unsuspend],141 = [Result flagged as available to patient],142 = [Result flagged as unavailable to patient],143 = [Suspend modified (external)],144 = [Suspend Via Transfer],145 = [Renew Prescription],146 = [Create Prescription],147 = [Create OMP History],148 = [Reviewed],149 = [Reviewed*],154 = [Pending Review],155 = [Remove Pending Review],156 = [Verified Unsubmitted],157 = [Confirmed],158 = [Remove Confirm],159 = [Export],160 = [Import],161 = [Get AUC Electronically], | |
MSrepl_tran_version | uniqueidentifier | YES | Optimistic lock identifier. | |
MSReplrowguid | uniqueidentifier | NO | Unique GUID used to support merge replication. |
dbo.CV3OrderStatusHistory Primary and Unique Keys |
Key Name | Key Type | Keys |
CV3OrderStatusHistoryPK | PrimaryKey | GUID |