Interface DurationBoundRepeatable
- All Superinterfaces:
EMediplanObject
- All Known Implementing Classes:
RepetitionDuration,RepetitionNumberAndDuration
-
Method Summary
Modifier and TypeMethodDescriptionintdefault InstantGets the end of the duration binding from a received start timestamp.default DurationGets the value of the duration binding as a JavaTemporalAmount; more specifically as aDuration.default ValidationResultValidates the eMediplan object, without any further context than its JSON path and its own content, against the eMediplan specs.Methods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanObject
getFieldValidationPath, getFieldValidationPath, getIgnoredFieldValidationIssue, getRequiredFieldValidationIssue, getValidationIssue, hasExtensions, trim, validate
-
Method Details
-
getDuration
int getDuration() -
getDurationUnit
TimeUnit getDurationUnit() -
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.
-
getTemporalAmount
Gets the value of the duration binding as a JavaTemporalAmount; more specifically as aDuration.Note that in the case of a duration specified in months, this method will consider all months to be 30 days for computing the temporal amount. In the case of a duration specified in years, it will consider all years to consist of 365 days for computing the temporal amount.
- Returns:
- The
Durationrepresentation.
-
getEnd
Gets the end of the duration binding from a received start timestamp.
-