Skip to content

Commit

Permalink
remove attribute for appointments.
Browse files Browse the repository at this point in the history
  • Loading branch information
icrc-fdeniger committed May 1, 2024
1 parent 1c780d0 commit 1093bf1
Show file tree
Hide file tree
Showing 21 changed files with 45 additions and 49 deletions.
8 changes: 4 additions & 4 deletions backend/distro.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name=Ref 3.x distro
version=${project.version}
war.openmrs=${openmrs.version}
# create users using datafilter on locations
omod.create-users=${create-users.version}
omod.initializer=${initializer.version}
omod.fhir2=${fhir2.version}
omod.webservices.rest=${webservices.rest.version}
Expand All @@ -16,8 +14,8 @@ omod.owa=${owa.version}
omod.referencedemodata=${referencedemodata.version}
omod.attachments=${attachments.version}
omod.queue=${queue.version}
omod.appointments=${appointments.version}
omod.appointments.groupId=org.bahmni.module
#omod.appointments=${appointments.version}
#omod.appointments.groupId=org.bahmni.module
#omod.teleconsultation=${teleconsultation.version}
#omod.teleconsultation.groupId=org.bahmni.module
omod.cohort=${cohort.version}
Expand All @@ -33,6 +31,8 @@ omod.o3forms=${o3forms.version}
# ICRC Demo customization
omod.datafilter=${datafilter.version}
omod.oauth2login=${oauth2login.version}
# create users using datafilter on locations
omod.create-users=${create-users.version}
# To Remove error: java.lang.NoClassDefFoundError: org/ict4h/atomfeed/transaction/AFTransactionWork
#omod.openmrs-atomfeed=${openmrsAtomfeed.version}
#omod.openmrs-atomfeed.groupId=org.ict4h.openmrs
1 change: 1 addition & 0 deletions backend/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<Logger name="org.springframework" level="WARN" />
<Logger name="org.openmrs" level="WARN" />
<Logger name="org.openmrs.module.initializer" level="INFO" />
<Logger name="org.openmrs.module.referencedemodata" level="INFO" />
<Logger name="org.openmrs.module.initializer.api.OrderedFile" level="ERROR" />
<Logger name="liquibase" level="INFO" />
<!--
Expand Down
7 changes: 7 additions & 0 deletions backend/module-create-users/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@
<packaging>jar</packaging>
<name>create-users API</name>
<description>API project for create-users</description>
<dependencies>
<dependency>
<groupId>org.openmrs.api</groupId>
<artifactId>openmrs-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
*/
package org.openmrs.module.createusers;

import org.apache.commons.collections.MapUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openmrs.module.BaseModuleActivator;
import org.openmrs.util.DatabaseUpdateException;
import org.openmrs.util.DatabaseUpdater;
import org.openmrs.util.InputRequiredException;

/**
* This class contains the logic that is run every time this module is either started or shutdown
Expand All @@ -24,14 +28,20 @@ public class CreateUsersActivator extends BaseModuleActivator {
* @see #started()
*/
public void started() {
log.info("Started Create.users");
}
log.warn("Started Create.users");
log.warn("Normally oauth2 module should manage datafilter inputs as well: To be improved.");
try {
DatabaseUpdater.executeChangelog("liquibase-add-default-users.xml", MapUtils.EMPTY_MAP);
} catch (DatabaseUpdateException | InputRequiredException e) {
log.error(e);
}
}

/**
* @see #shutdown()
*/
public void shutdown() {
log.info("Shutdown Create.users");
log.warn("Shutdown Create.users");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
SELECT @PERSON_FIRST_NAME := 'Doctor';
SELECT @PERSON_FAMILIY_NAME := 'Many';
SELECT @PERSON_GENDER := 'M';
SELECT @USERNAME := 'doctor.all';
SELECT @USERNAME := 'doctor.many';
SELECT @ROLE := 'Organizational: Doctor';
SELECT @LOCATION := 'Community Outreach';
SELECT @LOCATION_1 := 'Outpatient Clinic';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- to be avoid as roles are created by liquibase also-->
<!-- but issue while loading: if this module is started before iniz, roles won't be available-->
<include file="create-roles.xml" relativeToChangelogFile="true"/>
<!-- <include file="create-roles.xml" relativeToChangelogFile="true"/>-->
<!--doctor.outpatient Doctor with access to Outpatient Clinic-->
<include file="create-doctor-outpatient-clinic.xml" relativeToChangelogFile="true"/>
<!--nurse.outpatient Doctor with access to Outpatient Clinic-->
Expand Down
21 changes: 12 additions & 9 deletions backend/module-create-users/omod/src/main/resources/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

<module configVersion="1.2">

<id>${project.parent.artifactId}</id>
<name>${project.parent.name}</name>
<version>${project.parent.version}</version>
<package>${project.parent.groupId}.${project.parent.artifactId}</package>
<author>${project.parent.organization.name}</author>
<description>${project.parent.description}</description>
<require_version>${openmrsPlatformVersion}</require_version>
<id>${project.parent.artifactId}</id>
<name>${project.parent.name}</name>
<version>${project.parent.version}</version>
<package>${project.parent.groupId}.${project.parent.artifactId}</package>
<author>${project.parent.organization.name}</author>
<description>${project.parent.description}</description>
<require_version>${openmrsPlatformVersion}</require_version>

<activator>org.openmrs.module.createusers.CreateUsersActivator</activator>
<require_module>org.openmrs.module.initializer</require_module>
<activator>org.openmrs.module.createusers.CreateUsersActivator</activator>
<require_modules>
<require_module version="${initializer.version}">org.openmrs.module.initializer</require_module>
<require_module version="${datafilter.version}">org.openmrs.module.datafilter</require_module>
</require_modules>
</module>

This file was deleted.

7 changes: 6 additions & 1 deletion backend/module-create-users/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,19 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.openmrs.api</groupId>
<artifactId>openmrs-api</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
</dependencyManagement>

<repositories>
<repository>
<id>openmrs-repo</id>
<name>OpenMRS Nexus Repository</name>
<url>https://mavenrepo.openmrs.org/public</url>
<url>https://openmrs.jfrog.io/artifactory/public/</url>
</repository>
<repository>
<id>central</id>
Expand Down
1 change: 0 additions & 1 deletion backend/startup-oauth2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ openmrs.mapping.user.username=preferred_username
openmrs.mapping.user.username.serviceAccount=email
openmrs.mapping.person.givenName=given_name
openmrs.mapping.person.familyName=family_name
openmrs.mapping.user.systemId=sub
EOF

cat > "$OMRS_HOME"/data/openmrs-runtime.properties << EOF
Expand Down

0 comments on commit 1093bf1

Please sign in to comment.