dbo.CV3OrderAvailabilityPolicyDtl 
Default Table Name  CV3OrderAvailabilityPolicyDtl 
Definition  Defines the locations that are or are not available when the policy is used. The detail rows identify which locations are (or are not) available when the policy is used. It can also control which order entry form will be used when the order is entered from the location. The availability policy can be associated to an order catalog item, prefilled item or order set/pathway. 

dbo.CV3OrderAvailabilityPolicyDtl 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. 
OrderAvailPolicyGUID    HVCIDdt  NO  The parent availability policy 
LocnFuncGroupGUID    HVCIDdt  YES  Identifies the function group associated to the policy. This must be a function group of the type "Order Availability" (See CV3LocationFunctionGroup) 
LocnGroupGUID    HVCIDdt  YES  Identifies the Location group that is using this policy. This is mutually exclusive with LocnFuncGroupGUID. A null value, in conjunction with a null LocnFuncGroupGUID, indicates all locations. 
FacilityGUID    HVCIDdt  YES  The facility that is using this policy. A null value indicates all facilities. 
InternalSessionType    int  YES  An enumerated type with the following list of possible values: 0 = [Standard],2 = [Discharge],4 = [Historical],6 = [Outpatient], 
IsAvailable    bit  NO  Indicates if the item that is using this policy is available or not. 
IsVisible    bit  NO  Indicates if the item that is using this policy is visible when browsing the catalog 
EntryFormGUID    HVCIDdt  YES  The right that is required to override the policy 
OverrideRightGUID    HVCIDdt  YES  The order entry form to be used when the item is ordered from the specified location. Note that this is a link to CV3OrderEntryForm.FormGUID. The type of the form must match that found in CV3OrderAvailabilityPolicy.OrderTypeCode. 
MSrepl_tran_version    uniqueidentifier  YES  Optimistic lock identifier. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 
VisitTypeGUID    HVCIDdt  NO  The visit type for the availability policy 

dbo.CV3OrderAvailabilityPolicyDtl Primary and Unique Keys 
Key Name  Key Type  Keys 
CV3OrderAvailabilityPolicyDtlPK  PrimaryKey  GUID