public class CodeImpl extends Object implements Code
HL7_CODE_SYSTEM| Constructor and Description |
|---|
CodeImpl() |
CodeImpl(String code)
Use this constructor if only the original text is available and no other attributes such as
code, codeSystem and codeSystemName
|
CodeImpl(String code,
String codeSystem,
String codeSystemName,
String displayName) |
CodeImpl(String code,
String codeSystem,
String codeSystemName,
String displayName,
String originalText) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTranslation(Code code) |
Code |
copy() |
static CodeImpl |
fromOriginalText(String s)
shorthand for creating a code with original text
|
String |
getCode() |
String |
getCodeSystem() |
String |
getCodeSystemName() |
String |
getCodeSystemVersion() |
String |
getDisplayName() |
String |
getOriginalText() |
List<Code> |
getTranslations() |
boolean |
isCoded() |
void |
setCode(String code) |
void |
setCodeSystem(String codeSystem) |
void |
setCodeSystemName(String codeSystemName) |
void |
setCodeSystemVersion(String version) |
void |
setDisplayName(String displayName) |
void |
setOriginalText(String originalText) |
String |
toString() |
public CodeImpl(String code)
public CodeImpl(String code, String codeSystem, String codeSystemName, String displayName, String originalText)
public CodeImpl()
public static CodeImpl fromOriginalText(String s)
s - the original textpublic String getCodeSystem()
getCodeSystem in interface Codedpublic void setCodeSystem(String codeSystem)
setCodeSystem in interface Codepublic String getCodeSystemName()
getCodeSystemName in interface Codedpublic void setCodeSystemName(String codeSystemName)
setCodeSystemName in interface Codepublic String getCodeSystemVersion()
getCodeSystemVersion in interface Codedpublic void setCodeSystemVersion(String version)
setCodeSystemVersion in interface Codepublic String getDisplayName()
getDisplayName in interface Codedpublic void setDisplayName(String displayName)
setDisplayName in interface Codepublic String getOriginalText()
getOriginalText in interface Codedpublic void setOriginalText(String originalText)
setOriginalText in interface Codepublic List<Code> getTranslations()
getTranslations in interface Codedpublic void addTranslation(Code code)
addTranslation in interface Codepublic Code copy()
This amounts to a shallow copy. Translation references are/remain copied references.
Copyright © 2021. All rights reserved.