public interface ProgramWorkflowDAO
Modifier and Type | Method and Description |
---|---|
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
|
List<Program> |
findPrograms(String nameFragment)
Returns programs that match the given string.
|
List<ConceptStateConversion> |
getAllConceptStateConversions()
Returns all conceptStateConversions
|
List<ProgramAttributeType> |
getAllProgramAttributeTypes() |
List<Program> |
getAllPrograms(boolean includeRetired)
Returns all programs
|
ConceptStateConversion |
getConceptStateConversion(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(String uuid) |
PatientProgram |
getPatientProgram(Integer id)
Returns a PatientProgram given that PatientPrograms primary key
patientProgramId
A null value is returned if no PatientProgram exists with this patientProgramId. |
Map<Object,Object> |
getPatientProgramAttributeByAttributeName(List<Integer> patientIds,
String attributeName) |
PatientProgramAttribute |
getPatientProgramAttributeByUuid(String var1) |
List<PatientProgram> |
getPatientProgramByAttributeNameAndValue(String attributeName,
String attributeValue) |
PatientProgram |
getPatientProgramByUuid(String uuid) |
List<PatientProgram> |
getPatientPrograms(Cohort cohort,
Collection<Program> programs) |
List<PatientProgram> |
getPatientPrograms(Patient patient,
Program program,
Date minEnrollmentDate,
Date maxEnrollmentDate,
Date minCompletionDate,
Date maxCompletionDate,
boolean includeVoided)
Returns PatientPrograms that match the input parameters.
|
PatientState |
getPatientStateByUuid(String uuid) |
Program |
getProgram(Integer programId)
Retrieves a
Program from the database by primary key programId |
ProgramAttributeType |
getProgramAttributeType(Integer var1) |
ProgramAttributeType |
getProgramAttributeTypeByUuid(String var1) |
Program |
getProgramByUuid(String uuid) |
List<Program> |
getProgramsByConcept(Concept concept)
Returns a list of Programs that are using a particular concept.
|
List<Program> |
getProgramsByName(String name,
boolean includeRetired)
Retrieves the Programs from the dB which have the given name.
|
List<ProgramWorkflow> |
getProgramWorkflowsByConcept(Concept concept)
Returns a list of ProgramWorkflows that are using a particular concept.
|
List<ProgramWorkflowState> |
getProgramWorkflowStatesByConcept(Concept concept)
Returns a list of ProgramWorkflowStates that are using a particular concept.
|
ProgramWorkflowState |
getState(Integer stateId)
Retrieves a
ProgramWorkflowState from the database by its primary key. |
ProgramWorkflowState |
getStateByUuid(String uuid) |
ProgramWorkflow |
getWorkflow(Integer workflowId)
Retrieves a
ProgramWorkflow from the database by its primary key. |
ProgramWorkflow |
getWorkflowByUuid(String uuid) |
void |
purgeProgramAttributeType(ProgramAttributeType var1) |
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
|
ProgramAttributeType |
saveProgramAttributeType(ProgramAttributeType var1) |
Program saveProgram(Program program) throws DAOException
program
- - The Program
to saveProgram
DAOException
Program getProgram(Integer programId) throws DAOException
Program
from the database by primary key programIdprogramId
- - The primary key programId to use to retrieve a Program
Program
matching the passed programIdDAOException
List<Program> getAllPrograms(boolean includeRetired) throws DAOException
includeRetired
- whether or not to include retired programsDAOException
List<Program> findPrograms(String nameFragment) throws DAOException
nameFragment
nameFragment
- is the string used to search for programsDAOException
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 databaseDAOException
PatientProgram getPatientProgram(Integer id)
patientProgramId
A null value is returned if no PatientProgram exists with this patientProgramId.id
- integer primary key of the PatientProgram to findpatientProgramId
passed in.DAOException
List<PatientProgram> getPatientPrograms(Cohort cohort, Collection<Program> programs)
List<PatientProgram> getPatientPrograms(Patient patient, Program program, Date minEnrollmentDate, Date maxEnrollmentDate, Date minCompletionDate, 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 PatientProgramsDAOException
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 saveDAOException
List<ConceptStateConversion> getAllConceptStateConversions() throws DAOException
DAOException
ConceptStateConversion getConceptStateConversion(Integer id)
conceptStateConversionId
A null value is returned if no conceptStateConversion
exists with this conceptStateConversionId.id
- integer primary key of the conceptStateConversion to findconceptStateConversionId
passed in.DAOException
void 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 checkProgramWorkflow
and
Concept
DAOException
ConceptStateConversion getConceptStateConversionByUuid(String uuid)
uuid
- PatientProgram getPatientProgramByUuid(String uuid)
uuid
- List<Program> getProgramsByName(String name, boolean includeRetired)
name
- the name of the Programs to retrieve.includeRetired
- whether to include retired programs or not
Should return an empty list when there is no program in the dB with given name
Should return only and exactly the programs with the given nameProgramWorkflowState getState(Integer stateId)
ProgramWorkflowState
from the database by its primary key.stateId
- the primary key used to retrieve program workflow stateProgramWorkflowState getStateByUuid(String uuid)
uuid
- PatientState getPatientStateByUuid(String uuid)
ProgramWorkflow getWorkflow(Integer workflowId)
ProgramWorkflow
from the database by its primary key.workflowId
- the primary key used to retrieve program workflowProgramWorkflow getWorkflowByUuid(String uuid)
uuid
- List<Program> getProgramsByConcept(Concept concept)
concept
- - The Concept being used.List<ProgramWorkflow> getProgramWorkflowsByConcept(Concept concept)
concept
- - The Concept being used.List<ProgramWorkflowState> getProgramWorkflowStatesByConcept(Concept concept)
concept
- - The Concept being used.List<ProgramAttributeType> getAllProgramAttributeTypes()
ProgramAttributeType getProgramAttributeType(Integer var1)
ProgramAttributeType getProgramAttributeTypeByUuid(String var1)
ProgramAttributeType saveProgramAttributeType(ProgramAttributeType var1)
PatientProgramAttribute getPatientProgramAttributeByUuid(String var1)
void purgeProgramAttributeType(ProgramAttributeType var1)
List<PatientProgram> getPatientProgramByAttributeNameAndValue(String attributeName, String attributeValue)
Copyright © 2024 OpenMRS Inc.. All rights reserved.