/** * Returns a participant instance based on the specified CCOW context. */ @Override protected Participant fromCCOWContext(ContextItems contextItems) { Participant participant = null; try { participant = new Participant(); //TODO: Populate participant object from context items. return participant; } catch (Exception e) { log.error(e); return null; } }
/** * Adds and returns a new value for <b>participant</b> () * * <p> * <b>Definition:</b> * The list of people responsible for providing the service * </p> */ public Participant addParticipant() { Participant newType = new Participant(); getParticipant().add(newType); return newType; }
@Override public void renderItem(Listitem item, Object data) { Participant participant; if (data instanceof Participant) { participant = (Participant) data; } else if (data instanceof IResource) { participant = new Participant(); participant.setIndividual(new ResourceReferenceDt((IResource) data)); } else { return; } item.setValue(participant); createCell(item, FhirUtil.formatName(EncounterUtil.getName(participant))); item.setSclass(isPrimary(participant) ? Constants.SCLASS_PRIMARY : null); item.addForward(Events.ON_DOUBLE_CLICK, item.getListbox(), null); }