
Class BaseCodingDt
- All Implemented Interfaces:
ICompositeDatatype,ICompositeElement,IDatatype,IElement,IIdentifiableElement,IQueryParameterType,ISupportsUndeclaredExtensions,Serializable,IBase,IBaseDatatype,ICompositeType
- Direct Known Subclasses:
InternalCodingDt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CodeDtGets the value(s) for code (Symbol in syntax defined by the system). creating it if it does not exist.abstract StringDtGets the value(s) for display (Representation defined by the system).Deprecated.get/setMissing is not supported in StringDt.This method will return any qualifier that should be appended to the parameter name (e.g ":exact").abstract UriDtGets the value(s) for system (Identity of the terminology system). creating it if it does not exist.abstract BooleanDtReturns a representation of this parameter's value as it will be represented "over the wire".abstract StringDtbooleanmatchesSystemAndCode(BaseCodingDt theCoding) booleanmatchesToken(BaseCodingDt theSearchParam) returns true ifthisCoding matches a search for the coding specified bytheSearchParam, according to the following: [parameter]=[namespace]|[code] matches a code/value in the given system namespace [parameter]=[code] matches a code/value irrespective of it's system namespace [parameter]=|[code] matches a code/value that has no system namespaceabstract BaseCodingDtSets the value for code (Symbol in syntax defined by the system)abstract BaseCodingDtsetDisplay(String theString) setMissing(Boolean theMissing) Deprecated.get/setMissing is not supported in StringDt.abstract BaseCodingDtSets the value for system (Identity of the terminology system)voidsetValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theParameter) This method is generally only called by HAPI itself, and should not need to be called from user code.Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setIdMethods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, isEmpty, setUserDataMethods inherited from interface ca.uhn.fhir.model.api.ICompositeElement
getAllPopulatedChildElementsOfTypeMethods inherited from interface ca.uhn.fhir.model.api.IQueryParameterType
getValueAsQueryToken, isEmpty
-
Constructor Details
-
BaseCodingDt
public BaseCodingDt()
-
-
Method Details
-
getCodeElement
Gets the value(s) for code (Symbol in syntax defined by the system). creating it if it does not exist. Will not returnnull.Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
-
getQueryParameterQualifier
Description copied from interface:IQueryParameterTypeThis method will return any qualifier that should be appended to the parameter name (e.g ":exact"). Returns null if none are present.- Specified by:
getQueryParameterQualifierin interfaceIQueryParameterType
-
getSystemElement
Gets the value(s) for system (Identity of the terminology system). creating it if it does not exist. Will not returnnull.Definition: The identification of the code system that defines the meaning of the symbol in the code.
-
getVersionElement
-
getUserSelectedElement
-
getDisplayElement
Gets the value(s) for display (Representation defined by the system). creating it if it does not exist. Will not returnnull.Definition: A representation of the meaning of the code in the system, following the rules of the system.
-
setDisplay
-
getValueAsQueryToken
Returns a representation of this parameter's value as it will be represented "over the wire". In other words, how it will be presented in a URL (although not URL escaped)See FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
- Specified by:
getValueAsQueryTokenin interfaceIQueryParameterType- Returns:
- Returns a representation of this parameter's value as it will be represented "over the wire". In other words, how it will be presented in a URL (although not URL escaped)
-
setValueAsQueryToken
public void setValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theParameter) This method is generally only called by HAPI itself, and should not need to be called from user code.See FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
- Specified by:
setValueAsQueryTokenin interfaceIQueryParameterType- Parameters:
theContext- TODOtheParamName- TODOtheQualifier- The parameter name qualifier that accompanied this value. For example, if the complete query washttp://foo?name:exact=John, qualifier would be ":exact"theParameter- The actual parameter value. For example, if the complete query washttp://foo?name:exact=John, the value would be "John"
-
matchesSystemAndCode
-
matchesToken
returns true ifthisCoding matches a search for the coding specified bytheSearchParam, according to the following:- [parameter]=[namespace]|[code] matches a code/value in the given system namespace
- [parameter]=[code] matches a code/value irrespective of it's system namespace
- [parameter]=|[code] matches a code/value that has no system namespace
- Parameters:
theSearchParam- - coding to testthisagainst- Returns:
- true if the coding matches, false otherwise
-
setCode
Sets the value for code (Symbol in syntax defined by the system)Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
-
setSystem
Sets the value for system (Identity of the terminology system)Definition: The identification of the code system that defines the meaning of the symbol in the code.
-
getMissing
Deprecated.get/setMissing is not supported in StringDt. UseTokenParaminstead if you need this functionalityNot supported!- Specified by:
getMissingin interfaceIQueryParameterType
-
setMissing
Deprecated.get/setMissing is not supported in StringDt. UseTokenParaminstead if you need this functionalityNot supported!- Specified by:
setMissingin interfaceIQueryParameterType- Returns:
- Returns a reference to
thisfor easier method chaining
-