Last Updated: 9/24/2025 12:09:38 PM
Intergy Version: 22.00.00.00
PatientRefDocSpecialty
Table Definition  Parent Tables  Child Tables
Table Definition| Field | Datatype | Default | Null Option | Comment |
|---|---|---|---|---|
| PatientRefDocSpecialtySID | INTEGER | ?   | MANDATORY | Unique identifier of based on sequence: PatientRefDoctorSpecialty |
| PracticeID | INTEGER | ?   | MANDATORY | FK to Patient.PracticeID |
| PatientID | INTEGER | ?   | MANDATORY | FK to Patient.PatientID |
| RefDoctorID | INTEGER | ?   | MANDATORY | FK to RefDoctorID |
| SpecialtyCode | CHARACTER(10) |   | OPTIONAL | FK to Specialty Code. May be blank. |
| Note | CHARACTER(28000) |   | OPTIONAL | Note about relationship between patient, specialty, and referring doctor. |
| 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. |
| CodeSystem | CHARACTER(30) |   | OPTIONAL | FK - RefDocRole. It can be blank. |
| RoleCode | CHARACTER(60) |   | OPTIONAL | FK - RefDocRole. It can be blank. |
| Parent Table | Join Phrase | When deleting parent record... |
|---|---|---|
| RefDocRole | PatientRefDocSpecialty.CodeSystem = RefDocRole.CodeSystem and PatientRefDocSpecialty.RoleCode = RefDocRole.RoleCode |
RESTRICT if PatientRefDocSpecialty exists |
| Specialty | PatientRefDocSpecialty.SpecialtyCode = Specialty.SpecialtyCode | CASCADE if PatientRefDocSpecialty exists |
| RefDoctor | PatientRefDocSpecialty.RefDoctorID = RefDoctor.RefDoctorID | CASCADE if PatientRefDocSpecialty exists |
| Patient | PatientRefDocSpecialty.PracticeID = Patient.PracticeID and PatientRefDocSpecialty.PatientID = Patient.PatientID |
CASCADE if PatientRefDocSpecialty exists |
| Child Table | Join Phrase | When deleting PatientRefDocSpecialty record... |
|---|