Package org.hl7.fhir
Class SpecimenCollection
- java.lang.Object
-
- org.hl7.fhir.Element
-
- org.hl7.fhir.BackboneElement
-
- org.hl7.fhir.SpecimenCollection
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class SpecimenCollection extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
A sample to be used for analysis.Java class for Specimen.Collection complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Specimen.Collection"> <complexContent> <extension base="{http://hl7.org/fhir}BackboneElement"> <sequence> <element name="collector" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="comment" type="{http://hl7.org/fhir}string" minOccurs="0"/> <choice minOccurs="0"> <element name="collectedDateTime" type="{http://hl7.org/fhir}dateTime"/> <element name="collectedPeriod" type="{http://hl7.org/fhir}Period"/> </choice> <element name="quantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/> <element name="method" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="bodySite" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeableConceptbodySiteprotected DateTimecollectedDateTimeprotected PeriodcollectedPeriodprotected Referencecollectorprotected Stringcommentprotected CodeableConceptmethodprotected SimpleQuantityquantity-
Fields inherited from class org.hl7.fhir.BackboneElement
modifierExtension
-
-
Constructor Summary
Constructors Constructor Description SpecimenCollection()
-
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)CodeableConceptgetBodySite()Gets the value of the bodySite property.DateTimegetCollectedDateTime()Gets the value of the collectedDateTime property.PeriodgetCollectedPeriod()Gets the value of the collectedPeriod property.ReferencegetCollector()Gets the value of the collector property.StringgetComment()Gets the value of the comment property.CodeableConceptgetMethod()Gets the value of the method property.SimpleQuantitygetQuantity()Gets the value of the quantity property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetBodySite(CodeableConcept value)Sets the value of the bodySite property.voidsetCollectedDateTime(DateTime value)Sets the value of the collectedDateTime property.voidsetCollectedPeriod(Period value)Sets the value of the collectedPeriod property.voidsetCollector(Reference value)Sets the value of the collector property.voidsetComment(String value)Sets the value of the comment property.voidsetMethod(CodeableConcept value)Sets the value of the method property.voidsetQuantity(SimpleQuantity value)Sets the value of the quantity property.java.lang.StringtoString()SpecimenCollectionwithBodySite(CodeableConcept value)SpecimenCollectionwithCollectedDateTime(DateTime value)SpecimenCollectionwithCollectedPeriod(Period value)SpecimenCollectionwithCollector(Reference value)SpecimenCollectionwithComment(String value)SpecimenCollectionwithExtension(java.util.Collection<Extension> values)SpecimenCollectionwithExtension(Extension... values)SpecimenCollectionwithId(java.lang.String value)SpecimenCollectionwithMethod(CodeableConcept value)SpecimenCollectionwithModifierExtension(java.util.Collection<Extension> values)SpecimenCollectionwithModifierExtension(Extension... values)SpecimenCollectionwithQuantity(SimpleQuantity value)-
Methods inherited from class org.hl7.fhir.BackboneElement
getModifierExtension
-
Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setId
-
-
-
-
Field Detail
-
collector
protected Reference collector
-
comment
protected String comment
-
collectedDateTime
protected DateTime collectedDateTime
-
collectedPeriod
protected Period collectedPeriod
-
quantity
protected SimpleQuantity quantity
-
method
protected CodeableConcept method
-
bodySite
protected CodeableConcept bodySite
-
-
Method Detail
-
getCollector
public Reference getCollector()
Gets the value of the collector property.- Returns:
- possible object is
Reference
-
setCollector
public void setCollector(Reference value)
Sets the value of the collector property.- Parameters:
value- allowed object isReference
-
getComment
public String getComment()
Gets the value of the comment property.- Returns:
- possible object is
String
-
setComment
public void setComment(String value)
Sets the value of the comment property.- Parameters:
value- allowed object isString
-
getCollectedDateTime
public DateTime getCollectedDateTime()
Gets the value of the collectedDateTime property.- Returns:
- possible object is
DateTime
-
setCollectedDateTime
public void setCollectedDateTime(DateTime value)
Sets the value of the collectedDateTime property.- Parameters:
value- allowed object isDateTime
-
getCollectedPeriod
public Period getCollectedPeriod()
Gets the value of the collectedPeriod property.- Returns:
- possible object is
Period
-
setCollectedPeriod
public void setCollectedPeriod(Period value)
Sets the value of the collectedPeriod property.- Parameters:
value- allowed object isPeriod
-
getQuantity
public SimpleQuantity getQuantity()
Gets the value of the quantity property.- Returns:
- possible object is
SimpleQuantity
-
setQuantity
public void setQuantity(SimpleQuantity value)
Sets the value of the quantity property.- Parameters:
value- allowed object isSimpleQuantity
-
getMethod
public CodeableConcept getMethod()
Gets the value of the method property.- Returns:
- possible object is
CodeableConcept
-
setMethod
public void setMethod(CodeableConcept value)
Sets the value of the method property.- Parameters:
value- allowed object isCodeableConcept
-
getBodySite
public CodeableConcept getBodySite()
Gets the value of the bodySite property.- Returns:
- possible object is
CodeableConcept
-
setBodySite
public void setBodySite(CodeableConcept value)
Sets the value of the bodySite property.- Parameters:
value- allowed object isCodeableConcept
-
withCollector
public SpecimenCollection withCollector(Reference value)
-
withComment
public SpecimenCollection withComment(String value)
-
withCollectedDateTime
public SpecimenCollection withCollectedDateTime(DateTime value)
-
withCollectedPeriod
public SpecimenCollection withCollectedPeriod(Period value)
-
withQuantity
public SpecimenCollection withQuantity(SimpleQuantity value)
-
withMethod
public SpecimenCollection withMethod(CodeableConcept value)
-
withBodySite
public SpecimenCollection withBodySite(CodeableConcept value)
-
withModifierExtension
public SpecimenCollection withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withModifierExtension
public SpecimenCollection withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withExtension
public SpecimenCollection withExtension(Extension... values)
- Overrides:
withExtensionin classBackboneElement
-
withExtension
public SpecimenCollection withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classBackboneElement
-
withId
public SpecimenCollection withId(java.lang.String value)
- Overrides:
withIdin classBackboneElement
-
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 classBackboneElement
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classBackboneElement
-
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 classBackboneElement
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBackboneElement
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBackboneElement
-
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 classBackboneElement
-
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 classBackboneElement
-
-