Examples of transitionToState()


Examples of org.openmrs.PatientProgram.transitionToState()

        if (enrollmentDate != null)
          pp.setDateEnrolled(enrollmentDate);
       
        if (states != null) {
          for (ProgramWorkflowState programWorkflowState : states) {
            pp.transitionToState(programWorkflowState, enrollmentDate);
          }
        }
        patientProgramsToCreate.add(pp);
      }
     
View Full Code Here

Examples of org.openmrs.PatientProgram.transitionToState()

    Program program = pws.getProgram(programId);
    pp.setProgram(pws.getProgram(programId));
    final ProgramWorkflow wf = program.getWorkflow(100);
    final Date initialEnrollmentDate = new Date();
    pp.setDateEnrolled(initialEnrollmentDate);
    pp.transitionToState(wf.getState(200), initialEnrollmentDate);
    pws.savePatientProgram(pp);
    final ProgramWorkflowState originalState = pp.getCurrentState(wf).getState();
    final Integer patientProgramId = pp.getId();
    final Date completionDate = pp.getDateCompleted();
   
View Full Code Here

Examples of org.openmrs.PatientProgram.transitionToState()

      patientProgram.setPatient(patient);
      patientProgram.setProgram(workflowState.getProgramWorkflow().getProgram());
      patientProgram.setDateEnrolled(date);
    }
   
    patientProgram.transitionToState(workflowState, date);
   
    Context.getProgramWorkflowService().savePatientProgram(patientProgram);
  }
 
  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.