/** * Gets the first repetition for <b>identifier</b> (Identifies this organization across multiple systems), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Identifier for the organization that is used to identify the organization across multiple disparate systems * </p> */ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /**
/** * Gets the first repetition for <b>address</b> (An address for the organization), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * An address for the organization * </p> */ public AddressDt getAddressFirstRep() { if (getAddress().isEmpty()) { return addAddress(); } return getAddress().get(0); }
/** * Gets the first repetition for <b>contact</b> (Contact for the organization for a certain purpose), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * * </p> */ public Contact getContactFirstRep() { if (getContact().isEmpty()) { return addContact(); } return getContact().get(0); }
String defaultInst = organizations.size() == 1 ? organizations.get(0).getId().getIdPart() : null; li.setValue(organization); j_domain.appendChild(li); IdentifierDt abbr = FhirUtil.getIdentifier(organization.getIdentifier(), "ABBREVIATION"); li.appendChild(new Listcell(abbr == null ? organization.getName().getValue() : abbr.getValue().getValue())); if (organization.getId().getIdPart().equals(defaultInst)) { li.setSelected(true);
/** * Gets the first repetition for <b>telecom</b> (A contact detail for the organization), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A contact detail for the organization * </p> */ public ContactDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); } /**
/** * Adds and returns a new value for <b>identifier</b> (Identifies this organization across multiple systems) * * <p> * <b>Definition:</b> * Identifier for the organization that is used to identify the organization across multiple disparate systems * </p> */ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; }
/** * Submits the authentication request. */ private void doSubmit() { showMessage(""); final Organization organization = getSelectedOrganization(); String instId = organization == null ? null : organization.getId().getIdPart(); String username = j_username.getValue().trim(); final String password = j_password.getValue(); if (username.contains("\\")) { String[] pcs = username.split("\\\\", 2); instId = pcs[0]; username = pcs[1]; } if (!username.isEmpty() && !password.isEmpty() && !instId.isEmpty()) { session.setAttribute(Constants.DEFAULT_INSTITUTION, instId); FrameworkWebSupport.setCookie(Constants.DEFAULT_INSTITUTION, instId); session.setAttribute(Constants.DEFAULT_USERNAME, username); //FrameworkWebSupport.setCookie(Constants.DEFAULT_USERNAME, username); j_username.setValue(instId + "\\" + username); showState(Labels.getLabel(Constants.LBL_LOGIN_PROGRESS)); session.setAttribute(org.carewebframework.security.spring.Constants.SAVED_REQUEST, savedRequest); Events.sendEvent("onSubmit", loginRoot.getRoot(), null); } else { showMessage(Labels.getLabel(Constants.LBL_LOGIN_REQUIRED_FIELDS)); } }
/** * Adds and returns a new value for <b>location</b> (Location(s) the organization uses to provide services) * * <p> * <b>Definition:</b> * Location(s) the organization uses to provide services * </p> */ public ResourceReferenceDt addLocation() { ResourceReferenceDt newType = new ResourceReferenceDt(); getLocation().add(newType); return newType; }
/** * Adds and returns a new value for <b>address</b> (An address for the organization) * * <p> * <b>Definition:</b> * An address for the organization * </p> */ public AddressDt addAddress() { AddressDt newType = new AddressDt(); getAddress().add(newType); return newType; }
/** * Adds and returns a new value for <b>contact</b> (Contact for the organization for a certain purpose) * * <p> * <b>Definition:</b> * * </p> */ public Contact addContact() { Contact newType = new Contact(); getContact().add(newType); return newType; }
private void institutionChanged() { lblInstitution.setValue(getSelectedOrganization().getName().getValue()); }
showMessage(result); } else if (forced) { String inst = user.getOrganization().getId().getIdPart(); j_username.setValue(inst + "\\" + user.getLogin()); Events.sendEvent("onSubmit", panel.getRoot(), null);