Class Specimen.Collection
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.IResourceBlock
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
- Enclosing class:
Specimen
Definition: Details concerning the specimen collection
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.model.primitive.StringDt
Adds and returns a new value for comment ()addComment
(ca.uhn.fhir.model.primitive.StringDt theValue) Adds a given new value for comment ()addComment
(String theString) Adds a new value for comment ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for bodySite ().ca.uhn.fhir.model.api.IDatatype
Gets the value(s) for collected[x] (when.init).Gets the value(s) for collector ().List
<ca.uhn.fhir.model.primitive.StringDt> Gets the value(s) for comment ().ca.uhn.fhir.model.primitive.StringDt
Gets the first repetition for comment (), creating it if it does not already exist.Gets the value(s) for method ().Gets the value(s) for quantity ().boolean
isEmpty()
setBodySite
(CodeableConceptDt theValue) Sets the value(s) for bodySite ()setCollected
(ca.uhn.fhir.model.api.IDatatype theValue) Sets the value(s) for collected[x] (when.init)setCollector
(ResourceReferenceDt theValue) Sets the value(s) for collector ()setComment
(List<ca.uhn.fhir.model.primitive.StringDt> theValue) Sets the value(s) for comment ()setMethod
(CodeableConceptDt theValue) Sets the value(s) for method ()setQuantity
(SimpleQuantityDt theValue) Sets the value(s) for quantity ()Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
Collection
public Collection()
-
-
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
-
getCollector
Gets the value(s) for collector (). creating it if it does not exist. Will not returnnull
.Definition: Person who collected the specimen
-
setCollector
Sets the value(s) for collector ()Definition: Person who collected the specimen
-
getComment
Gets the value(s) for comment (). creating it if it does not exist. Will not returnnull
.Definition: To communicate any details or issues encountered during the specimen collection procedure.
-
setComment
Sets the value(s) for comment ()Definition: To communicate any details or issues encountered during the specimen collection procedure.
-
addComment
Adds and returns a new value for comment ()Definition: To communicate any details or issues encountered during the specimen collection procedure.
-
addComment
Adds a given new value for comment ()Definition: To communicate any details or issues encountered during the specimen collection procedure.
- Parameters:
theValue
- The comment to add (must not benull
)
-
getCommentFirstRep
Gets the first repetition for comment (), creating it if it does not already exist.Definition: To communicate any details or issues encountered during the specimen collection procedure.
-
addComment
Adds a new value for comment ()Definition: To communicate any details or issues encountered during the specimen collection procedure.
- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getCollected
Gets the value(s) for collected[x] (when.init). creating it if it does not exist. Will not returnnull
.Definition: Time when specimen was collected from subject - the physiologically relevant time
-
setCollected
Sets the value(s) for collected[x] (when.init)Definition: Time when specimen was collected from subject - the physiologically relevant time
-
getQuantity
Gets the value(s) for quantity (). creating it if it does not exist. Will not returnnull
.Definition: The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.
-
setQuantity
Sets the value(s) for quantity ()Definition: The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.
-
getMethod
Gets the value(s) for method (). creating it if it does not exist. Will not returnnull
.Definition: A coded value specifying the technique that is used to perform the procedure
-
setMethod
Sets the value(s) for method ()Definition: A coded value specifying the technique that is used to perform the procedure
-
getBodySite
Gets the value(s) for bodySite (). creating it if it does not exist. Will not returnnull
.Definition: Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.
-
setBodySite
Sets the value(s) for bodySite ()Definition: Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.
-