Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report-870 #230

Open
wants to merge 116 commits into
base: TRUNK-5375
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
83cf046
REPORT-714 : added a handler for CohortIndicators that filters out an…
Ben-Waters Mar 20, 2018
4135a30
REPORT-842 : Switch License to MPL v2.0 (#166)
Ben-Waters Mar 24, 2018
7a06885
REPORT-843
mseaton Apr 10, 2018
c95776f
[maven-release-plugin] prepare release 1.16.0
openmrs-bot Apr 24, 2018
c42a8ec
[maven-release-plugin] prepare for next development iteration
openmrs-bot Apr 24, 2018
60feba7
REPORT-420:Added attribute of viewing affected Report Defs on the UI …
samuelmale Jul 13, 2018
410063d
REPORT-845 - Support data set definition based on a SQL file and conf…
mseaton Sep 4, 2018
33fb290
REPORT-845 - Support data set definition based on a SQL file and conf…
mseaton Sep 4, 2018
7e7bd35
fix for surefire bug
mogoodrich Nov 24, 2018
c57d5b6
[maven-release-plugin] prepare release 1.17.0
openmrs-bot Nov 29, 2018
4a6c1ff
[maven-release-plugin] prepare for next development iteration
openmrs-bot Nov 29, 2018
331fe70
REPORT-849
mseaton Jan 12, 2019
5a7f860
REPORT-838 : Update Drug Order Filter
Ruhanga Dec 27, 2018
6386a70
REPORT-852, implement ObsOnSameDateEncounterDataDefinition
cioan Jun 17, 2019
2f011cb
REPORT-852 - Implement Obs on same day EncounterDataDefinition
mseaton Jul 2, 2019
b970972
REPORT-853: Add no-args constructors to all converters
mogoodrich Jul 31, 2019
cda9399
REPORT-854: Make SortCriteria SortElement inner class static
mogoodrich Jul 31, 2019
c5a95ed
REPORT-854: Make inner classes static
mogoodrich Jul 31, 2019
15cad2b
REPORT-854: Add custom converter for SortCriteria in order to propert…
mseaton Aug 1, 2019
ea842ac
Attempt to fix travis builds by moving to OpenJDK
mseaton Aug 1, 2019
107f3f5
Revert: REPORT-854: Add custom converter for SortCriteria in order to…
mogoodrich Aug 5, 2019
58fa536
Revert: REPORT-854: Make inner classes static
mogoodrich Aug 5, 2019
d8e84f8
REPORT-854: Make inner classes serializable
mogoodrich Aug 5, 2019
335384b
[maven-release-plugin] prepare release 1.18.0
openmrs-bot Aug 7, 2019
f3bdf13
[maven-release-plugin] prepare for next development iteration
openmrs-bot Aug 7, 2019
8e54802
Minor formatting (proposals) (#181)
kant Sep 9, 2019
ecb73fb
REPORT-855 : Improved the BuiltInCohortDefinitionLibrary For Coded_ob…
mozzy11 Sep 9, 2019
7ce4518
REPORT-856: Create ConditonCohortDefinition class and add Tests
mozzy11 Sep 18, 2019
a2bf349
REPORT-856: ActiveOnDate should Include onset and End dates
mozzy11 Oct 7, 2019
55b3c0f
Merge pull request #186 from mozzy11/REPORT-856-II
mozzy11 Oct 7, 2019
b1168f8
REPORT-858: Follow-up commit to fix test errors when adding the 2.2 p…
mseaton Oct 22, 2019
0f5ee05
REPORT-856 - follow-up fix required due to new Serialization Xstream …
mseaton Oct 24, 2019
db3caa2
REPORT-856 - Follow-up commit to resolve remaining 2.2 compatibility …
mseaton Oct 25, 2019
925e2e2
REPORT-856 - Follow-up commit to resolve remaining 2.2 compatibility …
mseaton Oct 25, 2019
3c633bf
REPORT-856 - Follow-up commit to resolve remaining 2.2 compatibility …
mseaton Oct 25, 2019
a335f39
REPORT-856 - Follow-up commit to resolve remaining 2.2 compatibility …
mseaton Oct 25, 2019
476b38a
REPORT-856 - Follow-up commit to resolve remaining 2.2 compatibility …
mseaton Oct 25, 2019
9a5cfab
Update to the latest released version of testutils in preparation for…
mseaton Oct 25, 2019
79dc58c
[maven-release-plugin] prepare release 1.19.0
openmrs-bot Oct 26, 2019
7948915
[maven-release-plugin] prepare for next development iteration
openmrs-bot Oct 26, 2019
2057019
Minor formatting proposals (#190)
kant Nov 29, 2019
de48eac
REPORT-859: Add a JSON Renderer to TextTemplate feature (#192)
solemabrothers Dec 11, 2019
9859bb8
Use HTTPS instead of HTTP to resolve dependencies (#194)
JLLeitschuh Feb 11, 2020
92ecb70
REPORT-861:Make Reports Return an IndicatorResult Datatype (#195)
solemabrothers Mar 16, 2020
aa6a91c
[maven-release-plugin] prepare release 1.20.0
openmrs-bot Mar 16, 2020
ffeb6c1
[maven-release-plugin] prepare for next development iteration
openmrs-bot Mar 16, 2020
bb432a7
Add support for OpenMRS Platform 2.4 - REPORT-863
dkayiwa Apr 11, 2020
a19d427
REPORT-864 - Make EvaluationContext contextValues available to SqlFil…
mseaton Jun 14, 2020
1335236
REPORT-866 Properly map the sequences via hibernate (#200)
Am-Coder Jul 22, 2020
76e705f
REPORT-867 Liquibase error on starting Reporting Module (#201)
Am-Coder Jul 23, 2020
5e0b93f
REPORT-865: Support creating Report Configuration via configuration (…
mogoodrich Jul 28, 2020
40c1b7d
Add dependency on com.fasterxml.jackson.com; switch to version used b…
mogoodrich Jul 28, 2020
fee7711
Bump jackson-databind from 2.9.8 to 2.9.10.5 (#202)
dependabot[bot] Jul 28, 2020
5b97f3c
Bump up version of com.fasterxml.jackson.*
mogoodrich Jul 28, 2020
478c71d
Correct version of com.fasterxml.jackson.*
mogoodrich Jul 28, 2020
4d1f55d
add additional valid liquibase checksums
mogoodrich Jul 28, 2020
3bf8300
Report 869 Change tinyint(1) to boolean for boolean columns in Repor…
Am-Coder Aug 5, 2020
fdef40b
Switching from snapshot to alpha of the platform
dkayiwa Sep 26, 2020
02d8410
[maven-release-plugin] prepare release 1.21.0
openmrs-bot Sep 28, 2020
7f3e0a4
[maven-release-plugin] prepare for next development iteration
openmrs-bot Sep 28, 2020
2b512af
REPORT-872
mseaton Oct 29, 2020
e764058
Adding HTML Encoding for Report Processor Name (#206)
varsha5595 Dec 2, 2020
745d656
Added sanitization for EMPT-103 and EMPT-104
anupamdevulapalli Dec 4, 2020
93412ef
Merge pull request #207 from anupamdevulapalli/EMPT-103-and-EMPT-104
isears Dec 7, 2020
061318f
Travis -> GitHub Actions
ibacher Dec 14, 2020
ca6078a
REPORT-874:ReportLoaderIntegrationTest Have Failing Tests (#208)
sherrif10 Jan 6, 2021
767ffb9
Bump jackson-databind from 2.9.10.5 to 2.9.10.7 (#212)
dependabot[bot] Jan 21, 2021
d2aee74
REPORT-722: Aded a check whether the logic module is installed to han…
mozzy11 Apr 2, 2021
c7b3d3c
REPORT-877: Configurable data set descriptors should support fixed pa…
mseaton Jun 2, 2021
4fe4581
REPORT-877: Configurable data set descriptors should support fixed pa…
mseaton Jun 2, 2021
ffc3535
[maven-release-plugin] prepare release 1.22.0
openmrs-bot Jun 7, 2021
59a0748
[maven-release-plugin] prepare for next development iteration
openmrs-bot Jun 7, 2021
eee5d60
C:out changes to manageReportDesigns.jsp for xss (#215)
Parth59 Jun 21, 2021
ea7937e
REPORT-878:Enable RenderReport Method to accept multiple values for a…
dbaluku Jun 24, 2021
4ad29e7
[maven-release-plugin] prepare release 1.23.0
openmrs-bot Jun 28, 2021
2469760
[maven-release-plugin] prepare for next development iteration
openmrs-bot Jun 28, 2021
55da480
Updating repository URLs to HTTPS
ibacher Jul 2, 2021
a4987d0
REPORTING-881: Sql Reports fail if generating user's name has a singl…
mogoodrich Jul 14, 2021
07e5ad1
REPORT-882 - Support adding Report Processors via config descriptors …
mseaton Sep 20, 2021
b1fc3a0
Update POM to jfrog urls
mseaton Sep 20, 2021
f125ffe
REPORT-883 - Add new interface and component model for loading data s…
mseaton Sep 21, 2021
d9f4676
Add additional missing method.
mseaton Sep 23, 2021
16a42ae
REPORT-884 - Reporting module should not load reports from config aut…
mseaton Sep 24, 2021
7b54925
REPORT-885 - Add ability to refresh a single descriptor
mseaton Sep 30, 2021
ceadfdd
Adding the 2.4 profile
dkayiwa Oct 25, 2021
4aff5c6
Fixing 2.1 profile failing tests
dkayiwa Oct 26, 2021
19b1985
REPORT-880: Added profiles for Openmrs platform 2.3 and 2.4 (#217)
icrc-toliveira Nov 22, 2021
a47a714
Bump jackson-databind from 2.9.10.7 to 2.9.10.8 (#222)
dependabot[bot] Nov 22, 2021
2f2492f
REPORT-492: Multiple stored XSS via Dimension Name and Descriptions (…
isaaclin-artist Dec 3, 2021
b30da83
REPORT-886 liquibase.util.StringUtils does not exist on platform 2.6
dkayiwa Jan 28, 2022
d7e39c4
REPORT-870: Increased size of ReportDesignResource.contentType DB col…
pwargulak Mar 8, 2022
81269ae
REPORT-887 Fix NPE for null DefinitionLibrary.getKeyPrefix()
dkayiwa Mar 22, 2022
411f348
[maven-release-plugin] prepare release 1.24.0
openmrs-bot Apr 5, 2022
e56d4d3
[maven-release-plugin] prepare for next development iteration
openmrs-bot Apr 5, 2022
218061c
REPORT-888 - Add MariaDb into changeSet Entries (#232)
alaboso May 2, 2022
98facc7
Bump parent.version to 1.25.0-SNAPSHOT (#233)
alaboso May 2, 2022
1656eff
LUI-189 Include suffix in controller urls
dkayiwa Jun 7, 2022
e2a3513
REPORT-873: SQL reports to use cursors to iterate through datasets. (…
icrc-loliveira Jun 29, 2022
8efc6bb
Add the missing api module dependency (#236)
anjula-sack Jul 28, 2022
83c37b5
Update the openmrs version for the api 1.10 (#237)
anjula-sack Sep 5, 2022
51b7d97
[maven-release-plugin] prepare release 1.25.0
openmrs-bot Sep 27, 2022
c37c9ab
[maven-release-plugin] prepare for next development iteration
openmrs-bot Sep 27, 2022
298d4a1
Fix POM version
ibacher Mar 3, 2023
7246966
REPORT-895 - Remove use of instance variable for connection object (#…
mseaton Mar 3, 2023
c73eca2
REPORT-896: Update Version of Joda Time Library (#243)
mogoodrich Apr 18, 2023
237d85c
LUI-189 Include suffix in controller urls
dkayiwa Jun 6, 2023
f5f3cfc
REPORT-899 ReportLoader should not set parameters to required=false b…
mseaton Aug 9, 2023
2b982e1
REPORT-900 - HQL Query Builder should support entity names that diffe…
mseaton Aug 29, 2023
41b515a
[maven-release-plugin] prepare release 1.26.0
openmrs-bot Sep 7, 2023
1fe2f2f
[maven-release-plugin] prepare for next development iteration
openmrs-bot Sep 7, 2023
8d6efaa
REPORT-902 Add MariaDb into changeSet Entries
dkayiwa Oct 23, 2023
c0264d4
REPORT-903 - Enable configuring parameter "widgetConfiguration" from …
mseaton Nov 3, 2023
3083d1d
TRUNK-6188: Add whitelisting for components loaded via XStream
dkayiwa Aug 30, 2024
6f88dc8
Fix failing build
dkayiwa Aug 30, 2024
09b4f6c
TRUNK-6188 fix failing tests
dkayiwa Aug 30, 2024
6db57c4
revert: TRUNK-6188: Add whitelisting for components loaded via Xstream
mogoodrich Sep 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# this build is designed to replicate the Travis CI workflow
name: Build with Maven

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest ]
java-version: [ 8 ]
profile: [ 1.10, 1.11, 1.12, 2.0, 2.1, 2.2, 2.3, 2.4 ]

runs-on: ${{ matrix.platform }}
env:
PLATFORM: ${{ matrix.platform }}
JAVA_VERSION: ${{ matrix.java-version }}

steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn clean install -P ${{ matrix.profile }} --batch-mode --show-version --file pom.xml

3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

401 changes: 401 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ Requirements
================
OpenMRS 1.5.2 or higher

###Required Modules:
### Required Modules:
1. HTML Widgets 1.5.5
2. Serialization XStream 0.1.8.1
3. Calculation 1.2

###Recommended modules:
### Recommended modules:
1. Reporting Compatibility 1.5.0.3

View, download or fork source code: on GitHub
View, download or fork source code on GitHub


Installation
Expand All @@ -41,9 +41,9 @@ Upgrade
To upgrade from Reporting Module 0.3.x:
1. Check to make sure that you have all of the Required Modules installed on your system.
2. Log into OpenMRS
3. Navigate to Admin > Manage Modules.
3. Navigate to `Admin` > `Manage Modules`.
4. Click the trash icon next to Reporting 0.3.x to remove the module from your system.
5. Navigate to the newer omod on your system using the browse button and click Upload.
5. Navigate to the newer omod on your system using the browse button and click `Upload`.


Privileges
Expand Down
4 changes: 4 additions & 0 deletions api-1.10/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.settings
/.classpath
/.project
/target
88 changes: 88 additions & 0 deletions api-1.10/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>reporting</artifactId>
<version>1.27.0-SNAPSHOT</version>
</parent>

<artifactId>reporting-api-1.10</artifactId>
<packaging>jar</packaging>
<name>reporting Module api 1.10</name>
<description>1.10 api project for reporting</description>

<properties>
<openMRSVersion>1.10.6</openMRSVersion>
</properties>

<dependencies>
<dependency>
<groupId>${project.parent.groupId}</groupId>
<artifactId>${project.parent.artifactId}-api</artifactId>
<version>${project.parent.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>${project.parent.groupId}</groupId>
<artifactId>${project.parent.artifactId}-api-tests</artifactId>
<version>${project.parent.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.openmrs.api</groupId>
<artifactId>openmrs-api</artifactId>
<version>${openMRSVersion}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.openmrs.api</groupId>
<artifactId>openmrs-api</artifactId>
<type>test-jar</type>
<version>${openMRSVersion}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.openmrs.test</groupId>
<artifactId>openmrs-test</artifactId>
<version>${openMRSVersion}</version>
<type>pom</type>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>

<testResources>
<testResource>
<directory>src/test/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</testResource>
<testResource>
<directory>src/test/resources</directory>
<excludes>
<exclude>**/*.properties</exclude>
<exclude>**/*.xml</exclude>
</excludes>
<filtering>false</filtering>
</testResource>
</testResources>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

package org.openmrs.module.reporting.cohort.definition;

import org.openmrs.Concept;
import org.openmrs.CareSetting;
import org.openmrs.Drug;

import org.openmrs.module.reporting.common.Match;
import org.openmrs.module.reporting.common.Localized;
import org.openmrs.module.reporting.definition.configuration.ConfigurationProperty;
import org.openmrs.module.reporting.definition.configuration.ConfigurationPropertyCachingStrategy;
import org.openmrs.module.reporting.evaluation.caching.Caching;

import java.util.Date;
import java.util.List;

@Caching(strategy = ConfigurationPropertyCachingStrategy.class)
@Localized("reporting.DrugOrderCohortDefinition")
public class DrugOrderCohortDefinition extends BaseCohortDefinition {

public static final long serialVersionUID = 1L;

@ConfigurationProperty(group = "which")
private Match which;

@ConfigurationProperty(value = "drugConcepts")
private List<Concept> drugConcepts;

@ConfigurationProperty(value = "drugSets")
private List<Concept> drugSets;

@ConfigurationProperty(value = "activatedOnOrBefore")
private Date activatedOnOrBefore;

@ConfigurationProperty(value = "activatedOnOrAfter")
private Date activatedOnOrAfter;

@ConfigurationProperty(value = "activeOnOrBefore")
private Date activeOnOrBefore;

@ConfigurationProperty(value = "activeOnOrAfter")
private Date activeOnOrAfter;

@ConfigurationProperty(value = "activeOnDate")
private Date activeOnDate;

@ConfigurationProperty(value = "careSetting")
private CareSetting careSetting;

@ConfigurationProperty(value = "drugs")
private List<Drug> drugs;

public DrugOrderCohortDefinition() {
}

public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("Patients ");

if (this.which != null) {
builder.append(" taking " + this.which.toString() + " of the drugs ");
}

if (this.getDrugConcepts() != null && this.getDrugConcepts().size() > 0) {
builder.append("taking generic drugs, or drugs with ingredients ");
for (Concept concept : this.getDrugConcepts()) {
builder.append(concept.getDisplayString() + " ");
}
}
if (this.getDrugSets() != null && this.getDrugSets().size() > 0) {
for (Concept concept : this.getDrugSets()) {
builder.append(concept.getDisplayString() + " ");
}
}

if (this.getDrugs() != null && this.getDrugs().size() > 0) {
for (Drug drug : this.getDrugs()) {
builder.append(drug.getDisplayName() + " ");
}

}

if (this.getActivatedOnOrBefore() != null) {
builder.append("activated on or before " + this.getActivatedOnOrBefore() + " ");
}
if (this.getActivatedOnOrAfter() != null) {
builder.append("activated on or after " + this.getActivatedOnOrAfter() + " ");
}

if (this.getActiveOnOrBefore() != null) {
builder.append("been active on or before " + this.getActiveOnOrBefore() + " ");
}
if (this.getActiveOnOrAfter() != null) {
builder.append("been active on or before " + this.getActiveOnOrAfter() + " ");
}
if (this.getActiveOnDate() != null) {
builder.append("active by " + this.getActiveOnDate() + " ");
}
if (this.careSetting != null) {
builder.append("with care setting of " + this.careSetting + " ");
}
return builder.toString();
}

public Match getWhich() {
return this.which;
}

public void setWhich(Match which) {
this.which = which;
}

public List<Concept> getDrugConcepts() {
return drugConcepts;
}

public void setDrugConcepts(List<Concept> drugConcepts) {
this.drugConcepts = drugConcepts;
}

public List<Concept> getDrugSets() {
return drugSets;
}

public void setDrugSets(List<Concept> drugSets) {
this.drugSets = drugSets;
}

public List<Drug> getDrugs() {
return drugs;
}

public void setDrugs(List<Drug> drugs) {
this.drugs = drugs;
}

public Date getActivatedOnOrBefore() {
return activatedOnOrBefore;
}

public void setActivatedOnOrBefore(Date activatedOnOrBefore) {
this.activatedOnOrBefore = activatedOnOrBefore;
}

public Date getActivatedOnOrAfter() {
return activatedOnOrAfter;
}

public void setActivatedOnOrAfter(Date activatedOnOrAfter) {
this.activatedOnOrAfter = activatedOnOrAfter;
}

public Date getActiveOnOrBefore() {
return activeOnOrBefore;
}

public void setActiveOnOrBefore(Date activeOnOrBefore) {
this.activeOnOrBefore = activeOnOrBefore;
}

public Date getActiveOnOrAfter() {
return activeOnOrAfter;
}

public void setActiveOnOrAfter(Date activeOnOrAfter) {
this.activeOnOrAfter = activeOnOrAfter;
}

public Date getActiveOnDate() {
return activeOnDate;
}

public void setActiveOnDate(Date activeOnDate) {
this.activeOnDate = activeOnDate;
}

public CareSetting getCareSetting() {
return careSetting;
}

public void setCareSetting(CareSetting careSetting) {
this.careSetting = careSetting;
}

}
Loading
Loading