private Practitioner parseProvider(String ien, String name) { if (ien.isEmpty()) { return null; } Practitioner provider = new Practitioner(); provider.setId(ien); provider.setName(FhirUtil.parseName(name)); return provider; }
/** * Gets the first repetition for <b>address</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * The postal address where the practitioner can be found or visited or to which mail can be delivered * </p> */ public AddressDt getAddressFirstRep() { if (getAddress().isEmpty()) { return addAddress(); } return getAddress().get(0); }
/** * Gets the first repetition for <b>communication</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A language the practitioner is able to use in patient communication * </p> */ public CodeableConceptDt getCommunicationFirstRep() { if (getCommunication().isEmpty()) { return addCommunication(); } return getCommunication().get(0); }
/** * Gets the first repetition for <b>identifier</b> (id), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * An identifier that applies to this person in this role * </p> */ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); }
record.setStartDate(DateUtil.today()); IUser user = UserContext.getActiveUser(); Practitioner provider = new Practitioner(); provider.setId(user.getLogicalId()); provider.setName(FhirUtil.parseName(user.getFullName())); record.setProvider(provider); } else { wbProvider.setSearchProvider(providerSearch); wbProvider.setSelectedItem(record.getProvider().getName().toString(), record.getProvider()); updateMinMax(); updateControls();
public String getProviderName() { Practitioner prv = getProvider(); return prv == null ? "" : FhirUtil.formatName(prv.getName()); }
/** * Gets the first repetition for <b>qualification</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * * </p> */ public Qualification getQualificationFirstRep() { if (getQualification().isEmpty()) { return addQualification(); } return getQualification().get(0); }
/** * Gets the first repetition for <b>telecom</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A contact detail for the practitioner, e.g. a telephone number or an email address. * </p> */ public ContactPointDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); }
/** * Gets the first repetition for <b>practitionerRole</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * The list of roles/organizations that the practitioner is associated with * </p> */ public PractitionerRole getPractitionerRoleFirstRep() { if (getPractitionerRole().isEmpty()) { return addPractitionerRole(); } return getPractitionerRole().get(0); }
public static HumanNameDt getName(Participant participant) { IBaseResource resource = ClientUtil.getResource(participant.getIndividual()); return resource instanceof Practitioner ? ((Practitioner) resource).getName() : resource instanceof RelatedPerson ? ((RelatedPerson) resource).getName() : null; }
public void delete() { Practitioner provider = getProvider(); IUser user = UserContext.getActiveUser(); if (skinTest != null && provider != null && !user.equals(provider)) { String s = VistAUtil.getBrokerSession().callRPC("BGOVPRV PRIPRV", skinTest.getEncounter().getId().getIdPart()); String[] pcs = StrUtil.split(s, StrUtil.U, 2); if (!user.getLogicalId().equals(pcs[0])) { PromptDialog.showError("To delete the skin test, you must either be the person that entered it or be " + "designated as the primary provider for the visit.\n" + BgoConstants.TC_PRI_PRV + pcs[1] + "\nAdministered By: " + provider.getName(), "Cannot Delete"); return; } } if (PromptDialog.confirm("Are you sure that you wish to delete the skin test:\n" + getTestName(), "Delete Skin Test?")) { PCC.errorCheck(VistAUtil.getBrokerSession().callRPC( "BGOSK DEL", VistAUtil.concatParams(skinTest != null ? skinTest.getId().getIdPart() : null, refusal != null ? refusal .getId().getIdPart() : null))); } }