|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProgramWorkflowDAO
Program- and PatientProgram- and ConceptStateConversion-related database functions
| Method Summary | |
|---|---|
void |
deleteConceptStateConversion(ConceptStateConversion csc)
Completely remove a conceptStateConversion from the database (not reversible) |
void |
deletePatientProgram(PatientProgram patientProgram)
Completely remove a patientProgram from the database (not reversible) This method delegates to #purgePatientProgram(patientProgram, boolean) method |
void |
deleteProgram(Program program)
Completely remove a program from the database (not reversible) This method delegates to #purgeProgram(program, boolean) method |
java.util.List<Program> |
findPrograms(java.lang.String nameFragment)
Returns programs that match the given string. |
java.util.List<ConceptStateConversion> |
getAllConceptStateConversions()
Returns all conceptStateConversions |
java.util.List<Program> |
getAllPrograms(boolean includeRetired)
Returns all programs |
ConceptStateConversion |
getConceptStateConversion(java.lang.Integer id)
Returns a conceptStateConversion given that conceptStateConversions primary key conceptStateConversionId A null value is returned if no conceptStateConversion
exists with this conceptStateConversionId. |
ConceptStateConversion |
getConceptStateConversion(ProgramWorkflow workflow,
Concept trigger)
Retrieves the ConceptStateConversion that matches the passed ProgramWorkflow and
Concept |
ConceptStateConversion |
getConceptStateConversionByUuid(java.lang.String uuid)
Auto generated method comment |
PatientProgram |
getPatientProgram(java.lang.Integer id)
Returns a PatientProgram given that PatientPrograms primary key patientProgramId
A null value is returned if no PatientProgram exists with this patientProgramId. |
PatientProgram |
getPatientProgramByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<PatientProgram> |
getPatientPrograms(Cohort cohort,
java.util.Collection<Program> programs)
|
java.util.List<PatientProgram> |
getPatientPrograms(Patient patient,
Program program,
java.util.Date minEnrollmentDate,
java.util.Date maxEnrollmentDate,
java.util.Date minCompletionDate,
java.util.Date maxCompletionDate,
boolean includeVoided)
Returns PatientPrograms that match the input parameters. |
PatientState |
getPatientStateByUuid(java.lang.String uuid)
|
Program |
getProgram(java.lang.Integer programId)
Retrieves a Program from the database by primary key programId |
Program |
getProgramByUuid(java.lang.String uuid)
Auto generated method comment |
ProgramWorkflowState |
getStateByUuid(java.lang.String uuid)
Auto generated method comment |
ProgramWorkflow |
getWorkflowByUuid(java.lang.String uuid)
Auto generated method comment |
ConceptStateConversion |
saveConceptStateConversion(ConceptStateConversion csc)
Save ConceptStateConversion to database (create if new or update if changed) |
PatientProgram |
savePatientProgram(PatientProgram patientProgram)
Save patientProgram to database (create if new or update if changed) |
Program |
saveProgram(Program program)
Saves a Program to the database |
| Method Detail |
|---|
Program saveProgram(Program program)
throws DAOException
program - - The Program to save
Program
DAOException
Program getProgram(java.lang.Integer programId)
throws DAOException
Program from the database by primary key programId
programId - - The primary key programId to use to retrieve a Program
Program matching the passed programId
DAOException
java.util.List<Program> getAllPrograms(boolean includeRetired)
throws DAOException
includeRetired - whether or not to include retired programs
DAOException
java.util.List<Program> findPrograms(java.lang.String nameFragment)
throws DAOException
nameFragment
nameFragment - is the string used to search for programs
DAOException
void deleteProgram(Program program)
throws DAOException
program - the Program to clean out of the database.
DAOException
PatientProgram savePatientProgram(PatientProgram patientProgram)
throws DAOException
patientProgram - is the PatientProgram to be saved to the database
DAOExceptionPatientProgram getPatientProgram(java.lang.Integer id)
patientProgramId
A null value is returned if no PatientProgram exists with this patientProgramId.
id - integer primary key of the PatientProgram to find
patientProgramId passed in.
DAOException
java.util.List<PatientProgram> getPatientPrograms(Cohort cohort,
java.util.Collection<Program> programs)
java.util.List<PatientProgram> getPatientPrograms(Patient patient,
Program program,
java.util.Date minEnrollmentDate,
java.util.Date maxEnrollmentDate,
java.util.Date minCompletionDate,
java.util.Date maxCompletionDate,
boolean includeVoided)
throws DAOException
patient - - if supplied all PatientPrograms returned will be for this Patientprogram - - if supplied all PatientPrograms returned will be for this ProgramminEnrollmentDate - - if supplied will limit PatientPrograms to those with enrollments
on or after this DatemaxEnrollmentDate - - if supplied will limit PatientPrograms to those with enrollments
on or before this DateminCompletionDate - - if supplied will limit PatientPrograms to those completed on or
after this Date OR not yet completedmaxCompletionDate - - if supplied will limit PatientPrograms to those completed on or
before this DateincludeVoided - - boolean, if true will return voided PatientPrograms as well. If false,
will not return voided PatientPrograms
DAOException
void deletePatientProgram(PatientProgram patientProgram)
throws DAOException
patientProgram - the PatientProgram to clean out of the database.
DAOException
ConceptStateConversion saveConceptStateConversion(ConceptStateConversion csc)
throws DAOException
csc - The ConceptStateConversion to save
DAOException
java.util.List<ConceptStateConversion> getAllConceptStateConversions()
throws DAOException
DAOExceptionConceptStateConversion getConceptStateConversion(java.lang.Integer id)
conceptStateConversionId A null value is returned if no conceptStateConversion
exists with this conceptStateConversionId.
id - integer primary key of the conceptStateConversion to find
conceptStateConversionId passed in.
DAOExceptionvoid deleteConceptStateConversion(ConceptStateConversion csc)
csc - the ConceptStateConversion to clean out of the database.
DAOException
ConceptStateConversion getConceptStateConversion(ProgramWorkflow workflow,
Concept trigger)
ProgramWorkflow and
Concept
workflow - the ProgramWorkflow to checktrigger - the Concept to check
ProgramWorkflow and
Concept
DAOExceptionConceptStateConversion getConceptStateConversionByUuid(java.lang.String uuid)
uuid -
PatientProgram getPatientProgramByUuid(java.lang.String uuid)
uuid -
Program getProgramByUuid(java.lang.String uuid)
uuid -
ProgramWorkflowState getStateByUuid(java.lang.String uuid)
uuid -
PatientState getPatientStateByUuid(java.lang.String uuid)
ProgramWorkflow getWorkflowByUuid(java.lang.String uuid)
uuid -
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||