forked from I-TECH/openmrs-module-kenyaemr
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2055 from makombe/fsw
(fix): Update female sex work concept to use ocl created concept
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
api/src/main/java/org/openmrs/module/kenyaemr/chore/UpdateFSWConcept.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,30 @@ | ||
package org.openmrs.module.kenyaemr.chore; | ||
|
||
import org.openmrs.api.context.Context; | ||
import org.openmrs.module.kenyacore.chore.AbstractChore; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.io.PrintWriter; | ||
/** | ||
* update FSW concept from 165083 to 166513 | ||
*/ | ||
@Component("kenyaemr.chore.UpdateFSWConcept") | ||
public class UpdateFSWConcept extends AbstractChore { | ||
|
||
/** | ||
* @see AbstractChore#perform(PrintWriter) | ||
*/ | ||
|
||
@Override | ||
public void perform(PrintWriter out) { | ||
String updateConceptSql = "update obs set value_coded = 166513 where value_coded =165083;"; | ||
Context.getAdministrationService().executeSQL(updateConceptSql, false); | ||
out.println("Completed updating FSW concept"); | ||
|
||
} | ||
|
||
|
||
|
||
|
||
} | ||
|