public class FormatTag
extends javax.servlet.jsp.tagext.TagSupport
Prints out a pretty-formatted versions of an OpenMRS object TODO: add the other openmrs domain objects TODO: add a size=compact|NORMAL|full|? option
Constructor and Description |
---|
FormatTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
Concept |
getConcept() |
java.lang.Integer |
getConceptId() |
Encounter |
getEncounter() |
java.lang.Integer |
getEncounterId() |
java.util.Map<EncounterRole,java.util.Set<Provider>> |
getEncounterProviders() |
EncounterType |
getEncounterType() |
java.lang.Integer |
getEncounterTypeId() |
Form |
getForm() |
java.lang.Boolean |
getJavaScriptEscape() |
Location |
getLocation() |
java.lang.Integer |
getLocationId() |
LocationTag |
getLocationTag() |
java.lang.Integer |
getLocationTagId() |
Obs |
getObsValue() |
Person |
getPerson() |
java.lang.Integer |
getPersonId() |
Program |
getProgram() |
java.lang.Integer |
getProgramId() |
SingleCustomValue<?> |
getSingleCustomValue() |
User |
getUser() |
java.lang.Integer |
getUserId() |
java.lang.String |
getVar() |
Visit |
getVisit() |
java.lang.Integer |
getVisitId() |
VisitType |
getVisitType() |
java.lang.Integer |
getVisitTypeId() |
java.lang.String |
getWithConceptNameTag() |
java.lang.String |
getWithConceptNameType() |
protected void |
printConcept(java.lang.StringBuilder sb,
Concept concept)
Formats a Concept and prints it to sb, respecting conceptNameType and conceptNameTag if they are
specified and a match is found.
|
void |
setConcept(Concept concept) |
void |
setConceptId(java.lang.Integer conceptId) |
void |
setEncounter(Encounter encounter) |
void |
setEncounterId(java.lang.Integer encounterId) |
void |
setEncounterProviders(java.util.Map<EncounterRole,java.util.Set<Provider>> encounterProviders) |
void |
setEncounterType(EncounterType encounterType) |
void |
setEncounterTypeId(java.lang.Integer encounterTypeId) |
void |
setForm(Form form) |
void |
setJavaScriptEscape(java.lang.Boolean javaScriptEscape) |
void |
setLocation(Location location) |
void |
setLocationId(java.lang.Integer locationId) |
void |
setLocationTag(LocationTag locationTag) |
void |
setLocationTagId(java.lang.Integer locationTagId) |
void |
setObsValue(Obs obsValue) |
void |
setPerson(Person person) |
void |
setPersonId(java.lang.Integer personId) |
void |
setProgram(Program program) |
void |
setProgramId(java.lang.Integer programId) |
void |
setSingleCustomValue(SingleCustomValue<?> singleCustomValue) |
void |
setUser(User user) |
void |
setUserId(java.lang.Integer userId) |
void |
setVar(java.lang.String var) |
void |
setVisit(Visit visit) |
void |
setVisitId(java.lang.Integer visitId) |
void |
setVisitType(VisitType visitType) |
void |
setVisitTypeId(java.lang.Integer visitTypeId) |
void |
setWithConceptNameTag(java.lang.String withConceptNameTag) |
void |
setWithConceptNameType(java.lang.String withConceptNameType) |
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
protected void printConcept(java.lang.StringBuilder sb, Concept concept)
sb
- concept
- public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public java.lang.Integer getConceptId()
public void setConceptId(java.lang.Integer conceptId)
public Concept getConcept()
public void setConcept(Concept concept)
public Obs getObsValue()
public void setObsValue(Obs obsValue)
public java.lang.Integer getUserId()
public void setUserId(java.lang.Integer userId)
public User getUser()
public void setUser(User user)
public java.lang.Integer getEncounterId()
public void setEncounterId(java.lang.Integer encounterId)
public Encounter getEncounter()
public void setEncounter(Encounter encounter)
public java.lang.Integer getEncounterTypeId()
public void setEncounterTypeId(java.lang.Integer encounterTypeId)
public EncounterType getEncounterType()
public void setEncounterType(EncounterType encounterType)
public java.lang.Integer getLocationId()
public void setLocationId(java.lang.Integer locationId)
public Location getLocation()
public void setLocation(Location location)
public java.lang.Integer getLocationTagId()
public void setLocationTagId(java.lang.Integer locationTagId)
public LocationTag getLocationTag()
public void setLocationTag(LocationTag locationTag)
public java.lang.Integer getProgramId()
public void setProgramId(java.lang.Integer programId)
public Program getProgram()
public void setProgram(Program program)
public java.lang.String getVar()
public void setVar(java.lang.String var)
public java.lang.Integer getPersonId()
public void setPersonId(java.lang.Integer personId)
public Person getPerson()
public void setPerson(Person person)
public java.lang.Integer getVisitTypeId()
public void setVisitTypeId(java.lang.Integer visitTypeId)
visitTypeId
- the visitTypeId to setpublic VisitType getVisitType()
public void setVisitType(VisitType visitType)
visitType
- the visitType to setpublic java.lang.Integer getVisitId()
public void setVisitId(java.lang.Integer visitId)
visitId
- the visitId to setpublic Visit getVisit()
public void setVisit(Visit visit)
visit
- the visit to setpublic java.lang.Boolean getJavaScriptEscape()
public void setJavaScriptEscape(java.lang.Boolean javaScriptEscape)
javaScriptEscape
- the javaScriptEscape to setpublic java.util.Map<EncounterRole,java.util.Set<Provider>> getEncounterProviders()
encounterProviders
- the encounterProviders to setpublic void setEncounterProviders(java.util.Map<EncounterRole,java.util.Set<Provider>> encounterProviders)
public java.lang.String getWithConceptNameType()
public void setWithConceptNameType(java.lang.String withConceptNameType)
withConceptNameType
- the withConceptNameType to setpublic java.lang.String getWithConceptNameTag()
public void setWithConceptNameTag(java.lang.String withConceptNameTag)
withConceptNameTag
- the withConceptNameTag to setpublic Form getForm()
public void setForm(Form form)
form
- the form to setpublic SingleCustomValue<?> getSingleCustomValue()
public void setSingleCustomValue(SingleCustomValue<?> singleCustomValue)
singleCustomValue
- the singleCustomValue to setCopyright © 2018 OpenMRS Inc.. All Rights Reserved.