Tabnine Logo
Person
Code IndexAdd Tabnine to your IDE (free)

How to use
Person
in
ca.uhn.fhir.model.dstu2.resource

Best Java code snippets using ca.uhn.fhir.model.dstu2.resource.Person (Showing top 12 results out of 315)

origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the first repetition for <b>address</b> (),
 * creating it if it does not already exist.
 *
 * <p>
 * <b>Definition:</b>
 * One or more addresses for the person
 * </p> 
 */
public AddressDt getAddressFirstRep() {
  if (getAddress().isEmpty()) {
    return addAddress();
  }
  return getAddress().get(0); 
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the first repetition for <b>identifier</b> (id),
 * creating it if it does not already exist.
 *
 * <p>
 * <b>Definition:</b>
 * Identifier for a person within a particular scope.
 * </p> 
 */
public IdentifierDt getIdentifierFirstRep() {
  if (getIdentifier().isEmpty()) {
    return addIdentifier();
  }
  return getIdentifier().get(0); 
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the first repetition for <b>link</b> (),
 * creating it if it does not already exist.
 *
 * <p>
 * <b>Definition:</b>
 * 
 * </p> 
 */
public Link getLinkFirstRep() {
  if (getLink().isEmpty()) {
    return addLink();
  }
  return getLink().get(0); 
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * 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 person, e.g. a telephone number or an email address.
 * </p> 
 */
public ContactPointDt getTelecomFirstRep() {
  if (getTelecom().isEmpty()) {
    return addTelecom();
  }
  return getTelecom().get(0); 
}
origin: stackoverflow.com

 public class PersonModelDeserializer implements JsonDeserializer<Person> {

  @Override
  public Person deserialize(JsonElement paramJsonElement, Type paramType,
      JsonDeserializationContext paramJsonDeserializationContext) throws JsonParseException {

    Person person = new Gson().fromJson(paramJsonElement.getAsJsonObject(), Person.class);

    try {
      Gender gender = null;
      if (paramJsonElement.getAsJsonObject().get("gender") != null) {
        gender = Gender.valueOf(paramJsonElement.getAsJsonObject().get("gender").getAsString().toUpperCase());
      }

      person.setGender(gender);
    } catch (IllegalArgumentException ie) {
      System.out.println(ie.getMessage());
      System.out.println("Gender cannot be serialized ..");
    }

    return person;
  }

}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the first repetition for <b>name</b> (),
 * creating it if it does not already exist.
 *
 * <p>
 * <b>Definition:</b>
 * A name associated with the person
 * </p> 
 */
public HumanNameDt getNameFirstRep() {
  if (getName().isEmpty()) {
    return addName();
  }
  return getName().get(0); 
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Adds a given new value for <b>address</b> ()
 *
 * <p>
 * <b>Definition:</b>
 * One or more addresses for the person
 * </p>
 * @param theValue The address to add (must not be <code>null</code>)
 */
public Person addAddress(AddressDt theValue) {
  if (theValue == null) {
    throw new NullPointerException("theValue must not be null");
  }
  getAddress().add(theValue);
  return this;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the value(s) for <b>gender</b> ().
 * creating it if it does
 * not exist. This method may return <code>null</code>.
 *
 * <p>
 * <b>Definition:</b>
 * Administrative Gender
 * </p> 
 */
public String getGender() {  
  return getGenderElement().getValue();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the value(s) for <b>active</b> (status).
 * creating it if it does
 * not exist. This method may return <code>null</code>.
 *
 * <p>
 * <b>Definition:</b>
 * Whether this person's record is in active use
 * </p> 
 */
public Boolean getActive() {  
  return getActiveElement().getValue();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the value(s) for <b>birthDate</b> ().
 * creating it if it does
 * not exist. This method may return <code>null</code>.
 *
 * <p>
 * <b>Definition:</b>
 * The birth date for the person.
 * </p> 
 */
public Date getBirthDate() {  
  return getBirthDateElement().getValue();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

  /**
   * Sets the value(s) for <b>gender</b> ()
   *
   * <p>
   * <b>Definition:</b>
   * Administrative Gender
   * </p> 
   */
  public Person setGender(AdministrativeGenderEnum theValue) {
    setGender(new BoundCodeDt<AdministrativeGenderEnum>(AdministrativeGenderEnum.VALUESET_BINDER, theValue));
    
/*
    getGenderElement().setValueAsEnum(theValue);
*/
    return this;
  }

origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Adds and returns a new value for <b>address</b> ()
 *
 * <p>
 * <b>Definition:</b>
 * One or more addresses for the person
 * </p> 
 */
public AddressDt addAddress() {
  AddressDt newType = new AddressDt();
  getAddress().add(newType);
  return newType; 
}
ca.uhn.fhir.model.dstu2.resourcePerson

Javadoc

HAPI/FHIR Person Resource (administrative.entity)

Definition: Demographics and administrative information about a person independent of a specific health-related context.

Requirements: Need to track persons potentially across multiple roles

Profile Definition: http://hl7.org/fhir/profiles/Person

Most used methods

  • setGender
    Sets the value(s) for gender ()Definition: Administrative Gender
  • addAddress
    Adds a given new value for address ()Definition: One or more addresses for the person
  • addIdentifier
    Adds a given new value for identifier (id)Definition: Identifier for a person within a particular sc
  • addLink
    Adds a given new value for link ()Definition:
  • addName
    Adds a given new value for name ()Definition: A name associated with the person
  • addTelecom
    Adds a given new value for telecom ()Definition: A contact detail for the person, e.g. a telephone n
  • getActiveElement
    Gets the value(s) for active (status). creating it if it does not exist. Will not return null.Defini
  • getAddress
    Gets the value(s) for address (). creating it if it does not exist. Will not return null.Definition:
  • getBirthDateElement
    Gets the value(s) for birthDate (). creating it if it does not exist. Will not return null.Definitio
  • getGenderElement
    Gets the value(s) for gender (). creating it if it does not exist. Will not return null.Definition:
  • getIdentifier
    Gets the value(s) for identifier (id). creating it if it does not exist. Will not return null.Defini
  • getLink
    Gets the value(s) for link (). creating it if it does not exist. Will not return null.Definition:
  • getIdentifier,
  • getLink,
  • getName,
  • getTelecom

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • Menu (java.awt)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JOptionPane (javax.swing)
  • JTable (javax.swing)
  • JTextField (javax.swing)
  • Top PhpStorm 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