Class Specimen
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Specimen
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Specimen extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for Specimen complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Specimen"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="accessionIdentifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/> <element name="status" type="{http://hl7.org/fhir}SpecimenStatus" minOccurs="0"/> <element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="subject" type="{http://hl7.org/fhir}Reference"/> <element name="receivedTime" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> <element name="parent" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="collection" type="{http://hl7.org/fhir}Specimen.Collection" minOccurs="0"/> <element name="treatment" type="{http://hl7.org/fhir}Specimen.Treatment" maxOccurs="unbounded" minOccurs="0"/> <element name="container" type="{http://hl7.org/fhir}Specimen.Container" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected IdentifieraccessionIdentifierprotected SpecimenCollectioncollectionprotected java.util.List<SpecimenContainer>containerprotected java.util.List<Identifier>identifierprotected java.util.List<Reference>parentprotected DateTimereceivedTimeprotected SpecimenStatusstatusprotected Referencesubjectprotected java.util.List<SpecimenTreatment>treatmentprotected CodeableConcepttype-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Specimen()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)IdentifiergetAccessionIdentifier()Gets the value of the accessionIdentifier property.SpecimenCollectiongetCollection()Gets the value of the collection property.java.util.List<SpecimenContainer>getContainer()Gets the value of the container property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.java.util.List<Reference>getParent()Gets the value of the parent property.DateTimegetReceivedTime()Gets the value of the receivedTime property.SpecimenStatusgetStatus()Gets the value of the status property.ReferencegetSubject()Gets the value of the subject property.java.util.List<SpecimenTreatment>getTreatment()Gets the value of the treatment property.CodeableConceptgetType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetAccessionIdentifier(Identifier value)Sets the value of the accessionIdentifier property.voidsetCollection(SpecimenCollection value)Sets the value of the collection property.voidsetReceivedTime(DateTime value)Sets the value of the receivedTime property.voidsetStatus(SpecimenStatus value)Sets the value of the status property.voidsetSubject(Reference value)Sets the value of the subject property.voidsetType(CodeableConcept value)Sets the value of the type property.java.lang.StringtoString()SpecimenwithAccessionIdentifier(Identifier value)SpecimenwithCollection(SpecimenCollection value)SpecimenwithContained(java.util.Collection<ResourceContainer> values)SpecimenwithContained(ResourceContainer... values)SpecimenwithContainer(java.util.Collection<SpecimenContainer> values)SpecimenwithContainer(SpecimenContainer... values)SpecimenwithExtension(java.util.Collection<Extension> values)SpecimenwithExtension(Extension... values)SpecimenwithId(Id value)SpecimenwithIdentifier(java.util.Collection<Identifier> values)SpecimenwithIdentifier(Identifier... values)SpecimenwithImplicitRules(Uri value)SpecimenwithLanguage(Code value)SpecimenwithMeta(Meta value)SpecimenwithModifierExtension(java.util.Collection<Extension> values)SpecimenwithModifierExtension(Extension... values)SpecimenwithParent(java.util.Collection<Reference> values)SpecimenwithParent(Reference... values)SpecimenwithReceivedTime(DateTime value)SpecimenwithStatus(SpecimenStatus value)SpecimenwithSubject(Reference value)SpecimenwithText(Narrative value)SpecimenwithTreatment(java.util.Collection<SpecimenTreatment> values)SpecimenwithTreatment(SpecimenTreatment... values)SpecimenwithType(CodeableConcept value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
accessionIdentifier
protected Identifier accessionIdentifier
-
status
protected SpecimenStatus status
-
type
protected CodeableConcept type
-
subject
protected Reference subject
-
receivedTime
protected DateTime receivedTime
-
parent
protected java.util.List<Reference> parent
-
collection
protected SpecimenCollection collection
-
treatment
protected java.util.List<SpecimenTreatment> treatment
-
container
protected java.util.List<SpecimenContainer> container
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getAccessionIdentifier
public Identifier getAccessionIdentifier()
Gets the value of the accessionIdentifier property.- Returns:
- possible object is
Identifier
-
setAccessionIdentifier
public void setAccessionIdentifier(Identifier value)
Sets the value of the accessionIdentifier property.- Parameters:
value- allowed object isIdentifier
-
getStatus
public SpecimenStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
SpecimenStatus
-
setStatus
public void setStatus(SpecimenStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isSpecimenStatus
-
getType
public CodeableConcept getType()
Gets the value of the type property.- Returns:
- possible object is
CodeableConcept
-
setType
public void setType(CodeableConcept value)
Sets the value of the type property.- Parameters:
value- allowed object isCodeableConcept
-
getSubject
public Reference getSubject()
Gets the value of the subject property.- Returns:
- possible object is
Reference
-
setSubject
public void setSubject(Reference value)
Sets the value of the subject property.- Parameters:
value- allowed object isReference
-
getReceivedTime
public DateTime getReceivedTime()
Gets the value of the receivedTime property.- Returns:
- possible object is
DateTime
-
setReceivedTime
public void setReceivedTime(DateTime value)
Sets the value of the receivedTime property.- Parameters:
value- allowed object isDateTime
-
getParent
public java.util.List<Reference> getParent()
Gets the value of the parent property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the parent property.For example, to add a new item, do as follows:
getParent().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getCollection
public SpecimenCollection getCollection()
Gets the value of the collection property.- Returns:
- possible object is
SpecimenCollection
-
setCollection
public void setCollection(SpecimenCollection value)
Sets the value of the collection property.- Parameters:
value- allowed object isSpecimenCollection
-
getTreatment
public java.util.List<SpecimenTreatment> getTreatment()
Gets the value of the treatment property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the treatment property.For example, to add a new item, do as follows:
getTreatment().add(newItem);Objects of the following type(s) are allowed in the list
SpecimenTreatment
-
getContainer
public java.util.List<SpecimenContainer> getContainer()
Gets the value of the container property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the container property.For example, to add a new item, do as follows:
getContainer().add(newItem);Objects of the following type(s) are allowed in the list
SpecimenContainer
-
withIdentifier
public Specimen withIdentifier(Identifier... values)
-
withIdentifier
public Specimen withIdentifier(java.util.Collection<Identifier> values)
-
withAccessionIdentifier
public Specimen withAccessionIdentifier(Identifier value)
-
withStatus
public Specimen withStatus(SpecimenStatus value)
-
withType
public Specimen withType(CodeableConcept value)
-
withCollection
public Specimen withCollection(SpecimenCollection value)
-
withTreatment
public Specimen withTreatment(SpecimenTreatment... values)
-
withTreatment
public Specimen withTreatment(java.util.Collection<SpecimenTreatment> values)
-
withContainer
public Specimen withContainer(SpecimenContainer... values)
-
withContainer
public Specimen withContainer(java.util.Collection<SpecimenContainer> values)
-
withText
public Specimen withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Specimen withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Specimen withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Specimen withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Specimen withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Specimen withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Specimen withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Specimen withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Specimen withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Specimen withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Specimen withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-