/** * Gets the first repetition for <b>type</b> (Specific type of encounter), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) * </p> */ public BoundCodeableConceptDt<EncounterTypeEnum> getTypeFirstRep() { if (getType().size() == 0) { addType(); } return getType().get(0); }
/** * Add a value for <b>type</b> (Specific type of encounter) * * <p> * <b>Definition:</b> * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) * </p> */ public BoundCodeableConceptDt<EncounterTypeEnum> addType() { BoundCodeableConceptDt<EncounterTypeEnum> retVal = new BoundCodeableConceptDt<EncounterTypeEnum>(EncounterTypeEnum.VALUESET_BINDER); getType().add(retVal); return retVal; }
/** * Sets the value(s), and clears any existing value(s) for <b>type</b> (Specific type of encounter) * * <p> * <b>Definition:</b> * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) * </p> */ public Encounter setType(EncounterTypeEnum theValue) { getType().clear(); addType(theValue); return this; }
/** * Add a value for <b>type</b> (Specific type of encounter) using an enumerated type. This * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory * or contain the desirable codes. If you wish to use codes other than those which are built-in, * you may also use the {@link #addType()} method. * * <p> * <b>Definition:</b> * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) * </p> */ public BoundCodeableConceptDt<EncounterTypeEnum> addType(EncounterTypeEnum theValue) { BoundCodeableConceptDt<EncounterTypeEnum> retVal = new BoundCodeableConceptDt<EncounterTypeEnum>(EncounterTypeEnum.VALUESET_BINDER, theValue); getType().add(retVal); return retVal; }
@Override public void renderItem(Listitem item, Object data) { Encounter encounter = data instanceof Encounter ? (Encounter) data : parse((String) data); item.setValue(encounter); item.addForward(Events.ON_DOUBLE_CLICK, item.getListbox(), null); item.setImage(EncounterUtil.isLocked(encounter) ? Constants.ICON_LOCKED : null); createCell(item, encounter.getLocation()); createCell(item, encounter.getPeriod()); createCell(item, encounter.getType()); }
Practitioner provider = EncounterUtil.getCurrentProvider(encounter); lblProvider.setValue(provider == null ? null : provider.getName().toString()); lblServiceCategory.setValue(encounter.getType().toString()); imgLocked.setVisible(EncounterUtil.isLocked(encounter));
if (encounter.getType() == null) { appendItem(sb, Constants.TX_NO_CAT);