public Collection<String> getTypes() { if (types == null) { types = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); CodeableConceptDt dt = reference.getType(); List<CodingDt> codings = dt == null ? null : dt.getCoding(); if (codings != null) { for (CodingDt coding : codings) { String type = coding.getDisplay().toString(); if (!StringUtils.isEmpty(type)) { types.add(type); } } } } return types; }
private String getManifestations(List<CodeableConceptDt> symptoms) { StringBuilder sb = new StringBuilder(); for (CodeableConceptDt symptom : symptoms) { String sx = symptom.getText(); if (StringUtils.isEmpty(sx)) { sx = symptom.getCodingFirstRep().getDisplay(); } add(sx, sb); } return sb.toString(); }
public String getTestName() { return skinTest != null ? skinTest.getTest().getProxiedObject().getDisplay() : refusal.getItem().getProxiedObject() .getDisplay(); }
/** * Returns a displayable value for a codeable concept. * * @param value Codeable concept. * @return Displayable value. */ public static String getDisplayValue(CodeableConceptDt value) { CodingDt coding = value.getCodingFirstRep(); String result = coding.getDisplay(); return result == null ? coding.getCode() : result; }
@Override protected void render(Event adr, List<Object> columns) { columns.add(adr.getOnset()); columns.add(adr.getSubstance().getCodingFirstRep().getDisplay()); columns.add(getManifestations(adr.getManifestation())); }
public String getLocationName() { Context ctx = reference.getContext(); CodeableConceptDt facilityType = ctx == null ? null : ctx.getFacilityType(); CodingDt coding = facilityType == null ? null : FhirUtil.getFirst(facilityType.getCoding()); return coding == null ? "" : coding.getDisplay().toString(); }
public String getTitle() { String title = reference.getDescription(); if (title == null) { CodingDt coding = reference.getType().getCodingFirstRep(); title = coding == null ? null : coding.getDisplay(); } return title == null ? "" : title; }
String name = participant == null ? null : FhirUtil.formatName(EncounterUtil.getName(participant)); lblParticipant.setValue(name); lblServiceCategory.setValue(encounter.getTypeFirstRep().getCodingFirstRep().getDisplay()); imgLocked.setVisible(EncounterUtil.isLocked(encounter));
/** * Wire variables and events. */ @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); for (CodeableConceptDt cat : EncounterUtil.getServiceCategories()) { CodingDt coding = cat.getCodingFirstRep(); Comboitem item = cboServiceCategory.appendItem(coding.getDisplay()); item.setValue(coding.getCode()); item.setTooltiptext(cat.getText()); } List<String> data = broker.callRPCList("RGCWENCX CLINLOC", null, "", 1, 9999); for (String itm : data) { String[] pcs = StrUtil.split(itm, StrUtil.U, 3); Listitem item = lstLocation.appendItem(pcs[1], pcs[0]); item.setAttribute("sc", pcs[2]); } }
narr = icd9 == null ? "" : icd9.getProxiedObject().getDisplay();
@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); Span span = new Span(); span.setSclass(EncounterUtil.isLocked(encounter) ? Constants.SCLASS_LOCKED : null); createCell(item, span); Location location = ClientUtil.getResource(encounter.getLocationFirstRep().getLocation(), Location.class); createCell(item, location == null ? null : location.getName()); createCell(item, encounter.getPeriod().getStart()); createCell(item, encounter.getTypeFirstRep().getCodingFirstRep().getDisplay()); }