Class ChMed16AHealthcareOrganization
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanHealthcareOrganization<ChMed16AExtendedPostalAddress>
org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed16a.ChMed16AHealthcareOrganization
- All Implemented Interfaces:
EMediplanObject
public class ChMed16AHealthcareOrganization
extends EMediplanHealthcareOrganization<ChMed16AExtendedPostalAddress>
The model for a healthcare organization, to which the healthcare person belongs. This CHMED16A version is to be used
exclusively in the context of the ePrescription, hence with
EPrescription, since it is not supported by the
initial release of the eMediplan specs.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChMed16AExtendedPostalAddressprotected @Nullable Stringemail address.protected static final Stringprotected StringName of the organization.protected static final Stringprotected static final Stringprotected @Nullable StringAdditional name, e.g. department within the organization.protected static final Stringprotected @Nullable StringPhone number.protected @Nullable StringZSR number.protected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromChEmedEprOrganization(ChEmedEprOrganization organization) Gets an eMediplan organization object from a CH EMED EPR organization object.protected Stringprotected StringtoFhir()Gets the CH EMED EPR FHIR representation of this object.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.Methods inherited from class org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanHealthcareOrganization
fromChEmedEprOrganization, getAddress, getName, getZsr, hasExtensions, setAddress, setName, setZsr, validateMethods 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
-
Field Details
-
NAME_FIELD_NAME
- See Also:
-
NAME_AFFIX_FIELD_NAME
- See Also:
-
ZSR_FIELD_NAME
- See Also:
-
PHONE_NUMBER_FIELD_NAME
- See Also:
-
EMAIL_ADDRESS_FIELD_NAME
- See Also:
-
name
Name of the organization. -
nameAffix
Additional name, e.g. department within the organization. Optional. -
address
-
zsr
ZSR number. The ZSR number may only be set once, either in object HealthcarePerson or in object HealthcareOrganization (or none at all). -
phoneNumber
Phone number. -
email
email address.
-
-
Constructor Details
-
ChMed16AHealthcareOrganization
public ChMed16AHealthcareOrganization()
-
-
Method Details
-
getNameFieldName
- Specified by:
getNameFieldNamein classEMediplanHealthcareOrganization<ChMed16AExtendedPostalAddress>
-
getZsrFieldName
-
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- Overrides:
trimin classEMediplanHealthcareOrganization<ChMed16AExtendedPostalAddress>
-
fromChEmedEprOrganization
public static ChMed16AHealthcareOrganization fromChEmedEprOrganization(ChEmedEprOrganization organization) Gets an eMediplan organization object from a CH EMED EPR organization object.- Parameters:
organization- The CH EMED EPR organization object to be converted.- Returns:
- The resulting eMediplan object.
-
toFhir
Gets the CH EMED EPR FHIR representation of this object.- Overrides:
toFhirin classEMediplanHealthcareOrganization<ChMed16AExtendedPostalAddress>- Returns:
- The
ChEmedEprOrganizationrepresentation of this object.
-