public class Program extends BaseChangeableOpenmrsMetadata
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Program()
Default Constructor
|
Program(Integer programId)
Constructor with id
|
Program(String name)
Constructor with name
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWorkflow(ProgramWorkflow workflow)
Adds a new
ProgramWorkflow to this Program |
Set<ProgramWorkflow> |
getAllWorkflows()
Get all workflows...including the retired ones
|
Concept |
getConcept() |
Integer |
getId() |
Concept |
getOutcomesConcept() |
Integer |
getProgramId() |
ProgramWorkflow |
getWorkflow(Integer programWorkflowId)
Get the workflow with the specified ID
|
ProgramWorkflow |
getWorkflowByName(String name)
|
Set<ProgramWorkflow> |
getWorkflows()
Get only the non-retired workflows
|
void |
removeWorkflow(ProgramWorkflow workflow)
Removes a
ProgramWorkflow from this Program |
void |
retireWorkflow(ProgramWorkflow workflow)
Retires a
ProgramWorkflow |
void |
setAllWorkflows(Set<ProgramWorkflow> allWorkflows) |
void |
setConcept(Concept concept) |
void |
setId(Integer id) |
void |
setOutcomesConcept(Concept concept) |
void |
setProgramId(Integer programId) |
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReasonequals, getUuid, hashCode, setUuidclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUuid, setUuidpublic static final long serialVersionUID
public Program()
public Program(Integer programId)
public Program(String name)
public void addWorkflow(ProgramWorkflow workflow)
ProgramWorkflow to this Programworkflow - - the ProgramWorkflow to addpublic void removeWorkflow(ProgramWorkflow workflow)
ProgramWorkflow from this Programworkflow - - the ProgramWorkflow to removepublic void retireWorkflow(ProgramWorkflow workflow)
ProgramWorkflowworkflow - - the ProgramWorkflow to retirepublic ProgramWorkflow getWorkflowByName(String name)
name - the ProgramWorkflow name, in any LocaleProgramWorkflow which has the passed name in any
Localepublic String toString()
BaseOpenmrsObjectClassName{hashCode=..., uuid=...}
If the uuid field is null, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString in class BaseOpenmrsObjectObject.toString()public Concept getConcept()
public void setConcept(Concept concept)
public Concept getOutcomesConcept()
public void setOutcomesConcept(Concept concept)
public Integer getProgramId()
public void setProgramId(Integer programId)
public Set<ProgramWorkflow> getWorkflows()
public ProgramWorkflow getWorkflow(Integer programWorkflowId)
public Set<ProgramWorkflow> getAllWorkflows()
public void setAllWorkflows(Set<ProgramWorkflow> allWorkflows)
public Integer getId()
OpenmrsObject.getId()public void setId(Integer id)
id - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)Copyright © 2024 OpenMRS Inc.. All rights reserved.