Last Updated: 7/22/2025 8:42:49 PM
Intergy Version: 22.00.00.00
PersonRelationship
Table Definition  Parent Tables  Child Tables
Table DefinitionField | Datatype | Default | Null Option | Comment |
---|---|---|---|---|
PersonRelationshipSID | INTEGER | ?   | MANDATORY | System generated unique id using PatientPortal sequence. |
PersonID | INTEGER | ?   | MANDATORY | Person id of the person we are creating the relationship for. FK - Person. |
RelatedPersonID | INTEGER | ?   | MANDATORY | Person id of the related person. FK - Person |
Relationship | CHAR(2) |   | MANDATORY | User selects relationship to contact code. Relationship to contact codes are defined in the LookupCode table for the lookup type 'Relation'. Codes for lookup type 'Relation' are not user definable. |
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. |
Parent Table | Join Phrase | When deleting parent record... |
---|---|---|
Person | PersonRelationship.RelatedPersonID = Person.PersonID | CASCADE if PersonRelationship exists |
Person | PersonRelationship.PersonID = Person.PersonID | CASCADE if PersonRelationship exists |
Child Table | Join Phrase | When deleting PersonRelationship record... |
---|---|---|
PatientPortalAccess | PatientPortalAccess.PersonRelationshipSID = PersonRelationship.PersonRelationshipSID | CASCADE if PatientPortalAccess exists |