Skip to content

Commit

Permalink
Merge pull request #2055 from makombe/fsw
Browse files Browse the repository at this point in the history
(fix): Update female sex work concept to use ocl created concept
  • Loading branch information
patryllus authored Nov 18, 2024
2 parents 5eb7a94 + e40a552 commit 1256096
Showing 1 changed file with 30 additions and 0 deletions.
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");

}




}

0 comments on commit 1256096

Please sign in to comment.