Class Specimen
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IResource
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseResource
Definition: A sample to be used for analysis.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Specimen
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Block class for child element: Specimen.collection ()static class
Block class for child element: Specimen.container ()static class
Block class for child element: Specimen.treatment () -
Field Summary
Modifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for accessionstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for bodysitestatic final ca.uhn.fhir.rest.gclient.DateClientParam
Fluent Client search parameter constant for collectedstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for collectorstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for containerstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for container-idstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for identifierstatic final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for parentstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for patientstatic final String
Search parameter constant for accessionstatic final String
Search parameter constant for bodysitestatic final String
Search parameter constant for collectedstatic final String
Search parameter constant for collectorstatic final String
Search parameter constant for containerstatic final String
Search parameter constant for container-idstatic final String
Search parameter constant for identifierstatic final String
Search parameter constant for parentstatic final String
Search parameter constant for patientstatic final String
Search parameter constant for subjectstatic final String
Search parameter constant for typestatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for subjectstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for typeFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for container ()addContainer
(Specimen.Container theValue) Adds a given new value for container ()Adds and returns a new value for identifier (id)addIdentifier
(IdentifierDt theValue) Adds a given new value for identifier (id)Adds and returns a new value for parent ()Adds and returns a new value for treatment ()addTreatment
(Specimen.Treatment theValue) Adds a given new value for treatment ()Gets the value(s) for accessionIdentifier (id).<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for collection ().Gets the value(s) for container ().Gets the first repetition for container (), creating it if it does not already exist.Gets the value(s) for identifier (id).Gets the first repetition for identifier (id), creating it if it does not already exist.Gets the value(s) for parent ().Gets the value(s) for receivedTime (when.done).ca.uhn.fhir.model.primitive.DateTimeDt
Gets the value(s) for receivedTime (when.done).Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt
<SpecimenStatusEnum> Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnum
Gets the value(s) for subject (who.focus).Gets the value(s) for treatment ().Gets the first repetition for treatment (), creating it if it does not already exist.getType()
Gets the value(s) for type (class).boolean
isEmpty()
setAccessionIdentifier
(IdentifierDt theValue) Sets the value(s) for accessionIdentifier (id)setCollection
(Specimen.Collection theValue) Sets the value(s) for collection ()setContainer
(List<Specimen.Container> theValue) Sets the value(s) for container ()setIdentifier
(List<IdentifierDt> theValue) Sets the value(s) for identifier (id)setParent
(List<ResourceReferenceDt> theValue) Sets the value(s) for parent ()setReceivedTime
(ca.uhn.fhir.model.primitive.DateTimeDt theValue) Sets the value(s) for receivedTime (when.done)setReceivedTime
(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for receivedTime (when.done)setReceivedTimeWithSecondsPrecision
(Date theDate) Sets the value for receivedTime (when.done)setStatus
(SpecimenStatusEnum theValue) Sets the value(s) for status (status)setStatus
(ca.uhn.fhir.model.primitive.BoundCodeDt<SpecimenStatusEnum> theValue) Sets the value(s) for status (status)setSubject
(ResourceReferenceDt theValue) Sets the value(s) for subject (who.focus)setTreatment
(List<Specimen.Treatment> theValue) Sets the value(s) for treatment ()setType
(CodeableConceptDt theValue) Sets the value(s) for type (class)Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setId
Methods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_SUBJECT
Search parameter constant for subjectDescription: The subject of the specimen
Type: reference
Path: Specimen.subject
- See Also:
-
SUBJECT
Fluent Client search parameter constant for subjectDescription: The subject of the specimen
Type: reference
Path: Specimen.subject
-
SP_PATIENT
Search parameter constant for patientDescription: The patient the specimen comes from
Type: reference
Path: Specimen.subject
- See Also:
-
PATIENT
Fluent Client search parameter constant for patientDescription: The patient the specimen comes from
Type: reference
Path: Specimen.subject
-
SP_IDENTIFIER
Search parameter constant for identifierDescription: The unique identifier associated with the specimen
Type: token
Path: Specimen.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: The unique identifier associated with the specimen
Type: token
Path: Specimen.identifier
-
SP_TYPE
Search parameter constant for typeDescription: The specimen type
Type: token
Path: Specimen.type
- See Also:
-
TYPE
Fluent Client search parameter constant for typeDescription: The specimen type
Type: token
Path: Specimen.type
-
SP_PARENT
Search parameter constant for parentDescription: The parent of the specimen
Type: reference
Path: Specimen.parent
- See Also:
-
PARENT
Fluent Client search parameter constant for parentDescription: The parent of the specimen
Type: reference
Path: Specimen.parent
-
SP_ACCESSION
Search parameter constant for accessionDescription: The accession number associated with the specimen
Type: token
Path: Specimen.accessionIdentifier
- See Also:
-
ACCESSION
Fluent Client search parameter constant for accessionDescription: The accession number associated with the specimen
Type: token
Path: Specimen.accessionIdentifier
-
SP_COLLECTED
Search parameter constant for collectedDescription: The date the specimen was collected
Type: date
Path: Specimen.collection.collected[x]
- See Also:
-
COLLECTED
Fluent Client search parameter constant for collectedDescription: The date the specimen was collected
Type: date
Path: Specimen.collection.collected[x]
-
SP_COLLECTOR
Search parameter constant for collectorDescription: Who collected the specimen
Type: reference
Path: Specimen.collection.collector
- See Also:
-
COLLECTOR
Fluent Client search parameter constant for collectorDescription: Who collected the specimen
Type: reference
Path: Specimen.collection.collector
-
SP_BODYSITE
Search parameter constant for bodysiteDescription: The code for the body site from where the specimen originated
Type: token
Path: Specimen.collection.bodySite
- See Also:
-
BODYSITE
Fluent Client search parameter constant for bodysiteDescription: The code for the body site from where the specimen originated
Type: token
Path: Specimen.collection.bodySite
-
SP_CONTAINER_ID
Search parameter constant for container-idDescription: The unique identifier associated with the specimen container
Type: token
Path: Specimen.container.identifier
- See Also:
-
CONTAINER_ID
Fluent Client search parameter constant for container-idDescription: The unique identifier associated with the specimen container
Type: token
Path: Specimen.container.identifier
-
SP_CONTAINER
Search parameter constant for containerDescription: The kind of specimen container
Type: token
Path: Specimen.container.type
- See Also:
-
CONTAINER
Fluent Client search parameter constant for containerDescription: The kind of specimen container
Type: token
Path: Specimen.container.type
-
INCLUDE_COLLECTOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "Specimen:collector". -
INCLUDE_PARENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Specimen:parent". -
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Specimen:patient". -
INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Specimen:subject".
-
-
Constructor Details
-
Specimen
public Specimen()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull
.Definition: Id for specimen
-
setIdentifier
Sets the value(s) for identifier (id)Definition: Id for specimen
-
addIdentifier
Adds and returns a new value for identifier (id)Definition: Id for specimen
-
addIdentifier
Adds a given new value for identifier (id)Definition: Id for specimen
- Parameters:
theValue
- The identifier to add (must not benull
)
-
getIdentifierFirstRep
Gets the first repetition for identifier (id), creating it if it does not already exist.Definition: Id for specimen
-
getStatusElement
Gets the value(s) for status (status). creating it if it does not exist. Will not returnnull
.Definition: The availability of the specimen
-
getStatus
Gets the value(s) for status (status). creating it if it does not exist. This method may returnnull
.Definition: The availability of the specimen
-
setStatus
Sets the value(s) for status (status)Definition: The availability of the specimen
-
setStatus
Sets the value(s) for status (status)Definition: The availability of the specimen
-
getType
Gets the value(s) for type (class). creating it if it does not exist. Will not returnnull
.Definition: The kind of material that forms the specimen
-
setType
Sets the value(s) for type (class)Definition: The kind of material that forms the specimen
-
getParent
Gets the value(s) for parent (). creating it if it does not exist. Will not returnnull
.Definition: Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.
-
setParent
Sets the value(s) for parent ()Definition: Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.
-
addParent
Adds and returns a new value for parent ()Definition: Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.
-
getSubject
Gets the value(s) for subject (who.focus). creating it if it does not exist. Will not returnnull
.Definition:
-
setSubject
Sets the value(s) for subject (who.focus)Definition:
-
getAccessionIdentifier
Gets the value(s) for accessionIdentifier (id). creating it if it does not exist. Will not returnnull
.Definition: 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.
-
setAccessionIdentifier
Sets the value(s) for accessionIdentifier (id)Definition: 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.
-
getReceivedTimeElement
Gets the value(s) for receivedTime (when.done). creating it if it does not exist. Will not returnnull
.Definition: Time when specimen was received for processing or testing
-
getReceivedTime
Gets the value(s) for receivedTime (when.done). creating it if it does not exist. This method may returnnull
.Definition: Time when specimen was received for processing or testing
-
setReceivedTime
Sets the value(s) for receivedTime (when.done)Definition: Time when specimen was received for processing or testing
-
setReceivedTimeWithSecondsPrecision
Sets the value for receivedTime (when.done)Definition: Time when specimen was received for processing or testing
-
setReceivedTime
public Specimen setReceivedTime(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for receivedTime (when.done)Definition: Time when specimen was received for processing or testing
-
getCollection
Gets the value(s) for collection (). creating it if it does not exist. Will not returnnull
.Definition: Details concerning the specimen collection
-
setCollection
Sets the value(s) for collection ()Definition: Details concerning the specimen collection
-
getTreatment
Gets the value(s) for treatment (). creating it if it does not exist. Will not returnnull
.Definition: Details concerning treatment and processing steps for the specimen
-
setTreatment
Sets the value(s) for treatment ()Definition: Details concerning treatment and processing steps for the specimen
-
addTreatment
Adds and returns a new value for treatment ()Definition: Details concerning treatment and processing steps for the specimen
-
addTreatment
Adds a given new value for treatment ()Definition: Details concerning treatment and processing steps for the specimen
- Parameters:
theValue
- The treatment to add (must not benull
)
-
getTreatmentFirstRep
Gets the first repetition for treatment (), creating it if it does not already exist.Definition: Details concerning treatment and processing steps for the specimen
-
getContainer
Gets the value(s) for container (). creating it if it does not exist. Will not returnnull
.Definition: The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
-
setContainer
Sets the value(s) for container ()Definition: The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
-
addContainer
Adds and returns a new value for container ()Definition: The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
-
addContainer
Adds a given new value for container ()Definition: The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
- Parameters:
theValue
- The container to add (must not benull
)
-
getContainerFirstRep
Gets the first repetition for container (), creating it if it does not already exist.Definition: The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
-
getResourceName
- Specified by:
getResourceName
in interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnum
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
getStructureFhirVersionEnum
in interfaceca.uhn.fhir.model.api.IResource
-