Parameterized Advanced Querying System


dc.contributor.authorMaster, Sahal
dc.contributor.authorMarchesani, Nicole
dc.contributor.otherPEDSnet Data Coordinating Center
dc.contributor.otherPCORnet® Query Fulfillment Core
dc.date.accessioned2026-04-23T13:29:12Z
dc.date.created2026-04
dc.descriptionThis repository provides scripts for developing PAQS queries. Follow the steps below to set up your local environment, develop and test PAQS queries. <br><br> ##### Build With ![R](https://img.shields.io/badge/R-276DC3?style=for-the-badge&logo=r&logoColor=white&link=https%3A%2F%2Fwww.r-project.org%2F) ![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white) ![Quarto Badge](https://img.shields.io/badge/Quarto-39729E?logo=quarto&logoColor=fff&style=for-the-badge) ![Bootstrap Badge](https://img.shields.io/badge/Bootstrap-7952B3?logo=bootstrap&logoColor=fff&style=for-the-badge) ##### Databases Supported<br> ![Postgres](https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge&logo=postgresql&logoColor=white) ![MicrosoftSQLServer](https://img.shields.io/badge/Microsoft%20SQL%20Server-CC2927?style=for-the-badge&logo=microsoft%20sql%20server&logoColor=white) ![Snowflake](https://img.shields.io/badge/snowflake-%2329B5E8.svg?style=for-the-badge&logo=snowflake&logoColor=white) ![Oracle](https://img.shields.io/badge/Oracle-F80000?style=for-the-badge&logo=oracle&logoColor=white) ![Duckdb](https://img.shields.io/badge/duckdb-%23FFF000.svg?style=for-the-badge&logo=duckdb&logoColor=black) Tested<br> ![Databricks Badge](https://img.shields.io/badge/Databricks-FF3621?logo=databricks&logoColor=fff&style=for-the-badge) ![Google BigQuery Badge](https://img.shields.io/badge/Google%20BigQuery-669DF6?logo=googlebigquery&logoColor=fff&style=for-the-badge) <br><br> ##### **Prerequisites** Development can be done in the container or natively. However, we recommend to use the container for easier dependency management and portablity of the package. [Ensure you have container management software such as Docker or Podman installed.](https://docs.docker.com/get-started/get-docker/)<br><br> ##### **Clone this Repository** You'll need this base package to start query development from regardless of environment **Note:** Avoid direct edits to the cloned directory to maintain integrity. ```sh git clone https://github.com/Query-Fulfillment/paqs.git ``` <br> ##### **Scripts and Directories** ```sh paqs ├── config_template │ ├── bigquery │ ├── databricks │ ├── duckdb │ ├── mssql_ad │ ├── mssql_db │ ├── oracle │ ├── postgres │ └── snowflake ├── Dockerfile ├── LICENSE.txt ├── package ├── query │ ├── code_sets │ ├── execute_req.R │ ├── results │ └── script │ ├── base │ │ ├── helper.R │ │ └── setup.R │ ├── study │ ├── driver.R │ ├── report.qmd │ └── study ├── README ├── renv.lock ├── results ├── tools │ ├── banner │ ├── build_package.sh │ ├── handler.sh │ ├── parse_log.sh │ ├── PCORnet-logo-resize.png │ └── pcornet-style-sheet.css └── workplan.qmd ``` - **Dockerfile:** Contains the recipe to build a query specific image from a pre-built image and execute the query within the container - **config_template/:** Contains configuration templates for establishing a connection to the database - **query/code_sets/:** Contains codeset files when required to execute the request - **query/results/:** Initially empty. Will store query results in the container which will be mounted to `../results` - **query/script/:** Contains query execution code needed to execute the request - **query/script/base:** Contains query execution code that is standard for all queries [DO NOT EDIT] - **query/script/study:** Empty initially. Should contain query execution code that is specific to the current request [ALWAYS CUSTOM CODE] - **query/script/query:** Contains query execution code that is specific to the query that is being developed [Add new code/scripts in this directory] - **query/execute_req.R:** Contains code to drive query execution using an R function - **tools/:** Contains miscellaneous files required for the query - **results**: Initially empty. This directory will be mounted with the `query/results` directory within the container. Output generated by the query are to be returned via your site’s PCORnet® AWS S3 bucket. These tables consist of aggregate data/output and transfers the minimum information required to answer the analytic question. Please see Step 4 of the Returning Results section of this workplan for information on returning query output generated in this folder.<br><br> ##### **Booting up a Development Environment** Run below command in terminal. Please replace `{home_dir}` with the home directory on your machine and update the tag with the version you want to use. For new query, it's recommended to use the latest version. ```sh docker run --rm -p 8787:8787 -e PASSWORD=pass -e ROOT=TRUE -v {home_dir}:/home/rstudio pcornetqf/qf-r-base-rstudio:2.0.1 ``` Open web browser and go to [localhost:8787](localhost:8787). Log in with `username=rstudio` and `password=pass`. For more details on pre-built docker image see [here](https://github.com/Query-Fulfillment/qf-r-base-image).<br><br> ##### **New request** 1. Navigate to the terminal in R-studio and navigate to the directory where you want to create a new request. 2. Copy and paste the path to new_request.sh, then execute it with a unique identifier for the report, such as: ```sh path/to/new_request.sh fd1000 **Note:** This repository is under active development; the code is subjected to change.
dc.description.abstractStandard repository for development work related to hyperfast and slightly modern querying platform.
dc.identifier.urihttps://hdl.handle.net/20.500.14642/1640
dc.provenanceThis package was developed to support activities of the PCORnet® Query Fulfillment team as well as to support research conducted within PEDSnet, A Pediatric Clinical Research Network. PCORnet® Query Fulfillment is funded through Patient-Centered Outcomes Research Institute (PCORI®) award RI-CHOP-01-PS2. PEDSnet has been developed with funding from the PCORI®; PEDSnet’s participation in PCORnet® is funded through PCORI® award RI-CHOP-01-PS1. The package and its documentation do not necessarily represent the opinions of PCORI® or other organizations participating in, collaborating with, or funding PCORnet®.
dc.publisherPEDSnet
dc.rightsan MPL-2.0 license.
dc.subjectR
dc.subjectDocker Dependence
dc.subjectPostgres Compatible
dc.subjectSnowflake Compatible
dc.subjectDuckDB Compatible
dc.subjectOracle Compatible
dc.subjectMicrosoft SQL Server Compatible
dc.subjectQuarto
dc.subjectBootstrap
dc.titleParameterized Advanced Querying System
dc.title.alternativePAQS
dspace.entity.typeCode
local.code.githubhttps://github.com/Query-Fulfillment/paqs
local.code.packagegit clone https://github.com/Query-Fulfillment/paqs.git

Files

Domains