measurement_concept_id
Sus OP Measurement
Source column measurement_source_concept_id. Maps concepts to standard valid concepts in the measurement domain.
Comment or raise an issue for this mapping.
Sus CCMDS Measurement - Gestation Length at Delivery
- Constant value set to
4260747. Length of gestation at birth
Comment or raise an issue for this mapping.
Sus CCMDS Measurement - Person Weight
- Constant value set to
4099154. Body Weight
Comment or raise an issue for this mapping.
Sus APC Measurement
Source column measurement_source_concept_id. Maps concepts to standard valid concepts in the measurement domain.
Comment or raise an issue for this mapping.
SACT Measurement Weight at Start of Regimen
- Constant value set to
4099154. Body Weight
Comment or raise an issue for this mapping.
SACT Measurement Weight at Start of Cycle
- Constant value set to
4099154. Body Weight
Comment or raise an issue for this mapping.
SACT Measurement Height
- Constant value set to
607590. Body Height
Comment or raise an issue for this mapping.
Oxford Lab Measurement
Source column measurement_source_concept_id. Maps concepts to standard valid concepts in the measurement domain.
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
-- Query to extract Tumour Laterality for UR cancer area from COSD v9.
-- Identifies the side of the body for a tumour relating to paired organs.
-- Only valid laterality codes (L, R, M, B) are included.
-- MeasurementDate uses the primary diagnosis date.
-- TumourLaterality will be mapped to a measurement value concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as MeasurementDate,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'UR'
and (Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code') in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V9 UR Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
-- Query to extract TNM Stage Grouping (Integrated) for UR cancer area from COSD v9.
-- The TNM stage grouping classifies the combination of T, N and M into stage groupings after treatment.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TnmStageGroupingIntegrated will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'UR'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement TNM Category Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
-- Query to extract TNM Stage Grouping (Final Pretreatment) for UR cancer area from COSD v9.
-- The TNM stage grouping classifies the combination of T, N and M into stage groupings before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TnmStageGroupingFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'UR'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Tcategory Integrated Stage
Source column TcategoryIntegratedStage. Lookup TCategory concepts.
| TcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
-- Query to extract T Category (Integrated Stage) for UR cancer area from COSD v9.
-- The T category classifies the size and extent of the primary tumour after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TcategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TcategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'UR'
and TcategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Tcategory Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
-- Query to extract T Category (Final Pretreatment) for UR cancer area from COSD v9.
-- The T category classifies the size and extent of the primary tumour before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TcategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'UR'
and TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Prostate Specific Antigen Diagnosis
- Constant value set to
4272032. Prostate specific antigen measurement
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Primary Pathway/Diagnosis) for UR cancer area from COSD v9.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with UR as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'UR'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from UR
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Non-Primary Pathway - Recurrence) for UR cancer area from COSD v9.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with UR as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'UR'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from UR
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Non-Primary Pathway - Progression) for UR cancer area from COSD v9.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with UR as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'UR'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from UR
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Ncategory Integrated Stage
Source column NcategoryIntegratedStage. Lookup NCategory concepts.
| NcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
-- Query to extract N Category (Integrated Stage) for UR cancer area from COSD v9.
-- The N category classifies the absence or presence and extent of regional lymph node metastases after treatment.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- NcategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NcategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'UR'
and NcategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Ncategory Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
-- Query to extract N Category (Final Pretreatment) for UR cancer area from COSD v9.
-- The N category classifies the absence or presence and extent of regional lymph node metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- NcategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'UR'
and NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Mcategory Integrated Stage
Source column McategoryIntegratedStage. Lookup concepts.
| McategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
-- Query to extract M Category (Integrated Stage) for UR cancer area from COSD v9.
-- The M category classifies the absence or presence of distant metastases after treatment.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- McategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as McategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'UR'
and McategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Mcategory Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
-- Query to extract M Category (Final Pretreatment) for UR cancer area from COSD v9.
-- The M category classifies the absence or presence of distant metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- McategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as McategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'UR'
and McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
-- Query to extract Grade of Differentiation (at Diagnosis) for UR cancer area from COSD v9.
-- The grade classifies the differentiation of the tumour at the time of diagnosis.
-- MeasurementDate uses the primary diagnosis date.
-- GradeOfDifferentiationAtDiagnosis will be mapped to a measurement value concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as MeasurementDate,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'UR'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V9 UR Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
-- Query to extract Tumour Laterality for UR cancer area from COSD v8.
-- Identifies the side of the body for a tumour relating to paired organs.
-- Only valid laterality codes (L, R, M, B) are included.
-- MeasurementDate uses diagnosis date, falling back to non-primary diagnosis date.
-- TumourLaterality will be mapped to a measurement value concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'UR'
and (Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.TumourLaterality.@code') in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V8 UR Measurement TNMcategory Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
-- Query to extract TNM Stage Grouping (Integrated) for UR cancer area from COSD v8.
-- The TNM stage grouping classifies the combination of T, N and M into stage groupings after treatment.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TnmStageGroupingIntegrated will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.IntegratedStageTNMStageGroupingDate',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_81
where type = 'UR'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V8 UR Measurement TNMcategory Final Pre Treatment Stage
Source column TnmStageGroupingFinalPreTreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
-- Query to extract TNM Stage Grouping (Final Pretreatment) for UR cancer area from COSD v8.
-- The TNM stage grouping classifies the combination of T, N and M into stage groupings before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TnmStageGroupingFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'UR'
and TnmStageGroupingFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Tcategory Integrated Stage
Source column TcategoryIntegratedStage. Lookup TCategory concepts.
| TcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
-- Query to extract T Category (Integrated Stage) for UR cancer area from COSD v8.
-- The T category classifies the size and extent of the primary tumour after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TcategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.IntegratedStageTNMStageGroupingDate',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.IntegratedStageTCategory' as TcategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'UR'
and TcategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Tcategory Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
-- Query to extract T Category (Final Pretreatment) for UR cancer area from COSD v8.
-- The T category classifies the size and extent of the primary tumour before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TcategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.FinalPreTreatmentTCategory' as TcategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'UR'
and TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Prostate Specific Antigen Diagnosis
- Constant value set to
4272032. Prostate specific antigen measurement
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Primary Pathway/Diagnosis) for UR cancer area from COSD v8.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with ur as (
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
unnest(
[
[ Record ->> '$.Urological.UrologicalCore.UrologicalCoreDiagnosis.MetastaticSite.@code' ],
Record ->> '$.Urological.UrologicalCore.UrologicalCoreDiagnosis.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'UR'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from ur
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Non Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Non-Primary Pathway) for UR cancer area from COSD v8.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with ur as (
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.Urological.UrologicalCore.UrologicalCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' ],
Record ->> '$.Urological.UrologicalCore.UrologicalCoreNonPrimaryCancerPathwayRoute.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'UR'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from ur
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Ncategory Integrated Stage
Source column NcategoryIntegratedStage. Lookup NCategory concepts.
| NcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
-- Query to extract N Category (Integrated Stage) for UR cancer area from COSD v8.
-- The N category classifies the absence or presence and extent of regional lymph node metastases after treatment.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- NcategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.IntegratedStageTNMStageGroupingDate',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.IntegratedStageNCategory' as NcategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'UR'
and NcategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Ncategory Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
-- Query to extract N Category (Final Pretreatment) for UR cancer area from COSD v8.
-- The N category classifies the absence or presence and extent of regional lymph node metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- NcategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.FinalPreTreatmentNCategory' as NcategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'UR'
and NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Mcategory Integrated Stage
Source column McategoryIntegratedStage. Lookup concepts.
| McategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
-- Query to extract M Category (Integrated Stage) for UR cancer area from COSD v8.
-- The M category classifies the absence or presence of distant metastases after treatment.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- McategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.IntegratedStageTNMStageGroupingDate',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.IntegratedStageMCategory' as McategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'UR'
and McategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Mcategory Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
-- Query to extract M Category (Final Pretreatment) for UR cancer area from COSD v8.
-- The M category classifies the absence or presence of distant metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- McategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreStaging.FinalPreTreatmentMCategory' as McategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'UR'
and McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 UR Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
-- Query to extract Grade of Differentiation (at Diagnosis) for UR cancer area from COSD v8.
-- The grade classifies the differentiation of the tumour at the time of diagnosis.
-- MeasurementDate uses diagnosis date, falling back to non-primary diagnosis date.
-- GradeOfDifferentiation will be mapped to a measurement value concept in OMOP in a later step.
select distinct
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis',
Record ->> '$.Urological.UrologicalCore.UrologicalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.Urological.UrologicalCore.UrologicalCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where type = 'UR'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement Tnm Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'UG'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement Tnm Stage Grouping Final Pretreatment
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'UG'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'UG'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement T Category Final Pretreatment
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'UG'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with ug as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'UG'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from ug
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 UG Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with ug as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'UG'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from ug
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 UG Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with ug as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'UG'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from ug
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 UG Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'UG'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement N Category Final Pretreatment
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'UG'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'UG'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement M Category Final Pretreatment
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'UG'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement Grade Of Differentiation At Diagnosis
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'UG'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V9 UG Measurement Adult Comorbidity Evaluation 27 Score
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from UG
where TumourLaterality is not null
and TumourLaterality in ('L', 'R', 'M', 'B');
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with ug as (
select distinct
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
unnest(
[
[ Record ->> '$.UpperGI.UpperGICore.UpperGICoreDiagnosis.MetastaticSite.@code' ],
Record ->> '$.UpperGI.UpperGICore.UpperGICoreDiagnosis.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from ug
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Non Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'UG'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Integrated Stage TNM Stage Grouping
Source column IntegratedStageTNMStageGrouping. Lookup TNMCategory concepts.
| IntegratedStageTNMStageGrouping | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
IntegratedStageTNMStageGroupingIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.IntegratedStageTNMStageGrouping' as IntegratedStageTNMStageGrouping
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
IntegratedStageTNMStageGrouping
from UG
where IntegratedStageTNMStageGrouping is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Integrated Stage T Category
Source column IntegratedStageTCategory. Lookup TCategory concepts.
| IntegratedStageTCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
IntegratedStageTCategoryIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.IntegratedStageTCategory' as IntegratedStageTCategory
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
IntegratedStageTCategory
from UG
where IntegratedStageTCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Integrated Stage N Category
Source column IntegratedStageNCategory. Lookup NCategory concepts.
| IntegratedStageNCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
IntegratedStageNCategoryIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.IntegratedStageNCategory' as IntegratedStageNCategory
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
IntegratedStageNCategory
from UG
where IntegratedStageNCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Integrated Stage M Category
Source column IntegratedStageMCategory. Lookup concepts.
| IntegratedStageMCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
IntegratedStageMCategoryIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.IntegratedStageMCategory' as IntegratedStageMCategory
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
IntegratedStageMCategory
from UG
where IntegratedStageMCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from UG
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Final Pretreatment TNM Stage Grouping
Source column FinalPreTreatmentTNMStageGrouping. Lookup TNMCategory concepts.
| FinalPreTreatmentTNMStageGrouping | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
FinalPreTreatmentTNMStageGroupingIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.FinalPreTreatmentTNMStageGrouping' as FinalPreTreatmentTNMStageGrouping
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
FinalPreTreatmentTNMStageGrouping
from UG
where FinalPreTreatmentTNMStageGrouping is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Final Pretreatment T Category
Source column FinalPreTreatmentTCategory. Lookup TCategory concepts.
| FinalPreTreatmentTCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
FinalPreTreatmentTCategoryIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.FinalPreTreatmentTCategory' as FinalPreTreatmentTCategory
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
FinalPreTreatmentTCategory
from UG
where FinalPreTreatmentTCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Final Pretreatment N Category
Source column FinalPreTreatmentNCategory. Lookup NCategory concepts.
| FinalPreTreatmentNCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
FinalPreTreatmentNCategoryIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.FinalPreTreatmentNCategory' as FinalPreTreatmentNCategory
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
FinalPreTreatmentNCategory
from UG
where FinalPreTreatmentNCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Final Pretreatment M Category
Source column FinalPreTreatmentMCategory. Lookup concepts.
| FinalPreTreatmentMCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
FinalPreTreatmentMCategoryIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with UG as (
select
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage,
Record ->> '$.UpperGI.UpperGICore.UpperGICoreStaging.FinalPreTreatmentMCategory' as FinalPreTreatmentMCategory
from omop_staging.cosd_staging_81
where type = 'UG'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
FinalPreTreatmentMCategory
from UG
where FinalPreTreatmentMCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 UG Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 SK Measurement TNM Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedCode, using a TNM coding edition, that classifies the combination of tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'SK'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement TNM Stage Grouping Final Pretreatment
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentCode, using a TNM coding edition, that classifies the combination of tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'SK'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageCode, using a TNM coding edition, that classifies the size and extent of the primary tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'SK'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement T Category Final Pretreatment
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentCode, using a TNM coding edition, that classifies the size and extent of the primary tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'SK'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SK as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'SK'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from SK
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 SK Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SK as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'SK'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from SK
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 SK Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SK as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'SK'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from SK
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 SK Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageCode, using a TNM coding edition, that classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'SK'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement N Category Final Pretreatment
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentCode, using a TNM coding edition, that classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'SK'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageCode, using a TNM coding edition, that classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'SK'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement M Category Final Pretreatment
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentCode, using a TNM coding edition, that classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'SK'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'SK'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V9 SK Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 SK Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from SK
where TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V8 SK Measurement TNM Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedCode, using a TNM coding edition, that classifies the combination of tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingIntegrated
from SK
where TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V8 SK Measurement TNM Stage Grouping Final Pretreatment
Source column TnmStageGroupingFinalPreTreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPreTreatmentCode, using a TNM coding edition, that classifies the combination of tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPreTreatment,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingFinalPreTreatment
from SK
where TnmStageGroupingFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 SK Measurement TCategory Integrated Stage
Source column TcategoryIntegratedStage. Lookup TCategory concepts.
| TcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryIntegratedStageCode, using a TNM coding edition, that classifies the size and extent of the primary tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.IntegratedStageTCategory' as TCategoryIntegratedStage,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryIntegratedStage
from SK
where TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 SK Measurement TCategory Final Pretreatment
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentCode, using a TNM coding edition, that classifies the size and extent of the primary tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.FinalPreTreatmentTCategory' as TCategoryFinalPreTreatment,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryFinalPreTreatment
from SK
where TCategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 SK Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SK as (
select distinct
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
unnest(
[
[ Record ->> '$.Skin.SkinCore.SkinCoreDiagnosis.MetastaticSite.@code' ],
Record ->> '$.Skin.SkinCore.SkinCoreDiagnosis.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from SK
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v8 SK Measurement Non Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Skin.SkinCore.SkinCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from SK
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v8 SK Measurement NCategory Integrated Stage
Source column NcategoryIntegratedStage. Lookup NCategory concepts.
| NcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryIntegratedStageCode, using a TNM coding edition, that classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.IntegratedStageNCategory' as NCategoryIntegratedStage,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryIntegratedStage
from SK
where NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 SK Measurement NCategory Final Pretreatment
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentCode, using a TNM coding edition, that classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.FinalPreTreatmentNCategory' as NCategoryFinalPreTreatment,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryFinalPreTreatment
from SK
where NCategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 SK Measurement MCategory Integrated Stage
Source column McategoryIntegratedStage. Lookup concepts.
| McategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryIntegratedStageCode, using a TNM coding edition, that classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.IntegratedStageMCategory' as MCategoryIntegratedStage,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryIntegratedStage
from SK
where MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 SK Measurement MCategory Final Pretreatment
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentCode, using a TNM coding edition, that classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.FinalPreTreatmentMCategory' as MCategoryFinalPreTreatment,
Record ->> '$.Skin.SkinCore.SkinCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryFinalPreTreatment
from SK
where MCategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 SK Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with SK as (
select
Record ->> '$.Skin.SkinCore.SkinCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Skin.SkinCore.SkinCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Skin.SkinCore.SkinCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where Type = 'SK'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from SK
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD v8 SK Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIndication of the side of the body for a tumour within a patient. TUMOUR LATERALITY
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'SA'
and TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V9 SA Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'SA'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement TNM Category Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'SA'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Tcategory Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'SA'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Tcategory Final Pre Treatment Stage
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'SA'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Sarcoma Tumour Site Soft Tissue
Source column measurement_source_concept_id. Maps concepts to standard valid concepts in the measurement domain.
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Sarcoma Tumour Site Bone
Source column measurement_source_concept_id. Maps concepts to standard valid concepts in the measurement domain.
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SA as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'SA'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from SA
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SA as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'SA'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from SA
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SA as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'SA'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from SA
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Ncategory Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'SA'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Ncategory Final Pre Treatment Stage
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'SA'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Mcategory Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'SA'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Mcategory Final Pre Treatment Stage
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'SA'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'SA'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V9 SA Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIndication of the side of the body for a tumour within a patient. TUMOUR LATERALITY
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from SA
where TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD v8 SA Measurement TNMcategory Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingIntegrated
from SA
where TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement TNMcategory Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPretreatment,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingFinalPretreatment
from SA
where TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Tcategory Integrated Stage
Source column TcategoryIntegratedStage. Lookup TCategory concepts.
| TcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.IntegratedStageTCategory' as TCategoryIntegratedStage,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryIntegratedStage
from SA
where TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Tcategory Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.FinalPreTreatmentTCategory' as TCategoryFinalPretreatment,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryFinalPretreatment
from SA
where TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Sarcoma Tumour Site Soft Tissue
Source column measurement_source_concept_id. Maps concepts to standard valid concepts in the measurement domain.
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Sarcoma Tumour Site Bone
Source column measurement_source_concept_id. Maps concepts to standard valid concepts in the measurement domain.
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreDiagnosis.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from SA
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Non Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from SA
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Ncategory Integrated Stage
Source column NcategoryIntegratedStage. Lookup NCategory concepts.
| NcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.IntegratedStageNCategory' as NCategoryIntegratedStage,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryIntegratedStage
from SA
where NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Ncategory Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.FinalPreTreatmentNCategory' as NCategoryFinalPretreatment,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryFinalPretreatment
from SA
where NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Mcategory Integrated Stage
Source column McategoryIntegratedStage. Lookup concepts.
| McategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.IntegratedStageMCategory' as MCategoryIntegratedStage,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryIntegratedStage
from SA
where MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Mcategory Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.FinalPreTreatmentMCategory' as MCategoryFinalPretreatment,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryFinalPretreatment
from SA
where MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with SA as (
select
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Sarcoma.SarcomaCore.SarcomaCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where type = 'SA'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from SA
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD v8 SA Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'LV'
and TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V9 LV Measurement TNM Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'LV'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement TNM Stage Grouping Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'LV'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Tcategory Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'LV'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Tcategory Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'LV'
and TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with lv as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'LV'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from lv
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with lv as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'LV'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from lv
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with lv as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'LV'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from lv
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Ncategory Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'LV'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Ncategory Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'LV'
and NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Mcategory Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'LV'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Mcategory Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as McategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'LV'
and McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'LV'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V9 LV Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD v8 LV Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
with lv as (
select
Record ->> '$.Liver.LiverCore.LiverCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where Type = 'LV'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from lv
where TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD v8 LV Measurement TNM Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
with lv as (
select
Record ->> '$.Liver.LiverCore.LiverCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Liver.LiverCore.LiverCoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated,
Record ->> '$.Liver.LiverCore.LiverCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'LV'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingIntegrated
from lv
where TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD v8 LV Measurement Tcategory Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
with lv as (
select
Record ->> '$.Liver.LiverCore.LiverCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Liver.LiverCore.LiverCoreStaging.IntegratedStageTCategory' as TCategoryIntegratedStage,
Record ->> '$.Liver.LiverCore.LiverCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'LV'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryIntegratedStage
from lv
where TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 LV Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with lv as (
select
Record ->> '$.Liver.LiverCore.LiverCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Liver.LiverCore.LiverCoreDiagnosis.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where Type = 'LV'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from lv
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v8 LV Measurement Ncategory Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with lv as (
select
Record ->> '$.Liver.LiverCore.LiverCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Liver.LiverCore.LiverCoreStaging.IntegratedStageNCategory' as NCategoryIntegratedStage,
Record ->> '$.Liver.LiverCore.LiverCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'LV'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryIntegratedStage
from lv
where NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 LV Measurement Mcategory Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with lv as (
select
Record ->> '$.Liver.LiverCore.LiverCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Liver.LiverCore.LiverCoreStaging.IntegratedStageMCategory' as MCategoryIntegratedStage,
Record ->> '$.Liver.LiverCore.LiverCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'LV'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryIntegratedStage
from lv
where MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 LV Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with lv as (
select
Record ->> '$.Liver.LiverCore.LiverCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Liver.LiverCore.LiverCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Liver.LiverCore.LiverCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where Type = 'LV'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from lv
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD v8 LV Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NHSNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'LU'
and (Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code') in ('L','R','M','B')
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the TNM Stage Grouping (Integrated) which provides a precise summary of the anatomical extent of cancer. TNM STAGE GROUPING (INTEGRATED)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NHSNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'LU'
and TnmStageGroupingIntegrated is not null
and NHSNumber is not null
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement TNM Category Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the TNM Stage Grouping (Final pre-treatment) which provides a precise summary of the anatomical extent of cancer. TNM STAGE GROUPING (FINAL PRETREATMENT)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NHSNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'LU'
and TnmStageGroupingFinalPretreatment is not null
and NHSNumber is not null
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour for the integrated stage during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NHSNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'LU'
and TCategoryIntegratedStage is not null
and NHSNumber is not null
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement T Category Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NHSNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'LU'
and TcategoryFinalPreTreatment is not null
and NHSNumber is not null
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS for the primary pathway. METASTATIC SITE (AT DIAGNOSIS)
with lung as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NHSNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest ([[Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticType.@code'], Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticType.@code'], recursive := true) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'LU'
)
select distinct
NHSNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from lung
where MetastaticSite is not null
and MetastaticSite != '97'
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement Non Primary Pathway Recurrence Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at recurrence for a non-primary cancer pathway. METASTATIC SITE (RECURRENCE)
with lung as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NHSNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest ([[Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code'], Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'], recursive := true) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'LU'
)
select distinct
NHSNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from lung
where MetastaticSite is not null
and MetastaticSite != '97'
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement Non Primary Pathway Progression Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at progression for a non-primary cancer pathway. METASTATIC SITE (PROGRESSION)
with lung as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NHSNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest ([[Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code'], Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'], recursive := true) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'LU'
)
select
distinct
NHSNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from lung
where MetastaticSite is not null
and MetastaticSite != '97'
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageThe N category (regional lymph nodes) assigned to the tumour for the integrated stage. N CATEGORY INTEGRATED STAGE
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'LU'
and NCategoryIntegratedStage is not null
and NhsNumber is not null
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement N Category Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentThe N category (regional lymph nodes) assigned to the tumour at the time of the final pre-treatment stage. N CATEGORY FINAL PRETREATMENT
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'LU'
and NcategoryFinalPreTreatment is not null
and NhsNumber is not null
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageThe M category (distant metastasis) assigned to the tumour for the integrated stage. M CATEGORY INTEGRATED STAGE
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'LU'
and MCategoryIntegratedStage is not null
and NhsNumber is not null
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement M Category Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentThe M category (distant metastasis) assigned to the tumour at the time of the final pre-treatment stage. M CATEGORY FINAL PRETREATMENT
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as McategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'LU'
and McategoryFinalPreTreatment is not null
and NhsNumber is not null
Comment or raise an issue for this mapping.
COSD V9 Lung Measurement Grade of Differentiation (At Diagnosis)
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where Type = 'LU'
and GradeOfDifferentiationAtDiagnosis is not null
and NhsNumber is not null
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityAn indication of the side of the body on which the Primary Tumour originated. Valid values are: L (Left), R (Right), M (Midline), B (Bilateral). TUMOUR LATERALITY
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from lung
where TumourLaterality is not null
and TumourLaterality in ('L','R','M','B')
and NhsNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated,
Record ->> '$.Lung.LungCore.LungCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingIntegrated
from lung
where TnmStageGroupingIntegrated is not null
and NhsNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement TNM Category Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentThe TNM STAGE GROUPING (FINAL PRETREATMENT) is a combination of the results of the clinical T, N and M, the T, N and M assigned on the basis of the operative findings, and the pathological T, N and M, recorded before the start of treatment, coded at the end of the CANCER CARE SPELL. TNM STAGE GROUPING (FINAL PRETREATMENT)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPretreatment,
Record ->> '$.Lung.LungCore.LungCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingFinalPretreatment
from lung
where TnmStageGroupingFinalPretreatment is not null
and NhsNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreStaging.IntegratedStageTCategory' as TCategoryIntegratedStage,
Record ->> '$.Lung.LungCore.LungCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryIntegratedStage
from lung
where TCategoryIntegratedStage is not null
and NhsNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement T Category Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreStaging.FinalPreTreatmentTCategory' as TcategoryFinalPreTreatment,
Record ->> '$.Lung.LungCore.LungCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TcategoryFinalPreTreatment
from lung
where TcategoryFinalPreTreatment is not null
and NhsNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteA code that records the site(s) of metastatic disease at diagnosis. METASTATIC SITE
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
unnest(
[
[
Record ->> '$.Lung.LungCore.LungCoreDiagnosis.MetastaticSite.@code'
],
Record ->> '$.Lung.LungCore.LungCoreDiagnosis.MetastaticSite[*].@code'
], recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from lung
where MetastaticSite is not null
and MetastaticSite != 97
and NhsNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement Non Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteA code that records the site(s) of metastatic disease relating to a Non-Primary Cancer Pathway. METASTATIC SITE (NON PRIMARY CANCER PATHWAY)
with lung as (
select distinct
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.Lung.LungCore.LungCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' ],
Record ->> '$.Lung.LungCore.LungCoreNonPrimaryCancerPathwayRoute.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'LU'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from lung
where MetastaticSite is not null
and MetastaticSite != '97'
and NhsNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreStaging.IntegratedStageNCategory' as NCategoryIntegratedStage,
Record ->> '$.Lung.LungCore.LungCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryIntegratedStage
from lung
where NCategoryIntegratedStage is not null
and NhsNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement N Category (Final Pretreatment)
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreStaging.FinalPreTreatmentNCategory' as NcategoryFinalPreTreatment,
Record ->> '$.Lung.LungCore.LungCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NHSNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NcategoryFinalPreTreatment
from lung
where NcategoryFinalPreTreatment is not null
and NHSNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement M Category (Integrated Stage)
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases using the integrated stage during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreStaging.IntegratedStageMCategory' as MCategoryIntegratedStage,
Record ->> '$.Lung.LungCore.LungCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NHSNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryIntegratedStage
from lung
where MCategoryIntegratedStage is not null
and NHSNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement M Category (Final Pretreatment)
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreStaging.FinalPreTreatmentMCategory' as McategoryFinalPreTreatment,
Record ->> '$.Lung.LungCore.LungCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NHSNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
McategoryFinalPreTreatment
from lung
where McategoryFinalPreTreatment is not null
and NHSNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Lung Measurement Grade of Differentiation (At Diagnosis)
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with lung as (
select
Record ->> '$.Lung.LungCore.LungCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Lung.LungCore.LungCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Lung.LungCore.LungCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where Type = 'LU'
)
select distinct
NHSNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from lung
where GradeOfDifferentiationAtDiagnosis is not null
and NHSNumber is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement Tnm Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
-- Query to extract TNM Stage Grouping (Integrated) for HN cancer area from COSD v9.
-- The TNM stage grouping classifies the combination of tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TnmStageGroupingIntegrated will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'HN'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement Tnm Stage Grouping Final Pretreatment
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
-- Query to extract TNM Stage Grouping (Final Pretreatment) for HN cancer area from COSD v9.
-- The TNM stage grouping classifies the combination of tumour, node and metastases into stage groupings before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TnmStageGroupingFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'HN'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
-- Query to extract T Category (Integrated Stage) for HN cancer area from COSD v9.
-- The T category classifies the size and extent of the primary tumour after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TCategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'HN'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement T Category Final Pretreatment
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
-- Query to extract T Category (Final Pretreatment) for HN cancer area from COSD v9.
-- The T category classifies the size and extent of the primary tumour before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TCategoryFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'HN'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site from the Primary Pathway for HN cancer area from COSD v9.
-- MetastaticSite records the site of metastatic disease at patient diagnosis, excluding code 97 (not applicable).
-- Uses unnest to flatten the array of metastatic sites into individual rows.
-- MetastaticSite will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'HN'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from hn
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 HN Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site from the Non Primary Pathway (Recurrence) for HN cancer area from COSD v9.
-- MetastaticSite records the site of metastatic disease at recurrence, excluding code 97 (not applicable).
-- Uses unnest to flatten the array of metastatic sites into individual rows.
-- MetastaticSite will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'HN'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from hn
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 HN Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site from the Non Primary Pathway (Progression) for HN cancer area from COSD v9.
-- MetastaticSite records the site of metastatic disease at progression, excluding code 97 (not applicable).
-- Uses unnest to flatten the array of metastatic sites into individual rows.
-- MetastaticSite will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'HN'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from hn
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 HN Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
-- Query to extract N Category (Integrated Stage) for HN cancer area from COSD v9.
-- The N category classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- NCategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'HN'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement N Category Final Pretreatment
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
-- Query to extract N Category (Final Pretreatment) for HN cancer area from COSD v9.
-- The N category classifies the absence or presence and extent of regional lymph node metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- NCategoryFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'HN'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
-- Query to extract M Category (Integrated Stage) for HN cancer area from COSD v9.
-- The M category classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- MCategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'HN'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement M Category Final Pretreatment
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
-- Query to extract M Category (Final Pretreatment) for HN cancer area from COSD v9.
-- The M category classifies the absence or presence of distant metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- MCategoryFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'HN'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement Grade Of Differentiation At Diagnosis
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
-- Query to extract Grade of Differentiation (At Diagnosis) for HN cancer area from COSD v9.
-- The grade represents the definitive grade of the tumour at the time of patient diagnosis.
-- GradeOfDifferentiationAtDiagnosis will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'HN'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V9 HN Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
-- Query to extract Tumour Laterality for HN cancer area from COSD v8.
-- Identifies the side of the body for a tumour relating to paired organs, filtering only valid laterality codes.
-- MeasurementDate uses primary diagnosis date, falling back to non-primary diagnosis date.
-- TumourLaterality will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from hn
where TumourLaterality in ('L', 'R', 'M', 'B');
Comment or raise an issue for this mapping.
COSD v8 HN Measurement TNMcategory Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
-- Query to extract TNM Stage Grouping (Integrated) for HN cancer area from COSD v8.
-- The TNM stage grouping classifies the combination of tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TnmStageGroupingIntegrated will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingIntegrated
from hn
where TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD v8 HN Measurement TNMcategory Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
-- Query to extract TNM Stage Grouping (Final Pretreatment) for HN cancer area from COSD v8.
-- The TNM stage grouping classifies the combination of tumour, node and metastases into stage groupings before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TnmStageGroupingFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingFinalPretreatment
from hn
where TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Tcategory Integrated Stage
Source column TcategoryIntegratedStage. Lookup TCategory concepts.
| TcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
-- Query to extract T Category (Integrated Stage) for HN cancer area from COSD v8.
-- The T category classifies the size and extent of the primary tumour after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TcategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.IntegratedStageTCategory' as TcategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TcategoryIntegratedStage
from hn
where TcategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Tcategory Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
-- Query to extract T Category (Final Pretreatment) for HN cancer area from COSD v8.
-- The T category classifies the size and extent of the primary tumour before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TcategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.FinalPreTreatmentTCategory' as TcategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TcategoryFinalPreTreatment
from hn
where TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site from the Primary Pathway for HN cancer area from COSD v8.
-- MetastaticSite records the site of metastatic disease at patient diagnosis, excluding code 97 (not applicable).
-- MetastaticSite will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreDiagnosis.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from hn
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Non Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site from the Non Primary Pathway for HN cancer area from COSD v8.
-- MetastaticSite records the site of metastatic disease in the non-primary cancer pathway, excluding code 97 (not applicable).
-- MetastaticSite will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from hn
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Ncategory Integrated Stage
Source column NcategoryIntegratedStage. Lookup NCategory concepts.
| NcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
-- Query to extract N Category (Integrated Stage) for HN cancer area from COSD v8.
-- The N category classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- NcategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.IntegratedStageNCategory' as NcategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NcategoryIntegratedStage
from hn
where NcategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Ncategory Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
-- Query to extract N Category (Final Pretreatment) for HN cancer area from COSD v8.
-- The N category classifies the absence or presence and extent of regional lymph node metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- NcategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.FinalPreTreatmentNCategory' as NcategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NcategoryFinalPreTreatment
from hn
where NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Mcategory Integrated Stage
Source column McategoryIntegratedStage. Lookup concepts.
| McategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
-- Query to extract M Category (Integrated Stage) for HN cancer area from COSD v8.
-- The M category classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- McategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.IntegratedStageMCategory' as McategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
McategoryIntegratedStage
from hn
where McategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Mcategory Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
-- Query to extract M Category (Final Pretreatment) for HN cancer area from COSD v8.
-- The M category classifies the absence or presence of distant metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- McategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreStaging.FinalPreTreatmentMCategory' as McategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
McategoryFinalPreTreatment
from hn
where McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD v8 HN Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
-- Query to extract Grade of Differentiation (At Diagnosis) for HN cancer area from COSD v8.
-- The grade represents the definitive grade of the tumour at the time of patient diagnosis.
-- MeasurementDate uses the diagnosis date, falling back to non-primary diagnosis date.
-- GradeOfDifferentiationAtDiagnosis will be mapped to a measurement concept in OMOP in a later step.
with hn as (
select
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.HeadNeck.HeadNeckCore.HeadNeckCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where type = 'HN'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from hn
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V8 HN Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
-- Tumour Laterality: side of body for tumour. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'HA'
and TumourLaterality is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Tnm Stage Grouping Final Pretreatment
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
-- TNM Stage Grouping: combined TNM stage before treatment. Will be mapped to a measurement concept in a later ETL step.
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'HA'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement T Category Final Pretreatment
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select distinct
-- NHS Number: unique patient identifier
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
-- Measurement date: prefer stage date, fall back to primary diagnosis date
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
-- T Category: TNM T component of the final pretreatment staging. Will be mapped to a measurement concept in a later ETL step.
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'HA'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement RIPI Index For DLBCL Score
- Constant value set to
37396673. International Prognostic Index
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Recurrence Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteThe site of the metastatic disease at PATIENT DIAGNOSIS during a Cancer Care Spell (recurrence pathway). METASTATIC SITE (AT DIAGNOSIS)
with ha as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
-- Metastatic Site from recurrence pathway. Unnested because MetastaticTypeAndSiteRecurrence may contain multiple entries.
unnest(
[
[Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code'],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'HA'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from ha
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Progression Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteThe site of the metastatic disease at PATIENT DIAGNOSIS during a Cancer Care Spell (progression pathway). METASTATIC SITE (AT DIAGNOSIS)
with ha as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
-- Metastatic Site from progression pathway. Unnested because MetastaticTypeAndSiteProgression may contain multiple entries.
unnest(
[
[Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code'],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'HA'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from ha
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteThe site of the metastatic disease at PATIENT DIAGNOSIS during a Cancer Care Spell. METASTATIC SITE (AT DIAGNOSIS)
with ha as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
-- Metastatic Site at primary diagnosis. Unnested because MetastaticTypeAndSiteDiagnosis may contain multiple entries.
unnest(
[
[Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code'],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'HA'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from ha
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 HA Measurement N Category Final Pretreatment
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
-- N Category: TNM N component of the final pretreatment staging. Will be mapped to a measurement concept in a later ETL step.
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'HA'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement M Category Final Pretreatment
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
-- M Category: TNM M component of the final pretreatment staging. Will be mapped to a measurement concept in a later ETL step.
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'HA'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS during a Cancer Care Spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
-- Grade of Differentiation: definitive grade of tumour at diagnosis. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'HA'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Binet Stage
Source column BinetStage. BINET STAGE
| BinetStage | measurement_concept_id | notes |
|---|---|---|
| A | 1635315 | Stage A: platelet count greater than 99 and haemoglobin greater than 99 and 0, 1, or 2 areas of organ enlargement (number of lymph node groups plus score 1 for hepatomegaly, 1 for splenomegaly) |
| B | 1635179 | Stage B: platelet count greater than 99 and haemoglobin greater than 99 and 3, 4, or 5 areas of organ enlargement |
| C | 1635062 | Stage C: haemoglobin less than 100 or platelet count less than 100 |
BinetStageBinet Classification stage for a patient during a haematological cancer care spell. BINET STAGE
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
-- Binet Stage: CLL staging classification. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.PrimaryPathway.StagingSiteSpecific.StagingHaematological.StagingCLL.BinetStage.@code' as BinetStage
from omop_staging.cosd_staging_901
where type = 'HA'
and BinetStage is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Ann Arbor Stage
Source column AnnArborStage. ANN ARBOR STAGE
| AnnArborStage | measurement_concept_id | notes |
|---|---|---|
| 1 | 1633291 | Stage I: one region of lymph nodes, or spleen or thymus or Waldeyer’s ring enlarged |
| 2 | 1634430 | Stage II: 2 regions of lymph nodes enlarged on the same side of the diaphragm |
| 3 | 1635140 | Stage III: lymph nodes enlarged on both sides of the diaphragm |
| 4 | 1633464 | Stage IV: disease outside lymph nodes (e.g. liver, bone marrow), excluding “E” |
AnnArborStageAnn Arbor Staging System stage based on the location and extent of detected disease for a patient during a haematological cancer care spell. ANN ARBOR STAGE
with ha as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
-- Ann Arbor Stage: haematological staging based on location and extent of disease. Unnested because StagingSiteSpecific may contain multiple entries.
unnest(
[
[Record ->> '$.PrimaryPathway.StagingSiteSpecific.StagingHaematological.StagingAnnArbor.AnnArborStage.@code'],
Record ->> '$.PrimaryPathway.StagingSiteSpecific[*].StagingHaematological.StagingAnnArbor.AnnArborStage.@code'
],
recursive := true
) as AnnArborStage
from omop_staging.cosd_staging_901
where type = 'HA'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
AnnArborStage
from ha
where AnnArborStage is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Ann Arbor Bulk Disease Indication Code
Source column AnnArborBulk. ANN ARBOR BULKY DISEASE INDICATION CODE
| AnnArborBulk | measurement_concept_id | notes |
|---|---|---|
| X | 1633986 | Bulky disease present |
| 0 | 0 | No bulky disease present |
AnnArborBulkIndicates the Ann Arbor Staging System stage designation based on the presence of bulky disease during a haematological cancer care spell. ANN ARBOR BULKY DISEASE INDICATION CODE
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
-- Ann Arbor Bulky Disease: indicates presence of bulky disease. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.PrimaryPathway.AnnArborExtensions.AnnArborBulk.@code' as AnnArborBulk
from omop_staging.cosd_staging_901
where type = 'HA'
and AnnArborBulk is not null;
Comment or raise an issue for this mapping.
COSD V9 HA Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 HA Measurement White Blood Cell Count Highest Pretreatment
- Constant value set to
4298431. White blood cell count
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
select distinct
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
-- Tumour Laterality: side of body for tumour. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'HA'
and TumourLaterality is not null;
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteThe site of the metastatic disease at PATIENT DIAGNOSIS during a Cancer Care Spell. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
-- Metastatic Site at primary diagnosis. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreDiagnosis.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'HA'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Non Primary Pathway Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteThe site of the metastatic disease at PATIENT DIAGNOSIS during a Cancer Care Spell (non-primary pathway). METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
-- Metastatic Site from non-primary cancer pathway. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'HA'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Lymphocyte Count
- Constant value set to
4254663. Lymphocyte Count
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Lactate Dehydrogenase Level
- Constant value set to
4012918. Lactate dehydrogenase [Enzyme] in Blood
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Haemoglobin Concentration
- Constant value set to
3000963. Hemoglobin [Mass/volume] in Blood
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Grade Of Differentiation
Source column DiagnosisGradeOfDifferentiation. Lookup GradeDifferentiation concepts.
| DiagnosisGradeOfDifferentiation | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
DiagnosisGradeOfDifferentiationThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS during a Cancer Care Spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select distinct
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
-- Grade of Differentiation: definitive grade of tumour at diagnosis. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as DiagnosisGradeOfDifferentiation
from omop_staging.cosd_staging_81
where type = 'HA'
and DiagnosisGradeOfDifferentiation is not null;
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Final Pre Treatment Tcategory
Source column FinalPreTreatmentTCategory. Lookup TCategory concepts.
| FinalPreTreatmentTCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
FinalPreTreatmentTCategoryIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with ha as (
select distinct
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as FinalPreTreatmentTNMStageGroupingDate,
-- T Category: TNM T component of the final pretreatment staging. Will be mapped to a measurement concept in a later ETL step.
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreStaging.FinalPreTreatmentTCategory' as FinalPreTreatmentTCategory
from omop_staging.cosd_staging_81
where type = 'HA'
)
select distinct
NhsNumber,
coalesce(FinalPreTreatmentTNMStageGroupingDate, ClinicalDateCancerDiagnosis) as MeasurementDate,
FinalPreTreatmentTCategory
from ha
where FinalPreTreatmentTCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Final Pre Treatment Ncategory
Source column FinalPreTreatmentNCategory. Lookup NCategory concepts.
| FinalPreTreatmentNCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
FinalPreTreatmentNCategoryIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with ha as (
select distinct
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as FinalPreTreatmentTNMStageGroupingDate,
-- N Category: TNM N component of the final pretreatment staging. Will be mapped to a measurement concept in a later ETL step.
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreStaging.FinalPreTreatmentNCategory' as FinalPreTreatmentNCategory
from omop_staging.cosd_staging_81
where type = 'HA'
)
select distinct
NhsNumber,
coalesce(FinalPreTreatmentTNMStageGroupingDate, ClinicalDateCancerDiagnosis) as MeasurementDate,
FinalPreTreatmentNCategory
from ha
where FinalPreTreatmentNCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Final Pre Treatment Mcategory
Source column FinalPreTreatmentMCategory. Lookup concepts.
| FinalPreTreatmentMCategory | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
FinalPreTreatmentMCategoryIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with ha as (
select distinct
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as FinalPreTreatmentTNMStageGroupingDate,
-- M Category: TNM M component of the final pretreatment staging. Will be mapped to a measurement concept in a later ETL step.
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreStaging.FinalPreTreatmentMCategory' as FinalPreTreatmentMCategory
from omop_staging.cosd_staging_81
where type = 'HA'
)
select distinct
NhsNumber,
coalesce(FinalPreTreatmentTNMStageGroupingDate, ClinicalDateCancerDiagnosis) as MeasurementDate,
FinalPreTreatmentMCategory
from ha
where FinalPreTreatmentMCategory is not null;
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Beta 2 Microglobulin Level
- Constant value set to
4216186. Beta-2-microglobulin measurement
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Ann Arbor Stage
Source column AnnArborStage. ANN ARBOR STAGE
| AnnArborStage | measurement_concept_id | notes |
|---|---|---|
| 1 | 1633291 | Stage I: one region of lymph nodes, or spleen or thymus or Waldeyer’s ring enlarged |
| 2 | 1634430 | Stage II: 2 regions of lymph nodes enlarged on the same side of the diaphragm |
| 3 | 1635140 | Stage III: lymph nodes enlarged on both sides of the diaphragm |
| 4 | 1633464 | Stage IV: disease outside lymph nodes (e.g. liver, bone marrow), excluding “E” |
AnnArborStageAnn Arbor Staging System stage based on the location and extent of detected disease for a patient during a haematological cancer care spell. ANN ARBOR STAGE
select distinct
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
-- Ann Arbor Stage: haematological staging based on location and extent of disease. Will be mapped to a measurement value concept in a later ETL step.
Record ->> '$.Haematological.HaematologicalCore.HaematologicalCoreStaging.HaematologyStagingAnnArbor.AnnArborStage.@code' as AnnArborStage
from omop_staging.cosd_staging_81
where type = 'HA'
and AnnArborStage is not null;
Comment or raise an issue for this mapping.
COSD V8 HA Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 GY Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'GY'
and TumourLaterality in ('L', 'R', 'M', 'B');
Comment or raise an issue for this mapping.
COSD V9 GY Measurement Tnm Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'GY'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 GY Measurement Tnm Stage Grouping Final Pretreatment
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'GY'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 GY Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'GY'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 GY Measurement T Category Final Pretreatment
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'GY'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 GY Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with gy as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'GY'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from gy
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 GY Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with gy as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'GY'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from gy
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 GY Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with gy as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'GY'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from gy
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 GY Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'GY'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 GY Measurement N Category Final Pretreatment
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'GY'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 GY Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'GY'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 GY Measurement M Category Final Pretreatment
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'GY'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 GY Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from gy
where TumourLaterality is not null
and TumourLaterality in ('L', 'R', 'M', 'B');
Comment or raise an issue for this mapping.
COSD V8 GY Measurement TNM Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingIntegrated
from gy
where TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V8 GY Measurement TNM Stage Grouping Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPretreatment,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingFinalPretreatment
from gy
where TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Tcategory Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.IntegratedStageTCategory' as TCategoryIntegratedStage,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryIntegratedStage
from gy
where TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Tcategory Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.FinalPreTreatmentTCategory' as TcategoryFinalPreTreatment,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TcategoryFinalPreTreatment
from gy
where TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreDiagnosis.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'GY'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Non Primary Pathway Metastatic Site
Source column MetastaticSite. METASTATIC SITE (AT DIAGNOSIS)
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 0 | Bone (Retired 1 July 2012) |
| 02 | 0 | Brain |
| 03 | 0 | Liver |
| 04 | 0 | Lung |
| 05 | 0 | Other metastatic site (Retired 1 July 2012) |
| 06 | 0 | Multiple metastatic sites (Retired 1 April 2018) |
| 07 | 0 | Unknown metastatic site |
| 08 | 0 | Skin |
| 09 | 0 | Distant Lymph Nodes |
| 10 | 0 | Bone (excluding Bone Marrow) |
| 11 | 0 | Bone marrow |
| 12 | 0 | Regional Lymph Nodes |
| 98 | 0 | Other metastatic site (not listed) |
| 99 | 0 | Other metastatic site (Retired 1 April 2018) |
| 97 | 0 | Not Applicable (Disease not spread) |
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'GY'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Ncategory Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.IntegratedStageNCategory' as NCategoryIntegratedStage,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryIntegratedStage
from gy
where NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Ncategory Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.FinalPreTreatmentNCategory' as NcategoryFinalPreTreatment,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NcategoryFinalPreTreatment
from gy
where NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Mcategory Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.IntegratedStageMCategory' as MCategoryIntegratedStage,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryIntegratedStage
from gy
where MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Mcategory Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with gy as (
select
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.FinalPreTreatmentMCategory' as McategoryFinalPreTreatment,
Record ->> '$.Gynaecological.GynaecologicalCore.GynaecologicalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'GY'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
McategoryFinalPreTreatment
from gy
where McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 GY Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 CT Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
-- Query to extract Tumour Laterality for CT cancer area from COSD v9.
-- TumourLaterality is a categorical code (L, R, M, B) identifying the side of the body for the tumour.
-- Only valid laterality codes (L, R, M, B) are included; codes 8 (Not Applicable) and 9 (Not Known) are excluded.
-- TumourLaterality will be mapped to a measurement value concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'CT'
and TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V9 CT Measurement TNM Stage Grouping Integrated
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
-- Query to extract TNM Stage Grouping (Integrated) for CT cancer area from COSD v9.
-- The TNM stage grouping classifies the combination of T, N, and M categories into stage groupings after treatment and/or after all available evidence.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TnmStageGroupingIntegrated will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'CT'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 CT Measurement TNM Stage Grouping Final Pretreatment
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
-- Query to extract TNM Stage Grouping (Final Pretreatment) for CT cancer area from COSD v9.
-- The TNM stage grouping classifies the combination of T, N, and M categories into stage groupings before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TnmStageGroupingFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CT'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 CT Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
-- Query to extract T Category (Integrated Stage) for CT cancer area from COSD v9.
-- The T category classifies the size and extent of the primary tumour after treatment and/or after all available evidence.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TCategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'CT'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 CT Measurement T Category Final Pretreatment
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
-- Query to extract T Category (Final Pretreatment) for CT cancer area from COSD v9.
-- The T category classifies the size and extent of the primary tumour before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TCategoryFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CT'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v9 CT Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Primary Pathway/Diagnosis) for CT cancer area from COSD v9.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with CT as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CT'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from CT
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v9 CT Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Non-Primary Pathway/Recurrence) for CT cancer area from COSD v9.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with CT as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CT'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from CT
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v9 CT Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Non-Primary Pathway/Progression) for CT cancer area from COSD v9.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with CT as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CT'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from CT
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v9 CT Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
-- Query to extract N Category (Integrated Stage) for CT cancer area from COSD v9.
-- The N category classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- NCategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'CT'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v9 CT Measurement N Category Final Pretreatment
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
-- Query to extract N Category (Final Pretreatment) for CT cancer area from COSD v9.
-- The N category classifies the absence or presence and extent of regional lymph node metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- NCategoryFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CT'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v9 CT Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
-- Query to extract M Category (Integrated Stage) for CT cancer area from COSD v9.
-- The M category classifies the absence or presence of distant metastases after treatment and/or after all available evidence.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- MCategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'CT'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v9 CT Measurement M Category Final Pretreatment
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
-- Query to extract M Category (Final Pretreatment) for CT cancer area from COSD v9.
-- The M category classifies the absence or presence of distant metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- MCategoryFinalPretreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CT'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v9 CT Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
-- Query to extract Grade of Differentiation (At Diagnosis) for CT cancer area from COSD v9.
-- GradeOfDifferentiationAtDiagnosis is a categorical code (G1-G4, GX) describing tumour differentiation.
-- GradeOfDifferentiationAtDiagnosis will be mapped to a measurement value concept in OMOP in a later step.
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'CT'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD v9 CT Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
-- Query to extract Tumour Laterality for CT (CTYA) cancer area from COSD v8.
-- TumourLaterality is a categorical code (L, R, M, B) identifying the side of the body for the tumour.
-- MeasurementDate uses primary diagnosis date, falling back to non-primary diagnosis date.
-- TumourLaterality will be mapped to a measurement value concept in OMOP in a later step.
-- Only valid laterality codes (L, R, M, B) are included; codes 8 (Not Applicable) and 9 (Not Known) are excluded.
with CT as (
select
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'CT'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from CT
where TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V8 CT Measurement TNM Stage Grouping Integrated
Source column TNMStageGroupingIntegrated. Lookup TNMCategory concepts.
| TNMStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TNMStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
-- Query to extract TNM Stage Grouping (Integrated) for CT (CTYA) cancer area from COSD v8.
-- The TNM stage grouping classifies the combination of T, N, and M categories into stage groupings after treatment and/or after all available evidence.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TNMStageGroupingIntegrated will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.IntegratedStageTNMStageGroupingDate',
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.IntegratedStageTNMStageGrouping' as TNMStageGroupingIntegrated
from omop_staging.cosd_staging_81
where type = 'CT'
and TNMStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement TNM Stage Grouping Final Pre Treatment Stage
Source column TNMStageGroupingFinalPreTreatment. Lookup TNMCategory concepts.
| TNMStageGroupingFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TNMStageGroupingFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
-- Query to extract TNM Stage Grouping (Final Pretreatment) for CT (CTYA) cancer area from COSD v8.
-- The TNM stage grouping classifies the combination of T, N, and M categories into stage groupings before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TNMStageGroupingFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.FinalPreTreatmentTNMStageGroupingDate',
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.FinalPreTreatmentTNMStageGrouping' as TNMStageGroupingFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'CT'
and TNMStageGroupingFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Tcategory Integrated Stage
Source column TcategoryIntegratedStage. Lookup TCategory concepts.
| TcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
-- Query to extract T Category (Integrated Stage) for CT (CTYA) cancer area from COSD v8.
-- The T category classifies the size and extent of the primary tumour after treatment and/or after all available evidence.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- TcategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.IntegratedStageTNMStageGroupingDate',
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.IntegratedStageTCategory' as TcategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'CT'
and TcategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Tcategory Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
-- Query to extract T Category (Final Pretreatment) for CT (CTYA) cancer area from COSD v8.
-- The T category classifies the size and extent of the primary tumour before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- TcategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.FinalPreTreatmentTNMStageGroupingDate',
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.FinalPreTreatmentTCategory' as TcategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'CT'
and TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
-- Query to extract Metastatic Site (Primary Pathway/Diagnosis) for CT (CTYA) cancer area from COSD v8.
-- MetastaticSite is a repeating field so unnest is used to normalise each site into its own row.
-- Code 97 (Not Applicable - Disease not spread) is excluded.
-- MetastaticSite will be mapped to a measurement value concept in OMOP in a later step.
with CT as (
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
unnest(
[
[ Record ->> '$.CTYA.CTYACore.CTYACoreDiagnosis.MetastaticSite.@code' ],
Record ->> '$.CTYA.CTYACore.CTYACoreDiagnosis.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'CT'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from CT
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Ncategory Integrated Stage
Source column NcategoryIntegratedStage. Lookup NCategory concepts.
| NcategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
-- Query to extract N Category (Integrated Stage) for CT (CTYA) cancer area from COSD v8.
-- The N category classifies the absence or presence and extent of regional lymph node metastases after treatment and/or after all available evidence.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- NcategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.IntegratedStageTNMStageGroupingDate',
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.IntegratedStageNCategory' as NcategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'CT'
and NcategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Ncategory Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
-- Query to extract N Category (Final Pretreatment) for CT (CTYA) cancer area from COSD v8.
-- The N category classifies the absence or presence and extent of regional lymph node metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- NcategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.FinalPreTreatmentTNMStageGroupingDate',
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.FinalPreTreatmentNCategory' as NcategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'CT'
and NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Mcategory Integrated Stage
Source column McategoryIntegratedStage. Lookup concepts.
| McategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
-- Query to extract M Category (Integrated Stage) for CT (CTYA) cancer area from COSD v8.
-- The M category classifies the absence or presence of distant metastases after treatment and/or after all available evidence.
-- MeasurementDate falls back to diagnosis date if the integrated staging date is unavailable.
-- McategoryIntegratedStage will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.IntegratedStageTNMStageGroupingDate',
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.IntegratedStageMCategory' as McategoryIntegratedStage
from omop_staging.cosd_staging_81
where type = 'CT'
and McategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Mcategory Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
-- Query to extract M Category (Final Pretreatment) for CT (CTYA) cancer area from COSD v8.
-- The M category classifies the absence or presence of distant metastases before treatment.
-- MeasurementDate falls back to diagnosis date if the staging date is unavailable.
-- McategoryFinalPreTreatment will be mapped to a measurement concept in OMOP in a later step.
select distinct
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.FinalPreTreatmentTNMStageGroupingDate',
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis'
) as MeasurementDate,
Record ->> '$.CTYA.CTYACore.CTYACoreStaging.FinalPreTreatmentMCategory' as McategoryFinalPreTreatment
from omop_staging.cosd_staging_81
where type = 'CT'
and McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Lactate Dehydrogenase Level Peak At Diagnosis
- Constant value set to
4012918. Lactate dehydrogenase measurement
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Lactate Dehydrogenase Level Normal Upper Limit
- Constant value set to
4012918. Lactate dehydrogenase measurement
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
-- Query to extract Grade of Differentiation (At Diagnosis) for CT (CTYA) cancer area from COSD v8.
-- GradeOfDifferentiation is a categorical code (G1-G4, GX) describing tumour differentiation.
-- MeasurementDate uses primary diagnosis date, falling back to non-primary diagnosis date.
-- GradeOfDifferentiation will be mapped to a measurement value concept in OMOP in a later step.
with CT as (
select
Record ->> '$.CTYA.CTYACore.CTYACoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.CTYA.CTYACore.CTYACoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.CTYA.CTYACore.CTYACoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where type = 'CT'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from CT
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V8 CT Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD v9 CR Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'CR'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement TNM Category Final Pretreatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CR'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Tcategory Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'CR'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Tcategory Final Pretreatment Stage
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CR'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with cr as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CR'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from cr
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Non Primary Pathway Recurrence Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with cr as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CR'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from cr
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Non Primary Pathway Progression Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with cr as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CR'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from cr
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Ncategory Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'CR'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Ncategory Final Pretreatment Stage
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CR'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Mcategory Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'CR'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Mcategory Final Pretreatment Stage
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CR'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'CR'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD v9 CR Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from cr
where TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V8 CR Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated,
Record ->> '$.Core.CoreCore.CoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingIntegrated
from cr
where TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement TNM Category Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPretreatment,
Record ->> '$.Core.CoreCore.CoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingFinalPretreatment
from cr
where TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Tcategory Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreStaging.IntegratedStageTCategory' as TCategoryIntegratedStage,
Record ->> '$.Core.CoreCore.CoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryIntegratedStage
from cr
where TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Tcategory Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreStaging.FinalPreTreatmentTCategory' as TcategoryFinalPreTreatment,
Record ->> '$.Core.CoreCore.CoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TcategoryFinalPreTreatment
from cr
where TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
unnest(
[
[Record ->> '$.Core.CoreCore.CoreDiagnosis.MetastaticSite.@code'],
Record ->> '$.Core.CoreCore.CoreDiagnosis.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from cr
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Non Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Core.CoreCore.CoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'CR'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Ncategory Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreStaging.IntegratedStageNCategory' as NCategoryIntegratedStage,
Record ->> '$.Core.CoreCore.CoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryIntegratedStage
from cr
where NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Ncategory Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreStaging.FinalPreTreatmentNCategory' as NcategoryFinalPreTreatment,
Record ->> '$.Core.CoreCore.CoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NcategoryFinalPreTreatment
from cr
where NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Mcategory Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreStaging.IntegratedStageMCategory' as MCategoryIntegratedStage,
Record ->> '$.Core.CoreCore.CoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryIntegratedStage
from cr
where MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Mcategory Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreStaging.FinalPreTreatmentMCategory' as McategoryFinalPreTreatment,
Record ->> '$.Core.CoreCore.CoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
McategoryFinalPreTreatment
from cr
where McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with cr as (
select
Record ->> '$.Core.CoreCore.CoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Core.CoreCore.CoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Core.CoreCore.CoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where type = 'CR'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from cr
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V8 CR Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'CO'
and (Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code') in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V9 Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'CO'
and TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 Measurement TNM Category Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'CO'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'CO'
and TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 Measurement T Category Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'CO'
and TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 Measurement Synchronous Tumour Indicator
Source column SynchronousTumourIndicator. Lookup SynchronousTumour concepts.
| SynchronousTumourIndicator | measurement_concept_id | notes |
|---|---|---|
| 01 | 36768217 | Cecum |
| 02 | 36770601 | Appendix |
| 03 | 36768852 | Ascending Colon |
| 04 | 36768109 | Hepatic Flexure |
| 05 | 36770627 | Transverse Colon |
| 06 | 36769645 | Splenic Flexure |
| 07 | 36769819 | Descending Colon |
| 08 | 36770395 | Sigmoid Colon |
| 09 | 36768690 | Rectosigmoid |
| 10 | 36769244 | Rectum |
Notes
- OMOP Cancer Modifier Measurements
SynchronousTumourIndicatorAn indication of whether there is a presence of synchronous tumours at a tumour site during a Cancer Care Spell. SYNCHRONOUS TUMOUR INDICATOR
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.DiagnosisColorectal.SynchronousTumourIndicator.@code' as SynchronousTumourIndicator
from omop_staging.cosd_staging_901
where type = 'CO'
and SynchronousTumourIndicator is not null;
Comment or raise an issue for this mapping.
COSD V9 Measurement Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS METASTATIC SITE (AT DIAGNOSIS)
with CO as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CO'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from CO
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 Measurement Non Primary Pathway Recurrence Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS METASTATIC SITE (AT DIAGNOSIS)
with CO as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CO'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from CO
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 Measurement Non Primary Pathway Progression Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS METASTATIC SITE (AT DIAGNOSIS)
with CO as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'CO'
)
select
distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from CO
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'CO'
and NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 Measurement N Category Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'CO'
and NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where Type = 'CO'
and MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 Measurement M Category Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select
distinct
record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as McategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'CO'
and McategoryFinalPreTreatment is not null
Comment or raise an issue for this mapping.
COSD V9 Measurement Grade of Differentiation (At Diagnosis)
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis,
from omop_staging.cosd_staging_901
where Type = 'CO'
and GradeOfDifferentiationAtDiagnosis is not null
Comment or raise an issue for this mapping.
CosdV9MeasurementAdultComorbidityEvaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
with co as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from co
where TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V8 Measurement Tumour Height Above Anal Verge
- Constant value set to
3029142.Distance from anal verge
Comment or raise an issue for this mapping.
COSD V8 Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings after treatment and/or after all available evidence has been collected during a Cancer Care Spell. TNM STAGE GROUPING (INTEGRATED)
with co as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.IntegratedStageTNMStageGrouping' as TnmStageGroupingIntegrated,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingIntegrated
from co
where TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement TNM Category Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
with co as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPretreatment,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingFinalPretreatment
from co
where TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour after treatment and/or after all available evidence has been collected during a Cancer Care Spell. T CATEGORY (INTEGRATED STAGE)
with co as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.IntegratedStageTCategory' as TCategoryIntegratedStage,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryIntegratedStage
from co
where TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement T Category Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with co as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.FinalPreTreatmentTCategory' as TcategoryFinalPreTreatment,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TcategoryFinalPreTreatment
from co
where TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement Synchronous Tumour Indicator
Source column SynchronousTumourIndicator. Lookup SynchronousTumour concepts.
| SynchronousTumourIndicator | measurement_concept_id | notes |
|---|---|---|
| 01 | 36768217 | Cecum |
| 02 | 36770601 | Appendix |
| 03 | 36768852 | Ascending Colon |
| 04 | 36768109 | Hepatic Flexure |
| 05 | 36770627 | Transverse Colon |
| 06 | 36769645 | Splenic Flexure |
| 07 | 36769819 | Descending Colon |
| 08 | 36770395 | Sigmoid Colon |
| 09 | 36768690 | Rectosigmoid |
| 10 | 36769244 | Rectum |
Notes
- OMOP Cancer Modifier Measurements
SynchronousTumourIndicatorAn indication of whether there is a presence of synchronous tumours at a tumour site during a Cancer Care Spell. SYNCHRONOUS TUMOUR INDICATOR
with co as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreDiagnosis.ColorectalDiagnosis.SynchronousTumourColonLocation.@code' as SynchronousTumourIndicator
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
SynchronousTumourIndicator
from co
where SynchronousTumourIndicator is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS METASTATIC SITE (AT DIAGNOSIS)
with co as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
unnest(
[
[
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreDiagnosis.MetastaticSite.@code'
],
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreDiagnosis.MetastaticSite[*].@code'
], recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from co
where MetastaticSite is not null
and MetastaticSite != 97;
Comment or raise an issue for this mapping.
COSD V8 Measurement Non Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS METASTATIC SITE (AT DIAGNOSIS)
with co as (
select distinct
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' ],
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreNonPrimaryCancerPathwayRoute.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'CO'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from co
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with CO as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.IntegratedStageNCategory' as NCategoryIntegratedStage,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryIntegratedStage
from CO
where NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement N Category Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with CO as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.FinalPreTreatmentNCategory' as NcategoryFinalPreTreatment,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NcategoryFinalPreTreatment
from CO
where NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with CO as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.IntegratedStageMCategory' as MCategoryIntegratedStage,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryIntegratedStage
from CO
where MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement M Category Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with CO as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.FinalPreTreatmentMCategory' as McategoryFinalPreTreatment,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
McategoryFinalPreTreatment
from CO
where McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 Measurement Grade of Differentiation (At Diagnosis)
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with CO as (
select
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Colorectal.ColorectalCore.ColorectalCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where Type = 'CO'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from CO
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
CosdV8MeasurementAdultComorbidityEvaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityThe laterality (side) of the tumour - Left (L), Right (R), Midline (M), or Bilateral (B). TUMOUR LATERALITY
select
distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'BR'
and (Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code') in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement TNM Category Integrated Stage
Source column TnmStageGroupingIntegrated. Lookup TNMCategory concepts.
| TnmStageGroupingIntegrated | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingIntegratedThe TNM stage grouping (combined T, N, M categories) of the integrated stage. TNM STAGE GROUPING (INTEGRATED STAGE)
with BR as (
select
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingIntegrated' as TnmStageGroupingIntegrated
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
MeasurementDate,
TnmStageGroupingIntegrated
from BR
where TnmStageGroupingIntegrated is not null;
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement TNM Category Final Pre-Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentThe TNM stage grouping (combined T, N, M categories) of the final pre-treatment stage. TNM STAGE GROUPING (FINAL PRETREATMENT)
with BR as (
select
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
MeasurementDate,
TnmStageGroupingFinalPretreatment
from BR
where TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageThe T category (tumour size) of the integrated stage in TNM staging. T CATEGORY (INTEGRATED STAGE)
with BR as (
select
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryIntegratedStage' as TCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
MeasurementDate,
TCategoryIntegratedStage
from BR
where TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement T Category Final Pre-Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentThe T category (tumour size) of the final pre-treatment stage in TNM staging. T CATEGORY (FINAL PRETREATMENT)
with BR as (
select
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
MeasurementDate,
TcategoryFinalPreTreatment
from BR
where TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS METASTATIC SITE (AT DIAGNOSIS)
with BR as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' ],
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
MetastaticSite
from BR
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement Non Primary Pathway Recurrence Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at recurrence diagnosis METASTATIC SITE (AT DIAGNOSIS)
with BR as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from BR
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement Non Primary Pathway Progression Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at progression diagnosis METASTATIC SITE (AT DIAGNOSIS)
with BR as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' ],
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression[*].MetastaticSite.@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from BR
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of regional lymph node metastasis after all information from treatment is available during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with BR as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryIntegratedStage' as NCategoryIntegratedStage
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
MeasurementDate,
NCategoryIntegratedStage
from BR
where NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement N Category Final Pre-Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of regional lymph node metastasis before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRE-TREATMENT STAGE)
with BR as (
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NcategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
MeasurementDate,
NcategoryFinalPreTreatment
from BR
where NcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after treatment and/or after all available evidence has been collected during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with BR as (
select
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateIntegratedStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryIntegratedStage' as MCategoryIntegratedStage
from omop_staging.cosd_staging_901
where Type = 'BR'
)
select distinct
NhsNumber,
MeasurementDate,
MCategoryIntegratedStage
from BR
where MCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement M Category Final Pre-Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRE-TREATMENT STAGE)
with BR as (
select
record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as McategoryFinalPreTreatment
from omop_staging.cosd_staging_901
where type = 'BR'
)
select distinct
NhsNumber,
MeasurementDate,
McategoryFinalPreTreatment
from BR
where McategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 Breast Measurement Grade of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe grade of differentiation of the cancer at diagnosis, indicating how much the cancer cells differ from normal cells. GRADE OF DIFFERENTIATION AT DIAGNOSIS
with BR as (
select
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where Type = 'BR'
)
select distinct
NhsNumber,
DateOfPrimaryDiagnosisClinicallyAgreed,
GradeOfDifferentiationAtDiagnosis
from BR
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
CosdV9BreastMeasurementAdultComorbidityEvaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityThe laterality of the tumour in relation to the midline of the body (Left, Right, Midline, Bilateral). TUMOUR LATERALITY
with br as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from br
where TumourLaterality is not null
and TumourLaterality in ('L','R','M','B');
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement TNM Category Final Pre Treatment Stage
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
with br as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.FinalPreTreatmentTNMStageGrouping' as TnmStageGroupingFinalPretreatment,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TnmStageGroupingFinalPretreatment
from br
where TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement T Category Integrated Stage
Source column TCategoryIntegratedStage. Lookup TCategory concepts.
| TCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the extent of the primary tumour at a given point in a Cancer Care Spell. T CATEGORY (INTEGRATED)
with br as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.IntegratedStageTCategory' as TCategoryIntegratedStage,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NhsNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TCategoryIntegratedStage
from br
where TCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement T Category Final Pre Treatment Stage
Source column TcategoryFinalPreTreatment. Lookup TCategory concepts.
| TcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the extent of the primary tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
with br as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.FinalPreTreatmentTCategory' as TcategoryFinalPreTreatment,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NhsNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
TcategoryFinalPreTreatment
from br
where TcategoryFinalPreTreatment is not null;
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteThe site of metastatic cancer on the Primary Cancer Pathway. METASTATIC SITE
with br as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
unnest(
[
[
Record ->> '$.Breast.BreastCore.BreastCoreDiagnosis.MetastaticSite.@code'
],
Record ->> '$.Breast.BreastCore.BreastCoreDiagnosis.MetastaticSite[*].@code'
], recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NhsNumber,
ClinicalDateCancerDiagnosis,
MetastaticSite
from br
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement Non Primary Pathway Metastasis
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteThe site of metastatic cancer on the Non-Primary Cancer Pathway. METASTATIC SITE
with br as (
select distinct
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
unnest(
[
[ Record ->> '$.Breast.BreastCore.BreastCoreNonPrimaryCancerPathwayRoute.MetastaticSite.@code' ],
Record ->> '$.Breast.BreastCore.BreastCoreNonPrimaryCancerPathwayRoute.MetastaticSite[*].@code'
],
recursive := true
) as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'BR'
)
select distinct
NhsNumber,
DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
MetastaticSite
from br
where MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement N Category Integrated Stage
Source column NCategoryIntegratedStage. Lookup NCategory concepts.
| NCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the presence or absence of regional lymph node metastases after all information from treatment is available during a Cancer Care Spell. N CATEGORY (INTEGRATED STAGE)
with BR as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.IntegratedStageNCategory' as NCategoryIntegratedStage,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NHSNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NCategoryIntegratedStage
from BR
where NCategoryIntegratedStage is not null;
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement N Category Final Pre Treatment Stage
Source column NcategoryFinalPreTreatment. Lookup NCategory concepts.
| NcategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NcategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the presence or absence of regional lymph node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
with BR as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.FinalPreTreatmentNCategory' as NcategoryFinalPreTreatment,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NHSNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
NcategoryFinalPreTreatment
from BR
where NcategoryFinalPreTreatment is not null
and NHSNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement M Category Integrated Stage
Source column MCategoryIntegratedStage. Lookup concepts.
| MCategoryIntegratedStage | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryIntegratedStageIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases after all information from treatment is available during a Cancer Care Spell. M CATEGORY (INTEGRATED STAGE)
with BR as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.IntegratedStageMCategory' as MCategoryIntegratedStage,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.IntegratedStageTNMStageGroupingDate' as StageDateIntegratedStage
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NHSNumber,
coalesce(StageDateIntegratedStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
MCategoryIntegratedStage
from BR
where MCategoryIntegratedStage is not null
and NHSNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement M Category Final Pre Treatment Stage
Source column McategoryFinalPreTreatment. Lookup concepts.
| McategoryFinalPreTreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
McategoryFinalPreTreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
with BR as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.FinalPreTreatmentMCategory' as McategoryFinalPreTreatment,
Record ->> '$.Breast.BreastCore.BreastCoreStaging.FinalPreTreatmentTNMStageGroupingDate' as StageDateFinalPretreatmentStage
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NHSNumber,
coalesce(StageDateFinalPretreatmentStage, ClinicalDateCancerDiagnosis) as MeasurementDate,
McategoryFinalPreTreatment
from BR
where McategoryFinalPreTreatment is not null
and NHSNumber is not null;
Comment or raise an issue for this mapping.
COSD V8 Breast Measurement Grade of Differentiation (At Diagnosis)
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisThe definitive grade of the Tumour at the time of PATIENT DIAGNOSIS. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with BR as (
select
Record ->> '$.Breast.BreastCore.BreastCoreLinkagePatientId.NHSNumber.@extension' as NHSNumber,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.Breast.BreastCore.BreastCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.Breast.BreastCore.BreastCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where Type = 'BR'
)
select distinct
NHSNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from BR
where GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
CosdV8BreastMeasurementAdultComorbidityEvaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27
Comment or raise an issue for this mapping.
COSD V9 BA Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_901
where type = 'BA'
and TumourLaterality in ('L', 'R', 'M', 'B');
Comment or raise an issue for this mapping.
COSD V9 BA Measurement Tnm Stage Grouping Final Pretreatment
Source column TnmStageGroupingFinalPretreatment. Lookup TNMCategory concepts.
| TnmStageGroupingFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 1 | 1635812 | IRS-modified TNM stage 1 |
| I | 1635812 | IRS-modified TNM stage 1 |
| 1a | 1635812 | IRS-modified TNM stage 1 |
| IA | 1635812 | IRS-modified TNM stage 1 |
| 1a1 | 1633843 | Stage 1A1 |
| IA1 | 1633843 | Stage 1A1 |
| 1a2 | 1634275 | Stage 1A2 |
| IA2 | 1634275 | Stage 1A2 |
| 1a3 | 1633775 | Stage 1A3 |
| IA3 | 1633775 | Stage 1A3 |
| 1b | 1635812 | IRS-modified TNM stage 1 |
| IB | 1635812 | IRS-modified TNM stage 1 |
| 2 | 1635007 | IRS-modified TNM stage 2 |
| II | 1635007 | IRS-modified TNM stage 2 |
| 2a | 1635007 | IRS-modified TNM stage 2 |
| IIA | 1635007 | IRS-modified TNM stage 2 |
| 2b | 1635007 | IRS-modified TNM stage 2 |
| IIB | 1635007 | IRS-modified TNM stage 2 |
| 2c | 1635007 | IRS-modified TNM stage 2 |
| IIC | 1635007 | IRS-modified TNM stage 2 |
| 3 | 1633995 | IRS-modified TNM stage 3 |
| III | 1633995 | IRS-modified TNM stage 3 |
| 3a | 1633995 | IRS-modified TNM stage 3 |
| IIIA | 1633995 | IRS-modified TNM stage 3 |
| 3b | 1633995 | IRS-modified TNM stage 3 |
| IIIB | 1633995 | IRS-modified TNM stage 3 |
| 3c | 1633995 | IRS-modified TNM stage 3 |
| IIIC | 1633995 | IRS-modified TNM stage 3 |
| 4 | 1634737 | IRS-modified TNM stage 4 |
| IV | 1634737 | IRS-modified TNM stage 4 |
| 4a | 1634737 | IRS-modified TNM stage 4 |
| IVA | 1634737 | IRS-modified TNM stage 4 |
| 4b | 1634737 | IRS-modified TNM stage 4 |
| IVB | 1634737 | IRS-modified TNM stage 4 |
| 4c | 1634737 | IRS-modified TNM stage 4 |
| IVC | 1634737 | IRS-modified TNM stage 4 |
Notes
-
TnmStageGroupingFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the combination of Tumour, node and metastases into stage groupings before treatment during a Cancer Care Spell. TNM STAGE GROUPING (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TnmStageGroupingFinalPretreatment' as TnmStageGroupingFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'BA'
and TnmStageGroupingFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 BA Measurement T Category Final Pretreatment
Source column TCategoryFinalPretreatment. Lookup TCategory concepts.
| TCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1634213 | AJCC/UICC T0 Category |
| 1 | 1635564 | AJCC/UICC T1 Category |
| 1a | 1633880 | AJCC/UICC T1a Category |
| 1b | 1633921 | AJCC/UICC T1b Category |
| 1c | 1633529 | AJCC/UICC T1c Category |
| 1d | 1634100 | AJCC/UICC T1d Category |
| 2 | 1635562 | AJCC/UICC T2 Category |
| 2a | 1635327 | AJCC/UICC T2a Category |
| 2b | 1633593 | AJCC/UICC T2b Category |
| 2c | 1635270 | AJCC/UICC T2c Category |
| 2d | 1633678 | AJCC/UICC T2d Category |
| 3 | 1634376 | AJCC/UICC T3 Category |
| 3a | 1633771 | AJCC/UICC T3a Category |
| 3b | 1634980 | AJCC/UICC T3b Category |
| 3c | 1633360 | AJCC/UICC T3c Category |
| 3d | 1635625 | AJCC/UICC T3d Category |
| 3e | 1634730 | AJCC/UICC T3e Category |
| 4 | 1634654 | AJCC/UICC T4 Category |
| 4a | 1635222 | AJCC/UICC T4a Category |
| 4b | 1634436 | AJCC/UICC T4b Category |
| 4c | 1635526 | AJCC/UICC T4c Category |
| 4d | 1633909 | AJCC/UICC T4d Category |
| 4e | 1634193 | AJCC/UICC T4e Category |
| X | 1635682 | AJCC/UICC TX Category |
Notes
-
TCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the size and extent of the primary Tumour before treatment during a Cancer Care Spell. T CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.TCategoryFinalPretreatment' as TCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'BA'
and TCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 BA Measurement Primary Pathway Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.MetastaticTypeAndSiteDiagnosis.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'BA'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 BA Measurement Non Primary Pathway Recurrence Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.NonPrimaryPathway.Recurrence.MetastaticTypeAndSiteRecurrence.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'BA'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 BA Measurement Non Primary Pathway Progression Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.NonPrimaryPathway.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.NonPrimaryPathway.Progression.MetastaticTypeAndSiteProgression.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_901
where type = 'BA'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V9 BA Measurement N Category Final Pretreatment
Source column NCategoryFinalPretreatment. Lookup NCategory concepts.
| NCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1633440 | AJCC/UICC N0 Category |
| 0a | 1633621 | AJCC/UICC N0a Category |
| 0b | 1635244 | AJCC/UICC N0b Category |
| 1 | 1634434 | AJCC/UICC N1 Category |
| 1a | 1633735 | AJCC/UICC N1a Category |
| 1b | 1635130 | AJCC/UICC N1b Category |
| 1c | 1634620 | AJCC/UICC N1c Category |
| 2 | 1634119 | AJCC/UICC N2 Category |
| 2a | 1635644 | AJCC/UICC N2a Category |
| 2b | 1634134 | AJCC/UICC N2b Category |
| 2c | 1634080 | AJCC/UICC N2c Category |
| 3 | 1635320 | AJCC/UICC N3 Category |
| 3a | 1635590 | AJCC/UICC N3a Category |
| 3b | 1633422 | AJCC/UICC N3b Category |
| 3c | 1634735 | AJCC/UICC N3c Category |
| 4 | 1635445 | AJCC/UICC N4 Category |
| X | 1633885 | AJCC/UICC NX Category |
Notes
-
NCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence and extent of regional Lymph Node metastases before treatment during a Cancer Care Spell. N CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.NCategoryFinalPretreatment' as NCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'BA'
and NCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 BA Measurement M Category Final Pretreatment
Source column MCategoryFinalPretreatment. Lookup concepts.
| MCategoryFinalPretreatment | measurement_concept_id | notes |
|---|---|---|
| 0 | 1635624 | AJCC/UICC M0 Category |
| 1 | 1635142 | AJCC/UICC M1 Category |
| 1a | 1635100 | AJCC/UICC M1a Category |
| 1b | 1634463 | AJCC/UICC M1b Category |
| 1c | 1635519 | AJCC/UICC M1c Category |
| 1d | 1634064 | AJCC/UICC M1d Category |
| X | 1633547 | AJCC/UICC MX Category |
Notes
-
MCategoryFinalPretreatmentIs the code, using a TNM CODING EDITION, which classifies the absence or presence of distant metastases before treatment during a Cancer Care Spell. M CATEGORY (FINAL PRETREATMENT)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
coalesce(
Record ->> '$.PrimaryPathway.Staging.StageDateFinalPretreatmentStage',
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed'
) as MeasurementDate,
Record ->> '$.PrimaryPathway.Staging.MCategoryFinalPretreatment' as MCategoryFinalPretreatment
from omop_staging.cosd_staging_901
where type = 'BA'
and MCategoryFinalPretreatment is not null;
Comment or raise an issue for this mapping.
COSD V9 BA Measurement Grade Of Differentiation At Diagnosis
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
select distinct
Record ->> '$.LinkagePatientId.NhsNumber.@extension' as NhsNumber,
Record ->> '$.PrimaryPathway.LinkageDiagnosticDetails.DateOfPrimaryDiagnosisClinicallyAgreed' as DateOfPrimaryDiagnosisClinicallyAgreed,
Record ->> '$.PrimaryPathway.Diagnosis.GradeOfDifferentiationAtDiagnosis.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_901
where type = 'BA'
and GradeOfDifferentiationAtDiagnosis is not null;
Comment or raise an issue for this mapping.
COSD V8 BA Measurement Tumour Laterality
Source column TumourLaterality. Lookup TumourLaterality concepts.
| TumourLaterality | measurement_concept_id | notes |
|---|---|---|
| L | 36770232 | Left |
| R | 36770058 | Right |
| M | 36769853 | Midline |
| B | 36770109 | Bilateral |
Notes
- OMOP Laterality
TumourLateralityIdentifies the side of the body for a Tumour relating to paired organs within a PATIENT. TUMOUR LATERALITY
with BA as (
select
Record ->> '$.CNS.CNSCore.CNSCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.CNS.CNSCore.CNSCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.CNS.CNSCore.CNSCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.CNS.CNSCore.CNSCoreLinkageDiagnosticDetails.TumourLaterality.@code' as TumourLaterality
from omop_staging.cosd_staging_81
where type = 'BA'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
TumourLaterality
from BA
where TumourLaterality is not null
and TumourLaterality in ('L', 'R', 'M', 'B');
Comment or raise an issue for this mapping.
COSD V8 BA Measurement Metastatic Site
Source column MetastaticSite. Lookup MetastasisSite concepts.
| MetastaticSite | measurement_concept_id | notes |
|---|---|---|
| 01 | 36769301 | Metastasis to bone |
| 02 | 36768862 | Metastasis to brain |
| 03 | 36770544 | Metastasis to liver |
| 04 | 36770283 | Metastasis to lung |
| 07 | 36769180 | Metastasis to the Unknown Site |
| 08 | 35225673 | Metastasis to skin |
| 09 | 36769243 | Distant spread to lymph node |
| 10 | 36769301 | Metastasis to bone |
| 11 | 35226074 | Metastasis to bone marrow |
| 12 | 36769269 | Regional spread to lymph node |
| 98 | 36769180 | Metastasis |
| 99 | 36769180 | Metastasis |
Notes
- OMOP Metastasis
MetastaticSiteIs the site of the metastatic disease at PATIENT DIAGNOSIS. METASTATIC SITE (AT DIAGNOSIS)
select distinct
Record ->> '$.CNS.CNSCore.CNSCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.CNS.CNSCore.CNSCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.CNS.CNSCore.CNSCoreDiagnosis.MetastaticSite.@code' as MetastaticSite
from omop_staging.cosd_staging_81
where type = 'BA'
and MetastaticSite is not null
and MetastaticSite != '97';
Comment or raise an issue for this mapping.
COSD V8 BA Measurement Grade Of Differentiation
Source column GradeOfDifferentiationAtDiagnosis. Lookup GradeDifferentiation concepts.
| GradeOfDifferentiationAtDiagnosis | measurement_concept_id | notes |
|---|---|---|
| GX | 0 | GX grade |
| G1 | 36768162 | Grade 1: Well differentiated |
| G2 | 36770626 | Grade 2: Moderately differentiated |
| G3 | 36769666 | Grade 3: Poorly differentiated |
| G4 | 36769737 | Grade 4: Undifferentiated |
Notes
- OMOP Grade Differentiation
GradeOfDifferentiationAtDiagnosisDefinitive grade of the tumour at the time of patient diagnosis during a cancer care spell. GRADE OF DIFFERENTIATION (AT DIAGNOSIS)
with BA as (
select
Record ->> '$.CNS.CNSCore.CNSCoreLinkagePatientId.NHSNumber.@extension' as NhsNumber,
Record ->> '$.CNS.CNSCore.CNSCoreLinkageDiagnosticDetails.ClinicalDateCancerDiagnosis' as ClinicalDateCancerDiagnosis,
Record ->> '$.CNS.CNSCore.CNSCoreLinkageDiagnosticDetails.DateOfNonPrimaryCancerDiagnosisClinicallyAgreed' as DateOfNonPrimaryCancerDiagnosisClinicallyAgreed,
Record ->> '$.CNS.CNSCore.CNSCoreDiagnosis.DiagnosisGradeOfDifferentiation.@code' as GradeOfDifferentiationAtDiagnosis
from omop_staging.cosd_staging_81
where type = 'BA'
)
select distinct
NhsNumber,
coalesce(ClinicalDateCancerDiagnosis, DateOfNonPrimaryCancerDiagnosisClinicallyAgreed) as MeasurementDate,
GradeOfDifferentiationAtDiagnosis
from BA
where GradeOfDifferentiationAtDiagnosis is not null
and GradeOfDifferentiationAtDiagnosis != ''
Comment or raise an issue for this mapping.
COSD V8 BA Measurement Adult Comorbidity Evaluation
- Constant value set to
40488785. Adult comorbidity evaluation-27