Package ca.cdr.api.util
Class VersionIndependentCoding
java.lang.Object
ca.cdr.api.util.VersionIndependentCoding
- All Implemented Interfaces:
Serializable,IBase,IBaseCoding
In places, we need to create a synthetic coding. These codings behave as a tuple of (system, code, display) for
the benefit of calling a library that usually operates on real FHIR data and expects its input to implement the
IBaseCoding interface. However, they are never actually inserted into a real FHIR Resource or persisted to
a repository. Any class that extends IBaseCoding would do, but most such classes are part of one FHIR release
or another. In order to prevent an otherwise unnecessary coupling to some real version, we introduce this simple
implementation that can be used in such cases.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVersionIndependentCoding(String theSystem, String theCode, String theDisplay) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()booleanbooleanbooleanisEmpty()setDisplay(String s) voidsetUserData(String s, Object o) setUserSelected(boolean theUserSelected) setVersion(String theVersion)
-
Constructor Details
-
VersionIndependentCoding
public VersionIndependentCoding() -
VersionIndependentCoding
-
-
Method Details
-
getCode
- Specified by:
getCodein interfaceIBaseCoding
-
getDisplay
- Specified by:
getDisplayin interfaceIBaseCoding
-
getSystem
- Specified by:
getSystemin interfaceIBaseCoding
-
getVersion
- Specified by:
getVersionin interfaceIBaseCoding
-
getUserSelected
- Specified by:
getUserSelectedin interfaceIBaseCoding
-
setCode
- Specified by:
setCodein interfaceIBaseCoding
-
setDisplay
- Specified by:
setDisplayin interfaceIBaseCoding
-
setSystem
- Specified by:
setSystemin interfaceIBaseCoding
-
setVersion
- Specified by:
setVersionin interfaceIBaseCoding
-
setUserSelected
- Specified by:
setUserSelectedin interfaceIBaseCoding
-
isEmpty
-
hasFormatComment
- Specified by:
hasFormatCommentin interfaceIBase
-
getFormatCommentsPre
- Specified by:
getFormatCommentsPrein interfaceIBase
-
getFormatCommentsPost
- Specified by:
getFormatCommentsPostin interfaceIBase
-
getUserData
- Specified by:
getUserDatain interfaceIBase
-
setUserData
- Specified by:
setUserDatain interfaceIBase
-