Codota Logo
ProgramWorkflowService.saveProgramAttributeType
Code IndexAdd Codota to your IDE (free)

How to use
saveProgramAttributeType
method
in
org.openmrs.api.ProgramWorkflowService

Best Java code snippets using org.openmrs.api.ProgramWorkflowService.saveProgramAttributeType (Showing top 2 results out of 315)

  • Common ways to obtain ProgramWorkflowService
private void myMethod () {
ProgramWorkflowService p =
  • Codota IconContext.getProgramWorkflowService()
  • Smart code suggestions by Codota
}
origin: openmrs/openmrs-core

@Test
public void shouldTestSaveProgramAttributeType() throws Exception {
  assertEquals(1,pws.getAllProgramAttributeTypes().size());
  ProgramAttributeType programAttributeType = new ProgramAttributeType();
  programAttributeType.setName("test");
  pws.saveProgramAttributeType(programAttributeType);
  assertEquals(2,pws.getAllProgramAttributeTypes().size());
}
origin: openmrs/openmrs-module-webservices.rest

@Override
public ProgramAttributeType save(ProgramAttributeType programAttributeType) {
  return Context.getProgramWorkflowService().saveProgramAttributeType(programAttributeType);
}

org.openmrs.apiProgramWorkflowServicesaveProgramAttributeType

Popular methods of ProgramWorkflowService

  • getProgramByUuid
    Get a program by its uuid. There should be only one of these in the database. If multiple are found,
  • getPatientPrograms
    Returns PatientPrograms that match the input parameters. If an input parameter is set to null, the p
  • getStateByUuid
    Get a state by its uuid. There should be only one of these in the database. If multiple are found, a
  • getAllPrograms
    Returns all programs
  • getPatientProgramByUuid
    Get a patient program by its uuid. There should be only one of these in the database. If multiple ar
  • getProgram
    Returns a program given that programs primary key programId A null value is returned if no program e
  • getProgramByName
    Returns a program given the program's exact name A null value is returned if there is no program wit
  • getWorkflowByUuid
    Get ProgramWorkflow by its UUID
  • savePatientProgram
    Save patientProgram to database (create if new or update if changed)
  • getPatientStateByUuid
    Get a program state by its uuid. There should be only one of these in the database. If multiple are
  • getProgramAttributeTypeByUuid
  • getWorkflow
    Get ProgramWorkflow by internal identifier.
  • getProgramAttributeTypeByUuid,
  • getWorkflow,
  • purgePatientProgram,
  • purgeProgram,
  • getAllProgramAttributeTypes,
  • getPatientProgram,
  • getPatientProgramAttributeByUuid,
  • getState,
  • purgeProgramAttributeType,
  • saveProgram

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now