FLUTE Cross-border Prostate Cancer Data Standard Guide
0.1.0 - ci-build
Funded by the European Union

FLUTE Cross-border Prostate Cancer Data Standard Guide, published by Flute Project. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-eu/flute/ and changes regularly. See the Directory of published versions

Library: Inclusion Criteria FLUTE

Official URL: https://flute.com/Library/InclusionCriteriaFLUTE Version: 0.1.0
Draft as of 2025-11-05 Computable Name: InclusionCriteriaFLUTE
Title: Inclusion Criteria FLUTE
Id: InclusionCriteriaFLUTE
Version: 0.1.0
Url: Inclusion Criteria FLUTE
Status: draft
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Subject:

system: http://hl7.org/fhir/resource-types

code: Patient

Date: 2025-11-05 13:36:02+0000
Publisher: Flute Project
Description:

Defines criteria for including patients in prostate cancer cohorts.

Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
PatientPatient01Out
hasElevatedPsaboolean01Out
isAbnormalDreboolean01Out
biopsyDatedateTime0*Out
hasMriWithinOneYearBeforeBiopsyboolean01Out
isIncludedboolean01Out
Data Requirements:
TypeProfileMSCode Filter
Observation http://hl7.org/fhir/StructureDefinition/Observation code filter:
path: code

system: http://loinc.org

code: 2857-1

display: Prostate specific antigen, Blood

Procedure http://hl7.org/fhir/StructureDefinition/Procedure code filter:
path: code

system: http://snomed.info/sct

code: 410006001

display: Digital examination of rectum

Procedure http://hl7.org/fhir/StructureDefinition/Procedure code filter:
path: code

system: http://snomed.info/sct

code: 86273004

display: Biopsy

ImagingStudy http://hl7.org/fhir/StructureDefinition/ImagingStudy
Content: text/cql
library InclusionCriteriaFLUTE version '1.0.0'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1' called FHIRHelpers

codesystem "LOINC": 'http://loinc.org'

codesystem "SNOMED": 'http://snomed.info/sct'

code "psa": '2857-1' from "LOINC" display 'Prostate specific antigen, Blood'
code "dre": '410006001' from "SNOMED" display 'Digital examination of rectum'
code "susceptible": '131196009' from "SNOMED" display 'susceptible'
code "biopsy": '86273004' from "SNOMED" display 'Biopsy'

context Patient 

define "hasElevatedPsa":
    exists([Observation:"psa"] O where O.status = 'final' and O.value >= 3 'ng/mL')


define "isAbnormalDre":
    exists([Procedure: "dre"] P where P.status = 'completed' and P.outcome ~ susceptible)

define "biopsyDate":
    [Procedure: "biopsy"] P where P.status = 'completed'
    return FHIRHelpers.ToDateTime(P.performed as FHIR.dateTime)

define "hasMriWithinOneYearBeforeBiopsy":
    exists([ImagingStudy] IS
        where IS.status = 'available'
          and (IS.started.value > biopsyDate[0] - 1 year)
    )

define "isIncluded": 
    (isAbnormalDre or hasElevatedPsa) and hasMriWithinOneYearBeforeBiopsy
Content: application/elm+xml
Encoded data (39748 characters)