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

public interface EMediplanExtendable<E extends EMediplanObject> extends EMediplanObject
Base interface for an eMediplan object that is extendable, that is, that may contain a list of extensions.
  • Method Details

    • getExtensions

      List<@NonNull E> 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

      default void addExtension(@NonNull E extension)
      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: EMediplanObject
      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.
      Specified by:
      trim in interface EMediplanObject
    • validateExtensions

      default ValidationResult validateExtensions(@Nullable String basePath)
      Validates the object extensions.
      Parameters:
      basePath - The base path of this object for the validation feedback.
      Returns:
      The validation result.