-
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.
Changes to stop/void slots associated with drugorder when its stopped
- Loading branch information
Showing
4 changed files
with
61 additions
and
4 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
25 changes: 25 additions & 0 deletions
25
omod/src/main/java/org/openmrs/module/ipd/postprocessor/IPDTransactionHandler.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.openmrs.module.ipd.postprocessor; | ||
|
||
import org.openmrs.Encounter; | ||
import org.openmrs.module.emrapi.encounter.domain.EncounterTransaction; | ||
import org.openmrs.module.emrapi.encounter.postprocessor.EncounterTransactionHandler; | ||
import org.openmrs.module.ipd.service.IPDScheduleService; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class IPDTransactionHandler implements EncounterTransactionHandler { | ||
|
||
@Autowired | ||
IPDScheduleService ipdScheduleService; | ||
|
||
@Override | ||
public void forRead(Encounter encounter, EncounterTransaction encounterTransaction) { | ||
// No Implementation needed as of now | ||
} | ||
|
||
@Override | ||
public void forSave(Encounter encounter, EncounterTransaction encounterTransaction) { | ||
ipdScheduleService.handlePostProcessEncounterTransaction(encounter,encounterTransaction); | ||
} | ||
} |
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