public class CodeableConcept extends Element implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for CodeableConcept complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CodeableConcept">
<complexContent>
<extension base="{http://hl7.org/fhir}Element">
<sequence>
<element name="coding" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
<element name="text" type="{http://hl7.org/fhir}string" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Coding> |
coding |
protected String |
text |
| Constructor and Description |
|---|
CodeableConcept() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
java.lang.StringBuilder |
appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
boolean |
equals(java.lang.Object object) |
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.EqualsStrategy strategy) |
java.util.List<Coding> |
getCoding()
Gets the value of the coding property.
|
String |
getText()
Gets the value of the text property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setText(String value)
Sets the value of the text property.
|
java.lang.String |
toString() |
CodeableConcept |
withCoding(Coding... values) |
CodeableConcept |
withCoding(java.util.Collection<Coding> values) |
CodeableConcept |
withExtension(java.util.Collection<Extension> values) |
CodeableConcept |
withExtension(Extension... values) |
CodeableConcept |
withId(java.lang.String value) |
CodeableConcept |
withText(String value) |
getExtension, getId, setIdpublic java.util.List<Coding> getCoding()
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 set method for the coding property.
For example, to add a new item, do as follows:
getCoding().add(newItem);
Objects of the following type(s) are allowed in the list
Coding
public String getText()
Stringpublic void setText(String value)
value - allowed object is
Stringpublic CodeableConcept withCoding(Coding... values)
public CodeableConcept withCoding(java.util.Collection<Coding> values)
public CodeableConcept withText(String value)
public CodeableConcept withExtension(Extension... values)
withExtension in class Elementpublic CodeableConcept withExtension(java.util.Collection<Extension> values)
withExtension in class Elementpublic CodeableConcept withId(java.lang.String value)
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.EqualsStrategy strategy)
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields in interface org.jvnet.jaxb2_commons.lang.ToStringappendFields in class Element