/** * Constructor * * @param theResourceType The resource type (e.g. "Patient") * @param theIdPart The ID (e.g. "123") */ public IdType(String theResourceType, Long theIdPart) { this(theResourceType, toPlainStringWithNpeThrowIfNeeded(theIdPart)); }
/** * Constructor * * @param theResourceType The resource type (e.g. "Patient") * @param theIdPart The ID (e.g. "123") */ public IdType(String theResourceType, BigDecimal theIdPart) { this(theResourceType, toPlainStringWithNpeThrowIfNeeded(theIdPart)); }
/** * Create a new ID, using a BigDecimal input. Uses * {@link BigDecimal#toPlainString()} to generate the string representation. */ public IdType(BigDecimal thePid) { if (thePid != null) { setValue(toPlainStringWithNpeThrowIfNeeded(thePid)); } else { setValue(null); } }
/** * Constructor * * @param theResourceType The resource type (e.g. "Patient") * @param theIdPart The ID (e.g. "123") */ public IdType(String theResourceType, BigDecimal theIdPart) { this(theResourceType, toPlainStringWithNpeThrowIfNeeded(theIdPart)); }
/** * Constructor * * @param theResourceType The resource type (e.g. "Patient") * @param theIdPart The ID (e.g. "123") */ public IdType(String theResourceType, Long theIdPart) { this(theResourceType, toPlainStringWithNpeThrowIfNeeded(theIdPart)); }
/** * Create a new ID, using a BigDecimal input. Uses * {@link BigDecimal#toPlainString()} to generate the string representation. */ public IdType(BigDecimal thePid) { if (thePid != null) { setValue(toPlainStringWithNpeThrowIfNeeded(thePid)); } else { setValue(null); } }