Tables [dbo].[Act_Note]
Activity table for note. Used for Audit Notes.
KeyNameData TypeMax Length (Bytes)NullabilityDescription
Primary Key PK_Act_Note_ID: IDID[dbo].[uniqueid]9NOT NULLKey to the Act_Note table
Indexes XAct_Note_ActHdrIDForeign Keys FK_Act_Note_ActivityHeaderID_Act_Hdr_Note_ID: [dbo].[Act_Hdr_Note].ActivityHeaderIDActivityHeaderID[dbo].[uniqueid]9NOT NULLActivity Header. Link to Act_Hdr_Note.ID.
Indexes TWstat_Act_Note_OrganizationIDForeign Keys FK_Act_Note_OrganizationID_Organization_ID: [dbo].[Organization].OrganizationIDOrganizationIDnumeric(8,0)5NOT NULLOrganization. Link to Organization.ID.
Cluster Key XcAct1_Note_Person: PatientID\NoteTypeDE\WhoDidItIDIndexes Statistic_NoteTypeDEForeign Keys FK_Act_Note_NoteTypeDE_Note_Type_DE_ID: [dbo].[Note_Type_DE].NoteTypeDEForeign Keys FK_Act_Note_NoteTypeDE_TemplateVersion_Note_Template_Version_NoteTypeDE_TemplateVersion: [dbo].[Note_Template_Version].NoteTypeDE\TemplateVersionNoteTypeDE[dbo].[dict_id]5NOT NULLNote Type. Link to Note_Type_DE.ID.
Foreign Keys FK_Act_Note_NoteTypeDE_TemplateVersion_Note_Template_Version_NoteTypeDE_TemplateVersion: [dbo].[Note_Template_Version].NoteTypeDE\TemplateVersionTemplateVersionsmallint2NOT NULLTemplate Version. Link to Note_Template_Version.TemplateVersion. No Longer Used.
EpisodeID[dbo].[uniqueid]9NOT NULLEpisode. No longer Used.
CarePlanDE[dbo].[dict_id]5NOT NULLCare Plan. No Longer Used.
Foreign Keys FK_Act_Note_OrderSourceDE_Order_Source_DE_ID: [dbo].[Order_Source_DE].OrderSourceDEOrderSourceDE[dbo].[dict_id]5NOT NULLOrder Source. Link to Order_Source_DE.ID.
OrderNumberEXTvarchar(20)20NOT NULLExternal Order Number
FUComment[dbo].[message]255NOT NULLFollow Up Comment.
Indexes XAct_Note_AccNumAccessionNumbervarchar(255)255NOT NULLAccession number
Indexes TWstat_Act_Note_InterfaceSourceIDInterfaceSourceIDsmallint2NOT NULLInterface Source.
Foreign Keys FK_Act_Note_TestingProviderID_Provider_ID: [dbo].[Provider].TestingProviderIDTestingProviderID[dbo].[uniqueid]9NOT NULLTesting Provider. Link to Provider.ID.
Foreign Keys FK_Act_Note_WhoForID_Provider_ID: [dbo].[Provider].WhoForIDWhoForID[dbo].[uniqueid]9NOT NULLEntered For Provider. Link to Provider.ID.
Cluster Key XcAct1_Note_Person: PatientID\NoteTypeDE\WhoDidItIDIndexes TWstat_Act_Note_WhoDidItID_PatientIDForeign Keys FK_Act_Note_WhoDidItID_IDX_User_ID: [dbo].[IDX_User].WhoDidItIDWhoDidItID[dbo].[uniqueid]9NOT NULLUser who entered. Link to IDX_User.ID.
Indexes TWstat_Act_Note_PerformedDTTM_PatientIDPerformedDTTMdatetime8NOT NULLHolds the performed date and time of the activity
RecordedDTTMdatetime8NOT NULLHolds the Recorded Date and Time of the Activity
Check Constraints CK_Act_Note_HasClinicalWarningFLAG_Yes_Or_No : ([HasClinicalWarningFLAG]='N' OR [HasClinicalWarningFLAG]='Y')HasClinicalWarningFLAG[dbo].[BOOL]1NOT NULLNo Longer Used.
ClinicalDTTMdatetime8NOT NULLClinical Date and Time
Foreign Keys FK_Act_Note_ClinicalSourceDE_Source_DE_ID: [dbo].[Source_DE].ClinicalSourceDEClinicalSourceDE[dbo].[dict_id]5NOT NULLClinical Source. Link to Source_DE.ID.
Foreign Keys FK_Act_Note_OrderingProviderID_Provider_ID: [dbo].[Provider].OrderingProviderIDOrderingProviderID[dbo].[uniqueid]9NOT NULLOrdering Provider. Link to Provider.ID.
OrderingProviderName[dbo].[name]255NOT NULLOrdering provider Name.
Cluster Key XcAct1_Note_Person: PatientID\NoteTypeDE\WhoDidItIDIndexes TWstat_Act_Note_ActivityType_PatientID, Statistic_NoteTypeDE, TWstat_Act_Note_PerformedDTTM_PatientID, TWstat_Act_Note_WhoDidItID_PatientID(4)PatientIDnumeric(16,0)9NOT NULLPatient. Link to Person.ID
Indexes TWstat_Act_Note_ActivityType_PatientIDCheck Constraints CK_Act_Note_ActivityType : ([ActivityType]='NO')ActivityTypevarchar(10)10NULL allowedNO (Note)