idTypes) {
+ this.idTypes = idTypes;
+ }
+
+ /**
+ * @see Comparator#compare(Object, Object)
+ */
+ public int compare(PatientIdentifier pi1, PatientIdentifier pi2) {
+ int c1 = 0;
+ int c2 = 0;
+ if (idTypes != null && idTypes.size() > 0) {
+ c1 = idTypes.indexOf(pi1.getIdentifierType());
+ c2 = idTypes.indexOf(pi2.getIdentifierType());
+ }
+ if (c1 == c2) {
+ c1 = pi1.getPreferred() == Boolean.TRUE ? 0 : 1;
+ c2 = pi2.getPreferred() == Boolean.TRUE ? 0 : 1;
+ }
+ return c1-c2;
+ }
+ }
+}
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PatientObjectDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PatientObjectDataEvaluator.java
index a5aa6f94b8..b7f7ec67f1 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PatientObjectDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PatientObjectDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PatientPropertyDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PatientPropertyDataEvaluator.java
index 7c38fb0c03..7de7f154d2 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PatientPropertyDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PatientPropertyDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PersonToPatientDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PersonToPatientDataEvaluator.java
index fb4abe85ee..c5cb33d6ad 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PersonToPatientDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PersonToPatientDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PreferredIdentifierDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PreferredIdentifierDataEvaluator.java
index 0349b367f0..1b4f012fb8 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PreferredIdentifierDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/PreferredIdentifierDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ProgramEnrollmentsForPatientDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ProgramEnrollmentsForPatientDataEvaluator.java
index 7b1513cec4..8261b30906 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ProgramEnrollmentsForPatientDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ProgramEnrollmentsForPatientDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ProgramStatesForPatientDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ProgramStatesForPatientDataEvaluator.java
index f4ed37e519..dce76969fe 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ProgramStatesForPatientDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ProgramStatesForPatientDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ScriptedCompositionPatientDataDefinitionEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ScriptedCompositionPatientDataDefinitionEvaluator.java
index bf898c45d2..2c22a7b5b6 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ScriptedCompositionPatientDataDefinitionEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/ScriptedCompositionPatientDataDefinitionEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/SqlPatientDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/SqlPatientDataEvaluator.java
index b30677afd0..c362f93e8b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/SqlPatientDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/SqlPatientDataEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.data.patient.evaluator;
import org.openmrs.annotation.Handler;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/StaticValuePatientDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/StaticValuePatientDataEvaluator.java
index 70094320a5..f151fd31d3 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/StaticValuePatientDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/evaluator/StaticValuePatientDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/library/BuiltInPatientDataLibrary.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/library/BuiltInPatientDataLibrary.java
index 81c378f454..c562385697 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/library/BuiltInPatientDataLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/library/BuiltInPatientDataLibrary.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.patient.library;
import org.openmrs.PatientIdentifier;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/persister/SerializedPatientDataPersister.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/persister/SerializedPatientDataPersister.java
index 5efb47af50..8fc47e6f3e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/persister/SerializedPatientDataPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/persister/SerializedPatientDataPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/service/PatientDataService.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/service/PatientDataService.java
index 5f9dd6be5a..98ee05b792 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/service/PatientDataService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/service/PatientDataService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/patient/service/PatientDataServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/data/patient/service/PatientDataServiceImpl.java
index 56e00751e7..0f2ec4cf47 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/patient/service/PatientDataServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/patient/service/PatientDataServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.patient.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/EvaluatedPersonData.java b/api/src/main/java/org/openmrs/module/reporting/data/person/EvaluatedPersonData.java
index 4bc35c9e0e..8ccfb2dffb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/EvaluatedPersonData.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/EvaluatedPersonData.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/PersonData.java b/api/src/main/java/org/openmrs/module/reporting/data/person/PersonData.java
index 67eb9f87d3..b8ba69e8f7 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/PersonData.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/PersonData.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/PersonDataUtil.java b/api/src/main/java/org/openmrs/module/reporting/data/person/PersonDataUtil.java
index d9bfc5ded8..eec61ce804 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/PersonDataUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/PersonDataUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/AgeAtDateOfOtherDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/AgeAtDateOfOtherDataDefinition.java
index 00fb18817d..4d6b5ce8c0 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/AgeAtDateOfOtherDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/AgeAtDateOfOtherDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/AgeDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/AgeDataDefinition.java
index 244cfc4765..6babd85a54 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/AgeDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/AgeDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/BirthdateDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/BirthdateDataDefinition.java
index 23a494334a..1985ec006f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/BirthdateDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/BirthdateDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ConvertedPersonDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ConvertedPersonDataDefinition.java
index 98e0c14956..fb4d3a6104 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ConvertedPersonDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ConvertedPersonDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/GenderDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/GenderDataDefinition.java
index 4771ee9384..78d2a55eb7 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/GenderDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/GenderDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ObsActiveListPersonDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ObsActiveListPersonDataDefinition.java
index f335d56364..8a091a2db0 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ObsActiveListPersonDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ObsActiveListPersonDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ObsForPersonDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ObsForPersonDataDefinition.java
index 4ff1c5e897..ad88baf429 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ObsForPersonDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/ObsForPersonDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonAttributeDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonAttributeDataDefinition.java
index ebfac5a240..1566f38384 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonAttributeDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonAttributeDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonDataDefinition.java
index 6d56001d17..f354adb872 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonIdDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonIdDataDefinition.java
index 812712d0ed..93fbe50891 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonIdDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PersonIdDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PreferredAddressDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PreferredAddressDataDefinition.java
index 3c9dbe010e..cc9fa1b5c6 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PreferredAddressDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PreferredAddressDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PreferredNameDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PreferredNameDataDefinition.java
index 583b9ec107..53e3e6bdcc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PreferredNameDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/PreferredNameDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/RelationshipsForPersonDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/RelationshipsForPersonDataDefinition.java
index 30068b40b1..e949f0fb4f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/RelationshipsForPersonDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/RelationshipsForPersonDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/VitalStatusDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/VitalStatusDataDefinition.java
index a240784b6b..7e215c763f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/definition/VitalStatusDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/definition/VitalStatusDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/AgeAtDateOfOtherDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/AgeAtDateOfOtherDataEvaluator.java
index 374aa0816f..7a62b4bd5e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/AgeAtDateOfOtherDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/AgeAtDateOfOtherDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/AgeDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/AgeDataEvaluator.java
index 4fa50b46f5..42778ed1b6 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/AgeDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/AgeDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/BirthdateDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/BirthdateDataEvaluator.java
index 9770bed0c0..74cb959f2d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/BirthdateDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/BirthdateDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ConvertedPersonDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ConvertedPersonDataEvaluator.java
index 406738ed38..254d5082ae 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ConvertedPersonDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ConvertedPersonDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/GenderDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/GenderDataEvaluator.java
index f131612d41..1f7e9db2ee 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/GenderDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/GenderDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ObsActiveListPersonDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ObsActiveListPersonDataEvaluator.java
index 650636f730..a1f4af2508 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ObsActiveListPersonDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ObsActiveListPersonDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ObsForPersonDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ObsForPersonDataEvaluator.java
index 088d26c67b..c02bc6e5d8 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ObsForPersonDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/ObsForPersonDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonAttributeDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonAttributeDataEvaluator.java
index 23ae3d3b67..39911181bb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonAttributeDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonAttributeDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonDataEvaluator.java
index 080b36c199..f86bee656c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonIdDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonIdDataEvaluator.java
index 1fb34eaaa6..184c1e5fb5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonIdDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonIdDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonPropertyDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonPropertyDataEvaluator.java
index 1906423012..ccb6d4ff5b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonPropertyDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PersonPropertyDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PreferredAddressDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PreferredAddressDataEvaluator.java
index ccdd784dcf..a03b967aa3 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PreferredAddressDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PreferredAddressDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PreferredNameDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PreferredNameDataEvaluator.java
index d8b235abf2..531628ba25 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PreferredNameDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/PreferredNameDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/RelationshipsForPersonDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/RelationshipsForPersonDataEvaluator.java
index 146c2e5ed5..7dd33425de 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/RelationshipsForPersonDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/RelationshipsForPersonDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/VitalStatusDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/VitalStatusDataEvaluator.java
index 4cf2efe560..0870b1e389 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/VitalStatusDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/evaluator/VitalStatusDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/persister/SerializedPersonDataPersister.java b/api/src/main/java/org/openmrs/module/reporting/data/person/persister/SerializedPersonDataPersister.java
index 0e8b5edd27..448189f53b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/persister/SerializedPersonDataPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/persister/SerializedPersonDataPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/service/PersonDataService.java b/api/src/main/java/org/openmrs/module/reporting/data/person/service/PersonDataService.java
index 226abe4139..b258e32fbb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/service/PersonDataService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/service/PersonDataService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/person/service/PersonDataServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/data/person/service/PersonDataServiceImpl.java
index 75847f572b..12129cbecf 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/person/service/PersonDataServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/person/service/PersonDataServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.person.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/EvaluatedVisitData.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/EvaluatedVisitData.java
index b92fc76df1..eb28c5bcf5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/EvaluatedVisitData.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/EvaluatedVisitData.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.visit;
import org.openmrs.module.reporting.data.visit.definition.VisitDataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/VisitData.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/VisitData.java
index a4f3828ef3..0ebabe817f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/VisitData.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/VisitData.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.visit;
import org.openmrs.module.reporting.data.BaseData;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/VisitDataUtil.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/VisitDataUtil.java
index 81b5caa800..a66c55a089 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/VisitDataUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/VisitDataUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.visit;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/ObsForVisitDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/ObsForVisitDataDefinition.java
index a87d5f939d..420a6f2919 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/ObsForVisitDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/ObsForVisitDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.visit.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/OrderForVisitDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/OrderForVisitDataDefinition.java
index b10df2d992..33c9a91b2b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/OrderForVisitDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/OrderForVisitDataDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.visit.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/PatientToVisitDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/PatientToVisitDataDefinition.java
index 29188feb41..0036cc89de 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/PatientToVisitDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/PatientToVisitDataDefinition.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.visit.definition;
import org.openmrs.module.reporting.data.JoinDataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/PersonToVisitDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/PersonToVisitDataDefinition.java
index 7a79e9d1c9..566cf6c1d6 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/PersonToVisitDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/PersonToVisitDataDefinition.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+/**
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.visit.definition;
import org.openmrs.module.reporting.data.JoinDataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/SqlVisitDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/SqlVisitDataDefinition.java
index 220f3f2bc2..3ac94fa003 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/SqlVisitDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/SqlVisitDataDefinition.java
@@ -1,3 +1,12 @@
+/**
+ * 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.data.visit.definition;
import org.openmrs.module.reporting.data.BaseDataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/VisitDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/VisitDataDefinition.java
index 862047e380..9ace528982 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/VisitDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/VisitDataDefinition.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.visit.definition;
import org.openmrs.module.reporting.data.DataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/VisitIdDataDefinition.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/VisitIdDataDefinition.java
index 65bcd930cf..a928ff9fd4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/VisitIdDataDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/definition/VisitIdDataDefinition.java
@@ -1,3 +1,12 @@
+/**
+ * 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.data.visit.definition;
import org.openmrs.module.reporting.data.BaseDataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/ObsForVisitDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/ObsForVisitDataEvaluator.java
index c44a03519c..cc1934dd5d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/ObsForVisitDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/ObsForVisitDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.visit.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/OrderForVisitDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/OrderForVisitDataEvaluator.java
index 1c9bb7940c..f239dcc24e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/OrderForVisitDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/OrderForVisitDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.visit.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/PatientToVisitDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/PatientToVisitDataEvaluator.java
index 3d1305abb0..b66b6aa6b7 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/PatientToVisitDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/PatientToVisitDataEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.data.visit.evaluator;
import org.openmrs.Cohort;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/PersonToVisitDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/PersonToVisitDataEvaluator.java
index f74d3f4932..fae6c66a9d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/PersonToVisitDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/PersonToVisitDataEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.data.visit.evaluator;
import org.openmrs.Cohort;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/SqlVisitDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/SqlVisitDataEvaluator.java
index 91341e5cd6..9a547a9cd4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/SqlVisitDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/SqlVisitDataEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.data.visit.evaluator;
import java.util.Map;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitDataEvaluator.java
index e1b7ec8a36..975b4a5ba9 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitDataEvaluator.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.visit.evaluator;
import org.openmrs.module.reporting.data.visit.EvaluatedVisitData;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitIdDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitIdDataEvaluator.java
index 13ace93aee..9997f76f31 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitIdDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitIdDataEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.data.visit.evaluator;
import org.openmrs.annotation.Handler;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitPropertyDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitPropertyDataEvaluator.java
index 3dd1648926..18d903e682 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitPropertyDataEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/evaluator/VisitPropertyDataEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.data.visit.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/library/BuiltInVisitDataLibrary.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/library/BuiltInVisitDataLibrary.java
index 9c99ca7684..b7d2968d6b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/library/BuiltInVisitDataLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/library/BuiltInVisitDataLibrary.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.visit.library;
import org.openmrs.module.reporting.data.visit.definition.VisitDataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/service/VisitDataService.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/service/VisitDataService.java
index 963ae9d9aa..ab60f272b2 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/service/VisitDataService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/service/VisitDataService.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.visit.service;
import org.openmrs.module.reporting.data.visit.EvaluatedVisitData;
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/visit/service/VisitDataServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/data/visit/service/VisitDataServiceImpl.java
index ad75159a28..ad1da16198 100644
--- a/api/src/main/java/org/openmrs/module/reporting/data/visit/service/VisitDataServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/data/visit/service/VisitDataServiceImpl.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.data.visit.service;
import org.openmrs.module.reporting.data.visit.EvaluatedVisitData;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSet.java b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSet.java
index 03d500fbb4..b7b7f3606c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetColumn.java b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetColumn.java
index c35b5d9e25..b36a208872 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetColumn.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetColumn.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetMetaData.java b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetMetaData.java
index f752b3a4a2..dac179f2e3 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetMetaData.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetMetaData.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRow.java b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRow.java
index 0a33364e12..c8dbbfe834 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRow.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRow.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRowComparator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRowComparator.java
index 114620d27c..8a6cce0fd0 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRowComparator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRowComparator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRowList.java b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRowList.java
index dd966b9b86..17253697f5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRowList.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetRowList.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetUtil.java b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetUtil.java
index 6d3ba2df0c..54d6288ca0 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/DataSetUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/IterableSqlDataSet.java b/api/src/main/java/org/openmrs/module/reporting/dataset/IterableSqlDataSet.java
new file mode 100644
index 0000000000..dbf0d99f17
--- /dev/null
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/IterableSqlDataSet.java
@@ -0,0 +1,76 @@
+/**
+ * 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.dataset;
+
+import org.openmrs.module.reporting.dataset.definition.DataSetDefinition;
+import org.openmrs.module.reporting.dataset.definition.IterableSqlDataSetDefinition;
+import org.openmrs.module.reporting.evaluation.EvaluationContext;
+import org.openmrs.module.reporting.common.ResultSetIterator;
+
+import java.util.Iterator;
+
+/**
+ * This is a {@link DataSet} that allows you to request the rows for a subset of the
+ * input cohort, and it will generate those rows on demand (by delegating to a
+ * {@link IterableDataSetEvaluator}).
+ */
+public class IterableSqlDataSet implements DataSet {
+
+ ResultSetIterator dataSetRowIterator;
+ SimpleDataSetMetaData metadata;
+ EvaluationContext context;
+ IterableSqlDataSetDefinition definition;
+
+ /**
+ * @param evalContext
+ * @param definition
+ */
+ public IterableSqlDataSet(EvaluationContext evalContext, IterableSqlDataSetDefinition definition, ResultSetIterator iterator) {
+ this.context = evalContext;
+ this.definition = definition;
+ this.dataSetRowIterator = iterator;
+ mapMetaData();
+ }
+
+ /**
+ * @see DataSet#iterator()
+ */
+ public Iterator iterator() {
+ return dataSetRowIterator;
+ }
+
+ /**
+ * @see DataSet#getMetaData()
+ */
+ public DataSetMetaData getMetaData() {
+ return metadata;
+ }
+
+ /**
+ * @see DataSet#getContext()
+ */
+ public EvaluationContext getContext() {
+ return context;
+ }
+
+ /**
+ * @see DataSet#getDefinition()
+ */
+ public DataSetDefinition getDefinition() {
+ return definition;
+ }
+
+ private void mapMetaData(){
+ metadata = new SimpleDataSetMetaData();
+ for(DataSetColumn column: dataSetRowIterator.getColumns()){
+ metadata.addColumn(new DataSetColumn(column.getName(),column.getLabel(),column.getDataType()));
+ }
+ }
+}
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/LazyPageableDataSet.java b/api/src/main/java/org/openmrs/module/reporting/dataset/LazyPageableDataSet.java
index 7035cde03b..2d4ec49ae5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/LazyPageableDataSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/LazyPageableDataSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/MapDataSet.java b/api/src/main/java/org/openmrs/module/reporting/dataset/MapDataSet.java
index 7d36320815..5ff0c21fa5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/MapDataSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/MapDataSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/PageableDataSet.java b/api/src/main/java/org/openmrs/module/reporting/dataset/PageableDataSet.java
index 7b92221406..50995542c4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/PageableDataSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/PageableDataSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/SimpleDataSet.java b/api/src/main/java/org/openmrs/module/reporting/dataset/SimpleDataSet.java
index d94639b29c..02afaea239 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/SimpleDataSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/SimpleDataSet.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset;
import org.openmrs.module.reporting.common.SortCriteria;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/SimpleDataSetMetaData.java b/api/src/main/java/org/openmrs/module/reporting/dataset/SimpleDataSetMetaData.java
index c370beafe9..2d0d5c3501 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/SimpleDataSetMetaData.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/SimpleDataSetMetaData.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/BaseColumnDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/BaseColumnDefinition.java
index 4471b2735e..0d3cd10da9 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/BaseColumnDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/BaseColumnDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.column.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/ColumnDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/ColumnDefinition.java
index ae78a4662b..f6bc7c5b9e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/ColumnDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/ColumnDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.column.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/RowPerObjectColumnDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/RowPerObjectColumnDefinition.java
index 731ea7c618..6e7b4c30c8 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/RowPerObjectColumnDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/column/definition/RowPerObjectColumnDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.column.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/BaseDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/BaseDataSetDefinition.java
index 1b57b580d2..89ab5e5e26 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/BaseDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/BaseDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortCrossTabDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortCrossTabDataSetDefinition.java
index d316dd5cf4..cf7ee0a32a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortCrossTabDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortCrossTabDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortIndicatorAndDimensionDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortIndicatorAndDimensionDataSetDefinition.java
index 1a0b323066..f95dde8cf2 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortIndicatorAndDimensionDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortIndicatorAndDimensionDataSetDefinition.java
@@ -1,11 +1,14 @@
+/**
+ * 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.dataset.definition;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
import org.openmrs.module.reporting.common.Localized;
import org.openmrs.module.reporting.dataset.DataSetColumn;
import org.openmrs.module.reporting.definition.configuration.ConfigurationProperty;
@@ -14,6 +17,13 @@
import org.openmrs.module.reporting.indicator.dimension.CohortDefinitionDimension;
import org.openmrs.module.reporting.indicator.util.IndicatorUtil;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
/**
*
* This represents a data set which contains indicators and optional dimension combinations
@@ -163,7 +173,7 @@ public void addSpecification(String indicatorNumber, String label, Mapped
* This represents a data set where each column is an Indicator plus (optionally) dimension options
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortsWithVaryingParametersDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortsWithVaryingParametersDataSetDefinition.java
index 76a09b9806..e7638357ff 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortsWithVaryingParametersDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/CohortsWithVaryingParametersDataSetDefinition.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.dataset.definition;
import org.openmrs.module.reporting.cohort.EvaluatedCohort;
@@ -66,6 +61,10 @@ public void setVaryingParameters(List> varyingParameters) {
this.varyingParameters = varyingParameters;
}
+ public void addColumn(String name, String description, Mapped mappedCohortDefinition) {
+ getColumns().add(new Column(name, description, mappedCohortDefinition));
+ }
+
/**
* Will automatically create "straight-through" mappings for any parameters in cd, and takes name and label from
* cd.name and cd.description.
@@ -76,7 +75,12 @@ public void addColumn(CohortDefinition cd) {
for (Parameter parameter : cd.getParameters()) {
mappings.put(parameter.getName(), "${" + parameter.getName() + "}");
}
- getColumns().add(new Column(cd.getName(), cd.getDescription(), new Mapped(cd, mappings)));
+ addColumn(new Mapped(cd, mappings));
+ }
+
+ public void addColumn(Mapped mappedCohortDefinition) {
+ CohortDefinition cd = mappedCohortDefinition.getParameterizable();
+ addColumn(cd.getName(), cd.getDescription(), mappedCohortDefinition);
}
public void addVaryingParameters(Map parameterOption) {
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/DataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/DataSetDefinition.java
index 64544420b5..a5900e2f5a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/DataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/DataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EncounterAndObsDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EncounterAndObsDataSetDefinition.java
index 207c641de4..5eb1209aaa 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EncounterAndObsDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EncounterAndObsDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EncounterDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EncounterDataSetDefinition.java
index c88d7a247b..1a1a28a336 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EncounterDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EncounterDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EvaluatableDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EvaluatableDataSetDefinition.java
index f2d6a4b3d9..75013ffa5b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EvaluatableDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/EvaluatableDataSetDefinition.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset.definition;
import org.openmrs.module.reporting.dataset.DataSet;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/IterableSqlDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/IterableSqlDataSetDefinition.java
new file mode 100644
index 0000000000..af98495705
--- /dev/null
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/IterableSqlDataSetDefinition.java
@@ -0,0 +1,22 @@
+/**
+ * The contents of this file are subject to the OpenMRS Public License
+ * Version 1.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ * http://license.openmrs.org
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ */
+package org.openmrs.module.reporting.dataset.definition;
+
+/**
+ * Evaluates a sql script found at the configured file path or resource path or with the sql contents specified
+ * By default, this will utilize the database connection properties in the openmrs runtime properties
+ * This can use an alternative database connection by specifying the file. Property names follow those in openmrs runtime properties
+ */
+public class IterableSqlDataSetDefinition extends SqlFileDataSetDefinition {
+}
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/LogicDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/LogicDataSetDefinition.java
index 896d8aa1f0..8756db7926 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/LogicDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/LogicDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/MultiParameterDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/MultiParameterDataSetDefinition.java
index e6ca065cd1..f19c9f5796 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/MultiParameterDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/MultiParameterDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/MultiPeriodIndicatorDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/MultiPeriodIndicatorDataSetDefinition.java
index 3b2ce3d921..665e781926 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/MultiPeriodIndicatorDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/MultiPeriodIndicatorDataSetDefinition.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset.definition;
import java.util.ArrayList;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/ObsDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/ObsDataSetDefinition.java
index 1d7c5d3253..1160bd7b8b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/ObsDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/ObsDataSetDefinition.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset.definition;
import org.openmrs.module.reporting.common.Localized;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/PageableDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/PageableDataSetDefinition.java
index 5730ae6563..b4bc78dce9 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/PageableDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/PageableDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/PatientDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/PatientDataSetDefinition.java
index af714db4bc..4e24c3329a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/PatientDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/PatientDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/RepeatPerTimePeriodDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/RepeatPerTimePeriodDataSetDefinition.java
index 84c5891c3a..b39240cc8e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/RepeatPerTimePeriodDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/RepeatPerTimePeriodDataSetDefinition.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.dataset.definition;
import org.openmrs.module.reporting.common.TimePeriod;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/RowPerObjectDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/RowPerObjectDataSetDefinition.java
index 552bfe97a4..6199813c56 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/RowPerObjectDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/RowPerObjectDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SimpleIndicatorDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SimpleIndicatorDataSetDefinition.java
index 848046cdff..3f3dc6eec2 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SimpleIndicatorDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SimpleIndicatorDataSetDefinition.java
@@ -1,17 +1,12 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
import java.util.ArrayList;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SimplePatientDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SimplePatientDataSetDefinition.java
index 7d8381c3bc..c51e0098b2 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SimplePatientDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SimplePatientDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SqlDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SqlDataSetDefinition.java
index bf97a2b429..721c291289 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SqlDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SqlDataSetDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SqlFileDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SqlFileDataSetDefinition.java
new file mode 100644
index 0000000000..b37d6cf3a9
--- /dev/null
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/SqlFileDataSetDefinition.java
@@ -0,0 +1,88 @@
+/**
+ * The contents of this file are subject to the OpenMRS Public License
+ * Version 1.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ * http://license.openmrs.org
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ */
+package org.openmrs.module.reporting.dataset.definition;
+
+import org.openmrs.module.reporting.definition.configuration.ConfigurationProperty;
+
+/**
+ * Evaluates a sql script found at the configured file path or resource path or with the sql contents specified
+ * By default, this will utilize the database connection properties in the openmrs runtime properties
+ * This can use an alternative database connection by specifying the file. Property names follow those in openmrs runtime properties
+ */
+public class SqlFileDataSetDefinition extends BaseDataSetDefinition {
+
+ public enum MetadataParameterConversion {
+ ID, UUID, NAME
+ }
+
+ @ConfigurationProperty
+ private String sqlFile;
+
+ @ConfigurationProperty
+ private String sqlResource;
+
+ @ConfigurationProperty
+ private String sql;
+
+ @ConfigurationProperty
+ private String connectionPropertyFile;
+
+ @ConfigurationProperty
+ private MetadataParameterConversion metadataParameterConversion = MetadataParameterConversion.ID;
+
+ /**
+ * Constructor
+ */
+ public SqlFileDataSetDefinition() {}
+
+ public String getSqlFile() {
+ return sqlFile;
+ }
+
+ public void setSqlFile(String sqlFile) {
+ this.sqlFile = sqlFile;
+ }
+
+ public String getSqlResource() {
+ return sqlResource;
+ }
+
+ public void setSqlResource(String sqlResource) {
+ this.sqlResource = sqlResource;
+ }
+
+ public String getSql() {
+ return sql;
+ }
+
+ public void setSql(String sql) {
+ this.sql = sql;
+ }
+
+ public String getConnectionPropertyFile() {
+ return connectionPropertyFile;
+ }
+
+ public void setConnectionPropertyFile(String connectionPropertyFile) {
+ this.connectionPropertyFile = connectionPropertyFile;
+ }
+
+ public MetadataParameterConversion getMetadataParameterConversion() {
+ return metadataParameterConversion;
+ }
+
+ public void setMetadataParameterConversion(MetadataParameterConversion metadataParameterConversion) {
+ this.metadataParameterConversion = metadataParameterConversion;
+ }
+}
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/VisitDataSetDefinition.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/VisitDataSetDefinition.java
index 9a3bfe388a..d7d79bf11e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/VisitDataSetDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/VisitDataSetDefinition.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+/**
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition;
import org.openmrs.module.reporting.common.TimeQualifier;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortDataSetEvaluator.java
index fc68de5189..e89127dc8c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortDataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortIndicatorAndDimensionDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortIndicatorAndDimensionDataSetEvaluator.java
index 0e7f8560ac..7276992e6c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortIndicatorAndDimensionDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortIndicatorAndDimensionDataSetEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset.definition.evaluator;
import java.util.List;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortIndicatorDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortIndicatorDataSetEvaluator.java
index 7708248a4c..f1d92337b5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortIndicatorDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortIndicatorDataSetEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset.definition.evaluator;
import java.util.HashMap;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortsWithVaryingParametersDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortsWithVaryingParametersDataSetEvaluator.java
index b8148e0c22..b010605731 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortsWithVaryingParametersDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortsWithVaryingParametersDataSetEvaluator.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
import com.github.jknack.handlebars.Template;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/DataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/DataSetEvaluator.java
index 46b685ad1a..64e0011efc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/DataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/DataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
@@ -34,7 +30,7 @@ public interface DataSetEvaluator extends DefinitionEvaluator
* Evaluate a DataSet for the given EvaluationContext
*
* @param dataSetDefinition
- * @param inputCohortencounter_datetime
+ * @param evalContext
* @return the evaluated DataSet
*/
public DataSet evaluate(DataSetDefinition dataSetDefinition, EvaluationContext evalContext) throws EvaluationException;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EncounterAndObsDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EncounterAndObsDataSetEvaluator.java
index a6339dcae3..14c9330326 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EncounterAndObsDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EncounterAndObsDataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EncounterDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EncounterDataSetEvaluator.java
index 730b0dedc4..66b31429ef 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EncounterDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EncounterDataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EvaluatableDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EvaluatableDataSetEvaluator.java
index 25e42e53f3..2494a42285 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EvaluatableDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/EvaluatableDataSetEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset.definition.evaluator;
import org.openmrs.annotation.Handler;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/IterableSqlDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/IterableSqlDataSetEvaluator.java
new file mode 100644
index 0000000000..05ea945008
--- /dev/null
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/IterableSqlDataSetEvaluator.java
@@ -0,0 +1,99 @@
+/**
+ * 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.dataset.definition.evaluator;
+
+import org.apache.commons.lang.StringUtils;
+import org.openmrs.annotation.Handler;
+import org.openmrs.module.reporting.common.ObjectUtil;
+import org.openmrs.module.reporting.common.ResultSetIterator;
+import org.openmrs.module.reporting.common.SqlRunner;
+import org.openmrs.module.reporting.dataset.DataSet;
+import org.openmrs.module.reporting.dataset.IterableSqlDataSet;
+import org.openmrs.module.reporting.dataset.definition.DataSetDefinition;
+import org.openmrs.module.reporting.dataset.definition.IterableSqlDataSetDefinition;
+import org.openmrs.module.reporting.evaluation.EvaluationContext;
+import org.openmrs.module.reporting.evaluation.EvaluationException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.File;
+import java.sql.Connection;
+import java.util.Map;
+import java.util.Properties;
+
+/**
+ * The logic that evaluates a {@link IterableSqlDataSetDefinition} and produces an {@link DataSet}
+ *
+ * @see IterableSqlDataSetDefinition
+ */
+@Handler(supports = {IterableSqlDataSetDefinition.class}, order = 50)
+public class IterableSqlDataSetEvaluator extends SqlFileDataSetEvaluator {
+
+ private static final Logger log = LoggerFactory.getLogger(IterableSqlDataSetEvaluator.class);
+
+ /**
+ * @should evaluate a IterableSqlDataSetDefinition
+ * @should evaluate a IterableSqlDataSetDefinition with parameters
+ * @should evaluate a IterableSqlDataSetDefinition with in statement
+ * @should protect SQL Query Against database modifications
+ * @see DataSetEvaluator#evaluate(DataSetDefinition, EvaluationContext)
+ */
+ @Override
+ public DataSet evaluate(DataSetDefinition dataSetDefinition, EvaluationContext context) throws EvaluationException {
+
+ context = ObjectUtil.nvl(context, new EvaluationContext());
+ IterableSqlDataSetDefinition definition = (IterableSqlDataSetDefinition) dataSetDefinition;
+ ResultSetIterator iterator;
+ Connection connection;
+ try {
+ connection = getConnection(definition, context);
+ SqlRunner runner = new SqlRunner(connection);
+ Map parameterValues = constructParameterValues(definition, context);
+
+ if (StringUtils.isNotBlank(definition.getSqlFile())) {
+ File sqlFile = new File(definition.getSqlFile());
+ if (!sqlFile.exists()) {
+ throw new EvaluationException("Unable to find Sql File to execute: " + definition.getSqlFile());
+ }
+ log.info("Executing SQL File at " + sqlFile + " with parameters " + parameterValues);
+ iterator = runner.executeSqlFileToIterator(sqlFile, parameterValues);
+ } else if (StringUtils.isNotBlank(definition.getSqlResource())) {
+ log.info("Executing SQL Resource at " + definition.getSqlResource() + " with parameters " + parameterValues);
+ iterator = runner.executeSqlResourceToIterator(definition.getSqlResource(), parameterValues);
+ } else if (StringUtils.isNotBlank(definition.getSql())) {
+ log.info("Executing SQL with parameters " + parameterValues);
+ iterator = runner.executeSqlToIterator(definition.getSql(), parameterValues);
+ } else {
+ throw new EvaluationException("A SqlFileDataSetDefinition must define either a SQL File or SQL Resource");
+ }
+ }
+ catch (EvaluationException ee) {
+ throw ee;
+ }
+ catch (Exception e) {
+ throw new EvaluationException("An error occurred while evaluating a SqlFileDataSetDefinition", e);
+ }
+
+ return new IterableSqlDataSet(context, definition, iterator);
+ }
+
+ /**
+ * @return a new connection given a set of connection properties
+ */
+ @Override
+ protected Properties getConnectionProperties(String connectionPropertyFile) throws EvaluationException {
+ Properties p = super.getConnectionProperties(connectionPropertyFile);
+ String url = p.getProperty("connection.url");
+ if (url != null && !url.contains("useCursorFetch")) {
+ p.setProperty("connection.url", url + "&useCursorFetch=true");
+ }
+ return p;
+ }
+}
\ No newline at end of file
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/LazyPageableDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/LazyPageableDataSetEvaluator.java
index 3c35baf94e..1bba4526dc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/LazyPageableDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/LazyPageableDataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/LogicDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/LogicDataSetEvaluator.java
index 52c0d7a959..bc941174b1 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/LogicDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/LogicDataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/MultiParameterDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/MultiParameterDataSetEvaluator.java
index 71eea93f8a..b401f8cfa1 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/MultiParameterDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/MultiParameterDataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/MultiPeriodIndicatorDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/MultiPeriodIndicatorDataSetEvaluator.java
index b22ac0c030..5481e32b82 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/MultiPeriodIndicatorDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/MultiPeriodIndicatorDataSetEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset.definition.evaluator;
import java.util.Arrays;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/ObsDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/ObsDataSetEvaluator.java
index 66ae37cab4..1f2404cf84 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/ObsDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/ObsDataSetEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.dataset.definition.evaluator;
import org.openmrs.annotation.Handler;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/PatientDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/PatientDataSetEvaluator.java
index 0767e17c97..5a561e370d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/PatientDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/PatientDataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/RepeatPerTimePeriodDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/RepeatPerTimePeriodDataSetEvaluator.java
index 4c4cbccb73..e51b99ca3b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/RepeatPerTimePeriodDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/RepeatPerTimePeriodDataSetEvaluator.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
import org.joda.time.DateTime;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SimpleIndicatorDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SimpleIndicatorDataSetEvaluator.java
index 4ed8ed03ed..745edc7787 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SimpleIndicatorDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SimpleIndicatorDataSetEvaluator.java
@@ -1,17 +1,12 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
import org.apache.commons.logging.Log;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SimplePatientDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SimplePatientDataSetEvaluator.java
index e1f55f8851..7a5f8d1884 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SimplePatientDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SimplePatientDataSetEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SqlDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SqlDataSetEvaluator.java
index fe002824a6..ab7709a107 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SqlDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SqlDataSetEvaluator.java
@@ -1,17 +1,12 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
import org.apache.commons.logging.Log;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SqlFileDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SqlFileDataSetEvaluator.java
new file mode 100644
index 0000000000..6c9d0de447
--- /dev/null
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/SqlFileDataSetEvaluator.java
@@ -0,0 +1,183 @@
+/**
+ * The contents of this file are subject to the OpenMRS Public License
+ * Version 1.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ * http://license.openmrs.org
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ */
+package org.openmrs.module.reporting.dataset.definition.evaluator;
+
+import org.apache.commons.io.IOUtils;
+import org.apache.commons.lang.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.openmrs.OpenmrsMetadata;
+import org.openmrs.annotation.Handler;
+import org.openmrs.api.context.Context;
+import org.openmrs.module.reporting.common.ObjectUtil;
+import org.openmrs.module.reporting.common.SqlResult;
+import org.openmrs.module.reporting.common.SqlRunner;
+import org.openmrs.module.reporting.dataset.DataSet;
+import org.openmrs.module.reporting.dataset.DataSetColumn;
+import org.openmrs.module.reporting.dataset.DataSetRow;
+import org.openmrs.module.reporting.dataset.SimpleDataSet;
+import org.openmrs.module.reporting.dataset.SimpleDataSetMetaData;
+import org.openmrs.module.reporting.dataset.definition.DataSetDefinition;
+import org.openmrs.module.reporting.dataset.definition.SqlFileDataSetDefinition;
+import org.openmrs.module.reporting.dataset.definition.SqlFileDataSetDefinition.MetadataParameterConversion;
+import org.openmrs.module.reporting.evaluation.EvaluationContext;
+import org.openmrs.module.reporting.evaluation.EvaluationException;
+import org.openmrs.util.OpenmrsUtil;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.InputStream;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.util.Map;
+import java.util.Properties;
+
+/**
+ * Evaluates a SqlFileDataSetDefinition and produces results
+ */
+@Handler(supports = {SqlFileDataSetDefinition.class})
+public class SqlFileDataSetEvaluator implements DataSetEvaluator {
+ protected Log log = LogFactory.getLog(this.getClass());
+
+ /**
+ * @see DataSetEvaluator#evaluate(DataSetDefinition, EvaluationContext)
+ */
+ public DataSet evaluate(DataSetDefinition dataSetDefinition, EvaluationContext context) throws EvaluationException {
+
+ context = ObjectUtil.nvl(context, new EvaluationContext());
+ SimpleDataSet data = new SimpleDataSet(dataSetDefinition, context);
+
+ SqlFileDataSetDefinition dsd = (SqlFileDataSetDefinition) dataSetDefinition;
+
+ Connection connection = null;
+ try {
+ connection = getConnection(dsd, context);
+ SqlRunner runner = new SqlRunner(connection);
+ SqlResult resultData = null;
+ Map parameterValues = constructParameterValues(dsd, context);
+
+ if (StringUtils.isNotBlank(dsd.getSqlFile())) {
+ File sqlFile = new File(dsd.getSqlFile());
+ if (!sqlFile.exists()) {
+ throw new EvaluationException("Unable to find Sql File to execute: " + dsd.getSqlFile());
+ }
+ log.info("Executing SQL File at " + sqlFile + " with parameters " + parameterValues);
+ resultData = runner.executeSqlFile(sqlFile, parameterValues);
+ } else if (StringUtils.isNotBlank(dsd.getSqlResource())) {
+ log.info("Executing SQL Resource at " + dsd.getSqlResource() + " with parameters " + parameterValues);
+ resultData = runner.executeSqlResource(dsd.getSqlResource(), parameterValues);
+ } else if (StringUtils.isNotBlank(dsd.getSql())) {
+ log.info("Executing SQL with parameters " + parameterValues);
+ resultData = runner.executeSql(dsd.getSql(), parameterValues);
+ } else {
+ throw new EvaluationException("A SqlFileDataSetDefinition must define either a SQL File or SQL Resource");
+ }
+
+ if (!resultData.getErrors().isEmpty()) {
+ throw new EvaluationException("Errors occurred during mysql execution: " + OpenmrsUtil.join(resultData.getErrors(), "; "));
+ }
+
+ SimpleDataSetMetaData metaData = new SimpleDataSetMetaData();
+ for (String column : resultData.getColumns()) {
+ metaData.addColumn(new DataSetColumn(column, column, Object.class));
+ }
+ data.setMetaData(metaData);
+
+ for (Map rowData : resultData.getData()) {
+ DataSetRow row = new DataSetRow();
+ for (DataSetColumn column : metaData.getColumns()) {
+ row.addColumnValue(column, rowData.get(column.getName()));
+ }
+ data.addRow(row);
+ }
+ }
+ catch (EvaluationException ee) {
+ throw ee;
+ }
+ catch (Exception e) {
+ throw new EvaluationException("An error occurred while evaluating a SqlFileDataSetDefinition", e);
+ }
+ finally {
+ try {
+ if (connection != null) {
+ connection.close();
+ }
+ } catch (Exception e) {
+ log.warn("Error closing the database connection for SqlFileDataSetEvaluator", e);
+ }
+ }
+
+ return data;
+ }
+
+ /**
+ * @return the connection properties to use
+ */
+ protected Properties getConnectionProperties(String connectionPropertyFile) throws EvaluationException {
+ Properties properties = Context.getRuntimeProperties();
+ if (StringUtils.isNotBlank(connectionPropertyFile)) {
+ properties = new Properties();
+ InputStream is = null;
+ try {
+ File file = new File(OpenmrsUtil.getApplicationDataDirectory(), connectionPropertyFile);
+ is = new FileInputStream(file);
+ properties.load(is);
+ } catch (Exception e) {
+ throw new EvaluationException("Unable to load connection properties from file <" + connectionPropertyFile + ">", e);
+ } finally {
+ IOUtils.closeQuietly(is);
+ }
+ }
+ return properties;
+ }
+
+ /**
+ * @return a new connection given a set of connection properties
+ */
+ protected Connection getConnection(SqlFileDataSetDefinition dsd, EvaluationContext context) throws EvaluationException {
+ Properties connectionProperties = getConnectionProperties(dsd.getConnectionPropertyFile());
+ try {
+ String driver = connectionProperties.getProperty("connection.driver_class", "com.mysql.jdbc.Driver");
+ String url = connectionProperties.getProperty("connection.url");
+ String user = connectionProperties.getProperty("connection.username");
+ String password = connectionProperties.getProperty("connection.password");
+ Context.loadClass(driver);
+ return DriverManager.getConnection(url, user, password);
+ }
+ catch (Exception e) {
+ throw new EvaluationException("Unable to create a new connection to the database", e);
+ }
+ }
+
+ /**
+ * @return parameter values to use within SQL statement, converting object references to metadata to scalar properties, defaulting to keys
+ */
+ protected Map constructParameterValues(SqlFileDataSetDefinition dsd, EvaluationContext context) {
+ Map ret = context.getContextValues();
+ ret.putAll(context.getParameterValues());
+ for (String key : ret.keySet()) {
+ Object o = ret.get(key);
+ if (o instanceof OpenmrsMetadata) {
+ if (dsd.getMetadataParameterConversion() == MetadataParameterConversion.ID) {
+ ret.put(key, ((OpenmrsMetadata) o).getId());
+ } else if (dsd.getMetadataParameterConversion() == MetadataParameterConversion.UUID) {
+ ret.put(key, ((OpenmrsMetadata) o).getUuid());
+ } else if (dsd.getMetadataParameterConversion() == MetadataParameterConversion.NAME) {
+ ret.put(key, ((OpenmrsMetadata) o).getName());
+ }
+ }
+ }
+ return ret;
+ }
+}
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/VisitDataSetEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/VisitDataSetEvaluator.java
index 884d1e856f..9f9d7d985e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/VisitDataSetEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/VisitDataSetEvaluator.java
@@ -1,17 +1,12 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.evaluator;
import org.apache.commons.lang.time.StopWatch;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/persister/DataSetDefinitionPersister.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/persister/DataSetDefinitionPersister.java
index b3d3c0afa3..48e44e8b7d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/persister/DataSetDefinitionPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/persister/DataSetDefinitionPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/persister/SerializedDataSetDefinitionPersister.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/persister/SerializedDataSetDefinitionPersister.java
index 1a8ce013ea..f6d907cfbb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/persister/SerializedDataSetDefinitionPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/persister/SerializedDataSetDefinitionPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/service/DataSetDefinitionService.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/service/DataSetDefinitionService.java
index 919a473631..7bdc769e0c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/service/DataSetDefinitionService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/service/DataSetDefinitionService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/service/DataSetDefinitionServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/service/DataSetDefinitionServiceImpl.java
index b97028f823..617912d934 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/definition/service/DataSetDefinitionServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/definition/service/DataSetDefinitionServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.definition.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/BaseDataSetQueryService.java b/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/BaseDataSetQueryService.java
index b5ed7941cf..3d100ee660 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/BaseDataSetQueryService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/BaseDataSetQueryService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.query.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/DataSetQueryService.java b/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/DataSetQueryService.java
index bb46eb04a7..97d8166e2c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/DataSetQueryService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/DataSetQueryService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.query.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/db/DataSetQueryDAO.java b/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/db/DataSetQueryDAO.java
index 18f4c7c2d2..e3e6fe6a09 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/db/DataSetQueryDAO.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/db/DataSetQueryDAO.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.query.service.db;
diff --git a/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/db/HibernateDataSetQueryDAO.java b/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/db/HibernateDataSetQueryDAO.java
index acebe8a20d..f00d37a712 100644
--- a/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/db/HibernateDataSetQueryDAO.java
+++ b/api/src/main/java/org/openmrs/module/reporting/dataset/query/service/db/HibernateDataSetQueryDAO.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.dataset.query.service.db;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionContext.java b/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionContext.java
index b043a88b4f..13f6349bcf 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionContext.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionContext.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionSummary.java b/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionSummary.java
index 5d7869f7ce..d5fedc897a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionSummary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionSummary.java
@@ -1,3 +1,12 @@
+/**
+ * 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.definition;
import org.openmrs.OpenmrsMetadata;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionUtil.java b/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionUtil.java
index cabf0e809a..3feb6386f6 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/DefinitionUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationProperty.java b/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationProperty.java
index b0e6f25dff..c3d3c02e4d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationProperty.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationProperty.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.configuration;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationPropertyAndParameterCachingStrategy.java b/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationPropertyAndParameterCachingStrategy.java
index fc5675197b..e6d50c328d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationPropertyAndParameterCachingStrategy.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationPropertyAndParameterCachingStrategy.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.configuration;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationPropertyCachingStrategy.java b/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationPropertyCachingStrategy.java
index 65be8c0b84..4fcc5a1037 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationPropertyCachingStrategy.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/configuration/ConfigurationPropertyCachingStrategy.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.configuration;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/configuration/Property.java b/api/src/main/java/org/openmrs/module/reporting/definition/configuration/Property.java
index 8f4d1f8b6c..1a29e95bbe 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/configuration/Property.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/configuration/Property.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.configuration;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/converter/ConverterUtil.java b/api/src/main/java/org/openmrs/module/reporting/definition/converter/ConverterUtil.java
index 18f1dc55d6..ab616d2e0d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/converter/ConverterUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/converter/ConverterUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.converter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/converter/DefinitionConverter.java b/api/src/main/java/org/openmrs/module/reporting/definition/converter/DefinitionConverter.java
index 4a46a11260..44ab91f1d8 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/converter/DefinitionConverter.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/converter/DefinitionConverter.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.converter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/converter/SqlCohortDefinitionConverter.java b/api/src/main/java/org/openmrs/module/reporting/definition/converter/SqlCohortDefinitionConverter.java
index d58584567c..8e2248e880 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/converter/SqlCohortDefinitionConverter.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/converter/SqlCohortDefinitionConverter.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.converter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/evaluator/DefinitionEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/definition/evaluator/DefinitionEvaluator.java
index 98451a91fc..0b28d4ca2d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/evaluator/DefinitionEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/evaluator/DefinitionEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/AllDefinitionLibraries.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/AllDefinitionLibraries.java
index 5e8223f958..320d9c3b4a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/AllDefinitionLibraries.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/AllDefinitionLibraries.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.definition.library;
import org.openmrs.module.reporting.cohort.definition.DefinitionLibraryCohortDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/BaseDefinitionLibrary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/BaseDefinitionLibrary.java
index 371826d361..b76231eb8a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/BaseDefinitionLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/BaseDefinitionLibrary.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.definition.library;
import org.apache.commons.lang.StringUtils;
@@ -44,7 +39,11 @@ public abstract class BaseDefinitionLibrary implements Def
public abstract String getKeyPrefix();
public T getDefinition(String key) {
- String lookFor = key.startsWith(getKeyPrefix()) ? key.substring(getKeyPrefix().length()) : key;
+ String lookFor = key;
+ String keyPrefix = getKeyPrefix();
+ if (keyPrefix != null) {
+ lookFor = key.startsWith(keyPrefix) ? key.substring(keyPrefix.length()) : key;
+ }
return findAndInvokeMethod(lookFor);
}
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/DefinitionLibrary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/DefinitionLibrary.java
index 6aebe07765..4ca4a7ae01 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/DefinitionLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/DefinitionLibrary.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.definition.library;
import org.openmrs.module.reporting.evaluation.Definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/DocumentedDefinition.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/DocumentedDefinition.java
index 585c906ffa..0afdfe72fc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/DocumentedDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/DocumentedDefinition.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.definition.library;
import java.lang.annotation.ElementType;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/LibraryDefinitionSummary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/LibraryDefinitionSummary.java
index 6fd5c9d2ac..416b6ef7d0 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/LibraryDefinitionSummary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/LibraryDefinitionSummary.java
@@ -1,3 +1,12 @@
+/**
+ * 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.definition.library;
import org.openmrs.module.reporting.evaluation.parameter.Parameter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/BaseImplementerConfiguredDefinitionLibrary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/BaseImplementerConfiguredDefinitionLibrary.java
index 4748041d8b..81c220832c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/BaseImplementerConfiguredDefinitionLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/BaseImplementerConfiguredDefinitionLibrary.java
@@ -1,3 +1,12 @@
+/**
+ * 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.definition.library.implementerconfigured;
import java.io.File;
@@ -96,7 +105,7 @@ private void ensureDefinitions() {
}
}
- private void loadDefinitions() {
+ public void loadDefinitions() {
Map newDefinitions = new HashMap();
List newSummaries = new ArrayList();
@@ -219,4 +228,4 @@ public void setAutowireCapableBeanFactory(AutowireCapableBeanFactory autowireCap
this.autowireCapableBeanFactory = autowireCapableBeanFactory;
}
-}
\ No newline at end of file
+}
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredCohortDefinitionLibrary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredCohortDefinitionLibrary.java
index 062b0b2f7e..bfa8c23d72 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredCohortDefinitionLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredCohortDefinitionLibrary.java
@@ -1,3 +1,12 @@
+/**
+ * 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.definition.library.implementerconfigured;
import java.io.File;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredDataSetDefinitionLibrary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredDataSetDefinitionLibrary.java
index 655557df77..3aa53b6467 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredDataSetDefinitionLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredDataSetDefinitionLibrary.java
@@ -1,3 +1,12 @@
+/**
+ * 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.definition.library.implementerconfigured;
import org.openmrs.module.reporting.cohort.definition.CohortDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredEncounterDataDefinitionLibrary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredEncounterDataDefinitionLibrary.java
index 6061e0f616..a4c663a4df 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredEncounterDataDefinitionLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredEncounterDataDefinitionLibrary.java
@@ -1,3 +1,12 @@
+/**
+ * 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.definition.library.implementerconfigured;
import org.openmrs.module.reporting.data.encounter.definition.EncounterDataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredPatientDataDefinitionLibrary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredPatientDataDefinitionLibrary.java
index 30cd0ca122..ce57cfb609 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredPatientDataDefinitionLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredPatientDataDefinitionLibrary.java
@@ -1,3 +1,12 @@
+/**
+ * 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.definition.library.implementerconfigured;
import java.io.File;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredVisitDataDefinitionLibrary.java b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredVisitDataDefinitionLibrary.java
index 01b4455b6e..da7370d819 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredVisitDataDefinitionLibrary.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/library/implementerconfigured/ImplementerConfiguredVisitDataDefinitionLibrary.java
@@ -1,3 +1,12 @@
+/**
+ * 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.definition.library.implementerconfigured;
import org.openmrs.module.reporting.data.encounter.definition.EncounterDataDefinition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/persister/DefinitionPersister.java b/api/src/main/java/org/openmrs/module/reporting/definition/persister/DefinitionPersister.java
index 913d940b23..9af46633d8 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/persister/DefinitionPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/persister/DefinitionPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/persister/SerializedDefinitionPersister.java b/api/src/main/java/org/openmrs/module/reporting/definition/persister/SerializedDefinitionPersister.java
index 48eae94176..2bcebaddd4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/persister/SerializedDefinitionPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/persister/SerializedDefinitionPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/service/BaseDefinitionService.java b/api/src/main/java/org/openmrs/module/reporting/definition/service/BaseDefinitionService.java
index 5a44512905..e316fcbdd2 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/service/BaseDefinitionService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/service/BaseDefinitionService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/service/DefinitionService.java b/api/src/main/java/org/openmrs/module/reporting/definition/service/DefinitionService.java
index a7c84598c8..db0a3b1773 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/service/DefinitionService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/service/DefinitionService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/service/SerializedDefinitionService.java b/api/src/main/java/org/openmrs/module/reporting/definition/service/SerializedDefinitionService.java
index 529f4fe2b0..00f10ba097 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/service/SerializedDefinitionService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/service/SerializedDefinitionService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/definition/service/SerializedDefinitionServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/definition/service/SerializedDefinitionServiceImpl.java
index 0cc7400e71..1fbe74b595 100644
--- a/api/src/main/java/org/openmrs/module/reporting/definition/service/SerializedDefinitionServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/definition/service/SerializedDefinitionServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.definition.service;
@@ -44,7 +40,7 @@ public class SerializedDefinitionServiceImpl extends BaseOpenmrsService implemen
//****************
// Constructor
//****************
- private SerializedDefinitionServiceImpl() { }
+ public SerializedDefinitionServiceImpl() { }
//****************
// Properties
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/BaseDefinition.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/BaseDefinition.java
index 69d98d8014..47cf1e9c13 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/BaseDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/BaseDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/Definition.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/Definition.java
index 117c769468..4c593b1b96 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/Definition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/Definition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/Evaluated.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/Evaluated.java
index 7ae93418a7..d7b49b3a02 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/Evaluated.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/Evaluated.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationConfiguration.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationConfiguration.java
index 0e05f21ced..dda7e4312f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationConfiguration.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationConfiguration.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationContext.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationContext.java
index ca88436246..59dcf0bbb6 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationContext.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationContext.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationException.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationException.java
index e40569eaa2..37cc323e27 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationException.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationException.java
@@ -1,3 +1,12 @@
+/**
+ * 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.evaluation;
import org.openmrs.api.APIException;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationProfiler.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationProfiler.java
index ea3033bafa..5f21205fc4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationProfiler.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationProfiler.java
@@ -1,17 +1,12 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation;
import org.apache.commons.io.IOUtils;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationUtil.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationUtil.java
index 9705b1de91..8013dace76 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/EvaluationUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/MissingDependencyException.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/MissingDependencyException.java
index a82a78433d..02455c3e9b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/MissingDependencyException.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/MissingDependencyException.java
@@ -1,3 +1,12 @@
+/**
+ * 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.evaluation;
/**
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/Caching.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/Caching.java
index 6addfd08bf..df6c781349 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/Caching.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/Caching.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.caching;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/CachingStrategy.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/CachingStrategy.java
index a791d06fdc..34f892c65b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/CachingStrategy.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/CachingStrategy.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.caching;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/NoCachingStrategy.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/NoCachingStrategy.java
index c31d426081..74b1a5b3b4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/NoCachingStrategy.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/caching/NoCachingStrategy.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.caching;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/context/EncounterEvaluationContext.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/context/EncounterEvaluationContext.java
index 004ccb98cf..e7712df83f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/context/EncounterEvaluationContext.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/context/EncounterEvaluationContext.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.context;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/context/ObsEvaluationContext.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/context/ObsEvaluationContext.java
index a4f4365f77..778cf89342 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/context/ObsEvaluationContext.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/context/ObsEvaluationContext.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.context;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/context/PersonEvaluationContext.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/context/PersonEvaluationContext.java
index 1bbbc42999..3ee602decc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/context/PersonEvaluationContext.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/context/PersonEvaluationContext.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.context;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/context/VisitEvaluationContext.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/context/VisitEvaluationContext.java
index 2ad315aba3..7aadcb704a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/context/VisitEvaluationContext.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/context/VisitEvaluationContext.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.context;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java
index 174bb7e34c..2e1e18703d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.parameter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Parameter.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Parameter.java
index 93ca3d02da..479686132f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Parameter.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Parameter.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.parameter;
@@ -156,6 +152,21 @@ public Parameter(String name, String label, Class> type) {
public Parameter(String name, String label, Class> type, Properties widgetConfiguration) {
this(name, label, type, null, null, widgetConfiguration);
}
+
+ /**
+ * Initialize this Parameter with the values from an existing Parameter. This is equivalent to cloning.
+ *
+ * @param p the Parameter to clone from
+ */
+ public Parameter(Parameter p) {
+ setName(p.getName());
+ setLabel(p.getLabel());
+ setType(p.getType());
+ setCollectionType(p.getCollectionType());
+ setRequired(p.isRequired());
+ setDefaultValue(p.getDefaultValue());
+ setWidgetConfiguration(p.getWidgetConfiguration());
+ }
//***********************
// INSTANCE METHODS
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/ParameterException.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/ParameterException.java
index d06ca0f888..434bac4869 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/ParameterException.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/ParameterException.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.parameter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Parameterizable.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Parameterizable.java
index 56f8858399..243dd4df70 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Parameterizable.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Parameterizable.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.parameter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/ParameterizableUtil.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/ParameterizableUtil.java
index 19de75801a..7a09f3a9b4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/ParameterizableUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/ParameterizableUtil.java
@@ -1,3 +1,12 @@
+/**
+ * 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.evaluation.parameter;
import org.apache.commons.lang.StringUtils;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/querybuilder/HqlQueryBuilder.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/querybuilder/HqlQueryBuilder.java
index 774e2f637c..ea60309a8c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/querybuilder/HqlQueryBuilder.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/querybuilder/HqlQueryBuilder.java
@@ -1,3 +1,12 @@
+/**
+ * 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.evaluation.querybuilder;
import org.apache.commons.logging.Log;
@@ -43,7 +52,7 @@ public class HqlQueryBuilder implements QueryBuilder {
protected Log log = LogFactory.getLog(getClass());
- private Map> fromTypes = new LinkedHashMap>();
+ private Map fromTypes = new LinkedHashMap();
private boolean includeVoided = false;
private List columns = new ArrayList();
private List joinClauses = new ArrayList();
@@ -84,13 +93,18 @@ public HqlQueryBuilder from(Class> fromType) {
}
public HqlQueryBuilder from(Class> fromType, String fromAlias) {
- fromTypes.put(fromAlias, fromType);
+ fromTypes.put(fromAlias, fromType.getName());
if (!includeVoided && Voidable.class.isAssignableFrom(fromType)) {
whereEqual((ObjectUtil.notNull(fromAlias) ? fromAlias + "." : "")+"voided", false);
}
return this;
}
+ public HqlQueryBuilder from(String entityName, String fromAlias) {
+ fromTypes.put(fromAlias, entityName);
+ return this;
+ }
+
public HqlQueryBuilder innerJoin(String property, String alias) {
joinClauses.add("inner join " + property + " as " + alias);
return this;
@@ -218,6 +232,17 @@ public HqlQueryBuilder whereInAny(String propertyName, Object... values) {
return this;
}
+ public HqlQueryBuilder whereNotInAny(String propertyName, Collection> values) {
+ if (values != null) {
+ if (values.isEmpty()) {
+ where("1=1");
+ } else {
+ where(propertyName + " not in (:" + nextPositionIndex() + ")").withValue(values);
+ }
+ }
+ return this;
+ }
+
public HqlQueryBuilder wherePatientIn(String propertyName, EvaluationContext context) {
if (context != null) {
if (context.getBaseCohort() != null) {
@@ -434,10 +459,11 @@ public List getColumns(DbSessionFactory sessionFactory) {
Query q = buildQuery(sessionFactory);
String[] returnAliases = q.getReturnAliases();
Type[] returnTypes = q.getReturnTypes();
- for (int i=0; i parameters) {
//***** INSTANCE METHODS *****
public SqlQueryBuilder append(String clause) {
- clause = StringUtils.stripComments(clause);
+ clause = stripComments(clause);
queryClauses.add(clause);
return this;
}
+
+ /**
+ * Searches through a String which contains SQL code and strips out
+ * any comments that are between \/**\/ or anything that matches
+ * SP--SP\n (to support the ANSI standard commenting of --
+ * at the end of a line).
+ *
+ * Copied from liquibase.util.StringUtils
+ *
+ * @return The String without the comments in
+ */
+ private static String stripComments(String multiLineSQL) {
+ String strippedSingleLines = Pattern.compile("(.*?)\\s*\\-\\-.*\n").matcher(multiLineSQL).replaceAll("$1\n");
+ strippedSingleLines = Pattern.compile("(.*?)\\s*\\-\\-.*$").matcher(strippedSingleLines).replaceAll("$1\n");
+ return Pattern.compile("/\\*.*?\\*/", Pattern.DOTALL).matcher(strippedSingleLines).replaceAll("").trim();
+ }
public SqlQueryBuilder addParameter(String parameterName, Object parameterValue) {
getParameters().put(parameterName, parameterValue);
@@ -99,10 +123,10 @@ public String getSqlQuery() {
@Override
public List getColumns(DbSessionFactory sessionFactory) {
final List l = new ArrayList();
-
+
try {
sessionFactory.getCurrentSession().doWork(new Work() {
-
+
@Override
public void execute(Connection connection) throws SQLException {
PreparedStatement statement = null;
@@ -128,20 +152,20 @@ public void execute(Connection connection) throws SQLException {
catch (Exception e) {
throw new IllegalArgumentException("Unable to retrieve columns for query", e);
}
-
+
return l;
}
@Override
public List evaluateToList(DbSessionFactory sessionFactory, EvaluationContext context) {
-
+
final List ret = new ArrayList();
EvaluationProfiler profiler = new EvaluationProfiler(context);
profiler.logBefore("EXECUTING_QUERY", toString());
-
+
try {
sessionFactory.getCurrentSession().doWork(new Work() {
-
+
@Override
public void execute(Connection connection) throws SQLException {
PreparedStatement statement = null;
@@ -174,7 +198,7 @@ public void execute(Connection connection) throws SQLException {
profiler.logError("EXECUTING_QUERY", toString(), e);
throw new IllegalArgumentException("Unable to execute query", e);
}
-
+
profiler.logAfter("EXECUTING_QUERY", "Completed successfully with " + ret.size() + " results");
return ret;
}
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/service/EvaluationService.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/service/EvaluationService.java
index fd84973638..27c432c1ee 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/service/EvaluationService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/service/EvaluationService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/evaluation/service/EvaluationServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/evaluation/service/EvaluationServiceImpl.java
index b731c0bd0e..48c93af159 100644
--- a/api/src/main/java/org/openmrs/module/reporting/evaluation/service/EvaluationServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/evaluation/service/EvaluationServiceImpl.java
@@ -1,19 +1,15 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.evaluation.service;
-import org.openmrs.api.db.hibernate.DbSessionFactory;
+import org.openmrs.api.db.hibernate.DbSessionFactory;
import org.openmrs.api.context.Context;
import org.openmrs.api.impl.BaseOpenmrsService;
import org.openmrs.module.reporting.dataset.DataSetColumn;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/BaseIndicator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/BaseIndicator.java
index b56626bd0e..0a2c883ee5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/BaseIndicator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/BaseIndicator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/CohortIndicator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/CohortIndicator.java
index b9c3356aa1..c8c2d01df9 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/CohortIndicator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/CohortIndicator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/CohortIndicatorResult.java b/api/src/main/java/org/openmrs/module/reporting/indicator/CohortIndicatorResult.java
index 9fba3255f2..7e8fbd0a84 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/CohortIndicatorResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/CohortIndicatorResult.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/Indicator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/Indicator.java
index 90d39fd944..3175e47be5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/Indicator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/Indicator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/IndicatorResult.java b/api/src/main/java/org/openmrs/module/reporting/indicator/IndicatorResult.java
index 00adfd6ddd..c18ab889e3 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/IndicatorResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/IndicatorResult.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/QueryCountIndicator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/QueryCountIndicator.java
index 68ac8b03a1..40f815d93e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/QueryCountIndicator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/QueryCountIndicator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/SimpleIndicatorResult.java b/api/src/main/java/org/openmrs/module/reporting/indicator/SimpleIndicatorResult.java
index 1cefd23d0e..c0de09e63d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/SimpleIndicatorResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/SimpleIndicatorResult.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/SqlIndicator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/SqlIndicator.java
index 54d8132488..f063e894f1 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/SqlIndicator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/SqlIndicator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/AggregationUtil.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/AggregationUtil.java
index ecb7ffb63d..9cc66e8efc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/AggregationUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/AggregationUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/Aggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/Aggregator.java
index 29983f4d4b..ddc475af5d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/Aggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/Aggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/CountAggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/CountAggregator.java
index af76df6e77..9c37610167 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/CountAggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/CountAggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/DistinctAggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/DistinctAggregator.java
index c22e92990a..69b30edeca 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/DistinctAggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/DistinctAggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MaxAggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MaxAggregator.java
index ff6ec53776..b4fedcc58a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MaxAggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MaxAggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MeanAggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MeanAggregator.java
index 2ac2c762cb..692147d01a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MeanAggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MeanAggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MedianAggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MedianAggregator.java
index 9844083593..490b9dbcfd 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MedianAggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MedianAggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MinAggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MinAggregator.java
index 30cd5294e6..fe9378f2eb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MinAggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/MinAggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/ModeAggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/ModeAggregator.java
index 81b6c7303f..01832a3367 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/ModeAggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/ModeAggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/SumAggregator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/SumAggregator.java
index 2fd55e99ef..06cdaf57c8 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/SumAggregator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/aggregation/SumAggregator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.aggregation;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDefinitionDimension.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDefinitionDimension.java
index cda950f85f..67a3486a42 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDefinitionDimension.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDefinitionDimension.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDefinitionDimensionCategory.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDefinitionDimensionCategory.java
index ac24f49993..98ae49ea34 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDefinitionDimensionCategory.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDefinitionDimensionCategory.java
@@ -1,3 +1,12 @@
+/**
+ * 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.indicator.dimension;
import java.util.Map;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDimension.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDimension.java
index 37aaea061e..dc404c0cce 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDimension.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDimension.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDimensionResult.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDimensionResult.java
index 9b273d4549..31ed51bc17 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDimensionResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortDimensionResult.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortIndicatorAndDimensionResult.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortIndicatorAndDimensionResult.java
index 74aa1e747e..790c8d833d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortIndicatorAndDimensionResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/CohortIndicatorAndDimensionResult.java
@@ -1,3 +1,12 @@
+/**
+ * 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.indicator.dimension;
import java.util.HashMap;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/Dimension.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/Dimension.java
index 40d1249330..77296afc99 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/Dimension.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/Dimension.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/DimensionCategory.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/DimensionCategory.java
index 015c907a4b..53f7d4f910 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/DimensionCategory.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/DimensionCategory.java
@@ -1,3 +1,12 @@
+/**
+ * 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.indicator.dimension;
/**
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/DimensionSet.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/DimensionSet.java
index 15d1634106..a960e2bf24 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/DimensionSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/DimensionSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/evaluator/CohortDimensionEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/evaluator/CohortDimensionEvaluator.java
index 077d877481..961b41dd30 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/evaluator/CohortDimensionEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/evaluator/CohortDimensionEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/evaluator/DimensionEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/evaluator/DimensionEvaluator.java
index ece2151566..9b8b242125 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/evaluator/DimensionEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/evaluator/DimensionEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/persister/DimensionPersister.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/persister/DimensionPersister.java
index adabcd4305..5d355949ec 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/persister/DimensionPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/persister/DimensionPersister.java
@@ -1,3 +1,12 @@
+/**
+ * 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.indicator.dimension.persister;
import java.util.List;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/persister/SerializedDimensionPersister.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/persister/SerializedDimensionPersister.java
index 6d47598c99..cebcd8bcca 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/persister/SerializedDimensionPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/persister/SerializedDimensionPersister.java
@@ -1,3 +1,12 @@
+/**
+ * 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.indicator.dimension.persister;
import org.openmrs.annotation.Handler;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/service/DimensionService.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/service/DimensionService.java
index e2c3742340..93941aaa27 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/service/DimensionService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/service/DimensionService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/service/DimensionServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/service/DimensionServiceImpl.java
index 1d0723400d..419d1cbb11 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/service/DimensionServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/dimension/service/DimensionServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.dimension.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/CohortIndicatorEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/CohortIndicatorEvaluator.java
index b7ff2e20da..ac9a072ca9 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/CohortIndicatorEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/CohortIndicatorEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.evaluator;
@@ -106,7 +102,9 @@ public IndicatorResult evaluate(Indicator indicator, EvaluationContext context)
if (cid.getDataToAggregate() != null) {
try {
PatientDataService pds = Context.getService(PatientDataService.class);
- EvaluatedPatientData patientData = pds.evaluate(cid.getDataToAggregate(), context);
+ EvaluationContext dataContext = context.shallowCopy();
+ dataContext.setBaseCohort(cohort);
+ EvaluatedPatientData patientData = pds.evaluate(cid.getDataToAggregate(), dataContext);
for (Integer pId : patientData.getData().keySet()) {
result.addLogicResult(pId, (Number) patientData.getData().get(pId));
}
@@ -158,4 +156,4 @@ private void maybeSetIndexDate(Object criteria, EvaluationContext context) {
}
}
}
-}
\ No newline at end of file
+}
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/IndicatorEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/IndicatorEvaluator.java
index 1e51ccaee2..498514f53d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/IndicatorEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/IndicatorEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/QueryCountIndicatorEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/QueryCountIndicatorEvaluator.java
index 59aa9e3047..4136bde50a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/QueryCountIndicatorEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/QueryCountIndicatorEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/SqlIndicatorEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/SqlIndicatorEvaluator.java
index 5caeefa867..e227cac450 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/SqlIndicatorEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/evaluator/SqlIndicatorEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/persister/IndicatorPersister.java b/api/src/main/java/org/openmrs/module/reporting/indicator/persister/IndicatorPersister.java
index 2e39b9407d..15c7c3855b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/persister/IndicatorPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/persister/IndicatorPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/persister/SerializedIndicatorPersister.java b/api/src/main/java/org/openmrs/module/reporting/indicator/persister/SerializedIndicatorPersister.java
index 5f149c7843..c660c9c208 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/persister/SerializedIndicatorPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/persister/SerializedIndicatorPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/service/IndicatorService.java b/api/src/main/java/org/openmrs/module/reporting/indicator/service/IndicatorService.java
index 0655c2f016..6dde025ccc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/service/IndicatorService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/service/IndicatorService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/service/IndicatorServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/indicator/service/IndicatorServiceImpl.java
index 9fccd0e7e0..fa49ea4ce5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/service/IndicatorServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/service/IndicatorServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/indicator/util/IndicatorUtil.java b/api/src/main/java/org/openmrs/module/reporting/indicator/util/IndicatorUtil.java
index 91051983e7..901f4491ca 100644
--- a/api/src/main/java/org/openmrs/module/reporting/indicator/util/IndicatorUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/indicator/util/IndicatorUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.indicator.util;
diff --git a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/CohortDefinitionEditor.java b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/CohortDefinitionEditor.java
index 84743721fc..61f5cc0727 100644
--- a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/CohortDefinitionEditor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/CohortDefinitionEditor.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.propertyeditor;
diff --git a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/DataSetDefinitionEditor.java b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/DataSetDefinitionEditor.java
index ae99acac88..6c0e3d194f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/DataSetDefinitionEditor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/DataSetDefinitionEditor.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.propertyeditor;
diff --git a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/IndicatorEditor.java b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/IndicatorEditor.java
index 37b3103c5d..cdeb4bfa02 100644
--- a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/IndicatorEditor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/IndicatorEditor.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.propertyeditor;
diff --git a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/MappedEditor.java b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/MappedEditor.java
index f80da6633e..c65c014b3d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/MappedEditor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/MappedEditor.java
@@ -1,3 +1,12 @@
+/**
+ * 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.propertyeditor;
import java.beans.PropertyEditorSupport;
diff --git a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/RenderingModeEditor.java b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/RenderingModeEditor.java
index b99fc3fbf9..347cb12f1a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/RenderingModeEditor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/RenderingModeEditor.java
@@ -1,3 +1,12 @@
+/**
+ * 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.propertyeditor;
import java.beans.PropertyEditorSupport;
diff --git a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/ReportDefinitionEditor.java b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/ReportDefinitionEditor.java
index 877ec170d3..f13deda6f3 100644
--- a/api/src/main/java/org/openmrs/module/reporting/propertyeditor/ReportDefinitionEditor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/propertyeditor/ReportDefinitionEditor.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.propertyeditor;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/BaseIdSet.java b/api/src/main/java/org/openmrs/module/reporting/query/BaseIdSet.java
index 4e0d54c477..077146c21c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/BaseIdSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/BaseIdSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/BaseQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/BaseQuery.java
index 2dceb28ed8..ea059815af 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/BaseQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/BaseQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/BaseSqlQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/BaseSqlQuery.java
index 4166a27230..6d017703dc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/BaseSqlQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/BaseSqlQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/CompositionQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/CompositionQuery.java
index 369639104c..3da6cbc558 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/CompositionQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/CompositionQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/IdSet.java b/api/src/main/java/org/openmrs/module/reporting/query/IdSet.java
index 1dc09c15f0..195e31a05a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/IdSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/IdSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/MappedParametersQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/MappedParametersQuery.java
index 6b92ddca30..4924f87cff 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/MappedParametersQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/MappedParametersQuery.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query;
import org.openmrs.OpenmrsObject;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/Query.java b/api/src/main/java/org/openmrs/module/reporting/query/Query.java
index ca0cc8ab17..5899825b86 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/Query.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/Query.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/QueryUtil.java b/api/src/main/java/org/openmrs/module/reporting/query/QueryUtil.java
index c8739f62a5..b6905bbfac 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/QueryUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/QueryUtil.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query;
import org.apache.commons.logging.Log;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/EncounterIdSet.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/EncounterIdSet.java
index 4e796d7c17..a870e0f550 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/EncounterIdSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/EncounterIdSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/EncounterQueryResult.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/EncounterQueryResult.java
index 877506ce3d..e103bf4f70 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/EncounterQueryResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/EncounterQueryResult.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/AllEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/AllEncounterQuery.java
index 04c2e64a5a..b6f56b064a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/AllEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/AllEncounterQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/AuditEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/AuditEncounterQuery.java
index b88921199e..291df2f288 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/AuditEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/AuditEncounterQuery.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
import org.openmrs.Encounter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/BasicEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/BasicEncounterQuery.java
index 79dd933d07..4f0eb481ca 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/BasicEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/BasicEncounterQuery.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
import org.openmrs.Encounter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/CodedObsForEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/CodedObsForEncounterQuery.java
index ce5f73c13b..85f7cd85ca 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/CodedObsForEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/CodedObsForEncounterQuery.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
import org.openmrs.Concept;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/CompositionEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/CompositionEncounterQuery.java
index 5452e66ce3..a123c776ca 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/CompositionEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/CompositionEncounterQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/ConditionalParameterEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/ConditionalParameterEncounterQuery.java
index 494a3cac3d..b74c8448cc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/ConditionalParameterEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/ConditionalParameterEncounterQuery.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.encounter.definition;
import org.openmrs.Encounter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/EncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/EncounterQuery.java
index 17b501526c..f186c356c7 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/EncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/EncounterQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/MappedParametersEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/MappedParametersEncounterQuery.java
index 8f716aa2b8..f8bd5b6315 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/MappedParametersEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/MappedParametersEncounterQuery.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.encounter.definition;
import org.openmrs.Encounter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/MostRecentEncounterForPatientQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/MostRecentEncounterForPatientQuery.java
index 16f9a3113e..12b283aa57 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/MostRecentEncounterForPatientQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/MostRecentEncounterForPatientQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/NumericObsForEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/NumericObsForEncounterQuery.java
index 8413dfc4b5..196e102d26 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/NumericObsForEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/NumericObsForEncounterQuery.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
import org.openmrs.module.reporting.common.RangeComparator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/ObsForEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/ObsForEncounterQuery.java
index 22a688d120..f7cc04e8c8 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/ObsForEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/ObsForEncounterQuery.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
import org.openmrs.Concept;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/PatientEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/PatientEncounterQuery.java
index a67d5100ff..c74e0bb145 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/PatientEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/PatientEncounterQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/SqlEncounterQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/SqlEncounterQuery.java
index 3c29853d48..aea504f0b7 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/SqlEncounterQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/definition/SqlEncounterQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/AllEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/AllEncounterQueryEvaluator.java
index ff6a3c5241..c944b11a4c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/AllEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/AllEncounterQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/AuditEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/AuditEncounterQueryEvaluator.java
index 93fd7b4be9..f0eacd92d0 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/AuditEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/AuditEncounterQueryEvaluator.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+/**
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
import org.openmrs.Encounter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/BasicEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/BasicEncounterQueryEvaluator.java
index dd9d7e45f7..61e972b001 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/BasicEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/BasicEncounterQueryEvaluator.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+/**
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
import org.openmrs.Encounter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/CompositionEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/CompositionEncounterQueryEvaluator.java
index 34876e7c60..b0025e8e3d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/CompositionEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/CompositionEncounterQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/ConditionalParameterEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/ConditionalParameterEncounterQueryEvaluator.java
index b29fe49a69..4c25f968fb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/ConditionalParameterEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/ConditionalParameterEncounterQueryEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.encounter.evaluator;
import org.openmrs.annotation.Handler;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/EncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/EncounterQueryEvaluator.java
index fe23dba68d..824a425162 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/EncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/EncounterQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/MappedParametersEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/MappedParametersEncounterQueryEvaluator.java
index 122ef9c39f..050f8895f3 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/MappedParametersEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/MappedParametersEncounterQueryEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.encounter.evaluator;
import org.openmrs.annotation.Handler;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/MostRecentEncounterForPatientQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/MostRecentEncounterForPatientQueryEvaluator.java
index a5ab5c7a4e..efa46ecd86 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/MostRecentEncounterForPatientQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/MostRecentEncounterForPatientQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/ObsForEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/ObsForEncounterQueryEvaluator.java
index 94f90b9dea..73dc519b2a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/ObsForEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/ObsForEncounterQueryEvaluator.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+/**
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
import org.openmrs.Obs;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/PatientEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/PatientEncounterQueryEvaluator.java
index 1a76c9c78d..78248b673a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/PatientEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/PatientEncounterQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/SqlEncounterQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/SqlEncounterQueryEvaluator.java
index f9218235fc..f6bf041d22 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/SqlEncounterQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/evaluator/SqlEncounterQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/persister/SerializedEncounterQueryPersister.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/persister/SerializedEncounterQueryPersister.java
index ce54ad348f..ddefac2863 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/persister/SerializedEncounterQueryPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/persister/SerializedEncounterQueryPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/service/EncounterQueryService.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/service/EncounterQueryService.java
index 1f26e63b91..73b59a0713 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/service/EncounterQueryService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/service/EncounterQueryService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/encounter/service/EncounterQueryServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/query/encounter/service/EncounterQueryServiceImpl.java
index b3fa460c84..2cb5d02fa6 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/encounter/service/EncounterQueryServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/encounter/service/EncounterQueryServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.encounter.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/evaluator/CompositionQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/evaluator/CompositionQueryEvaluator.java
index a4690d7d3b..f83afc2e49 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/evaluator/CompositionQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/evaluator/CompositionQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/ObsIdSet.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/ObsIdSet.java
index 076a3ec34a..10f2e3b1ac 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/ObsIdSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/ObsIdSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/ObsQueryResult.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/ObsQueryResult.java
index 543f3fcb7b..d0f26eec0d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/ObsQueryResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/ObsQueryResult.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/AllObsQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/AllObsQuery.java
index 3eb92b2429..fe4418485a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/AllObsQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/AllObsQuery.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.obs.definition;
import org.openmrs.Obs;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/BasicObsQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/BasicObsQuery.java
index 93562598f1..4a3e70c6fc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/BasicObsQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/BasicObsQuery.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.obs.definition;
import org.openmrs.Concept;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/MappedParametersObsQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/MappedParametersObsQuery.java
index 41d06b2e33..932b727003 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/MappedParametersObsQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/MappedParametersObsQuery.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.obs.definition;
import org.openmrs.Obs;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/ObsQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/ObsQuery.java
index 5c997a4a81..f660b55a9c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/ObsQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/ObsQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/PatientObsQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/PatientObsQuery.java
index 587c0e0cf1..9b8d631954 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/PatientObsQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/PatientObsQuery.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.obs.definition;
import org.openmrs.Obs;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/SqlObsQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/SqlObsQuery.java
index 11c47c0e69..1c245ad123 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/SqlObsQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/definition/SqlObsQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/AllObsQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/AllObsQueryEvaluator.java
index 508371abeb..61d1947899 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/AllObsQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/AllObsQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/BasicObsQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/BasicObsQueryEvaluator.java
index ca066eab13..dc15e29d32 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/BasicObsQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/BasicObsQueryEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.obs.evaluator;
import org.openmrs.Obs;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/MappedParametersObsQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/MappedParametersObsQueryEvaluator.java
index 4a8aa27391..0ccf7ff929 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/MappedParametersObsQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/MappedParametersObsQueryEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.obs.evaluator;
import org.openmrs.annotation.Handler;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/ObsQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/ObsQueryEvaluator.java
index ddfef0a24b..42206ae669 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/ObsQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/ObsQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/PatientObsQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/PatientObsQueryEvaluator.java
index 827747cc11..1c6d853dcb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/PatientObsQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/PatientObsQueryEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.obs.evaluator;
import org.apache.commons.logging.Log;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/SqlObsQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/SqlObsQueryEvaluator.java
index c2666d5f25..d00e349b03 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/SqlObsQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/evaluator/SqlObsQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/persister/SerializedObsQueryPersister.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/persister/SerializedObsQueryPersister.java
index 8dda111ef1..ccb81d443b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/persister/SerializedObsQueryPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/persister/SerializedObsQueryPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/service/ObsQueryService.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/service/ObsQueryService.java
index 645a5810df..19f9631042 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/service/ObsQueryService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/service/ObsQueryService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/obs/service/ObsQueryServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/query/obs/service/ObsQueryServiceImpl.java
index 02b15ac189..b19d26976c 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/obs/service/ObsQueryServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/obs/service/ObsQueryServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.obs.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/PersonIdSet.java b/api/src/main/java/org/openmrs/module/reporting/query/person/PersonIdSet.java
index 89a14918f4..1ec4b3686b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/PersonIdSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/PersonIdSet.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/PersonQueryResult.java b/api/src/main/java/org/openmrs/module/reporting/query/person/PersonQueryResult.java
index 432a1992d3..9286791928 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/PersonQueryResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/PersonQueryResult.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/definition/AllPersonQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/person/definition/AllPersonQuery.java
index aaa61e89bb..8e70946105 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/definition/AllPersonQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/definition/AllPersonQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/definition/PatientPersonQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/person/definition/PatientPersonQuery.java
index 2d0342b9cf..5b3de3f16f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/definition/PatientPersonQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/definition/PatientPersonQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/definition/PersonQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/person/definition/PersonQuery.java
index 3ff1e4cf6c..09c4fcc74a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/definition/PersonQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/definition/PersonQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/definition/SqlPersonQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/person/definition/SqlPersonQuery.java
index ea803f662b..6f3407aa39 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/definition/SqlPersonQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/definition/SqlPersonQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/AllPersonQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/AllPersonQueryEvaluator.java
index 55cc9d0241..5d3dd61796 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/AllPersonQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/AllPersonQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/PatientPersonQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/PatientPersonQueryEvaluator.java
index cd62395598..9503459c0d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/PatientPersonQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/PatientPersonQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/PersonQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/PersonQueryEvaluator.java
index 8d98f6b43f..9b297aa8f7 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/PersonQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/PersonQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/SqlPersonQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/SqlPersonQueryEvaluator.java
index 0b807758ed..52c4e3f55e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/SqlPersonQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/evaluator/SqlPersonQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/persister/SerializedPersonQueryPersister.java b/api/src/main/java/org/openmrs/module/reporting/query/person/persister/SerializedPersonQueryPersister.java
index 6e9096a4c3..472786e9cf 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/persister/SerializedPersonQueryPersister.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/persister/SerializedPersonQueryPersister.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.persister;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/service/PersonQueryService.java b/api/src/main/java/org/openmrs/module/reporting/query/person/service/PersonQueryService.java
index b0bc583b71..544924c5c1 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/service/PersonQueryService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/service/PersonQueryService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/person/service/PersonQueryServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/query/person/service/PersonQueryServiceImpl.java
index 4c47573e8c..fae297563e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/person/service/PersonQueryServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/person/service/PersonQueryServiceImpl.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.person.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/VisitIdSet.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/VisitIdSet.java
index 29a61621f5..97aa129390 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/VisitIdSet.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/VisitIdSet.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.visit;
import java.util.List;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/VisitQueryResult.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/VisitQueryResult.java
index f07507c36c..5dcd483db7 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/VisitQueryResult.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/VisitQueryResult.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.visit;
import org.openmrs.module.reporting.evaluation.Evaluated;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/ActiveVisitQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/ActiveVisitQuery.java
index f7b4fdf55b..802e02b1bc 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/ActiveVisitQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/ActiveVisitQuery.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.visit.definition;
import org.openmrs.Visit;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/AllVisitQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/AllVisitQuery.java
index 13446d7684..4f6d804cc4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/AllVisitQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/AllVisitQuery.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.visit.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/BasicVisitQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/BasicVisitQuery.java
index 53d8834c04..8b597a4b22 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/BasicVisitQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/BasicVisitQuery.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.query.visit.definition;
import java.util.ArrayList;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/VisitQuery.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/VisitQuery.java
index dd2c06aa3b..26fa139c00 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/VisitQuery.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/definition/VisitQuery.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.query.visit.definition;
import org.openmrs.Visit;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/ActiveVisitQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/ActiveVisitQueryEvaluator.java
index ad7004cd61..902a9082bb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/ActiveVisitQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/ActiveVisitQueryEvaluator.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.visit.evaluator;
import org.openmrs.Visit;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/AllVisitQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/AllVisitQueryEvaluator.java
index c875eed1f0..60df5ca1a5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/AllVisitQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/AllVisitQueryEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.visit.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/BasicVisitQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/BasicVisitQueryEvaluator.java
index fe787e51aa..4366acac3b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/BasicVisitQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/BasicVisitQueryEvaluator.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+/**
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.query.visit.evaluator;
import java.util.List;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/VisitQueryEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/VisitQueryEvaluator.java
index 176e511034..227aebf7d6 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/VisitQueryEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/evaluator/VisitQueryEvaluator.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.query.visit.evaluator;
import org.openmrs.module.reporting.definition.evaluator.DefinitionEvaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/service/VisitQueryService.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/service/VisitQueryService.java
index 38b5eda614..822efa7c6f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/service/VisitQueryService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/service/VisitQueryService.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.visit.service;
import org.openmrs.module.reporting.definition.service.DefinitionService;
diff --git a/api/src/main/java/org/openmrs/module/reporting/query/visit/service/VisitQueryServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/query/visit/service/VisitQueryServiceImpl.java
index 72385bec64..83e7783fe7 100644
--- a/api/src/main/java/org/openmrs/module/reporting/query/visit/service/VisitQueryServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/query/visit/service/VisitQueryServiceImpl.java
@@ -1,3 +1,12 @@
+/**
+ * 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.query.visit.service;
import org.openmrs.module.reporting.definition.service.DefinitionService;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/Report.java b/api/src/main/java/org/openmrs/module/reporting/report/Report.java
index 12d0a37fce..9cdaa56752 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/Report.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/Report.java
@@ -1,3 +1,12 @@
+/**
+ * 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.report;
import org.openmrs.module.reporting.report.renderer.ReportRenderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/ReportData.java b/api/src/main/java/org/openmrs/module/reporting/report/ReportData.java
index 7861e8adff..efcd9a8364 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/ReportData.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/ReportData.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/ReportDesign.java b/api/src/main/java/org/openmrs/module/reporting/report/ReportDesign.java
index 3606f5df81..9b9ad99c40 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/ReportDesign.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/ReportDesign.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/ReportDesignResource.java b/api/src/main/java/org/openmrs/module/reporting/report/ReportDesignResource.java
index 28fa26e938..6e1f71aa49 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/ReportDesignResource.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/ReportDesignResource.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/ReportProcessorConfiguration.java b/api/src/main/java/org/openmrs/module/reporting/report/ReportProcessorConfiguration.java
index 72cf8617e8..84b2a991af 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/ReportProcessorConfiguration.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/ReportProcessorConfiguration.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/ReportRequest.java b/api/src/main/java/org/openmrs/module/reporting/report/ReportRequest.java
index b2019b9eaf..4a20b510eb 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/ReportRequest.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/ReportRequest.java
@@ -1,3 +1,12 @@
+/**
+ * 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.report;
import org.openmrs.BaseOpenmrsObject;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/definition/BaseReportDefinition.java b/api/src/main/java/org/openmrs/module/reporting/report/definition/BaseReportDefinition.java
index d4fd694d4e..a80b66e5ae 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/definition/BaseReportDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/definition/BaseReportDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/definition/PeriodIndicatorReportDefinition.java b/api/src/main/java/org/openmrs/module/reporting/report/definition/PeriodIndicatorReportDefinition.java
index 7e88f37656..5680cb97e8 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/definition/PeriodIndicatorReportDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/definition/PeriodIndicatorReportDefinition.java
@@ -1,3 +1,12 @@
+/**
+ * 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.report.definition;
import java.util.HashMap;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/definition/ReportDefinition.java b/api/src/main/java/org/openmrs/module/reporting/report/definition/ReportDefinition.java
index 896735bf8f..8fd4653a5d 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/definition/ReportDefinition.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/definition/ReportDefinition.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.definition;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/definition/evaluator/DefaultReportDefinitionEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/report/definition/evaluator/DefaultReportDefinitionEvaluator.java
index 6a56963d8f..b33216f43f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/definition/evaluator/DefaultReportDefinitionEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/definition/evaluator/DefaultReportDefinitionEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/definition/evaluator/ReportDefinitionEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/report/definition/evaluator/ReportDefinitionEvaluator.java
index eca7167a5e..9ee7a64d7a 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/definition/evaluator/ReportDefinitionEvaluator.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/definition/evaluator/ReportDefinitionEvaluator.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.definition.evaluator;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/definition/service/ReportDefinitionService.java b/api/src/main/java/org/openmrs/module/reporting/report/definition/service/ReportDefinitionService.java
index e0c96524e4..9d35176d5f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/definition/service/ReportDefinitionService.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/definition/service/ReportDefinitionService.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.definition.service;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/definition/service/ReportDefinitionServiceImpl.java b/api/src/main/java/org/openmrs/module/reporting/report/definition/service/ReportDefinitionServiceImpl.java
index c41157cf33..4bd37b67d4 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/definition/service/ReportDefinitionServiceImpl.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/definition/service/ReportDefinitionServiceImpl.java
@@ -1,3 +1,12 @@
+/**
+ * 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.report.definition.service;
import org.openmrs.api.APIException;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/manager/BaseReportManager.java b/api/src/main/java/org/openmrs/module/reporting/report/manager/BaseReportManager.java
index e5332f77ec..e2be48d44f 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/manager/BaseReportManager.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/manager/BaseReportManager.java
@@ -1,17 +1,12 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.report.manager;
import org.openmrs.module.reporting.evaluation.parameter.Parameter;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/manager/ReportManager.java b/api/src/main/java/org/openmrs/module/reporting/report/manager/ReportManager.java
index 6120d8d215..76e4353daf 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/manager/ReportManager.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/manager/ReportManager.java
@@ -1,15 +1,11 @@
-/*
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
+/**
+ * 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, LLC. All Rights Reserved.
+ * 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.report.manager;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/manager/ReportManagerUtil.java b/api/src/main/java/org/openmrs/module/reporting/report/manager/ReportManagerUtil.java
index 25b39bb9ec..37b7d429f5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/manager/ReportManagerUtil.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/manager/ReportManagerUtil.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.manager;
@@ -26,6 +22,7 @@
import org.openmrs.module.reporting.report.definition.ReportDefinition;
import org.openmrs.module.reporting.report.definition.service.ReportDefinitionService;
import org.openmrs.module.reporting.report.renderer.CsvReportRenderer;
+import org.openmrs.module.reporting.report.renderer.TextTemplateRenderer;
import org.openmrs.module.reporting.report.renderer.XlsReportRenderer;
import org.openmrs.module.reporting.report.service.ReportService;
import org.openmrs.module.reporting.report.util.ReportUtil;
@@ -163,6 +160,23 @@ public static ReportDesign createExcelTemplateDesign(String reportDesignUuid, Re
return design;
}
+ /**
+ * @return a new ReportDesign for a JSON template, using a file on the classpath as the template
+ */
+ public static ReportDesign createJSONTemplateDesign(String reportDesignUuid, ReportDefinition reportDefinition, String resourcePath) {
+ ReportDesign design = createJSONReportDesign(reportDesignUuid,reportDefinition);
+ design.setReportDefinition(reportDefinition);
+ design.setRendererType(TextTemplateRenderer.class);
+ ReportDesignResource resource = new ReportDesignResource();
+ resource.setName("template");
+ resource.setExtension("json");
+ resource.setContentType("application/json");
+ resource.setContents(ReportUtil.readByteArrayFromResource(resourcePath));
+ resource.setReportDesign(design);
+ design.addResource(resource);
+ return design;
+ }
+
/**
* @return a new ReportDesign for a standard Excel output
*/
@@ -187,4 +201,16 @@ public static ReportDesign createCsvReportDesign(String reportDesignUuid, Report
design.setRendererType(CsvReportRenderer.class);
return design;
}
+
+ /**
+ * @return a new ReportDesign for a standard CSV output
+ */
+ public static ReportDesign createJSONReportDesign(String reportDesignUuid, ReportDefinition reportDefinition) {
+ ReportDesign design = new ReportDesign();
+ design.setUuid(reportDesignUuid);
+ design.setName("JSON");
+ design.setReportDefinition(reportDefinition);
+ design.setRendererType(TextTemplateRenderer.class);
+ return design;
+ }
}
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/processor/DiskReportProcessor.java b/api/src/main/java/org/openmrs/module/reporting/report/processor/DiskReportProcessor.java
index 13c67c8a47..d5be4ec0e3 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/processor/DiskReportProcessor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/processor/DiskReportProcessor.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.processor;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/processor/EmailReportProcessor.java b/api/src/main/java/org/openmrs/module/reporting/report/processor/EmailReportProcessor.java
index 916c0d7b38..502e676705 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/processor/EmailReportProcessor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/processor/EmailReportProcessor.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.processor;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/processor/LoggingReportProcessor.java b/api/src/main/java/org/openmrs/module/reporting/report/processor/LoggingReportProcessor.java
index 717411c4cb..dd97d78882 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/processor/LoggingReportProcessor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/processor/LoggingReportProcessor.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.processor;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/processor/ReportProcessor.java b/api/src/main/java/org/openmrs/module/reporting/report/processor/ReportProcessor.java
index 2aed229af9..ee1cc443e1 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/processor/ReportProcessor.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/processor/ReportProcessor.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.processor;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/AbstractReportRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/AbstractReportRenderer.java
index 0061944af4..e95e9c346e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/AbstractReportRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/AbstractReportRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/CohortDetailReportRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/CohortDetailReportRenderer.java
index aaca2b6d4a..da2eb0ebbe 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/CohortDetailReportRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/CohortDetailReportRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/CsvReportRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/CsvReportRenderer.java
index 45896c83b8..b279f88c24 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/CsvReportRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/CsvReportRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/DelimitedTextReportRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/DelimitedTextReportRenderer.java
index 3a1ab62116..ef9f9feb3b 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/DelimitedTextReportRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/DelimitedTextReportRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ExcelTemplateRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ExcelTemplateRenderer.java
index a6445876e9..237edd1209 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ExcelTemplateRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ExcelTemplateRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/IndicatorReportRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/IndicatorReportRenderer.java
index 05c2811fde..756531d990 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/IndicatorReportRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/IndicatorReportRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/InteractiveReportRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/InteractiveReportRenderer.java
index c2ad92494b..f936183848 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/InteractiveReportRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/InteractiveReportRenderer.java
@@ -1,3 +1,12 @@
+/**
+ * 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.report.renderer;
/**
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/RenderingException.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/RenderingException.java
index 5992865392..8a7f94cbc5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/RenderingException.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/RenderingException.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/RenderingMode.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/RenderingMode.java
index 72043af260..7169354e2e 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/RenderingMode.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/RenderingMode.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportDesignRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportDesignRenderer.java
index 5fda86db18..0bc18f37d5 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportDesignRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportDesignRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportRenderer.java
index 7a27d9d61e..735c780629 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportRendererException.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportRendererException.java
index afdc437724..d3aabd4002 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportRendererException.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportRendererException.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
diff --git a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportTemplateRenderer.java b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportTemplateRenderer.java
index 25ab07f2db..121c393a95 100644
--- a/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportTemplateRenderer.java
+++ b/api/src/main/java/org/openmrs/module/reporting/report/renderer/ReportTemplateRenderer.java
@@ -1,15 +1,11 @@
/**
- * The contents of this file are subject to the OpenMRS Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://license.openmrs.org
+ * 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.
*
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * Copyright (C) OpenMRS, LLC. All Rights Reserved.
+ * 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.report.renderer;
@@ -226,17 +222,19 @@ public Map