Schema
| Column Name | Data Type | Description | Example |
|---|---|---|---|
| _deleted | varchar(50) | Source deletion marker. | ‘true’ |
| _ingest_time | varchar(50) | Source ingestion time value. | ‘20241022121742’ |
| _primary_key | varchar(50) | Source record key value. | ‘-999999’ |
| _record_version | varchar(50) | Source record version value. | ‘20241022105137’ |
| assignmentlistid | bigint | Assignment list identifier. | 12345 |
| assignmentlistpatientscheduledeferredto | bigint | Target assignment list patient schedule identifier; links back to this model to follow a deferral. | 12346 |
| assignmentlistpatientscheduleid | bigint | Assignment list patient schedule identifier. | 12345 |
| deferralreasonid | bigint | Selected configured deferral reason identifier; may be null for legacy or non-enhanced records. | 101 |
| deleted | boolean | Deleted flag. | FALSE |
| guid | varchar(36) | Assignment list patient schedule GUID. | ‘00000000-0000-0000-0000-000000000001’ |
| iscancelled | boolean | Cancelled flag; a deferred assignment is cancelled and has a non-null deferred target. | TRUE |
| lastupdated | timestamp(3) with time zone | Last updated. | ‘2000-01-02 03:04:05.000’ |
| lastupdatedbyuserinroleid | bigint | Last updated by user in role identifier. | 12345 |
| patientscheduleid | bigint | Patient schedule identifier. | 12345 |
| organisation | varchar(500) | Source organisation value. | ‘CDB-12345’ |
The deferral examples are illustrative: assignment 12345 points to target
assignment 12346 and reason 101. The target is another record in this model,
not an assignment list identifier. Obtain its date through its
assignmentlistid and the related assignment list.
A null deferralreasonid does not prove that an assignment was not deferred.
Use iscancelled together with assignmentlistpatientscheduledeferredto.