public class EncounterDisplayController.FieldHolder extends java.lang.Object implements java.lang.Comparable<EncounterDisplayController.FieldHolder>
| Constructor and Description | 
|---|
FieldHolder(FormField formField,
           Obs obsToAdd)
A row must be created with both a FormField to act as its label and an obs that is the
 first of possibly several rows to display 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addObservation(Obs obsToAdd)
Add another obs grouper to this row This method shouldn't be called with obs that are
 within another grouped obs. 
 | 
int | 
compareTo(EncounterDisplayController.FieldHolder other)
Use this row's FormField to make comparisons about where to put it in relation to the
 FieldHolder's 
 | 
FormField | 
getFormField()
public getter method for the formfield that is the label for this row 
 | 
java.util.Set<Concept> | 
getGroupMemberConcepts()
public getter for the columns (that are unique concepts across all obs in this
 FieldHolder) 
 | 
java.lang.String | 
getLabel()
Convenience method to get the label that this field should have. 
 | 
java.util.List<Obs> | 
getObs()
public getter for the obs that are the different rows for this FieldHolder. 
 | 
java.util.Map<Obs,java.util.List<java.util.List<Obs>>> | 
getObsGroupMatrix()
List of columns for each obs grouper in this fieldholder. 
 | 
java.lang.Integer | 
getPageNumber()
Convenience method to get the page number for this row. 
 | 
boolean | 
isObsGrouping()
Convenience method to know whether this row is an obs grouping and should be displayed
 with a table or if its a single one-and-done obs and should just be shown as one value 
 | 
public FieldHolder(FormField formField, Obs obsToAdd) throws java.lang.Exception
java.lang.Exception - if the obsToAdd is an invalid type (meaning its contained in another
             obs group)public FormField getFormField()
public java.util.Set<Concept> getGroupMemberConcepts()
public java.util.List<Obs> getObs()
public boolean isObsGrouping()
public java.util.Map<Obs,java.util.List<java.util.List<Obs>>> getObsGroupMatrix()
public void addObservation(Obs obsToAdd)
obsToAdd - Obs that should be an obs grouperpublic int compareTo(EncounterDisplayController.FieldHolder other)
compareTo in interface java.lang.Comparable<EncounterDisplayController.FieldHolder>FormField.compareTo(org.openmrs.FormField)public java.lang.String getLabel()
public java.lang.Integer getPageNumber()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.