Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
*/
@ResourceDef(name="Specimen", profile="http://hl7.org/fhir/profiles/Specimen", id="specimen")
public class Specimen extends ca.uhn.fhir.model.dstu.resource.BaseResource
implements IResource {
/**
* Search parameter constant for subject
*
* Description: The subject of the specimen
* Type: reference
* Path: Specimen.subject
*
*/
@SearchParamDefinition(name="subject", path="Specimen.subject", description="The subject of the specimen", type="reference" )
public static final String SP_SUBJECT = "subject";
/**
* Fluent Client search parameter constant for subject
*
* Description: The subject of the specimen
* Type: reference
* Path: Specimen.subject
*
*/
public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Specimen.subject".
*/
public static final Include INCLUDE_SUBJECT = new Include("Specimen.subject");
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="External Identifier",
formalDefinition="Id for specimen"
)
private java.util.List myIdentifier;
@Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Kind of material that forms the specimen",
formalDefinition="Kind of material that forms the specimen"
)
private CodeableConceptDt myType;
@Child(name="source", order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Parent of specimen",
formalDefinition="Parent specimen from which the focal specimen was a component"
)
private java.util.List mySource;
@Child(name="subject", order=3, min=1, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Substance.class })
@Description(
shortDefinition="Where the specimen came from. This may be the patient(s) or from the environment or a device",
formalDefinition=""
)
private ResourceReferenceDt mySubject;
@Child(name="accessionIdentifier", type=IdentifierDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Identifier assigned by the lab",
formalDefinition="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."
)
private IdentifierDt myAccessionIdentifier;
@Child(name="receivedTime", type=DateTimeDt.class, order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="The time when specimen was received for processing",
formalDefinition="Time when specimen was received for processing or testing"
)
private DateTimeDt myReceivedTime;
@Child(name="collection", order=6, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Collection details",
formalDefinition="Details concerning the specimen collection"
)
private Collection myCollection;
@Child(name="treatment", order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Treatment and processing step details",
formalDefinition="Details concerning treatment and processing steps for the specimen"
)
private java.util.List myTreatment;
@Child(name="container", order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Direct container of specimen (tube/slide, etc)",
formalDefinition="The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here."
)
private java.util.List myContainer;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, mySource, mySubject, myAccessionIdentifier, myReceivedTime, myCollection, myTreatment, myContainer);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, mySource, mySubject, myAccessionIdentifier, myReceivedTime, myCollection, myTreatment, myContainer);
}
/**
* Gets the value(s) for identifier (External Identifier).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Id for specimen
*
*/
public java.util.List getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
return myIdentifier;
}
/**
* Gets the value(s) for identifier (External Identifier).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Id for specimen
*
*/
public java.util.List getIdentifierElement() {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (External Identifier)
*
*
* Definition:
* Id for specimen
*
*/
public Specimen setIdentifier(java.util.List theValue) {
myIdentifier = theValue;
return this;
}
/**
* Adds and returns a new value for identifier (External Identifier)
*
*
* Definition:
* Id for specimen
*
*/
public IdentifierDt addIdentifier() {
IdentifierDt newType = new IdentifierDt();
getIdentifier().add(newType);
return newType;
}
/**
* Gets the first repetition for identifier (External Identifier),
* creating it if it does not already exist.
*
*
* Definition:
* Id for specimen
*
*/
public IdentifierDt getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
return addIdentifier();
}
return getIdentifier().get(0);
}
/**
* Adds a new value for identifier (External Identifier)
*
*
* Definition:
* Id for specimen
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Specimen addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel));
return this;
}
/**
* Adds a new value for identifier (External Identifier)
*
*
* Definition:
* Id for specimen
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Specimen addIdentifier( String theSystem, String theValue) {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
myIdentifier.add(new IdentifierDt(theSystem, theValue));
return this;
}
/**
* Gets the value(s) for type (Kind of material that forms the specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Kind of material that forms the specimen
*
*/
public CodeableConceptDt getType() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Gets the value(s) for type (Kind of material that forms the specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Kind of material that forms the specimen
*
*/
public CodeableConceptDt getTypeElement() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Sets the value(s) for type (Kind of material that forms the specimen)
*
*
* Definition:
* Kind of material that forms the specimen
*
*/
public Specimen setType(CodeableConceptDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for source (Parent of specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Parent specimen from which the focal specimen was a component
*
*/
public java.util.List getSource() {
if (mySource == null) {
mySource = new java.util.ArrayList();
}
return mySource;
}
/**
* Gets the value(s) for source (Parent of specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Parent specimen from which the focal specimen was a component
*
*/
public java.util.List getSourceElement() {
if (mySource == null) {
mySource = new java.util.ArrayList();
}
return mySource;
}
/**
* Sets the value(s) for source (Parent of specimen)
*
*
* Definition:
* Parent specimen from which the focal specimen was a component
*
*/
public Specimen setSource(java.util.List theValue) {
mySource = theValue;
return this;
}
/**
* Adds and returns a new value for source (Parent of specimen)
*
*
* Definition:
* Parent specimen from which the focal specimen was a component
*
*/
public Source addSource() {
Source newType = new Source();
getSource().add(newType);
return newType;
}
/**
* Gets the first repetition for source (Parent of specimen),
* creating it if it does not already exist.
*
*
* Definition:
* Parent specimen from which the focal specimen was a component
*
*/
public Source getSourceFirstRep() {
if (getSource().isEmpty()) {
return addSource();
}
return getSource().get(0);
}
/**
* Gets the value(s) for subject (Where the specimen came from. This may be the patient(s) or from the environment or a device).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getSubject() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Gets the value(s) for subject (Where the specimen came from. This may be the patient(s) or from the environment or a device).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getSubjectElement() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Sets the value(s) for subject (Where the specimen came from. This may be the patient(s) or from the environment or a device)
*
*
* Definition:
*
*
*/
public Specimen setSubject(ResourceReferenceDt theValue) {
mySubject = theValue;
return this;
}
/**
* Gets the value(s) for accessionIdentifier (Identifier assigned by the lab).
* creating it if it does
* not exist. Will not return null.
*
*
* 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.
*
*/
public IdentifierDt getAccessionIdentifier() {
if (myAccessionIdentifier == null) {
myAccessionIdentifier = new IdentifierDt();
}
return myAccessionIdentifier;
}
/**
* Gets the value(s) for accessionIdentifier (Identifier assigned by the lab).
* creating it if it does
* not exist. Will not return null.
*
*
* 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.
*
*/
public IdentifierDt getAccessionIdentifierElement() {
if (myAccessionIdentifier == null) {
myAccessionIdentifier = new IdentifierDt();
}
return myAccessionIdentifier;
}
/**
* Sets the value(s) for accessionIdentifier (Identifier assigned by the lab)
*
*
* 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.
*
*/
public Specimen setAccessionIdentifier(IdentifierDt theValue) {
myAccessionIdentifier = theValue;
return this;
}
/**
* Sets the value for accessionIdentifier (Identifier assigned by the lab)
*
*
* 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.
*
*/
public Specimen setAccessionIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
myAccessionIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel);
return this;
}
/**
* Sets the value for accessionIdentifier (Identifier assigned by the lab)
*
*
* 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.
*
*/
public Specimen setAccessionIdentifier( String theSystem, String theValue) {
myAccessionIdentifier = new IdentifierDt(theSystem, theValue);
return this;
}
/**
* Gets the value(s) for receivedTime (The time when specimen was received for processing).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Time when specimen was received for processing or testing
*
*/
public DateTimeDt getReceivedTime() {
if (myReceivedTime == null) {
myReceivedTime = new DateTimeDt();
}
return myReceivedTime;
}
/**
* Gets the value(s) for receivedTime (The time when specimen was received for processing).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Time when specimen was received for processing or testing
*
*/
public DateTimeDt getReceivedTimeElement() {
if (myReceivedTime == null) {
myReceivedTime = new DateTimeDt();
}
return myReceivedTime;
}
/**
* Sets the value(s) for receivedTime (The time when specimen was received for processing)
*
*
* Definition:
* Time when specimen was received for processing or testing
*
*/
public Specimen setReceivedTime(DateTimeDt theValue) {
myReceivedTime = theValue;
return this;
}
/**
* Sets the value for receivedTime (The time when specimen was received for processing)
*
*
* Definition:
* Time when specimen was received for processing or testing
*
*/
public Specimen setReceivedTime( Date theDate, TemporalPrecisionEnum thePrecision) {
myReceivedTime = new DateTimeDt(theDate, thePrecision);
return this;
}
/**
* Sets the value for receivedTime (The time when specimen was received for processing)
*
*
* Definition:
* Time when specimen was received for processing or testing
*
*/
public Specimen setReceivedTimeWithSecondsPrecision( Date theDate) {
myReceivedTime = new DateTimeDt(theDate);
return this;
}
/**
* Gets the value(s) for collection (Collection details).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Details concerning the specimen collection
*
*/
public Collection getCollection() {
if (myCollection == null) {
myCollection = new Collection();
}
return myCollection;
}
/**
* Gets the value(s) for collection (Collection details).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Details concerning the specimen collection
*
*/
public Collection getCollectionElement() {
if (myCollection == null) {
myCollection = new Collection();
}
return myCollection;
}
/**
* Sets the value(s) for collection (Collection details)
*
*
* Definition:
* Details concerning the specimen collection
*
*/
public Specimen setCollection(Collection theValue) {
myCollection = theValue;
return this;
}
/**
* Gets the value(s) for treatment (Treatment and processing step details).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Details concerning treatment and processing steps for the specimen
*
*/
public java.util.List getTreatment() {
if (myTreatment == null) {
myTreatment = new java.util.ArrayList();
}
return myTreatment;
}
/**
* Gets the value(s) for treatment (Treatment and processing step details).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Details concerning treatment and processing steps for the specimen
*
*/
public java.util.List getTreatmentElement() {
if (myTreatment == null) {
myTreatment = new java.util.ArrayList();
}
return myTreatment;
}
/**
* Sets the value(s) for treatment (Treatment and processing step details)
*
*
* Definition:
* Details concerning treatment and processing steps for the specimen
*
*/
public Specimen setTreatment(java.util.List theValue) {
myTreatment = theValue;
return this;
}
/**
* Adds and returns a new value for treatment (Treatment and processing step details)
*
*
* Definition:
* Details concerning treatment and processing steps for the specimen
*
*/
public Treatment addTreatment() {
Treatment newType = new Treatment();
getTreatment().add(newType);
return newType;
}
/**
* Gets the first repetition for treatment (Treatment and processing step details),
* creating it if it does not already exist.
*
*
* Definition:
* Details concerning treatment and processing steps for the specimen
*
*/
public Treatment getTreatmentFirstRep() {
if (getTreatment().isEmpty()) {
return addTreatment();
}
return getTreatment().get(0);
}
/**
* Gets the value(s) for container (Direct container of specimen (tube/slide, etc)).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
*
*/
public java.util.List getContainer() {
if (myContainer == null) {
myContainer = new java.util.ArrayList();
}
return myContainer;
}
/**
* Gets the value(s) for container (Direct container of specimen (tube/slide, etc)).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
*
*/
public java.util.List getContainerElement() {
if (myContainer == null) {
myContainer = new java.util.ArrayList();
}
return myContainer;
}
/**
* Sets the value(s) for container (Direct container of specimen (tube/slide, etc))
*
*
* Definition:
* The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
*
*/
public Specimen setContainer(java.util.List theValue) {
myContainer = theValue;
return this;
}
/**
* Adds and returns a new value for container (Direct container of specimen (tube/slide, etc))
*
*
* Definition:
* The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
*
*/
public Container addContainer() {
Container newType = new Container();
getContainer().add(newType);
return newType;
}
/**
* Gets the first repetition for container (Direct container of specimen (tube/slide, etc)),
* 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.
*
*/
public Container getContainerFirstRep() {
if (getContainer().isEmpty()) {
return addContainer();
}
return getContainer().get(0);
}
/**
* Block class for child element: Specimen.source (Parent of specimen)
*
*
* Definition:
* Parent specimen from which the focal specimen was a component
*
*/
@Block()
public static class Source
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="relationship", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="parent | child",
formalDefinition="Whether this relationship is to a parent or to a child"
)
private BoundCodeDt myRelationship;
@Child(name="target", order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Specimen.class })
@Description(
shortDefinition="The subject of the relationship",
formalDefinition="The specimen resource that is the target of this relationship"
)
private java.util.List myTarget;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRelationship, myTarget);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRelationship, myTarget);
}
/**
* Gets the value(s) for relationship (parent | child).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Whether this relationship is to a parent or to a child
*
*/
public BoundCodeDt getRelationship() {
if (myRelationship == null) {
myRelationship = new BoundCodeDt(HierarchicalRelationshipTypeEnum.VALUESET_BINDER);
}
return myRelationship;
}
/**
* Gets the value(s) for relationship (parent | child).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Whether this relationship is to a parent or to a child
*
*/
public BoundCodeDt getRelationshipElement() {
if (myRelationship == null) {
myRelationship = new BoundCodeDt(HierarchicalRelationshipTypeEnum.VALUESET_BINDER);
}
return myRelationship;
}
/**
* Sets the value(s) for relationship (parent | child)
*
*
* Definition:
* Whether this relationship is to a parent or to a child
*
*/
public Source setRelationship(BoundCodeDt theValue) {
myRelationship = theValue;
return this;
}
/**
* Sets the value(s) for relationship (parent | child)
*
*
* Definition:
* Whether this relationship is to a parent or to a child
*
*/
public Source setRelationship(HierarchicalRelationshipTypeEnum theValue) {
getRelationship().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for target (The subject of the relationship).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The specimen resource that is the target of this relationship
*
*/
public java.util.List getTarget() {
if (myTarget == null) {
myTarget = new java.util.ArrayList();
}
return myTarget;
}
/**
* Gets the value(s) for target (The subject of the relationship).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The specimen resource that is the target of this relationship
*
*/
public java.util.List getTargetElement() {
if (myTarget == null) {
myTarget = new java.util.ArrayList();
}
return myTarget;
}
/**
* Sets the value(s) for target (The subject of the relationship)
*
*
* Definition:
* The specimen resource that is the target of this relationship
*
*/
public Source setTarget(java.util.List theValue) {
myTarget = theValue;
return this;
}
/**
* Adds and returns a new value for target (The subject of the relationship)
*
*
* Definition:
* The specimen resource that is the target of this relationship
*
*/
public ResourceReferenceDt addTarget() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getTarget().add(newType);
return newType;
}
}
/**
* Block class for child element: Specimen.collection (Collection details)
*
*
* Definition:
* Details concerning the specimen collection
*
*/
@Block()
public static class Collection
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="collector", order=0, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Practitioner.class })
@Description(
shortDefinition="Who collected the specimen",
formalDefinition="Person who collected the specimen"
)
private ResourceReferenceDt myCollector;
@Child(name="comment", type=StringDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Collector comments",
formalDefinition="To communicate any details or issues encountered during the specimen collection procedure."
)
private java.util.List myComment;
@Child(name="collected", order=2, min=0, max=1, summary=false, modifier=false, type={
DateTimeDt.class, PeriodDt.class })
@Description(
shortDefinition="Collection time",
formalDefinition="Time when specimen was collected from subject - the physiologically relevant time"
)
private IDatatype myCollected;
@Child(name="quantity", type=QuantityDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="The quantity of specimen collected",
formalDefinition="The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample"
)
private QuantityDt myQuantity;
@Child(name="method", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Technique used to perform collection",
formalDefinition="A coded value specifying the technique that is used to perform the procedure"
)
private BoundCodeableConceptDt myMethod;
@Child(name="sourceSite", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Anatomical collection site",
formalDefinition="Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens."
)
private CodeableConceptDt mySourceSite;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCollector, myComment, myCollected, myQuantity, myMethod, mySourceSite);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCollector, myComment, myCollected, myQuantity, myMethod, mySourceSite);
}
/**
* Gets the value(s) for collector (Who collected the specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Person who collected the specimen
*
*/
public ResourceReferenceDt getCollector() {
if (myCollector == null) {
myCollector = new ResourceReferenceDt();
}
return myCollector;
}
/**
* Gets the value(s) for collector (Who collected the specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Person who collected the specimen
*
*/
public ResourceReferenceDt getCollectorElement() {
if (myCollector == null) {
myCollector = new ResourceReferenceDt();
}
return myCollector;
}
/**
* Sets the value(s) for collector (Who collected the specimen)
*
*
* Definition:
* Person who collected the specimen
*
*/
public Collection setCollector(ResourceReferenceDt theValue) {
myCollector = theValue;
return this;
}
/**
* Gets the value(s) for comment (Collector comments).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* To communicate any details or issues encountered during the specimen collection procedure.
*
*/
public java.util.List getComment() {
if (myComment == null) {
myComment = new java.util.ArrayList();
}
return myComment;
}
/**
* Gets the value(s) for comment (Collector comments).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* To communicate any details or issues encountered during the specimen collection procedure.
*
*/
public java.util.List getCommentElement() {
if (myComment == null) {
myComment = new java.util.ArrayList();
}
return myComment;
}
/**
* Sets the value(s) for comment (Collector comments)
*
*
* Definition:
* To communicate any details or issues encountered during the specimen collection procedure.
*
*/
public Collection setComment(java.util.List theValue) {
myComment = theValue;
return this;
}
/**
* Adds and returns a new value for comment (Collector comments)
*
*
* Definition:
* To communicate any details or issues encountered during the specimen collection procedure.
*
*/
public StringDt addComment() {
StringDt newType = new StringDt();
getComment().add(newType);
return newType;
}
/**
* Gets the first repetition for comment (Collector comments),
* creating it if it does not already exist.
*
*
* Definition:
* To communicate any details or issues encountered during the specimen collection procedure.
*
*/
public StringDt getCommentFirstRep() {
if (getComment().isEmpty()) {
return addComment();
}
return getComment().get(0);
}
/**
* Adds a new value for comment (Collector comments)
*
*
* Definition:
* To communicate any details or issues encountered during the specimen collection procedure.
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Collection addComment( String theString) {
if (myComment == null) {
myComment = new java.util.ArrayList();
}
myComment.add(new StringDt(theString));
return this;
}
/**
* Gets the value(s) for collected[x] (Collection time).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Time when specimen was collected from subject - the physiologically relevant time
*
*/
public IDatatype getCollected() {
return myCollected;
}
/**
* Gets the value(s) for collected[x] (Collection time).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Time when specimen was collected from subject - the physiologically relevant time
*
*/
public IDatatype getCollectedElement() {
return myCollected;
}
/**
* Sets the value(s) for collected[x] (Collection time)
*
*
* Definition:
* Time when specimen was collected from subject - the physiologically relevant time
*
*/
public Collection setCollected(IDatatype theValue) {
myCollected = theValue;
return this;
}
/**
* Gets the value(s) for quantity (The quantity of specimen collected).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public QuantityDt getQuantity() {
if (myQuantity == null) {
myQuantity = new QuantityDt();
}
return myQuantity;
}
/**
* Gets the value(s) for quantity (The quantity of specimen collected).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public QuantityDt getQuantityElement() {
if (myQuantity == null) {
myQuantity = new QuantityDt();
}
return myQuantity;
}
/**
* Sets the value(s) for quantity (The quantity of specimen collected)
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public Collection setQuantity(QuantityDt theValue) {
myQuantity = theValue;
return this;
}
/**
* Sets the value for quantity (The quantity of specimen collected)
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public Collection setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) {
myQuantity = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Sets the value for quantity (The quantity of specimen collected)
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public Collection setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) {
myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for quantity (The quantity of specimen collected)
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public Collection setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) {
myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for quantity (The quantity of specimen collected)
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public Collection setQuantity( double theValue) {
myQuantity = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for quantity (The quantity of specimen collected)
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public Collection setQuantity( long theValue) {
myQuantity = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for quantity (The quantity of specimen collected)
*
*
* Definition:
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
*
*/
public Collection setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) {
myQuantity = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Gets the value(s) for method (Technique used to perform collection).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* A coded value specifying the technique that is used to perform the procedure
*
*/
public BoundCodeableConceptDt getMethod() {
if (myMethod == null) {
myMethod = new BoundCodeableConceptDt(SpecimenCollectionMethodEnum.VALUESET_BINDER);
}
return myMethod;
}
/**
* Gets the value(s) for method (Technique used to perform collection).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* A coded value specifying the technique that is used to perform the procedure
*
*/
public BoundCodeableConceptDt getMethodElement() {
if (myMethod == null) {
myMethod = new BoundCodeableConceptDt(SpecimenCollectionMethodEnum.VALUESET_BINDER);
}
return myMethod;
}
/**
* Sets the value(s) for method (Technique used to perform collection)
*
*
* Definition:
* A coded value specifying the technique that is used to perform the procedure
*
*/
public Collection setMethod(BoundCodeableConceptDt theValue) {
myMethod = theValue;
return this;
}
/**
* Sets the value(s) for method (Technique used to perform collection)
*
*
* Definition:
* A coded value specifying the technique that is used to perform the procedure
*
*/
public Collection setMethod(SpecimenCollectionMethodEnum theValue) {
getMethod().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for sourceSite (Anatomical collection site).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens.
*
*/
public CodeableConceptDt getSourceSite() {
if (mySourceSite == null) {
mySourceSite = new CodeableConceptDt();
}
return mySourceSite;
}
/**
* Gets the value(s) for sourceSite (Anatomical collection site).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens.
*
*/
public CodeableConceptDt getSourceSiteElement() {
if (mySourceSite == null) {
mySourceSite = new CodeableConceptDt();
}
return mySourceSite;
}
/**
* Sets the value(s) for sourceSite (Anatomical collection site)
*
*
* Definition:
* Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens.
*
*/
public Collection setSourceSite(CodeableConceptDt theValue) {
mySourceSite = theValue;
return this;
}
}
/**
* Block class for child element: Specimen.treatment (Treatment and processing step details)
*
*
* Definition:
* Details concerning treatment and processing steps for the specimen
*
*/
@Block()
public static class Treatment
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="description", type=StringDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Textual description of procedure",
formalDefinition=""
)
private StringDt myDescription;
@Child(name="procedure", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Indicates the treatment or processing step applied to the specimen",
formalDefinition="A coded value specifying the procedure used to process the specimen"
)
private CodeableConceptDt myProcedure;
@Child(name="additive", order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Substance.class })
@Description(
shortDefinition="Material used in the processing step",
formalDefinition=""
)
private java.util.List myAdditive;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDescription, myProcedure, myAdditive);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDescription, myProcedure, myAdditive);
}
/**
* Gets the value(s) for description (Textual description of procedure).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
*
*
*/
public StringDt getDescription() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* Gets the value(s) for description (Textual description of procedure).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
*
*
*/
public StringDt getDescriptionElement() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* Sets the value(s) for description (Textual description of procedure)
*
*
* Definition:
*
*
*/
public Treatment setDescription(StringDt theValue) {
myDescription = theValue;
return this;
}
/**
* Sets the value for description (Textual description of procedure)
*
*
* Definition:
*
*
*/
public Treatment setDescription( String theString) {
myDescription = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for procedure (Indicates the treatment or processing step applied to the specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* A coded value specifying the procedure used to process the specimen
*
*/
public CodeableConceptDt getProcedure() {
if (myProcedure == null) {
myProcedure = new CodeableConceptDt();
}
return myProcedure;
}
/**
* Gets the value(s) for procedure (Indicates the treatment or processing step applied to the specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* A coded value specifying the procedure used to process the specimen
*
*/
public CodeableConceptDt getProcedureElement() {
if (myProcedure == null) {
myProcedure = new CodeableConceptDt();
}
return myProcedure;
}
/**
* Sets the value(s) for procedure (Indicates the treatment or processing step applied to the specimen)
*
*
* Definition:
* A coded value specifying the procedure used to process the specimen
*
*/
public Treatment setProcedure(CodeableConceptDt theValue) {
myProcedure = theValue;
return this;
}
/**
* Gets the value(s) for additive (Material used in the processing step).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
*
*
*/
public java.util.List getAdditive() {
if (myAdditive == null) {
myAdditive = new java.util.ArrayList();
}
return myAdditive;
}
/**
* Gets the value(s) for additive (Material used in the processing step).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
*
*
*/
public java.util.List getAdditiveElement() {
if (myAdditive == null) {
myAdditive = new java.util.ArrayList();
}
return myAdditive;
}
/**
* Sets the value(s) for additive (Material used in the processing step)
*
*
* Definition:
*
*
*/
public Treatment setAdditive(java.util.List theValue) {
myAdditive = theValue;
return this;
}
/**
* Adds and returns a new value for additive (Material used in the processing step)
*
*
* Definition:
*
*
*/
public ResourceReferenceDt addAdditive() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getAdditive().add(newType);
return newType;
}
}
/**
* Block class for child element: Specimen.container (Direct container of specimen (tube/slide, etc))
*
*
* Definition:
* The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
*
*/
@Block()
public static class Container
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Id for the container",
formalDefinition="Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances"
)
private java.util.List myIdentifier;
@Child(name="description", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Textual description of the container",
formalDefinition=""
)
private StringDt myDescription;
@Child(name="type", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Kind of container directly associated with specimen",
formalDefinition="The type of container associated with the specimen (e.g. slide, aliquot, etc)"
)
private CodeableConceptDt myType;
@Child(name="capacity", type=QuantityDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Container volume or size",
formalDefinition="The capacity (volume or other measure) the container may contain."
)
private QuantityDt myCapacity;
@Child(name="specimenQuantity", type=QuantityDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Quantity of specimen within container",
formalDefinition="The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type"
)
private QuantityDt mySpecimenQuantity;
@Child(name="additive", order=5, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Substance.class })
@Description(
shortDefinition="Additive associated with container",
formalDefinition="Additive associated with the container"
)
private ResourceReferenceDt myAdditive;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDescription, myType, myCapacity, mySpecimenQuantity, myAdditive);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDescription, myType, myCapacity, mySpecimenQuantity, myAdditive);
}
/**
* Gets the value(s) for identifier (Id for the container).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
*
*/
public java.util.List getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
return myIdentifier;
}
/**
* Gets the value(s) for identifier (Id for the container).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
*
*/
public java.util.List getIdentifierElement() {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (Id for the container)
*
*
* Definition:
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
*
*/
public Container setIdentifier(java.util.List theValue) {
myIdentifier = theValue;
return this;
}
/**
* Adds and returns a new value for identifier (Id for the container)
*
*
* Definition:
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
*
*/
public IdentifierDt addIdentifier() {
IdentifierDt newType = new IdentifierDt();
getIdentifier().add(newType);
return newType;
}
/**
* Gets the first repetition for identifier (Id for the container),
* creating it if it does not already exist.
*
*
* Definition:
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
*
*/
public IdentifierDt getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
return addIdentifier();
}
return getIdentifier().get(0);
}
/**
* Adds a new value for identifier (Id for the container)
*
*
* Definition:
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Container addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel));
return this;
}
/**
* Adds a new value for identifier (Id for the container)
*
*
* Definition:
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Container addIdentifier( String theSystem, String theValue) {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
myIdentifier.add(new IdentifierDt(theSystem, theValue));
return this;
}
/**
* Gets the value(s) for description (Textual description of the container).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
*
*
*/
public StringDt getDescription() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* Gets the value(s) for description (Textual description of the container).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
*
*
*/
public StringDt getDescriptionElement() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* Sets the value(s) for description (Textual description of the container)
*
*
* Definition:
*
*
*/
public Container setDescription(StringDt theValue) {
myDescription = theValue;
return this;
}
/**
* Sets the value for description (Textual description of the container)
*
*
* Definition:
*
*
*/
public Container setDescription( String theString) {
myDescription = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for type (Kind of container directly associated with specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The type of container associated with the specimen (e.g. slide, aliquot, etc)
*
*/
public CodeableConceptDt getType() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Gets the value(s) for type (Kind of container directly associated with specimen).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The type of container associated with the specimen (e.g. slide, aliquot, etc)
*
*/
public CodeableConceptDt getTypeElement() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Sets the value(s) for type (Kind of container directly associated with specimen)
*
*
* Definition:
* The type of container associated with the specimen (e.g. slide, aliquot, etc)
*
*/
public Container setType(CodeableConceptDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for capacity (Container volume or size).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public QuantityDt getCapacity() {
if (myCapacity == null) {
myCapacity = new QuantityDt();
}
return myCapacity;
}
/**
* Gets the value(s) for capacity (Container volume or size).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public QuantityDt getCapacityElement() {
if (myCapacity == null) {
myCapacity = new QuantityDt();
}
return myCapacity;
}
/**
* Sets the value(s) for capacity (Container volume or size)
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public Container setCapacity(QuantityDt theValue) {
myCapacity = theValue;
return this;
}
/**
* Sets the value for capacity (Container volume or size)
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public Container setCapacity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) {
myCapacity = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Sets the value for capacity (Container volume or size)
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public Container setCapacity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) {
myCapacity = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for capacity (Container volume or size)
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public Container setCapacity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) {
myCapacity = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for capacity (Container volume or size)
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public Container setCapacity( double theValue) {
myCapacity = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for capacity (Container volume or size)
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public Container setCapacity( long theValue) {
myCapacity = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for capacity (Container volume or size)
*
*
* Definition:
* The capacity (volume or other measure) the container may contain.
*
*/
public Container setCapacity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) {
myCapacity = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Gets the value(s) for specimenQuantity (Quantity of specimen within container).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public QuantityDt getSpecimenQuantity() {
if (mySpecimenQuantity == null) {
mySpecimenQuantity = new QuantityDt();
}
return mySpecimenQuantity;
}
/**
* Gets the value(s) for specimenQuantity (Quantity of specimen within container).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public QuantityDt getSpecimenQuantityElement() {
if (mySpecimenQuantity == null) {
mySpecimenQuantity = new QuantityDt();
}
return mySpecimenQuantity;
}
/**
* Sets the value(s) for specimenQuantity (Quantity of specimen within container)
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public Container setSpecimenQuantity(QuantityDt theValue) {
mySpecimenQuantity = theValue;
return this;
}
/**
* Sets the value for specimenQuantity (Quantity of specimen within container)
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public Container setSpecimenQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) {
mySpecimenQuantity = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Sets the value for specimenQuantity (Quantity of specimen within container)
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public Container setSpecimenQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) {
mySpecimenQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for specimenQuantity (Quantity of specimen within container)
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public Container setSpecimenQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) {
mySpecimenQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for specimenQuantity (Quantity of specimen within container)
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public Container setSpecimenQuantity( double theValue) {
mySpecimenQuantity = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for specimenQuantity (Quantity of specimen within container)
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public Container setSpecimenQuantity( long theValue) {
mySpecimenQuantity = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for specimenQuantity (Quantity of specimen within container)
*
*
* Definition:
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
*
*/
public Container setSpecimenQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) {
mySpecimenQuantity = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Gets the value(s) for additive (Additive associated with container).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Additive associated with the container
*
*/
public ResourceReferenceDt getAdditive() {
if (myAdditive == null) {
myAdditive = new ResourceReferenceDt();
}
return myAdditive;
}
/**
* Gets the value(s) for additive (Additive associated with container).
* creating it if it does
* not exist. Will not return null.
*
*
* Definition:
* Additive associated with the container
*
*/
public ResourceReferenceDt getAdditiveElement() {
if (myAdditive == null) {
myAdditive = new ResourceReferenceDt();
}
return myAdditive;
}
/**
* Sets the value(s) for additive (Additive associated with container)
*
*
* Definition:
* Additive associated with the container
*
*/
public Container setAdditive(ResourceReferenceDt theValue) {
myAdditive = theValue;
return this;
}
}
@Override
public String getResourceName() {
return "Specimen";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU1;
}
}