Package ca.uhn.fhir.model.primitive

Examples of ca.uhn.fhir.model.primitive.IdDt


    Object retValObj = theResourceMetadata.get(theKey);
    if (retValObj == null) {
      return null;
    } else if (retValObj instanceof String) {
      if (isNotBlank((String) retValObj)) {
        return new IdDt((String) retValObj);
      } else {
        return null;
      }
    } else if (retValObj instanceof IdDt) {
      if (((IdDt) retValObj).isEmpty()) {
        return null;
      } else {
        return (IdDt) retValObj;
      }
    } else if (retValObj instanceof Number) {
      return new IdDt(((Number)retValObj).toString());
    }
    throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + theKey.name() + " - Expected " + IdDt.class.getCanonicalName());
  }
View Full Code Here


   *
   * @param theId
   *            The reference itself
   */
  public ResourceReferenceDt(String theId) {
    setReference(new IdDt(theId));
  }
View Full Code Here

     * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
     * </p>
   */
  public IdDt getReference() { 
    if (myReference == null) {
      myReference = new IdDt();
    }
    return myReference;
  }
View Full Code Here

     * <b>Definition:</b>
     * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
     * </p>
   */
  public ResourceReferenceDt setReference( String theId) {
    myReference = new IdDt(theId);
    return this;
  }
View Full Code Here

    return myAuthorUri;
  }

  public IdDt getId() {
    if (myId==null) {
      myId=new IdDt();
    }
    return myId;
  }
View Full Code Here

     * The identifier of this message
     * </p>
   */
  public IdDt getIdentifier() { 
    if (myIdentifier == null) {
      myIdentifier = new IdDt();
    }
    return myIdentifier;
  }
View Full Code Here

     * <b>Definition:</b>
     * The identifier of this message
     * </p>
   */
  public MessageHeader setIdentifier( String theId) {
    myIdentifier = new IdDt(theId);
    return this;
  }
View Full Code Here

     * The id of the message that this message is a response to
     * </p>
   */
  public IdDt getIdentifier() { 
    if (myIdentifier == null) {
      myIdentifier = new IdDt();
    }
    return myIdentifier;
  }
View Full Code Here

     * <b>Definition:</b>
     * The id of the message that this message is a response to
     * </p>
   */
  public Response setIdentifier( String theId) {
    myIdentifier = new IdDt(theId);
    return this;
  }
View Full Code Here

     * The version of the FHIR specification on which this conformance statement is based
     * </p>
   */
  public IdDt getFhirVersion() { 
    if (myFhirVersion == null) {
      myFhirVersion = new IdDt();
    }
    return myFhirVersion;
  }
View Full Code Here

TOP

Related Classes of ca.uhn.fhir.model.primitive.IdDt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.