[
  {
    "phenotype_id": "PH267",
    "phenotype_version_id": 534,
    "name": "Primary Malignancy_Stomach",
    "definition": "At the specified date, a patient is defined as having had Primary Malignancy Stomach IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:\n\n\nPrimary care\n\n\n1. Primary Malignancy Stomach diagnosis or history of diagnosis during a consultation \n\nOR\nSecondary care\n\n\n1. ALL diagnoses of Primary Malignancy Stomach or history of diagnosis during a hospitalization\n\n\n\n\n\n\n\n\n\n\n\n\n",
    "implementation": "",
    "publications": [
      {
        "doi": "10.1016/S2589-7500(19)30012-3",
        "details": "Kuan V., Denaxas S., Gonzalez-Izquierdo A. et al. A chronological map of 308 physical and mental health conditions from 4 million individuals in the National Health Service. The Lancet Digital Health - DOI 10.1016/S2589-7500(19)30012-3"
      }
    ],
    "validation": "",
    "citation_requirements": "",
    "created": "2021-10-06T16:10:31.186043Z",
    "author": "Kuan V, Denaxas S, Gonzalez-Izquierdo A, Direk K, Bhatti O, Husain S, Sutaria S, Hingorani M, Nitsch D, Parisinos C, Lumbers T, Mathur R, Sofat R, Casas JP, Wong I, Hemingway H, Hingorani A",
    "collections": [
      {
        "name": "CALIBER",
        "value": 21
      },
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": null,
    "world_access": 1,
    "updated": "2021-10-06T16:10:31.186073Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "ontology": null,
    "phenoflowid": "https://kclhi.org/phenoflow/workflows/github.com/phenoflow/Primary-Malignancy_Stomach---c630b380-17b3-11ef-9de4-4d4ea830ad16/blob/read-potential-cases-fhir/Primary-Malignancy_Stomach.cwl",
    "data_sources": [
      {
        "name": "CPRD GOLD",
        "value": 5,
        "uid": "a29feafa-7bdd-44e9-b977-c9d26425e67f",
        "url": "https://healthdatagateway.org/en/dataset/694",
        "datasource_id": 694
      },
      {
        "name": "HES Admitted Patient Care data for CPRD GOLD",
        "value": 9,
        "uid": "4bcf64a6-f404-4ef4-ae6e-172512ab5f43",
        "url": "https://healthdatagateway.org/en/dataset/674",
        "datasource_id": 674
      }
    ],
    "coding_system": [
      {
        "name": "ICD10 codes",
        "value": 4
      },
      {
        "name": "Read codes v2",
        "value": 5
      },
      {
        "name": "Med codes",
        "value": 8
      }
    ],
    "event_date_range": "01/01/1999 - 01/07/2016",
    "concept_information": [
      {
        "concept_id": 1445,
        "concept_version_id": 4029,
        "concept_name": "Primary Malignancy_Stomach - Primary care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH267",
        "phenotype_version_id": 534,
        "phenotype_name": "Primary Malignancy_Stomach",
        "code_attribute_header": [
          "Disease",
          "Medcode",
          "Category"
        ],
        "codes": [
          {
            "code": "B11..00",
            "description": "Malignant neoplasm of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "8386.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B110.00",
            "description": "Malignant neoplasm of cardia of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "32022.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B110000",
            "description": "Malignant neoplasm of cardiac orifice of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "100584.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B110100",
            "description": "Malignant neoplasm of cardio-oesophageal junction of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "22894.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B110111",
            "description": "Malignant neoplasm of gastro-oesophageal junction",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "94278.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B110z00",
            "description": "Malignant neoplasm of cardia of stomach NOS",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "37859.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B111.00",
            "description": "Malignant neoplasm of pylorus of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "21620.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B111000",
            "description": "Malignant neoplasm of prepylorus of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "48237.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B111100",
            "description": "Malignant neoplasm of pyloric canal of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "41215.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B111z00",
            "description": "Malignant neoplasm of pylorus of stomach NOS",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "59092.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B112.00",
            "description": "Malignant neoplasm of pyloric antrum of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "19318.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B113.00",
            "description": "Malignant neoplasm of fundus of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "32362.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B114.00",
            "description": "Malignant neoplasm of body of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "43572.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B115.00",
            "description": "Malignant neoplasm of lesser curve of stomach unspecified",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "42193.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B116.00",
            "description": "Malignant neoplasm of greater curve of stomach unspecified",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "55434.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B117.00",
            "description": "Malignant neoplasm, overlapping lesion of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "51690.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B118.00",
            "description": "Siewert type II adenocarcinoma",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "97499.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B119.00",
            "description": "Siewert type III adenocarcinoma",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "96094.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B11y.00",
            "description": "Malignant neoplasm of other specified site of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "55019.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B11y000",
            "description": "Malignant neoplasm of anterior wall of stomach NEC",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "65312.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B11y100",
            "description": "Malignant neoplasm of posterior wall of stomach NEC",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "96802.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B11yz00",
            "description": "Malignant neoplasm of other specified site of stomach NOS",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "65372.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "B11z.00",
            "description": "Malignant neoplasm of stomach NOS",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "14800.0",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          },
          {
            "code": "ZV10018",
            "description": "[V]Personal history of malignant neoplasm of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Medcode": "49447.0",
              "Category": "History of Primary Malignancy_Stomach"
            }
          }
        ]
      },
      {
        "concept_id": 1446,
        "concept_version_id": 4031,
        "concept_name": "Primary Malignancy_Stomach - Primary care",
        "coding_system": {
          "id": 8,
          "name": "Med codes",
          "description": "Med codes"
        },
        "phenotype_id": "PH267",
        "phenotype_version_id": 534,
        "phenotype_name": "Primary Malignancy_Stomach",
        "code_attribute_header": [
          "Disease",
          "ReadcodeDescr",
          "Readcode"
        ],
        "codes": [
          {
            "code": "100584.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of cardiac orifice of stomach",
              "Readcode": "B110000"
            }
          },
          {
            "code": "14800.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of stomach NOS",
              "Readcode": "B11z.00"
            }
          },
          {
            "code": "19318.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of pyloric antrum of stomach",
              "Readcode": "B112.00"
            }
          },
          {
            "code": "21620.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of pylorus of stomach",
              "Readcode": "B111.00"
            }
          },
          {
            "code": "22894.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of cardio-oesophageal junction of stomach",
              "Readcode": "B110100"
            }
          },
          {
            "code": "32022.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of cardia of stomach",
              "Readcode": "B110.00"
            }
          },
          {
            "code": "32362.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of fundus of stomach",
              "Readcode": "B113.00"
            }
          },
          {
            "code": "37859.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of cardia of stomach NOS",
              "Readcode": "B110z00"
            }
          },
          {
            "code": "41215.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of pyloric canal of stomach",
              "Readcode": "B111100"
            }
          },
          {
            "code": "42193.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of lesser curve of stomach unspecified",
              "Readcode": "B115.00"
            }
          },
          {
            "code": "43572.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of body of stomach",
              "Readcode": "B114.00"
            }
          },
          {
            "code": "48237.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of prepylorus of stomach",
              "Readcode": "B111000"
            }
          },
          {
            "code": "49447.0",
            "description": "History of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "[V]Personal history of malignant neoplasm of stomach",
              "Readcode": "ZV10018"
            }
          },
          {
            "code": "51690.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm, overlapping lesion of stomach",
              "Readcode": "B117.00"
            }
          },
          {
            "code": "55019.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of other specified site of stomach",
              "Readcode": "B11y.00"
            }
          },
          {
            "code": "55434.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of greater curve of stomach unspecified",
              "Readcode": "B116.00"
            }
          },
          {
            "code": "59092.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of pylorus of stomach NOS",
              "Readcode": "B111z00"
            }
          },
          {
            "code": "65312.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of anterior wall of stomach NEC",
              "Readcode": "B11y000"
            }
          },
          {
            "code": "65372.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of other specified site of stomach NOS",
              "Readcode": "B11yz00"
            }
          },
          {
            "code": "8386.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of stomach",
              "Readcode": "B11..00"
            }
          },
          {
            "code": "94278.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of gastro-oesophageal junction",
              "Readcode": "B110111"
            }
          },
          {
            "code": "96094.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Siewert type III adenocarcinoma",
              "Readcode": "B119.00"
            }
          },
          {
            "code": "96802.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Malignant neoplasm of posterior wall of stomach NEC",
              "Readcode": "B11y100"
            }
          },
          {
            "code": "97499.0",
            "description": "Diagnosis of Primary Malignancy_Stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "ReadcodeDescr": "Siewert type II adenocarcinoma",
              "Readcode": "B118.00"
            }
          }
        ]
      },
      {
        "concept_id": 1447,
        "concept_version_id": 4033,
        "concept_name": "Primary Malignancy_Stomach - Secondary care - Diagnoses",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH267",
        "phenotype_version_id": 534,
        "phenotype_name": "Primary Malignancy_Stomach",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "C16",
            "description": "Malignant neoplasm of stomach",
            "attributes": {
              "Disease": "Primary Malignancy_Stomach",
              "Category": "Diagnosis of Primary Malignancy_Stomach"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/hn8s-ge58",
    "is_deleted": null,
    "publish_status": 2,
    "owner": "ieuan.scanlon",
    "template": {
      "id": 1,
      "name": "Clinical-Coded Phenotype",
      "description": "Phenotype definitions that are based on lists of clinical codes, or algorithms using clinical codes.",
      "version_id": 1
    },
    "versions": [
      {
        "version_id": 534,
        "version_name": "Primary Malignancy_Stomach",
        "version_date": "2021-10-06T16:10:31.214021Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]