-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kavitha | Update branch with main changes (#85)
* Parvathy | BAH-4017 | Add. Global Property bahmni-ipd.allowSlotStopOnDrugOrderStop (#69) * BAH-4001 | Add. Set flag to mark system generated tasks (#70) * BAH-4033 | Refactor. Get task type for system generated tasks from configuration (#71) * BAH-4062 | Refactor. Move privilege creation to config.xml (#72) * BAH-4062 | Refactor. Extract privilege creation to config.xml * BAH-4062 | Fix. Error messages for privilege check failures * BAH-4073 | Refactor. Change LICENSE to OMRS MPLv2 (#74) * BAH-4073 | Refactor. Change LICENSE to OMRS MPLv2 * BAH-4073 | Fix. License information in pom.xml * BAH-4061 | Refactor. Change Medication Administration Status Type As VarChar (#73) * [Rahul] | BAH-4061 | Refactor. Change Medication Administration Status Type As VarChar * [Rahul] | BAH-4061 | Refactor. Remove Unused Dependencies * [Rahul] | BAH-4061 | Refactor. Change Status Value In Test * [Rahul] | BAH-4061 | Refactor. Remove MedicationAdministration Status Null Check * [Rahul] | BAH-4061 | Fix. MedicationAdministrationStatus Test Data * BAH-4093 | Add. Workflow to release artifacts on push of a tag (#77) * BAH-4093 | Upgrade depencies for release * BAH-4093 | Release of version 1.0.0 * BAH-4093 | Incrementing dev version to 1.1.0-SNAPSHOT * BAH-4093 | Add. Default value for config file path property. (#80) * BAH-4093 | Add. Default value for config file path property. * BAH-4093 | Refactor. Update property name * BAH-4096 | Use xml based bean creations and removed annotations (#79) * BAH-4096 | Use xml based bean creations and removed annotations * BAH-4096 | Fix. Remove unused component scans * BAH-4096 | Refactor. Remove ununsed properties files in OMOD * BAH-4096 | Refactor. Move OMOD class files inside web package * BAH-4096 | Fix. Import path in OMOD test * Kavitha,Vikram|add emergency medication check for care view (#75) (#81) * BAH-4093 | Release of version 1.1.0 * updated drug order response * updated pom and workflow file * add beans for ipd schedulers * Kavitha | update versions, beans and schedulers --------- Co-authored-by: Arjun-Go <[email protected]> Co-authored-by: Rahul Ramesh <[email protected]> Co-authored-by: Parvathy Babu <[email protected]> Co-authored-by: MOHANKUMAR T <[email protected]> Co-authored-by: MOHANKUMAR T <[email protected]>
- Loading branch information
1 parent
ac1719a
commit 5dc4814
Showing
81 changed files
with
313 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 4 additions & 12 deletions
16
api/src/main/java/org/openmrs/module/ipd/api/scheduler/tasks/RollOverNonMedicationTasks.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,22 @@ | ||
package org.openmrs.module.ipd.api.scheduler.tasks; | ||
|
||
import org.openmrs.api.context.Context; | ||
import org.openmrs.module.ipd.api.events.IPDEventManager; | ||
import org.openmrs.module.ipd.api.events.model.IPDEvent; | ||
import org.openmrs.module.ipd.api.events.model.IPDEventType; | ||
import org.openmrs.scheduler.tasks.AbstractTask; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.context.ApplicationContextAware; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class RollOverNonMedicationTasks extends AbstractTask implements ApplicationContextAware { | ||
|
||
private static ApplicationContext context; | ||
public class RollOverNonMedicationTasks extends AbstractTask { | ||
|
||
@Override | ||
public void execute() { | ||
IPDEventManager eventManager = context.getBean(IPDEventManager.class); | ||
IPDEventManager eventManager = Context.getRegisteredComponents(IPDEventManager.class).get(0); | ||
IPDEventType eventType = eventManager.getEventTypeForEncounter(String.valueOf(IPDEventType.ROLLOVER_TASK)); | ||
if (eventType != null) { | ||
IPDEvent ipdEvent = new IPDEvent(null, null, eventType); | ||
eventManager.processEvent(ipdEvent); | ||
} | ||
} | ||
|
||
@Override | ||
public void setApplicationContext(ApplicationContext applicationContext) { | ||
this.context = applicationContext; | ||
} | ||
} | ||
} |
17 changes: 5 additions & 12 deletions
17
api/src/main/java/org/openmrs/module/ipd/api/scheduler/tasks/ShiftStartTasks.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
package org.openmrs.module.ipd.api.scheduler.tasks; | ||
|
||
import org.openmrs.api.context.Context; | ||
import org.openmrs.module.ipd.api.events.IPDEventManager; | ||
import org.openmrs.module.ipd.api.events.model.IPDEvent; | ||
import org.openmrs.module.ipd.api.events.model.IPDEventType; | ||
import org.openmrs.scheduler.tasks.AbstractTask; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.context.ApplicationContextAware; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class ShiftStartTasks extends AbstractTask implements ApplicationContextAware { | ||
|
||
private static ApplicationContext context; | ||
public class ShiftStartTasks extends AbstractTask { | ||
|
||
@Override | ||
public void execute() { | ||
IPDEventManager eventManager = context.getBean(IPDEventManager.class); | ||
IPDEventManager eventManager = Context.getRegisteredComponents(IPDEventManager.class).get(0); | ||
IPDEventType eventType = eventManager.getEventTypeForEncounter(String.valueOf(IPDEventType.SHIFT_START_TASK)); | ||
if (eventType != null) { | ||
IPDEvent ipdEvent = new IPDEvent(null, null, eventType); | ||
eventManager.processEvent(ipdEvent); | ||
} | ||
} | ||
|
||
@Override | ||
public void setApplicationContext(ApplicationContext applicationContext) { | ||
this.context = applicationContext; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.