Class ReagentLot

java.lang.Object
com.genologics.ri.reagentlot.ReagentLot
All Implemented Interfaces:
LimsEntity<ReagentLot>, LimsEntityLinkable<ReagentLot>, Linkable<ReagentLot>, Locatable, Serializable

public class ReagentLot extends Object implements LimsEntity<ReagentLot>, Serializable
Represents a reagent lot in the Clarity LIMS system.

A reagent lot is a specific batch of a reagent kit that is tracked separately with its own lot number, expiry date, and usage information. This class provides detailed information about the lot including its status, storage location, and audit trail (creation and modification timestamps and responsible researchers).

Since:
2.18
See Also:
  • Field Details

    • reagentKit

      protected ReagentKitLink reagentKit
      Link to the reagent kit that this lot belongs to.
    • name

      protected String name
      The name of this reagent lot.
    • lotNumber

      protected String lotNumber
      The lot number identifier for this reagent lot.
    • createdDate

      protected Date createdDate
      The date when this reagent lot was created in the system.
    • lastModifiedDate

      protected Date lastModifiedDate
      The date when this reagent lot was last modified.
    • expiryDate

      protected Date expiryDate
      The expiry date of this reagent lot.
    • createdBy

      protected ResearcherLink createdBy
      Link to the researcher who created this reagent lot.
    • lastModifiedBy

      protected ResearcherLink lastModifiedBy
      Link to the researcher who last modified this reagent lot.
    • storageLocation

      protected String storageLocation
      The physical storage location of this reagent lot.
    • notes

      protected String notes
      Additional notes about this reagent lot.
    • status

      protected Status status
      The current status of this reagent lot (e.g., ACTIVE, ARCHIVED).
    • usageCount

      protected Long usageCount
      The number of times this reagent lot has been used.
      Since:
      2.20
    • uri

      protected URI uri
      The URI of this reagent lot resource.
    • limsid

      protected String limsid
      The LIMS id of this reagent lot.
  • Constructor Details

    • ReagentLot

      public ReagentLot()
      Default constructor.
    • ReagentLot

      public ReagentLot(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI of the reagent lot.
    • ReagentLot

      public ReagentLot(URI uri, String limsid)
      Constructor with URI and LIMS id.
      Parameters:
      uri - The URI of the reagent lot.
      limsid - The LIMS id of the reagent lot.
    • ReagentLot

      public ReagentLot(LimsEntityLinkable<ReagentLot> link)
      Constructor from a linkable reagent lot.
      Parameters:
      link - The linkable reagent lot to copy URI and LIMS id from.
  • Method Details

    • getReagentKit

      public ReagentKitLink getReagentKit()
      Gets the link to the reagent kit.
      Returns:
      The reagent kit link.
    • setReagentKit

      public void setReagentKit(Linkable<ReagentKit> reagentKit)
      Sets the reagent kit for this lot.
      Parameters:
      reagentKit - A linkable reference to the reagent kit.
    • getName

      public String getName()
      Gets the name of the reagent lot.
      Returns:
      The name.
    • setName

      public void setName(String name)
      Sets the name of the reagent lot.
      Parameters:
      name - The name to set.
    • getLotNumber

      public String getLotNumber()
      Gets the lot number.
      Returns:
      The lot number.
    • setLotNumber

      public void setLotNumber(String lotNumber)
      Sets the lot number.
      Parameters:
      lotNumber - The lot number to set.
    • getCreatedDate

      public Date getCreatedDate()
      Gets the creation date.
      Returns:
      The creation date.
    • setCreatedDate

      public void setCreatedDate(Date createdDate)
      Sets the creation date.
      Parameters:
      createdDate - The creation date to set.
    • getLastModifiedDate

      public Date getLastModifiedDate()
      Gets the last modification date.
      Returns:
      The last modification date.
    • setLastModifiedDate

      public void setLastModifiedDate(Date lastModifiedDate)
      Sets the last modification date.
      Parameters:
      lastModifiedDate - The last modification date to set.
    • getExpiryDate

      public Date getExpiryDate()
      Gets the expiry date.
      Returns:
      The expiry date.
    • setExpiryDate

      public void setExpiryDate(Date expiryDate)
      Sets the expiry date.
      Parameters:
      expiryDate - The expiry date to set.
    • getCreatedBy

      public ResearcherLink getCreatedBy()
      Gets the link to the researcher who created this lot.
      Returns:
      The creator researcher link.
    • setCreatedBy

      public void setCreatedBy(Linkable<Researcher> createdBy)
      Sets the researcher who created this lot.
      Parameters:
      createdBy - A linkable reference to the creator researcher.
    • getLastModifiedBy

      public ResearcherLink getLastModifiedBy()
      Gets the link to the researcher who last modified this lot.
      Returns:
      The last modifier researcher link.
    • setLastModifiedBy

      public void setLastModifiedBy(Linkable<Researcher> lastModifiedBy)
      Sets the researcher who last modified this lot.
      Parameters:
      lastModifiedBy - A linkable reference to the last modifier researcher.
    • getStorageLocation

      public String getStorageLocation()
      Gets the storage location.
      Returns:
      The storage location.
    • setStorageLocation

      public void setStorageLocation(String storageLocation)
      Sets the storage location.
      Parameters:
      storageLocation - The storage location to set.
    • getNotes

      public String getNotes()
      Gets the notes.
      Returns:
      The notes.
    • setNotes

      public void setNotes(String notes)
      Sets the notes.
      Parameters:
      notes - The notes to set.
    • getStatus

      public Status getStatus()
      Gets the status of the reagent lot.
      Returns:
      The status.
    • setStatus

      public void setStatus(Status status)
      Sets the status of the reagent lot.
      Parameters:
      status - The status to set.
    • getUsageCount

      public Long getUsageCount()
      Gets the usage count.
      Returns:
      The usage count.
    • setUsageCount

      public void setUsageCount(Long usageCount)
      Sets the usage count.
      Parameters:
      usageCount - The usage count to set.
    • getUri

      public URI getUri()
      Description copied from interface: Locatable
      Get the URI of this object.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Description copied from interface: Locatable
      Set the URI of this object.
      Specified by:
      setUri in interface Locatable
      Parameters:
      uri - The new URI.
    • getLimsid

      public String getLimsid()
      Description copied from interface: LimsEntityLinkable
      Get the LIMS id for this object.
      Specified by:
      getLimsid in interface LimsEntityLinkable<ReagentLot>
      Returns:
      The LIMS id.
    • setLimsid

      public void setLimsid(String limsid)
      Description copied from interface: LimsEntityLinkable
      Set the LIMS id for this object.
      Specified by:
      setLimsid in interface LimsEntityLinkable<ReagentLot>
      Parameters:
      limsid - The new LIMS id.
    • toString

      public String toString()
      Returns a string representation of this reagent lot.
      Overrides:
      toString in class Object
      Returns:
      A string containing the LIMS id and name.
    • getLink

      public LimsEntityLink<ReagentLot> getLink()
      Get a concrete link object to this LimsEntityLinkable entity. This definition simply narrows the type of links returned by classes that implement this interface, as they should all have corresponding LimsEntityLink link classes available.
      Specified by:
      getLink in interface LimsEntityLinkable<ReagentLot>
      Specified by:
      getLink in interface Linkable<ReagentLot>
      Returns:
      A LimsEntityLink to this object.