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: Prostate Cancer Research Variables

Official URL: http://hl7.eu/fhir/ig/flute/Library/ResearchVariables Version: 0.1.0
Draft as of 2024-09-25 Computable Name: ResearchVariables

Generated Narrative: Library ResearchVariables

Related Artifacts

Depends OnCode System LOINCLogical Observation Identifiers, Names and Codes (LOINC)
Depends OnCode System SNOMEDSNOMED CT (all versions)
Depends OnValue Set pcaMalignant tumor of prostate Value Set

Parameters

Patientout01Patient
ageAtBiopsyout0*Resource
pcaFamilyHistoryout01integer
typeOfBiopsyout01integer
psaout0*Resource
dreout01integer
prostateVolumeout0*Resource
piradsout0*Resource

Data Requirements

Type: Procedure (Procedure)
FilterValue
codeOne of these codes: SNOMED CT (all versions) 86273004: Biopsy
Type: FamilyMemberHistory (FamilyMemberHistory)
Type: Procedure (Procedure)
FilterValue
codeOne of these codes: SNOMED CT (all versions) 86273004: Biopsy
Type: Observation (Observation)
FilterValue
codeOne of these codes: Logical Observation Identifiers, Names and Codes (LOINC) 2857-1: Prostate specific Ag [Mass/volume] in Serum or Plasma
Type: Procedure (Procedure)
FilterValue
codeOne of these codes: SNOMED CT (all versions) 410006001: Digital examination of rectum
Type: Observation (Observation)
FilterValue
codeOne of these codes: SNOMED CT (all versions) 1297142007: Volume of prostate
Type: Observation (Observation)
FilterValue
codeOne of these codes: SNOMED CT (all versions) 719178004: Multiparametric magnetic resonance imaging of prostate

Contents

text/cql

library ResearchVariables 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 Ag [Mass/volume] in Serum or Plasma'
code "drE": '410006001' from "SNOMED" display 'Digital examination of rectum'
code "susceptible": '131196009' from "SNOMED" display 'susceptible'
code "biopsy": '86273004' from "SNOMED" display 'Biopsy'
code "volumeOfProstate": '1297142007' from "SNOMED" display 'Volume of prostate'
code "mri": '719178004' from "SNOMED" display 'Multiparametric magnetic resonance imaging of prostate'
code "repeated": '27582007' from "SNOMED" display 'Repeated'

valueset "pca": 'http://hl7.eu/fhir/ig/flute/ValueSet/VS-PCa'

context Patient

define "ageAtBiopsy":
    [Procedure: "biopsy"] P where P.status = 'completed'
    return P.performed 

define "pcaFamilyHistory":
    if exists([FamilyMemberHistory] F where F.status = 'completed' and F.condition[0].code in "pca") then 1
    else 0

define "typeOfBiopsy":
    if exists([Procedure: "biopsy"] P where P.status = 'completed' and P.category ~ "repeated") then 2
    else 0

define "psa": 
    [Observation:"psA"] O where O.status = 'final'
    return O.value

define "dre":
    if exists([Procedure: "drE"] P  where P.status = 'completed' and  P.outcome ~ "susceptible") then 1
    else 0

define "prostateVolume":
    [Observation:"volumeOfProstate"] O where O.status = 'final'
    return O.value

define "pirads":
    [Observation:"mri"] O where O.status = 'final'
    return O.value



Content not shown - (application/elm+xml, size = 39Kb )