Interface EMediplanExtendable<E extends EMediplanObject>
- Type Parameters:
E- The type of the extension object.
- All Superinterfaces:
EMediplanObject
- All Known Subinterfaces:
ChMed16AExtendable,ChMed23AExtendable
- All Known Implementing Classes:
ChMed16AEMediplan,ChMed16AExtension,ChMed16AMedicament,ChMed16APatient,ChMed16APatientMedicalData,ChMed23AEMediplan,ChMed23AExtension,ChMed23AMedicament,ChMed23APatient,ChMed23APatientMedicalData,EMediplan,EMediplanMedicament,EMediplanPatient,EMediplanPatientMedicalData,EPrescription,EPrescriptionMedicament
Base interface for an eMediplan object that is extendable, that is, that may contain a list of extensions.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddExtension(@NonNull E extension) Adds an extension to the list of this object's extensions.Gets the list of this object's extensions.default voidtrim()Trims the eMediplan object, that is, removes any redundant info and sets to null values that match the default assumed value by the specs, to shorten the serialized result.default ValidationResultvalidateExtensions(@Nullable String basePath) Validates the object extensions.Methods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanObject
getFieldValidationPath, getFieldValidationPath, getIgnoredFieldValidationIssue, getRequiredFieldValidationIssue, getValidationIssue, hasExtensions, validate, validate
-
Method Details
-
getExtensions
Gets the list of this object's extensions.- Returns:
- The list of extensions.
-
getExtensionsFieldName
String getExtensionsFieldName()- Returns:
- The field name of the extensions.
-
addExtension
Adds an extension to the list of this object's extensions.- Parameters:
extension- The extension to be added.
-
trim
default void trim()Description copied from interface:EMediplanObjectTrims the eMediplan object, that is, removes any redundant info and sets to null values that match the default assumed value by the specs, to shorten the serialized result.- Specified by:
trimin interfaceEMediplanObject
-
validateExtensions
Validates the object extensions.- Parameters:
basePath- The base path of this object for the validation feedback.- Returns:
- The validation result.
-