IHE PaLM - Radiology Pathology Concordance (RPC)
0.1.0 - ci-build

IHE PaLM - Radiology Pathology Concordance (RPC), published by IHE IT Infrastructure Technical Committee. This is not an authorized publication; it is the continuous build for version 0.1.0). This version is based on the current content of https://github.com/IHE/PaLM.RPC/ and changes regularly. See the Directory of published versions

## Library: Immunocompromised Screening Library

Official URL: http://OUR-PLACEHOLDER-URL.com/Library/RadPathGleasonCorrelation | Version: 0.1.0
Draft as of 2023-06-06 | Computable Name: RadPathGleasonCorrelation
Copyright/Legal: IHE http://www.ihe.net/Governance/#Intellectual_Property

Rad Path Gleason Correlation

## Contents

`text/cql`

    library RadPathProstate

    using FHIR version '4.0.1'

    include FHIRHelpers version '4.0.1'
    include FHIRCommon called FC
    include RadPathCommon called RPCcom

    codesystem "SNOMED": 'http://snomed.info/sct'
    codesystem "RADLEX":  'http://radlex.org'
    codesystem "CAP": 'http://cap.org/eCC'

    //Gleason Score codes
    code "Gleason Score": '372278000' from SNOMED
    code "Structure of posterior surface of prostate": '5026003' from SNOMED
    code "clinically significant prostate cancer": 'RID49502' from RADLEX
    code "Score 7": 'CAP#16811' from CAP

    context Patient

    define "Gleason Score Available":
        [Observation] O
        where O.code ~ "Gleason Score"

    define "Rads clinically significant prostate cancer":
        "Gleason Score Available" O
            where (exists O.category C where C ~ RPCcom."Imaging")
            and (O.value as CodeableConcept) ~ "clinically significant prostate cancer"

    define "Path Score of 7":
        "Gleason Score Available" O
            where (exists O.category C where C ~ RPCcom."Laboratory")
            and (O.value as CodeableConcept) ~ "Score 7"