Description
Circumvent the concept mappings and map directly to the standard
concepts within the ‘Cancer Modifier’ vocabulary by concatenating your
source data and joining on the concept code.
The concept code has 4 components that the ETL developer will need to
concatenate to match. Those components are:
- Clinical vs. Pathological ( c or p)
- Version of AJCC/UICC (6th, 7th or 8th supported)
- Specification of AJCC/UICC-Stage (static value)
- The Stage Group from the source
The concept code format is : [c/p]-[version]th_AJCC/UICC-Stage-Stage Group
Mapping
For example : c-7th_AJCC/UICC-Stage-3A1
Above: Stage Group of 3A1, clinically staged, defined by the 7th
version of AJCC/UICC
To find the correct standard concept, you need to join to the concept
code, as shown here:
SELECT concept_id
FROM concept
WHERE vocabulary_id = 'Cancer Modifier'
AND concept_class_id = 'Staging/Grading'
AND standard_concept = 'S'
AND concept_code = 'c-7th_AJCC/UICC-Stage-3A1'
Usage
There are multiple methods of navigating concept hierarchies for
Stage Group depending on the use case.
Using Stage Group 3A1 for example:
Find all concepts that fall under “3A1”, regardless of version or
clin vs. path
SELECT descendant_concept_id
FROM concept_ancestor
WHERE ancestor_concept_id = 1635412 -- AJCC/UICC Stage 3A1 Category
Find all concepts that fall under “3A1”, regardless of version but
ONLY path
SELECT descendant_concept_id
FROM concept_ancestor
WHERE ancestor_concept_id = 1633303 -- AJCC/UICC Pathological 3A1 Category
Find all concepts that fall under “3A1”, are pathological only, and
are only using the 7th version
SELECT descendant_concept_id
FROM concept_ancestor
WHERE ancestor_concept_id = 1635016 -- AJCC/UICC 7th Pathological 3A1 Category
Lastly, you can search for the concept directly given the structured
concept codes. For the same example as above:
SELECT concept_id
FROM concept
WHERE vocabulary_id = 'Cancer Modifier'
AND concept_class_id = 'Staging/Grading'
AND standard_concept = 'S'
AND concept_code = 'p-7th_AJCC/UICC-Stage-3A1' -- Pathological + version + code