Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Allergy_Intolerance.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Substances include, but are not limited to: a therapeutic substance administered
| `LDS_IS_DELETED` | `BOOLEAN` | standardised representation of soft-deletes. | - | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | - | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP_NTZ` | The timestamp when the record was supplied to, or acquired by, LDS. | - | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_NTZ` | The timestamp when the record was transformed by LDS into OLIDS. | - | -- |

## Entity relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Appointment.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ This definition takes the concepts of appointments in a clinical setting and als
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes th data. | | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | | -- |

## Entity relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Appointment_Practitioner.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ List of practitioner participants involved in an appointment.
| `LDS_IS_DELETED` | `BOOLEAN` | standardised representation of soft-deletes. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP_NTZ` | The timestamp when the record was supplied to, or acquired by, LDS. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | LDS transform date time. | | -- |

## Entity relationship
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Diagnostic_Order.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The resource allows requesting only a single procedure. If a workflow requires r
| `LDS_IS_DELETED` | `BOOLEAN` | standardised representation of soft-deletes. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | The timestamp when the record was supplied to, or acquired by, LDS. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

## Entity relations
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Encounter.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ A patient encounter is further characterized by the setting in which it takes pl
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

## Entity relationship
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Episode_Of_Care.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ An association between a patient and an organisation / healthcare provider(s) du
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

## Entity relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Location.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ A Location includes both incidental locations (a place which is used for healthc
| `IS_OBSOLETE` | `BOOLEAN` | is obsolete. | | -- |
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | -- |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP_NTZ` | source extraction date. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

## Entity Relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Medication_Order.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The MedicationRequest resource allows requesting only a single medication. If a
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

1. See the [schema notes section on publisher, provider, author organisation definitions](_schema_notes.md#provider-author-publisher-organisation-id)
Expand Down
35 changes: 34 additions & 1 deletion OLIDS/Documentation/Schema/Medication_Statement.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
- [Medication\_Statement](#medication_statement)
- [Overview](#overview)
- [Columns](#columns)
- [Cancellation date derived](#cancellation-date-derived)
- [Entity Relationships](#entity-relationships)
- [Notes](#notes)


## Overview

Linked FHIR resource: [🔥 Medication Statement](https://hl7.org/fhir/medicationstatement.html)
Expand Down Expand Up @@ -36,7 +38,8 @@ The primary difference between a medicationstatement and a medicationadministrat
| `REFERRAL_REQUEST_ID` | `UUID` | referral request id. | FK -> [Referral_Request](Referral_Request.md).ID | -- |
| `CLINICAL_EFFECTIVE_DATE` | `DATE` | clinical effective date. | | `clinical_effective_date` |
| `CLINICAL_EFFECTIVE_DATE_PRECISION_SOURCE_CONCEPT_ID` | `UUID` | date precision concept id. | FK -> [Concept](Concept.md).ID | `date_precision_concept_id` |
| `CANCELLATION_DATE` | `DATE` | cancellation date. | | `cancellation_date` |
| `CANCELLATION_DATE` | `DATE` | supplied cancellation date. | | - |
| `CANCELLATION_DATE_DERIVED` | `DATE` | cancellation date derived using logic (See below) | | `cancellation_date` |
| `DOSE` | `VARCHAR` | dose. | | `dose` |
| `QUANTITY_VALUE_DESCRIPTION` | `VARCHAR` | quantity value description. | | -- |
| `QUANTITY_VALUE` | `DOUBLE` | quantity value. | | `quantity_value` |
Expand All @@ -56,10 +59,40 @@ The primary difference between a medicationstatement and a medicationadministrat
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

1. See the [schema notes section on publisher, provider, author organisation definitions](_schema_notes.md#provider-author-publisher-organisation-id)

### Cancellation date derived

The `CANCELLATION_DATE_DERIVED` column has been added to this model to allow for parity with prior systems that used logic to determine the cancellation date of a medication statement, rather than the supplied value alone. As we do not wish to hide or obfuscate supplied values, we have chosen to supplement the table with an additional derived value for parity.

The logic is as below:

- For EMIS:
- If the drug record is marked as active then it must not be cancelled -> set cancellation_date_derived to `null`
- If the drug record cancellation date is populated then use this date -> set cancellation_date_derived to the supplied `cancellation_date`
- If the drug record cancellation date is null then:
- if the latest issue of the corresponding medication is not null, use the latest issue date plus the expected course duration according to the latest issue
- if there is no latest issue of the corresponding medication, then simply use the 'effective date' of the statement

```sql
, CASE
WHEN PDR1.IS_ACTIVE = TRUE
THEN NULL -- Java explicitly nulls active med cancellation dates
WHEN PDR1.CANCELLATION_DATE IS NOT NULL
THEN PDR1.CANCELLATION_DATE -- use source value if present
WHEN LI.EFFECTIVE_DATE IS NOT NULL
THEN DATEADD(
DAY,
COALESCE(LI.COURSE_DURATION_IN_DAYS, 0),
LI.EFFECTIVE_DATE -- infer: latest issue date + course duration
)
ELSE PDR1.EFFECTIVE_DATE -- fallback: DrugRecord EffectiveDate
END AS CANCELLATION_DATE_DERIVED
```

## Entity Relationships

> [!NOTE]
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Observation.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Uses for the Observation resource include:
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

1. See the [schema notes section on publisher, provider, author organisation definitions](_schema_notes.md#provider-author-publisher-organisation-id)
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Patient.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ The data in the Resource covers the "who" information about the patient: its att
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the |data. | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- | - |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | | -- |

1. See the [schema notes section on publisher, provider, author organisation definitions](_schema_notes.md#provider-author-publisher-organisation-id)
Expand Down
4 changes: 1 addition & 3 deletions OLIDS/Documentation/Schema/Patient_Address.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
- [Patient\_Address](#patient_address)
- [Overview](#overview)
- [Columns](#columns)
- [pseudo view](#pseudo-view)
- [Entity Relationships](#entity-relationships)
- [Notes](#notes)

Expand All @@ -19,8 +18,6 @@ Patient addresses with different uses or applicable periods.

## Columns

### pseudo view

| Column Name | Data Type (Size) | Description | PK/FK | Masking Policy | Compass Equivalent |
| --- | --- | --- | --- | --- | --- |
| `ID` | `UUID` | id. | | | `id` |
Expand All @@ -43,6 +40,7 @@ Patient addresses with different uses or applicable periods.
| `LDS_IS_DELETED` | `BOOLEAN` | True if the record has been marked as deleted. | | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | ODS code of the organisation who, acting as the data controller, permitted the release of data. | | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | Timestamp extracted from source file name indicating extraction time. | | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- | - |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP` WITH TIME ZONE | lds transform date time. | | | -- |

## Entity Relationships
Expand Down
50 changes: 50 additions & 0 deletions OLIDS/Documentation/Schema/Patient_Age_Flags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Patient_Age_Flags

- [Patient\_Age\_Flags](#patient_age_flags)
- [Overview](#overview)
- [Columns](#columns)
- [Entity Relationships](#entity-relationships)

## Overview

Related FHIR resource: _not applicable_

This table allows for the service to provide specific age related flags. These flags can be used by pseudonymised access users to determine if the patient is within age eligibility criteria for specific treatments or pathways.

## Columns

| Column Name | Data Type (Size) | Description | PK/FK | Masking Policy | Compass Equivalent |
| --- | --- | --- | --- | --- | --- |
| `ID` | `UUID` | The Patient ID | FK ->[PATIENT](Patient.md).ID | - | - |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | record owner organisation code. | - | - | - |
| `IS_LESS_THAN_8_WEEKS_OLD` | `BOOLEAN` | Is the patient under 8 weeks of age today | - | - | - |
| `IS_LESS_THAN_12_WEEKS_OLD` | `BOOLEAN` | Is the patient under 12 weeks of age today | - | - | - |
| `IS_LESS_THAN_15_WEEKS_OLD` | `BOOLEAN` | Is the patient under 15 weeks of age today | - | - | - |
| `IS_LESS_THAN_16_WEEKS_OLD` | `BOOLEAN` | Is the patient under 16 weeks of age today | - | - | - |
| `IS_LESS_THAN_24_WEEKS_OLD` | `BOOLEAN` | Is the patient under 24 weeks of age today | - | - | - |
| `IS_LESS_THAN_6_MONTHS_OLD` | `BOOLEAN` | Is the patient under 6 months of age today | - | - | - |
| `IS_LESS_THAN_8_MONTHS_OLD` | `BOOLEAN` | Is the patient under 8 months of age today | - | - | - |
| `IS_LESS_THAN_12_MONTHS_OLD` | `BOOLEAN` | Is the patient under 12 months of age today | - | - | - |
| `IS_LESS_THAN_18_MONTHS_OLD` | `BOOLEAN` | Is the patient under 18 months of age today | - | - | - |
| `IS_LESS_THAN_1000_DAYS_OLD` | `BOOLEAN` | Is the patient under 1000 days of age today | - | - | - |
| `IS_BETWEEN_1_TO_18_MONTHS_OLD` | `BOOLEAN` | Is the patient between 1 to 18 months of age today | - | - | - |
| `IS_LESS_THAN_2_YEARS_OLD` | `BOOLEAN` | Is the patient under 2 years of age today | - | - | - |
| `IS_BETWEEN_3_TO_4_YEARS_OLD` | `BOOLEAN` | Is the patient between 3 to 4 years of age today | - | - | - |
| `IS_LESS_THAN_5_YEARS_OLD` | `BOOLEAN` | Is the patient under 5 years of age today | - | - | - |
| `IS_BETWEEN_11_TO_18_YEARS_OLD` | `BOOLEAN` | Is the patient between 11 to 18 years of age today | - | - | - |


## Entity Relationships

> [!NOTE]
> Diagrams below are currently indicative. The precise optional/mandatory nature of certain relationships remains to be clarified.

```mermaid
erDiagram

PATIENT ||--|| PATIENT_AGE_FLAGS: ID
```

| Related Table | Relationship Type | Local Key | Related Key | Notes |
| --- | --- | --- | --- | --- |
| [Patient](Patient.md) | FK | ID | ID | one-to-one relation |
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Patient_Contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ A Patient may have multiple ways to be contacted with different uses or applicab
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | | | `organization_id` |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- | - |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | | -- |

## Entity Relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Patient_Person.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
| `LDS_SOURCE_RECORD_ID_PERSON` | `UUID` | Record-level identifier of the linked person record, sourced from Person. Retained separately from LDS_SOURCE_RECORD_ID to distinguish the person record identifier from the patient record identifier in this link table. | | | -- |
| `GP_PRACTICE_CODE` | `VARCHAR` | ODS code of the patient's registered GP practice, sourced from Person. 'Unknown' when the organisation could not be resolved. | | | -- |
| `LDS_IS_DELETED` | `BOOLEAN` | Indicates whether the source patient record has been logically deleted. Coalesced to FALSE when the source value is NULL. | | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- | - |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | | -- |

## Entity Relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Practitioner.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ The Practitioner resource is used for anyone involved in the provision of care o
| `IS_OBSOLETE` | `BOOLEAN` | is practitioner record obsolete. | - | -- |
| `LDS_IS_DELETED` | `BOOLEAN` | is the practitioner record deleted in the source system. | - | -- |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | - | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | the timestamp when the transform process that generated this record. | - | -- |

## Entity Relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Practitioner_In_Role.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ For use cases where an organisation has activities where a practitioner is not d
| `DATE_EMPLOYMENT_END` | `DATE` | date employment end. | | -- |
| `LDS_IS_DELETED` | `BOOLEAN` | True if the record has been marked as deleted. | | -- |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | Timestamp extracted from source file name indicating extraction time. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

## Entity Relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Procedure_Request.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The ProcedureRequest resource allows requesting only a single procedure. If a wo
| `LDS_IS_DELETED` | `BOOLEAN` | standardised representation of soft-deletes. | - | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | The Organisation Data Service (ODS) code of the organisation who, acting as the data controller, publishes the data. | - | -- |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP_NTZ` | The timestamp when the record was supplied to, or acquired by, LDS. | - | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_NTZ` | The timestamp when the record was transformed by LDS into OLIDS. | - | -- |

## Entity relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Referral_Request.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ ReferralRequest is also intended for use when there is a complete and more perma
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | record owner organisation code. | | -- |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_NTZ` | The timestamp when the record was transformed by LDS into OLIDS. | - | -- |

## Entity Relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ The schedule does not provide any information about actual appointments. This se
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | record owner organisation code. | | | -- |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- | - |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_NTZ` | The timestamp when the record was transformed by LDS into OLIDS. | - | | -- |

## Entity Relationships
Expand Down
1 change: 1 addition & 0 deletions OLIDS/Documentation/Schema/Schedule_Practitioner.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ If the schedule needed to be consulted, then there would be one created covering
| `LDS_IS_DELETED` | `BOOLEAN` | lds is deleted. | | -- |
| `PUBLISHER_ORGANISATION_CODE` | `VARCHAR` | record owner organisation code. | | -- |
| `SOURCE_EXTRACTION_DATE` | `TIMESTAMP` | source extraction date. | | -- |
| `LDS_SOURCE_DATASET` | `VARCHAR` | The name of the source dataset (or system) that the record is obtained from | - | -- |
| `LDS_TRANSFORM_DATETIME` | `TIMESTAMP_LTZ` | lds transform date time. | | -- |

## Entity Relationships
Expand Down
Loading