Class EMediplanPosology
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanPosology
- All Implemented Interfaces:
EMediplanObject
- Direct Known Subclasses:
ChMed16APosology,ChMed23APosology
Base class for an eMediplan posology object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @Nullable InstantgetEnd()abstract @Nullable InstantgetStart()final booleanAn alias forisInReserve().protected abstract booleanabstract voidsetAsNeeded(@Nullable Boolean inReserve) Validates the eMediplan object, without any further context than its JSON path and its own content, against the eMediplan specs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanObject
getFieldValidationPath, getFieldValidationPath, getIgnoredFieldValidationIssue, getRequiredFieldValidationIssue, getValidationIssue, hasExtensions, trim, validate
-
Field Details
-
DEFAULT_AS_NEEDED_VALUE
protected static final boolean DEFAULT_AS_NEEDED_VALUE- See Also:
-
-
Constructor Details
-
EMediplanPosology
public EMediplanPosology()
-
-
Method Details
-
getStart
-
getEnd
-
isAsNeeded
public final boolean isAsNeeded()An alias forisInReserve(). -
isInReserve
protected abstract boolean isInReserve()- Returns:
- Whether the medication is in reserve or not. That is, whether it is to be taken only when needed (true) or strictly as defined by the posology (false).
-
setAsNeeded
-
validate
Description copied from interface:EMediplanObjectValidates the eMediplan object, without any further context than its JSON path and its own content, against the eMediplan specs.- Specified by:
validatein interfaceEMediplanObject- Parameters:
basePath- The JSON path of this object. Ifnull, the object is considered to be root. Any validation issues produced by the validation will use this path as a base for each issue's path.- Returns:
- The validation result containing all the encountered validation issues, if any.
-