@Component public class ConceptDatatype extends BaseOpenmrsDatatype<Concept>
CustomDatatype.Summary
Constructor and Description |
---|
ConceptDatatype() |
Modifier and Type | Method and Description |
---|---|
Concept |
deserialize(String uuid) |
CustomDatatype.Summary |
doGetTextSummary(Concept concept)
Most implementations should override this method to return plain-text summary of the typed value, as defined
by
CustomDatatype.getTextSummary(String) . |
serialize
fromReferenceString, getReferenceStringForValue, getTextSummary, save, setConfiguration, validate
public Concept deserialize(String uuid)
deserialize
in class SerializingCustomDatatype<Concept>
SerializingCustomDatatype.deserialize(String)
public CustomDatatype.Summary doGetTextSummary(Concept concept)
SerializingCustomDatatype
CustomDatatype.getTextSummary(String)
. If SerializingCustomDatatype.deserialize(String)
is expensive, then the
implementation should override SerializingCustomDatatype.getTextSummary(String)
instead.
The default implementation returns typedValue.toString(), and indicates it is complete.doGetTextSummary
in class SerializingCustomDatatype<Concept>
Should use the name in summary instance
Copyright © 2024 OpenMRS Inc.. All rights reserved.