Class Specimen
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.Specimen
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.fhir.tools.CodeGenerator") public class Specimen extends DomainResource
A sample to be used for analysis.Maturity level: FMM2 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Specimen.Builder
static class
Specimen.Collection
Details concerning the specimen collection.static class
Specimen.Container
The container holding the specimen.static class
Specimen.Processing
Details concerning processing and processing steps for the specimen.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static Specimen.Builder
builder()
boolean
equals(java.lang.Object obj)
Identifier
getAccessionIdentifier()
The identifier assigned by the lab when accessioning specimen(s).Specimen.Collection
getCollection()
Details concerning the specimen collection.java.util.List<CodeableConcept>
getCondition()
A mode or state of being that describes the nature of the specimen.java.util.List<Specimen.Container>
getContainer()
The container holding the specimen.java.util.List<Identifier>
getIdentifier()
Id for specimen.java.util.List<Annotation>
getNote()
To communicate any details or issues about the specimen or during the specimen collection.java.util.List<Reference>
getParent()
Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.java.util.List<Specimen.Processing>
getProcessing()
Details concerning processing and processing steps for the specimen.DateTime
getReceivedTime()
Time when specimen was received for processing or testing.java.util.List<Reference>
getRequest()
Details concerning a service request that required a specimen to be collected.SpecimenStatus
getStatus()
The availability of the specimen.Reference
getSubject()
Where the specimen came from.CodeableConcept
getType()
The kind of material that forms the specimen.boolean
hasChildren()
int
hashCode()
Specimen.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Id for specimen.- Returns:
- An unmodifiable list containing immutable objects of type
Identifier
that may be empty.
-
getAccessionIdentifier
public Identifier getAccessionIdentifier()
The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.- Returns:
- An immutable object of type
Identifier
that may be null.
-
getStatus
public SpecimenStatus getStatus()
The availability of the specimen.- Returns:
- An immutable object of type
SpecimenStatus
that may be null.
-
getType
public CodeableConcept getType()
The kind of material that forms the specimen.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getSubject
public Reference getSubject()
Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device.- Returns:
- An immutable object of type
Reference
that may be null.
-
getReceivedTime
public DateTime getReceivedTime()
Time when specimen was received for processing or testing.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getParent
public java.util.List<Reference> getParent()
Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getRequest
public java.util.List<Reference> getRequest()
Details concerning a service request that required a specimen to be collected.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getCollection
public Specimen.Collection getCollection()
Details concerning the specimen collection.- Returns:
- An immutable object of type
Specimen.Collection
that may be null.
-
getProcessing
public java.util.List<Specimen.Processing> getProcessing()
Details concerning processing and processing steps for the specimen.- Returns:
- An unmodifiable list containing immutable objects of type
Specimen.Processing
that may be empty.
-
getContainer
public java.util.List<Specimen.Container> getContainer()
The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.- Returns:
- An unmodifiable list containing immutable objects of type
Specimen.Container
that may be empty.
-
getCondition
public java.util.List<CodeableConcept> getCondition()
A mode or state of being that describes the nature of the specimen.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConcept
that may be empty.
-
getNote
public java.util.List<Annotation> getNote()
To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen).- Returns:
- An unmodifiable list containing immutable objects of type
Annotation
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public Specimen.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static Specimen.Builder builder()
-
-