Last Updated: 7/22/2025 8:42:49 PM
Intergy Version: 22.00.00.00
PatientCPGoal
Table Definition  Parent Tables  Child Tables
Table DefinitionField | Datatype | Default | Null Option | Comment |
---|---|---|---|---|
PatientCPGoalSID | INTEGER | ?   | MANDATORY | System generated unique number using the PatientCarePlan sequence. |
PracticeID | INTEGER | ?   | MANDATORY | FK |
PatientID | INTEGER | ?   | MANDATORY | FK |
Description | CHAR(300) |   | MANDATORY | Goal Description |
HideFromPatient | LOGICAL | Logical_False   | MANDATORY | Hide Care Plan Goal from patient. |
GoalStatus | CHAR(1) |   | MANDATORY | Defined by LookupType 'CarePlanGoal'. |
TimeStamp | CHARACTER(14) |   | OPTIONAL | System generated date/time stamp record was last written. |
LastUser | INTEGER | ?   | OPTIONAL | User ID of user that last wrote the record. |
CreateStamp | CHARACTER(14) |   | OPTIONAL | System generated date/time stamp record was created. |
CreateUser | INTEGER | ?   | OPTIONAL | User ID of user that created the record. |
MedcinID | INTEGER | ?   | OPTIONAL | Medcin Finding Reference. |
Prefix | CHAR(2) |   | OPTIONAL | Medcin Finding Prefix. Defined by MedcinPrefix lookup. |
AuthorType | CHAR(4) |   | OPTIONAL | User or Patient that initiated the goal. Defined by LookupType PatCPGoalAuthorType. |
GoalGUID | CHAR(36) |   | OPTIONAL | Globally Unique ID for the Goal. |
Source | CHAR(50) |   | OPTIONAL | The source (Intergy or otherwise) from which this Goal record was last modified. |
ExternalUserLogon | CHAR(30) |   | OPTIONAL | User Logon for external user. Blank unless an external user last modified this record. |
ExternalUserFullName | CHAR(100) |   | OPTIONAL | Full Name for external user. Blank unless an external user last modified this record. |
Intent | CHAR(20) |   | OPTIONAL | Intent that is associated with this PatientCPGoal |
TimeStampUTC | DATETIME-TZ |   | OPTIONAL | This is a denormalized field based off the TimeStamp. This field contains the Date, Time and timezone offset. |
SNOMEDCode | CHARACTER(30) |   | OPTIONAL | SNOMED Code mapping of the MedcinID, which is derived from ValueSet: [Social Determinants of Health Goals]. Will be blank if the SNOMED mapping is not defined in the value set. |
Parent Table | Join Phrase | When deleting parent record... |
---|---|---|
Patient | PatientCPGoal.PracticeID = Patient.PracticeID and PatientCPGoal.PatientID = Patient.PatientID |
CASCADE if PatientCPGoal exists |
Child Table | Join Phrase | When deleting PatientCPGoal record... |
---|---|---|
PatientCPGoalOutcome | PatientCPGoalOutcome.PatientCPGoalSID = PatientCPGoal.PatientCPGoalSID | CASCADE if PatientCPGoalOutcome exists |
PatientCPGoalIntervention | PatientCPGoalIntervention.PatientCPGoalSID = PatientCPGoal.PatientCPGoalSID | CASCADE if PatientCPGoalIntervention exists |
PatientCPGoalHistory | PatientCPGoalHistory.PatientCPGoalSID = PatientCPGoal.PatientCPGoalSID | CASCADE if PatientCPGoalHistory exists |
PatientCPGoalHealthConcern | PatientCPGoalHealthConcern.PatientCPGoalSID = PatientCPGoal.PatientCPGoalSID | CASCADE if PatientCPGoalHealthConcern exists |