Class ChMed23APostalAddress
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanPostalAddress
org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed23a.ChMed23APostalAddress
- All Implemented Interfaces:
EMediplanObject
A postal address. This class is made to be embedded within other classes like
ChMed23APatient and
ChMed23AHealthcareOrganization that should use it as a JsonUnwrapped
property so that it is flattened on inclusion.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable Stringprotected static final Stringprotected @Nullable StringCountry.protected static final Stringprotected static final Stringprotected @Nullable StringPostcode.protected @Nullable StringAll information at lower leven than the postal code, can be several lines.protected static final StringFields inherited from class org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanPostalAddress
COUNTRY_CODE_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChMed23APostalAddressfromFhirAddress(org.hl7.fhir.r4.model.Address fhirAddress) 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.EMediplanPostalAddress
fromFhirAddress, getCity, getCountry, getPostalCode, getStreet, hasExtensions, setCity, setCountry, setPostalCode, setStreet, toFhir, 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
-
STREET_FIELD_NAME
- See Also:
-
POSTAL_CODE_FIELD_NAME
- See Also:
-
CITY_FIELD_NAME
- See Also:
-
COUNTRY_FIELD_NAME
- See Also:
-
street
All information at lower leven than the postal code, can be several lines. -
postalCode
Postcode. -
city
-
country
Country. If the address is in Switzerland, this property does not need to be set, as it is assumed by default that the address is in Switzerland. Format: Alpha-2 code (ISO 3166 5Country Codes), e.g.FRfor France.
-
-
Constructor Details
-
ChMed23APostalAddress
public ChMed23APostalAddress()
-
-
Method Details
-
getStreetFieldName
- Specified by:
getStreetFieldNamein classEMediplanPostalAddress
-
getPostalCodeFieldName
- Specified by:
getPostalCodeFieldNamein classEMediplanPostalAddress
-
getCityFieldName
- Specified by:
getCityFieldNamein classEMediplanPostalAddress
-
getCountryFieldName
- Specified by:
getCountryFieldNamein classEMediplanPostalAddress
-
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. -
fromFhirAddress
-