Class Specimen.Collection
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.resource.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
public static class Specimen.Collection extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: Specimen.collection ()Definition: Details concerning the specimen collection
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Collection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uhn.fhir.model.primitive.StringDtaddComment()Adds and returns a new value for comment ()Specimen.CollectionaddComment(ca.uhn.fhir.model.primitive.StringDt theValue)Adds a given new value for comment ()Specimen.CollectionaddComment(String theString)Adds a new value for comment ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)CodeableConceptDtgetBodySite()Gets the value(s) for bodySite ().ca.uhn.fhir.model.api.IDatatypegetCollected()Gets the value(s) for collected[x] (when.init).ResourceReferenceDtgetCollector()Gets the value(s) for collector ().List<ca.uhn.fhir.model.primitive.StringDt>getComment()Gets the value(s) for comment ().ca.uhn.fhir.model.primitive.StringDtgetCommentFirstRep()Gets the first repetition for comment (), creating it if it does not already exist.CodeableConceptDtgetMethod()Gets the value(s) for method ().SimpleQuantityDtgetQuantity()Gets the value(s) for quantity ().booleanisEmpty()Specimen.CollectionsetBodySite(CodeableConceptDt theValue)Sets the value(s) for bodySite ()Specimen.CollectionsetCollected(ca.uhn.fhir.model.api.IDatatype theValue)Sets the value(s) for collected[x] (when.init)Specimen.CollectionsetCollector(ResourceReferenceDt theValue)Sets the value(s) for collector ()Specimen.CollectionsetComment(List<ca.uhn.fhir.model.primitive.StringDt> theValue)Sets the value(s) for comment ()Specimen.CollectionsetMethod(CodeableConceptDt theValue)Sets the value(s) for method ()Specimen.CollectionsetQuantity(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
-
-
-
-
Constructor Detail
-
Collection
public Collection()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getCollector
public ResourceReferenceDt getCollector()
Gets the value(s) for collector (). creating it if it does not exist. Will not returnnull.Definition: Person who collected the specimen
-
setCollector
public Specimen.Collection setCollector(ResourceReferenceDt theValue)
Sets the value(s) for collector ()Definition: Person who collected the specimen
-
getComment
public List<ca.uhn.fhir.model.primitive.StringDt> 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
public Specimen.Collection setComment(List<ca.uhn.fhir.model.primitive.StringDt> theValue)
Sets the value(s) for comment ()Definition: To communicate any details or issues encountered during the specimen collection procedure.
-
addComment
public ca.uhn.fhir.model.primitive.StringDt addComment()
Adds and returns a new value for comment ()Definition: To communicate any details or issues encountered during the specimen collection procedure.
-
addComment
public Specimen.Collection addComment(ca.uhn.fhir.model.primitive.StringDt theValue)
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
public ca.uhn.fhir.model.primitive.StringDt 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
public Specimen.Collection addComment(String theString)
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
public ca.uhn.fhir.model.api.IDatatype 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
public Specimen.Collection setCollected(ca.uhn.fhir.model.api.IDatatype theValue)
Sets the value(s) for collected[x] (when.init)Definition: Time when specimen was collected from subject - the physiologically relevant time
-
getQuantity
public SimpleQuantityDt 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
public Specimen.Collection setQuantity(SimpleQuantityDt theValue)
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
public CodeableConceptDt 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
public Specimen.Collection setMethod(CodeableConceptDt theValue)
Sets the value(s) for method ()Definition: A coded value specifying the technique that is used to perform the procedure
-
getBodySite
public CodeableConceptDt 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
public Specimen.Collection setBodySite(CodeableConceptDt theValue)
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.
-
-