public class ConceptReferenceTerm extends BaseChangeableOpenmrsMetadata
Constructor and Description |
---|
ConceptReferenceTerm()
default constructor
|
ConceptReferenceTerm(ConceptSource source,
String code,
String name)
Convenience constructor with the required fields filled in
|
ConceptReferenceTerm(Integer conceptReferenceTermId)
constructor with conceptReferenceTermId
|
Modifier and Type | Method and Description |
---|---|
void |
addConceptReferenceTermMap(ConceptReferenceTermMap conceptReferenceTermMap)
Add the given
ConceptReferenceTermMap object to this concept reference term's list of
concept reference term maps. |
String |
getCode() |
Integer |
getConceptReferenceTermId() |
Set<ConceptReferenceTermMap> |
getConceptReferenceTermMaps() |
ConceptSource |
getConceptSource() |
Integer |
getId() |
String |
getVersion() |
boolean |
removeConceptReferenceTermMap(ConceptReferenceTermMap conceptReferenceTermMap)
Remove the given ConceptReferenceTermMap from the list of conceptReferenceTermMaps for this
ConceptReferenceTerm |
void |
setCode(String code) |
void |
setConceptReferenceTermId(Integer conceptReferenceTermId) |
void |
setConceptReferenceTermMaps(Set<ConceptReferenceTermMap> conceptReferenceTermMaps) |
void |
setConceptSource(ConceptSource conceptSource) |
void |
setId(Integer id) |
void |
setVersion(String version) |
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public ConceptReferenceTerm()
public ConceptReferenceTerm(Integer conceptReferenceTermId)
public ConceptReferenceTerm(ConceptSource source, String code, String name)
source
- the ConceptSource belongs incode
- the code within that conceptname
- the user readable name of this termpublic Integer getConceptReferenceTermId()
public void setConceptReferenceTermId(Integer conceptReferenceTermId)
conceptReferenceTermId
- the conceptReferenceTermId to setpublic ConceptSource getConceptSource()
public void setConceptSource(ConceptSource conceptSource)
conceptSource
- the conceptSource to setpublic String getCode()
public void setCode(String code)
code
- the code to setpublic String getVersion()
public void setVersion(String version)
version
- the version to setpublic Set<ConceptReferenceTermMap> getConceptReferenceTermMaps()
public void setConceptReferenceTermMaps(Set<ConceptReferenceTermMap> conceptReferenceTermMaps)
conceptReferenceTermMaps
- the conceptReferenceTermMaps to setpublic Integer getId()
OpenmrsObject.getId()
public void setId(Integer id)
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
public void addConceptReferenceTermMap(ConceptReferenceTermMap conceptReferenceTermMap)
ConceptReferenceTermMap
object to this concept reference term's list of
concept reference term maps. If there is already a corresponding ConceptReferenceTermMap
object for this concept reference term already, this one will not be added.conceptReferenceTermMap
- Should not add a map where termB is itself
Should set termA as the term to which a mapping is being added
Should not add duplicate concept reference term mapspublic boolean removeConceptReferenceTermMap(ConceptReferenceTermMap conceptReferenceTermMap)
ConceptReferenceTerm
conceptReferenceTermMap
- public String toString()
BaseOpenmrsObject
ClassName{hashCode=..., uuid=...}
If the uuid
field is null
, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString
in class BaseOpenmrsObject
Object.toString()
Copyright © 2024 OpenMRS Inc.. All rights reserved.