Interface ChMed16AExtendable

All Superinterfaces:
EMediplanExtendable<ChMed16AExtension>, EMediplanObject
All Known Implementing Classes:
ChMed16AEMediplan, ChMed16AExtension, ChMed16AMedicament, ChMed16APatient, ChMed16APatientMedicalData, EPrescription, EPrescriptionMedicament

public interface ChMed16AExtendable extends EMediplanExtendable<ChMed16AExtension>
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 ChMed16AExtension 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:
      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<ChMed16AExtension>
      Returns:
      The field name of the extensions.