Back to Openemr

person_patient_link

Documentation/EHI_Export/docs/tables/person_patient_link.html

latest1.6 KB
Original Source

Columns

ColumnTypeSizeNullsAutoDefaultChildrenParentsComments
idBIGINT19null

|

| | | person_id | BIGINT | 19 | | | null |

|

| users.id | Defined in XML | R |

|

The id of the person record

| | patient_id | BIGINT | 19 | | | null |

|

| patient_data.id | Defined in XML | R |

|

The id of the patient record

| | linked_date | DATETIME | 19 | | | current_timestamp() |

|

|

When the link was created

| | linked_by | BIGINT | 19 | √ | | NULL |

|

| users.id | Defined in XML | R |

|

The id of the user that created this record

| | link_method | VARCHAR | 50 | √ | | 'manual' |

|

|

How link was created: manual, auto_detected, migrated, import

| | notes | TEXT | 65535 | √ | | NULL |

|

|

Optional notes about why/how they were linked

| | active | BOOLEAN | 3 | | | 1 |

|

|

Whether link is active (allows soft delete)

|

Indexes

Constraint NameTypeSortColumn(s)
PRIMARYPrimary keyAscid
idx_ppl_activePerformanceAscactive
idx_ppl_linked_datePerformanceAsclinked_date
idx_ppl_methodPerformanceAsclink_method
idx_ppl_patientPerformanceAscpatient_id
idx_ppl_personPerformanceAscperson_id
unique_active_linkMust be uniqueAsc/Asc/Ascperson_id + patient_id + active

Relationships

Close relationships within degrees of separation