Class IdDt

All Implemented Interfaces:
IDatatype, IElement, IIdentifiableElement, IPrimitiveDatatype<String>, ISupportsUndeclaredExtensions, Externalizable, Serializable, IBase, IBaseDatatype, IIdType, IPrimitiveType<String>

public class IdDt extends UriDt implements IIdType
Represents the FHIR ID type. This is the actual resource ID, meaning the ID that will be used in RESTful URLs, Resource References, etc. to represent a specific instance of a resource.

Description: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length limit of 36 characters.

regex: [a-z-Z0-9\-\.]{1,36}

See Also:
Serialized Form
  • Constructor Details

    • IdDt

      public IdDt()
      Create a new empty ID
    • IdDt

      public IdDt(BigDecimal thePid)
      Create a new ID, using a BigDecimal input. Uses BigDecimal.toPlainString() to generate the string representation.
    • IdDt

      public IdDt(long theId)
      Create a new ID using a long
    • IdDt

      public IdDt(String theValue)
      Create a new ID using a string. This String may contain a simple ID (e.g. "1234") or it may contain a complete URL (http://example.com/fhir/Patient/1234).

      Description: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length limit of 36 characters.

      regex: [a-z0-9\-\.]{1,36}

    • IdDt

      public IdDt(String theResourceType, BigDecimal theIdPart)
      Constructor
      Parameters:
      theResourceType - The resource type (e.g. "Patient")
      theIdPart - The ID (e.g. "123")
    • IdDt

      public IdDt(String theResourceType, Long theIdPart)
      Constructor
      Parameters:
      theResourceType - The resource type (e.g. "Patient")
      theIdPart - The ID (e.g. "123")
    • IdDt

      public IdDt(String theResourceType, String theId)
      Constructor
      Parameters:
      theResourceType - The resource type (e.g. "Patient")
      theId - The ID (e.g. "123")
    • IdDt

      public IdDt(String theResourceType, String theId, String theVersionId)
      Constructor
      Parameters:
      theResourceType - The resource type (e.g. "Patient")
      theId - The ID (e.g. "123")
      theVersionId - The version ID ("e.g. "456")
    • IdDt

      public IdDt(String theBaseUrl, String theResourceType, String theId, String theVersionId)
      Constructor
      Parameters:
      theBaseUrl - The server base URL (e.g. "http://example.com/fhir")
      theResourceType - The resource type (e.g. "Patient")
      theId - The ID (e.g. "123")
      theVersionId - The version ID ("e.g. "456")
    • IdDt

      public IdDt(IIdType theId)
    • IdDt

      public IdDt(UriDt theUrl)
      Creates an ID based on a given URL
    • IdDt

      public IdDt(IdDt theIdDt)
      Copy Constructor
  • Method Details