Interface ChMed23AExtendable

All Superinterfaces:
EMediplanExtendable<ChMed23AExtension>, EMediplanObject
All Known Implementing Classes:
ChMed23AEMediplan, ChMed23AExtension, ChMed23AMedicament, ChMed23APatient, ChMed23APatientMedicalData

public interface ChMed23AExtendable extends EMediplanExtendable<ChMed23AExtension>
Interface for objects that contain extensions. The extension property itself is to be defined by the implementing object, so that the JSON field name can be customized in principle. This interface provides convenience methods for extensions with a default implementation.
See Also:
  • Method Details

    • findExtension

      default @Nullable ChMed23AExtension findExtension(String schema, String name)
      Finds an extension within the embedded list of extensions whose schema and name match the provided ones. If the list of embedded extensions is null or empty, or if no match is found, null is returned.
      Parameters:
      schema - The schema to be matched.
      name - The field name to be matched.
      Returns:
      The matching extension, if any, null otherwise.
    • getExtensionsFieldName

      default String getExtensionsFieldName()
      Specified by:
      getExtensionsFieldName in interface EMediplanExtendable<ChMed23AExtension>
      Returns:
      The field name of the extensions.