[
  {
    "phenotype_id": "PH255",
    "phenotype_version_id": 510,
    "name": "Primary Malignancy_Liver",
    "definition": "At the specified date, a patient is defined as having had Primary Malignancy Liver 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_Liver diagnosis or history of diagnosis during a consultation \n\nOR\nSecondary care\n\n\n1. ALL diagnoses of Primary Malignancy_Liver 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:09:53.449090Z",
    "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:09:53.449116Z",
    "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_Liver---81a4ea90-17ab-11ef-9de4-4d4ea830ad16/blob/read-potential-cases-fhir/Primary-Malignancy_Liver.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": 1409,
        "concept_version_id": 3957,
        "concept_name": "Primary Malignancy_Liver - Primary care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH255",
        "phenotype_version_id": 510,
        "phenotype_name": "Primary Malignancy_Liver",
        "code_attribute_header": [
          "Disease",
          "Medcode",
          "Category"
        ],
        "codes": [
          {
            "code": "B150.00",
            "description": "Primary malignant neoplasm of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "25535.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "B150000",
            "description": "Primary carcinoma of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "16126.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "B150100",
            "description": "Hepatoblastoma of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "31210.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "B150200",
            "description": "Primary angiosarcoma of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "68410.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "B150300",
            "description": "Hepatocellular carcinoma",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "22187.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "B150z00",
            "description": "Primary malignant neoplasm of liver NOS",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "44399.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "B152.00",
            "description": "Malignant neoplasm of liver unspecified",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "26393.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "BB5D500",
            "description": "[M]Hepatocellular carcinoma NOS",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "40240.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "BB5D511",
            "description": "[M]Hepatoma NOS",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "20234.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "BB5D512",
            "description": "[M]Hepatoma, malignant",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "26814.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "BB5D513",
            "description": "[M]Liver cell carcinoma",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "25641.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "BB5D700",
            "description": "[M]Combined hepatocellular carcinoma and cholangiocarcinoma",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "107299.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "BB5D711",
            "description": "[M]Hepatocholangiocarcinoma",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "110147.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "BB5D800",
            "description": "[M]Hepatocellular carcinoma, fibrolamellar",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "46771.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "Byu1100",
            "description": "[X]Other specified carcinomas of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "43490.0",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "ZV10015",
            "description": "[V]Personal history of malignant neoplasm of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Medcode": "58177.0",
              "Category": "History of Primary Malignancy_Liver"
            }
          }
        ]
      },
      {
        "concept_id": 1410,
        "concept_version_id": 3959,
        "concept_name": "Primary Malignancy_Liver - Primary care",
        "coding_system": {
          "id": 8,
          "name": "Med codes",
          "description": "Med codes"
        },
        "phenotype_id": "PH255",
        "phenotype_version_id": 510,
        "phenotype_name": "Primary Malignancy_Liver",
        "code_attribute_header": [
          "Disease",
          "ReadcodeDescr",
          "Readcode"
        ],
        "codes": [
          {
            "code": "107299.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[M]Combined hepatocellular carcinoma and cholangiocarcinoma",
              "Readcode": "BB5D700"
            }
          },
          {
            "code": "110147.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[M]Hepatocholangiocarcinoma",
              "Readcode": "BB5D711"
            }
          },
          {
            "code": "16126.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "Primary carcinoma of liver",
              "Readcode": "B150000"
            }
          },
          {
            "code": "20234.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[M]Hepatoma NOS",
              "Readcode": "BB5D511"
            }
          },
          {
            "code": "22187.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "Hepatocellular carcinoma",
              "Readcode": "B150300"
            }
          },
          {
            "code": "25535.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "Primary malignant neoplasm of liver",
              "Readcode": "B150.00"
            }
          },
          {
            "code": "25641.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[M]Liver cell carcinoma",
              "Readcode": "BB5D513"
            }
          },
          {
            "code": "26393.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "Malignant neoplasm of liver unspecified",
              "Readcode": "B152.00"
            }
          },
          {
            "code": "26814.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[M]Hepatoma, malignant",
              "Readcode": "BB5D512"
            }
          },
          {
            "code": "31210.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "Hepatoblastoma of liver",
              "Readcode": "B150100"
            }
          },
          {
            "code": "40240.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[M]Hepatocellular carcinoma NOS",
              "Readcode": "BB5D500"
            }
          },
          {
            "code": "43490.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[X]Other specified carcinomas of liver",
              "Readcode": "Byu1100"
            }
          },
          {
            "code": "44399.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "Primary malignant neoplasm of liver NOS",
              "Readcode": "B150z00"
            }
          },
          {
            "code": "46771.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[M]Hepatocellular carcinoma, fibrolamellar",
              "Readcode": "BB5D800"
            }
          },
          {
            "code": "58177.0",
            "description": "History of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "[V]Personal history of malignant neoplasm of liver",
              "Readcode": "ZV10015"
            }
          },
          {
            "code": "68410.0",
            "description": "Diagnosis of Primary Malignancy_Liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "ReadcodeDescr": "Primary angiosarcoma of liver",
              "Readcode": "B150200"
            }
          }
        ]
      },
      {
        "concept_id": 1411,
        "concept_version_id": 3961,
        "concept_name": "Primary Malignancy_Liver - Secondary care - Diagnoses",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH255",
        "phenotype_version_id": 510,
        "phenotype_name": "Primary Malignancy_Liver",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "C22.0",
            "description": "Malignant neoplasm: Liver cell carcinoma",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "C22.2",
            "description": "Malignant neoplasm: Hepatoblastoma",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "C22.3",
            "description": "Malignant neoplasm: Angiosarcoma of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "C22.4",
            "description": "Malignant neoplasm: Other sarcomas of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "C22.7",
            "description": "Malignant neoplasm: Other specified carcinomas of liver",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          },
          {
            "code": "C22.9",
            "description": "Malignant neoplasm: Liver, unspecified",
            "attributes": {
              "Disease": "Primary Malignancy_Liver",
              "Category": "Diagnosis of Primary Malignancy_Liver"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/kmvy-rp94",
    "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": 510,
        "version_name": "Primary Malignancy_Liver",
        "version_date": "2021-10-06T16:09:53.477213Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]