Class BoundCodeableConceptDt<T extends Enum<?>>
java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.api.BaseIdentifiableElement
ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt
ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt<T>
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IBoundCodeableConcept
,ca.uhn.fhir.model.api.ICompositeDatatype
,ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IDatatype
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.ICompositeType
public class BoundCodeableConceptDt<T extends Enum<?>>
extends CodeableConceptDt
implements ca.uhn.fhir.model.api.IBoundCodeableConcept
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated.This constructor is provided only for serialization support.BoundCodeableConceptDt
(ca.uhn.fhir.model.api.IValueSetEnumBinder<T> theBinder) ConstructorBoundCodeableConceptDt
(ca.uhn.fhir.model.api.IValueSetEnumBinder<T> theBinder, Collection<T> theValues) ConstructorBoundCodeableConceptDt
(ca.uhn.fhir.model.api.IValueSetEnumBinder<T> theBinder, T theValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionLoops through thecodings
in this codeable concept and returns the first bound enumerated type that matches.void
setValueAsEnum
(Collection<T> theValues) Sets theCodeableConceptDt.getCoding()
to contain a coding with the code and system defined by the given enumerated types, AND clearing any existing codings first.void
setValueAsEnum
(T theValue) Sets theCodeableConceptDt.getCoding()
to contain a coding with the code and system defined by the given enumerated type, AND clearing any existing codings first.Methods inherited from class ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt
addCoding, addCoding, getAllPopulatedChildElementsOfType, getCoding, getCodingFirstRep, getText, getTextElement, isEmpty, setCoding, setText, setText
Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Constructor Details
-
BoundCodeableConceptDt
Deprecated.This constructor is provided only for serialization support. Do not call it directly! -
BoundCodeableConceptDt
Constructor -
BoundCodeableConceptDt
Constructor -
BoundCodeableConceptDt
public BoundCodeableConceptDt(ca.uhn.fhir.model.api.IValueSetEnumBinder<T> theBinder, Collection<T> theValues) Constructor
-
-
Method Details
-
setValueAsEnum
Sets theCodeableConceptDt.getCoding()
to contain a coding with the code and system defined by the given enumerated types, AND clearing any existing codings first. If theValue is null, existing codings are cleared and no codings are added.- Parameters:
theValues
- The value to add, ornull
-
setValueAsEnum
Sets theCodeableConceptDt.getCoding()
to contain a coding with the code and system defined by the given enumerated type, AND clearing any existing codings first. If theValue is null, existing codings are cleared and no codings are added.- Parameters:
theValue
- The value to add, ornull
-
getValueAsEnum
Loops through thecodings
in this codeable concept and returns the first bound enumerated type that matches. Use caution using this method, see the return description for more information.- Returns:
- Returns the bound enumerated type, or
null
if none are found. Note that a null return value doesn't neccesarily imply that this Codeable Concept has no codes, only that it has no codes that match the enum.
-