Package org.hl7.fhir.r4b.model
Class CodeableReference
- java.lang.Object
-
- org.hl7.fhir.r4b.model.Base
-
- org.hl7.fhir.r4b.model.Element
-
- org.hl7.fhir.r4b.model.DataType
-
- org.hl7.fhir.r4b.model.CodeableReference
-
- 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 CodeableReference extends DataType implements org.hl7.fhir.instance.model.api.ICompositeType
Base StructureDefinition for CodeableReference Type: A reference to a resource (by instance), or instead, a reference to a cencept defined in a terminology or ontology (by class).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeableConceptconceptA reference to a concept - e.g.protected ReferencereferenceA reference to a resource the provides exact details about the information being referenced.
-
Constructor Summary
Constructors Constructor Description CodeableReference()ConstructorCodeableReference(CodeableConcept cc)CodeableReference(Reference ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseaddChild(String name)CodeableReferencecopy()voidcopyValues(CodeableReference dst)booleanequalsDeep(Base other_)booleanequalsShallow(Base other_)StringfhirType()CodeableConceptgetConcept()PropertygetNamedProperty(int _hash, String _name, boolean _checkValid)Base[]getProperty(int hash, String name, boolean checkValid)ReferencegetReference()String[]getTypesForProperty(int hash, String name)booleanhasConcept()booleanhasReference()booleanisEmpty()protected voidlistChildren(List<Property> children)BasemakeProperty(int hash, String name)CodeableReferencesetConcept(CodeableConcept value)BasesetProperty(int hash, String name, Base value)BasesetProperty(String name, Base value)CodeableReferencesetReference(Reference value)protected CodeableReferencetypedCopy()-
Methods inherited from class org.hl7.fhir.r4b.model.DataType
copyValues
-
Methods inherited from class org.hl7.fhir.r4b.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.r4b.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
concept
protected CodeableConcept concept
A reference to a concept - e.g. the information is identified by it's general classto the degree of precision found in the terminology.
-
-
Constructor Detail
-
CodeableReference
public CodeableReference()
Constructor
-
CodeableReference
public CodeableReference(CodeableConcept cc)
-
CodeableReference
public CodeableReference(Reference ref)
-
-
Method Detail
-
getConcept
public CodeableConcept getConcept()
- Returns:
concept(A reference to a concept - e.g. the information is identified by it's general classto the degree of precision found in the terminology.)
-
hasConcept
public boolean hasConcept()
-
setConcept
public CodeableReference setConcept(CodeableConcept value)
- Parameters:
value-concept(A reference to a concept - e.g. the information is identified by it's general classto the degree of precision found in the terminology.)
-
getReference
public Reference getReference()
- Returns:
reference(A reference to a resource the provides exact details about the information being referenced.)
-
hasReference
public boolean hasReference()
-
setReference
public CodeableReference setReference(Reference value)
- Parameters:
value-reference(A reference to a resource the provides exact details about the information being referenced.)
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public CodeableReference copy()
-
copyValues
public void copyValues(CodeableReference dst)
-
typedCopy
protected CodeableReference typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classElement
-
-