congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Encounter$Participant.getIndividual
Code IndexAdd Tabnine to your IDE (free)

How to use
getIndividual
method
in
ca.uhn.fhir.model.dstu2.resource.Encounter$Participant

Best Java code snippets using ca.uhn.fhir.model.dstu2.resource.Encounter$Participant.getIndividual (Showing top 7 results out of 315)

origin: org.carewebframework/org.carewebframework.vista.ui.encounter

@Override
public int compare(Participant p1, Participant p2) {
  if (p1.getIndividual().getReference().equals(p2.getIndividual().getReference())) {
    return 0;
  }
  
  String n1 = FhirUtil.formatName(EncounterUtil.getName(p1));
  String n2 = FhirUtil.formatName(EncounterUtil.getName(p2));
  int i = n1.compareToIgnoreCase(n2);
  return i == 0 ? 1 : i;
}

origin: org.carewebframework/org.carewebframework.rpms.ui.core

Encounter encounter = EncounterContext.getActiveEncounter();
IUser user = UserContext.getActiveUser();
Practitioner activePractitioner = (Practitioner) EncounterParticipantContext.getActivePractitioner().getIndividual()
    .getResource();
String practitionerId = activePractitioner == null ? null : activePractitioner.getId().getIdPart();
origin: org.carewebframework/org.carewebframework.vista.api.core

public static String getParticipantId(Participant participant) {
  return participant == null ? null : participant.getIndividual().getReference().getIdPart();
}

origin: org.carewebframework/org.carewebframework.cal.api.core

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;
}

origin: org.carewebframework/org.carewebframework.cal.api.core

public static Practitioner getPractitioner(Participant participant) {
  if (participant == null) {
    return null;
  }
  
  ResourceReferenceDt resource = participant.getIndividual();
  IBaseResource ele = resource.getResource();
  return ele instanceof Practitioner ? (Practitioner) ele : null;
}

origin: org.carewebframework/org.carewebframework.cal.api.core

/**
 * Returns the current participant from the shared context if it is a practitioner.
 * 
 * @return Current practitioner.
 */
public static Participant getActivePractitioner() {
  Participant participant = getParticipantContext().getContextObject(false);
  
  return participant == null ? null : participant.getIndividual().getResource() instanceof Practitioner ? participant
      : null;
}

origin: org.carewebframework/org.carewebframework.vista.ui.encounter

private static boolean isProvider(Participant participant) {
  return participant != null
      && VistAUtil.getBrokerSession().callRPCBool("RGCWFUSR HASKEYS", "PROVIDER",
        participant.getIndividual().getReference().getIdPart());
}

ca.uhn.fhir.model.dstu2.resourceEncounter$ParticipantgetIndividual

Javadoc

Gets the value(s) for individual (who). creating it if it does not exist. Will not return null.

Definition:

Popular methods of Encounter$Participant

  • <init>
  • addType
    Add a value for type () using an enumerated type. This is intended as a convenience method for situa
  • getType
    Gets the value(s) for type (). creating it if it does not exist. Will not return null.Definition: R
  • isEmpty
  • setIndividual
    Sets the value(s) for individual (who)Definition:

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JFrame (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now