Interface ChMed23AExtendable
- All Superinterfaces:
EMediplanExtendable<ChMed23AExtension>,EMediplanObject
- All Known Implementing Classes:
ChMed23AEMediplan,ChMed23AExtension,ChMed23AMedicament,ChMed23APatient,ChMed23APatientMedicalData
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 Summary
Modifier and TypeMethodDescriptiondefault @Nullable ChMed23AExtensionfindExtension(String schema, String name) Finds an extension within the embedded list of extensions whose schema and name match the provided ones.default StringMethods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanExtendable
addExtension, getExtensions, trim, validateExtensionsMethods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanObject
getFieldValidationPath, getFieldValidationPath, getIgnoredFieldValidationIssue, getRequiredFieldValidationIssue, getValidationIssue, hasExtensions, validate, validate
-
Method Details
-
findExtension
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,nullis returned.- Parameters:
schema- The schema to be matched.name- The field name to be matched.- Returns:
- The matching extension, if any,
nullotherwise.
-
getExtensionsFieldName
- Specified by:
getExtensionsFieldNamein interfaceEMediplanExtendable<ChMed23AExtension>- Returns:
- The field name of the extensions.
-