Class Specimen
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.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
public class Specimen extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Specimen Resource (clinical.diagnostics)Definition: A sample to be used for analysis.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Specimen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpecimen.CollectionBlock class for child element: Specimen.collection ()static classSpecimen.ContainerBlock class for child element: Specimen.container ()static classSpecimen.TreatmentBlock class for child element: Specimen.treatment ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.TokenClientParamACCESSIONFluent Client search parameter constant for accessionstatic ca.uhn.fhir.rest.gclient.TokenClientParamBODYSITEFluent Client search parameter constant for bodysitestatic ca.uhn.fhir.rest.gclient.DateClientParamCOLLECTEDFluent Client search parameter constant for collectedstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamCOLLECTORFluent Client search parameter constant for collectorstatic ca.uhn.fhir.rest.gclient.TokenClientParamCONTAINERFluent Client search parameter constant for containerstatic ca.uhn.fhir.rest.gclient.TokenClientParamCONTAINER_IDFluent Client search parameter constant for container-idstatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_COLLECTORConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PARENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPARENTFluent Client search parameter constant for parentstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic StringSP_ACCESSIONSearch parameter constant for accessionstatic StringSP_BODYSITESearch parameter constant for bodysitestatic StringSP_COLLECTEDSearch parameter constant for collectedstatic StringSP_COLLECTORSearch parameter constant for collectorstatic StringSP_CONTAINERSearch parameter constant for containerstatic StringSP_CONTAINER_IDSearch parameter constant for container-idstatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_PARENTSearch parameter constant for parentstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_SUBJECTSearch parameter constant for subjectstatic StringSP_TYPESearch parameter constant for typestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subjectstatic ca.uhn.fhir.rest.gclient.TokenClientParamTYPEFluent Client search parameter constant for type-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Specimen()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Specimen.ContaineraddContainer()Adds and returns a new value for container ()SpecimenaddContainer(Specimen.Container theValue)Adds a given new value for container ()IdentifierDtaddIdentifier()Adds and returns a new value for identifier (id)SpecimenaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier (id)ResourceReferenceDtaddParent()Adds and returns a new value for parent ()Specimen.TreatmentaddTreatment()Adds and returns a new value for treatment ()SpecimenaddTreatment(Specimen.Treatment theValue)Adds a given new value for treatment ()IdentifierDtgetAccessionIdentifier()Gets the value(s) for accessionIdentifier (id).<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)Specimen.CollectiongetCollection()Gets the value(s) for collection ().List<Specimen.Container>getContainer()Gets the value(s) for container ().Specimen.ContainergetContainerFirstRep()Gets the first repetition for container (), creating it if it does not already exist.List<IdentifierDt>getIdentifier()Gets the value(s) for identifier (id).IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (id), creating it if it does not already exist.List<ResourceReferenceDt>getParent()Gets the value(s) for parent ().DategetReceivedTime()Gets the value(s) for receivedTime (when.done).ca.uhn.fhir.model.primitive.DateTimeDtgetReceivedTimeElement()Gets the value(s) for receivedTime (when.done).StringgetResourceName()StringgetStatus()Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt<SpecimenStatusEnum>getStatusElement()Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()ResourceReferenceDtgetSubject()Gets the value(s) for subject (who.focus).List<Specimen.Treatment>getTreatment()Gets the value(s) for treatment ().Specimen.TreatmentgetTreatmentFirstRep()Gets the first repetition for treatment (), creating it if it does not already exist.CodeableConceptDtgetType()Gets the value(s) for type (class).booleanisEmpty()SpecimensetAccessionIdentifier(IdentifierDt theValue)Sets the value(s) for accessionIdentifier (id)SpecimensetCollection(Specimen.Collection theValue)Sets the value(s) for collection ()SpecimensetContainer(List<Specimen.Container> theValue)Sets the value(s) for container ()SpecimensetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier (id)SpecimensetParent(List<ResourceReferenceDt> theValue)Sets the value(s) for parent ()SpecimensetReceivedTime(ca.uhn.fhir.model.primitive.DateTimeDt theValue)Sets the value(s) for receivedTime (when.done)SpecimensetReceivedTime(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for receivedTime (when.done)SpecimensetReceivedTimeWithSecondsPrecision(Date theDate)Sets the value for receivedTime (when.done)SpecimensetStatus(SpecimenStatusEnum theValue)Sets the value(s) for status (status)SpecimensetStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SpecimenStatusEnum> theValue)Sets the value(s) for status (status)SpecimensetSubject(ResourceReferenceDt theValue)Sets the value(s) for subject (who.focus)SpecimensetTreatment(List<Specimen.Treatment> theValue)Sets the value(s) for treatment ()SpecimensetType(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
-
-
-
-
Field Detail
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter constant for subjectDescription: The subject of the specimen
Type: reference
Path: Specimen.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription: The subject of the specimen
Type: reference
Path: Specimen.subject
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription: The patient the specimen comes from
Type: reference
Path: Specimen.subject
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription: The patient the specimen comes from
Type: reference
Path: Specimen.subject
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription: The unique identifier associated with the specimen
Type: token
Path: Specimen.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: The unique identifier associated with the specimen
Type: token
Path: Specimen.identifier
-
SP_TYPE
public static final String SP_TYPE
Search parameter constant for typeDescription: The specimen type
Type: token
Path: Specimen.type
- See Also:
- Constant Field Values
-
TYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
Fluent Client search parameter constant for typeDescription: The specimen type
Type: token
Path: Specimen.type
-
SP_PARENT
public static final String SP_PARENT
Search parameter constant for parentDescription: The parent of the specimen
Type: reference
Path: Specimen.parent
- See Also:
- Constant Field Values
-
PARENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARENT
Fluent Client search parameter constant for parentDescription: The parent of the specimen
Type: reference
Path: Specimen.parent
-
SP_ACCESSION
public static final String SP_ACCESSION
Search parameter constant for accessionDescription: The accession number associated with the specimen
Type: token
Path: Specimen.accessionIdentifier
- See Also:
- Constant Field Values
-
ACCESSION
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACCESSION
Fluent Client search parameter constant for accessionDescription: The accession number associated with the specimen
Type: token
Path: Specimen.accessionIdentifier
-
SP_COLLECTED
public static final String SP_COLLECTED
Search parameter constant for collectedDescription: The date the specimen was collected
Type: date
Path: Specimen.collection.collected[x]
- See Also:
- Constant Field Values
-
COLLECTED
public static final ca.uhn.fhir.rest.gclient.DateClientParam COLLECTED
Fluent Client search parameter constant for collectedDescription: The date the specimen was collected
Type: date
Path: Specimen.collection.collected[x]
-
SP_COLLECTOR
public static final String SP_COLLECTOR
Search parameter constant for collectorDescription: Who collected the specimen
Type: reference
Path: Specimen.collection.collector
- See Also:
- Constant Field Values
-
COLLECTOR
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COLLECTOR
Fluent Client search parameter constant for collectorDescription: Who collected the specimen
Type: reference
Path: Specimen.collection.collector
-
SP_BODYSITE
public static final String 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:
- Constant Field Values
-
BODYSITE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam 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
public static final String 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:
- Constant Field Values
-
CONTAINER_ID
public static final ca.uhn.fhir.rest.gclient.TokenClientParam 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
public static final String SP_CONTAINER
Search parameter constant for containerDescription: The kind of specimen container
Type: token
Path: Specimen.container.type
- See Also:
- Constant Field Values
-
CONTAINER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER
Fluent Client search parameter constant for containerDescription: The kind of specimen container
Type: token
Path: Specimen.container.type
-
INCLUDE_COLLECTOR
public static final ca.uhn.fhir.model.api.Include INCLUDE_COLLECTOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "Specimen:collector".
-
INCLUDE_PARENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PARENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Specimen:parent".
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Specimen:patient".
-
INCLUDE_SUBJECT
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Specimen:subject".
-
-
Constructor Detail
-
Specimen
public Specimen()
-
-
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
-
getIdentifier
public List<IdentifierDt> getIdentifier()
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull.Definition: Id for specimen
-
setIdentifier
public Specimen setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (id)Definition: Id for specimen
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier (id)Definition: Id for specimen
-
addIdentifier
public Specimen addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier (id)Definition: Id for specimen
- Parameters:
theValue- The identifier to add (must not benull)
-
getIdentifierFirstRep
public IdentifierDt getIdentifierFirstRep()
Gets the first repetition for identifier (id), creating it if it does not already exist.Definition: Id for specimen
-
getStatusElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<SpecimenStatusEnum> 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
public String 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
public Specimen setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SpecimenStatusEnum> theValue)
Sets the value(s) for status (status)Definition: The availability of the specimen
-
setStatus
public Specimen setStatus(SpecimenStatusEnum theValue)
Sets the value(s) for status (status)Definition: The availability of the specimen
-
getType
public CodeableConceptDt 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
public Specimen setType(CodeableConceptDt theValue)
Sets the value(s) for type (class)Definition: The kind of material that forms the specimen
-
getParent
public List<ResourceReferenceDt> 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
public Specimen setParent(List<ResourceReferenceDt> theValue)
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
public ResourceReferenceDt 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
public ResourceReferenceDt getSubject()
Gets the value(s) for subject (who.focus). creating it if it does not exist. Will not returnnull.Definition:
-
setSubject
public Specimen setSubject(ResourceReferenceDt theValue)
Sets the value(s) for subject (who.focus)Definition:
-
getAccessionIdentifier
public IdentifierDt 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
public Specimen setAccessionIdentifier(IdentifierDt theValue)
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
public ca.uhn.fhir.model.primitive.DateTimeDt 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
public Date 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
public Specimen setReceivedTime(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
Sets the value(s) 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
-
setReceivedTimeWithSecondsPrecision
public Specimen setReceivedTimeWithSecondsPrecision(Date theDate)
Sets the value for receivedTime (when.done)Definition: Time when specimen was received for processing or testing
-
getCollection
public Specimen.Collection getCollection()
Gets the value(s) for collection (). creating it if it does not exist. Will not returnnull.Definition: Details concerning the specimen collection
-
setCollection
public Specimen setCollection(Specimen.Collection theValue)
Sets the value(s) for collection ()Definition: Details concerning the specimen collection
-
getTreatment
public List<Specimen.Treatment> 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
public Specimen setTreatment(List<Specimen.Treatment> theValue)
Sets the value(s) for treatment ()Definition: Details concerning treatment and processing steps for the specimen
-
addTreatment
public Specimen.Treatment addTreatment()
Adds and returns a new value for treatment ()Definition: Details concerning treatment and processing steps for the specimen
-
addTreatment
public Specimen addTreatment(Specimen.Treatment theValue)
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
public Specimen.Treatment 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
public List<Specimen.Container> 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
public Specimen setContainer(List<Specimen.Container> theValue)
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
public Specimen.Container 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
public Specimen addContainer(Specimen.Container theValue)
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
public Specimen.Container 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
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-