Class EMediplanHealthcareOrganization<A extends EMediplanPostalAddress>
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanHealthcareOrganization<A>
- All Implemented Interfaces:
EMediplanObject
- Direct Known Subclasses:
ChMed16AHealthcareOrganization,ChMed23AHealthcareOrganization
public abstract class EMediplanHealthcareOrganization<A extends EMediplanPostalAddress>
extends Object
implements EMediplanObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends EMediplanHealthcareOrganization<Ad>,Ad extends EMediplanPostalAddress>
TfromChEmedEprOrganization(ChEmedEprOrganization organization, Supplier<? extends T> supplier, Function<org.hl7.fhir.r4.model.Address, ? extends Ad> addressConverter) Gets an eMediplan organization object from a CH EMED EPR organization object.abstract Aabstract StringgetName()protected abstract Stringabstract @Nullable StringgetZsr()booleanhasExtensions(boolean inDepth) Whether the eMediplan object has any extension or not.abstract voidsetAddress(A address) abstract voidabstract voidtoFhir()Gets the CH EMED EPR equivalent of this eMediplan organization object, if possible.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.Validates the eMediplan object, without any further context than its JSON path and its own content, against the eMediplan specs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanObject
getFieldValidationPath, getFieldValidationPath, getIgnoredFieldValidationIssue, getRequiredFieldValidationIssue, getValidationIssue, validate
-
Constructor Details
-
EMediplanHealthcareOrganization
public EMediplanHealthcareOrganization()
-
-
Method Details
-
getName
-
getAddress
-
getZsr
-
setName
-
setAddress
-
setZsr
-
getNameFieldName
-
validate
Description copied from interface:EMediplanObjectValidates the eMediplan object, without any further context than its JSON path and its own content, against the eMediplan specs.- Specified by:
validatein interfaceEMediplanObject- Parameters:
basePath- The JSON path of this object. Ifnull, the object is considered to be root. Any validation issues produced by the validation will use this path as a base for each issue's path.- Returns:
- The validation result containing all the encountered validation issues, if any.
-
trim
public 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
-
hasExtensions
public boolean hasExtensions(boolean inDepth) Description copied from interface:EMediplanObjectWhether the eMediplan object has any extension or not.- Specified by:
hasExtensionsin interfaceEMediplanObject- Parameters:
inDepth- Iftrue, the called object, and all its children objects, are subject to the check. Iffalse, only the called object is checked for extensions.- Returns:
trueif the object contains any extensions;falseotherwise.
-
fromChEmedEprOrganization
@NotNull protected static <T extends EMediplanHealthcareOrganization<Ad>,Ad extends EMediplanPostalAddress> T fromChEmedEprOrganization(ChEmedEprOrganization organization, Supplier<? extends T> supplier, Function<org.hl7.fhir.r4.model.Address, ? extends Ad> addressConverter) Gets an eMediplan organization object from a CH EMED EPR organization object.- Parameters:
organization- The CH EMED EPR organization object to be converted.supplier- The new healthcare organization object supplier, normally an empty constructor.addressConverter- The converter from FHIR address to the eMediplan address to be used.- Returns:
- The resulting eMediplan object.
-
toFhir
Gets the CH EMED EPR equivalent of this eMediplan organization object, if possible.
-