Package org.hl7.fhir.dstu2.model
Class CodeableConcept
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.Element
-
- org.hl7.fhir.dstu2.model.Type
-
- org.hl7.fhir.dstu2.model.CodeableConcept
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.ICompositeType
public class CodeableConcept extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Coding>codingA reference to a code defined by a terminology system.protected StringTypetextA human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
-
Constructor Summary
Constructors Constructor Description CodeableConcept()CodeableConcept(Coding code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseaddChild(String name)CodingaddCoding()CodeableConceptaddCoding(Coding t)CodeableConceptcopy()booleanequalsDeep(Base other)booleanequalsShallow(Base other)StringfhirType()List<Coding>getCoding()StringgetText()StringTypegetTextElement()booleanhasCoding()booleanhasCoding(String system, String code)booleanhasText()booleanhasTextElement()booleanisEmpty()protected voidlistChildren(List<Property> childrenList)voidsetProperty(String name, Base value)CodeableConceptsetText(String value)CodeableConceptsetTextElement(StringType value)protected CodeableConcepttypedCopy()-
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
text
protected StringType text
A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
-
-
Constructor Detail
-
CodeableConcept
public CodeableConcept()
-
CodeableConcept
public CodeableConcept(Coding code)
-
-
Method Detail
-
getCoding
public List<Coding> getCoding()
- Returns:
coding(A reference to a code defined by a terminology system.)
-
hasCoding
public boolean hasCoding()
-
addCoding
public Coding addCoding()
- Returns:
coding(A reference to a code defined by a terminology system.)
-
addCoding
public CodeableConcept addCoding(Coding t)
-
getTextElement
public StringType getTextElement()
- Returns:
text(A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
-
hasTextElement
public boolean hasTextElement()
-
hasText
public boolean hasText()
-
setTextElement
public CodeableConcept setTextElement(StringType value)
- Parameters:
value-text(A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
-
getText
public String getText()
- Returns:
- A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
-
setText
public CodeableConcept setText(String value)
- Parameters:
value- A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classElement
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public CodeableConcept copy()
-
typedCopy
protected CodeableConcept typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classElement
-
isEmpty
public boolean isEmpty()
-
-