Class ChMed23APatient
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanPatient<ChMed23AExtension,ChMed23AGender,ChMed23APatientId>
org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed23a.ChMed23APatient
- All Implemented Interfaces:
ChMed23AExtendable,EMediplanExtendable<ChMed23AExtension>,EMediplanObject
public class ChMed23APatient
extends EMediplanPatient<ChMed23AExtension,ChMed23AGender,ChMed23APatientId>
implements ChMed23AExtendable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChMed23APostalAddressPostal address of the patient.protected LocalDateDate of birth, day precision.List of email addresses.protected static final Stringprotected @Nullable List<@NonNull ChMed23AExtension> The list of extensions.protected StringFirst name.protected ChMed23AGenderGender of the patient.protected List<@NonNull ChMed23APatientId> List of patient identifiers.protected static final Stringprotected static final Stringprotected @Nullable StringThe patient's language (ISO 639-16 language code) (e.g. de).protected StringLast name.protected static final Stringprotected @Nullable ChMed23APatientMedicalDataMedical data information.List of phone numbers.protected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChMed23APatientfromEprFhir(ChEmedEprPatient eprFhirPatient, @Nullable org.hl7.fhir.r4.model.Observation weightObservation) Gets an EMediplanPatient from an CH EPR patient.protected StringList<@NonNull ChMed23AExtension> Gets the list of this object's extensions.protected Stringprotected Stringprotected Stringprotected StringbooleanhasExtensions(boolean inDepth) Whether the eMediplan object has any extension or not.protected ValidationResultvalidateBase(@Nullable String basePath, boolean contextAwareCaller) Base validation that performs or skips certain validation checks depending on whether the caller is context-aware or not.Methods inherited from class org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanPatient
fhirLanguageCodeToEMediplanLanguageCode, getAddress, getBirthDate, getEmails, getFirstName, getGender, getIds, getLanguageCode, getLastName, getMedicalData, getPhones, toFhir, trim, validate, validate, validateEmailAddress, validatePhoneMethods 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.chmed23a.ChMed23AExtendable
findExtension, getExtensionsFieldNameMethods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanExtendable
addExtension, trim, validateExtensionsMethods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanObject
getFieldValidationPath, getFieldValidationPath, getIgnoredFieldValidationIssue, getRequiredFieldValidationIssue, getValidationIssue, validate, validate
-
Field Details
-
LANGUAGE_FIELD_NAME
- See Also:
-
IDS_FIELD_NAME
- See Also:
-
MEDICAL_DATA_FIELD_NAME
- See Also:
-
PHONES_FIELD_NAME
- See Also:
-
EMAILS_FIELD_NAME
- See Also:
-
firstName
First name. -
lastName
Last name. -
birthDate
Date of birth, day precision. Format: yyyy-mm-dd (ISO 8601 Date) -
gender
Gender of the patient. The terms gender and sex are considered synonyms in ChMed23A. -
address
Postal address of the patient. -
languageCode
The patient's language (ISO 639-16 language code) (e.g. de). Note that while the lowercase version is preferred, the codes are also valid in uppercase (e.g. DE). -
ids
List of patient identifiers. -
extensions
The list of extensions. Optional if empty. -
medicalData
Medical data information. -
phones
List of phone numbers. -
emails
List of email addresses.
-
-
Constructor Details
-
ChMed23APatient
public ChMed23APatient()
-
-
Method Details
-
getLanguageFieldName
- Specified by:
getLanguageFieldNamein classEMediplanPatient<ChMed23AExtension,ChMed23AGender, ChMed23APatientId>
-
getIdsFieldName
- Specified by:
getIdsFieldNamein classEMediplanPatient<ChMed23AExtension,ChMed23AGender, ChMed23APatientId>
-
getMedicalDataFieldName
- Specified by:
getMedicalDataFieldNamein classEMediplanPatient<ChMed23AExtension,ChMed23AGender, ChMed23APatientId>
-
getPhonesFieldName
- Specified by:
getPhonesFieldNamein classEMediplanPatient<ChMed23AExtension,ChMed23AGender, ChMed23APatientId>
-
getEmailsFieldName
- Specified by:
getEmailsFieldNamein classEMediplanPatient<ChMed23AExtension,ChMed23AGender, ChMed23APatientId>
-
getExtensions
Description copied from interface:EMediplanExtendableGets the list of this object's extensions.- Specified by:
getExtensionsin interfaceEMediplanExtendable<ChMed23AExtension>- Returns:
- The list of extensions.
-
validateBase
Description copied from class:EMediplanPatientBase validation that performs or skips certain validation checks depending on whether the caller is context-aware or not. This prevents redundant validation checks when the caller is context-aware and will also call children context-aware validation methods instead of their basic counterparts, that will be skipped by this method.- Overrides:
validateBasein classEMediplanPatient<ChMed23AExtension,ChMed23AGender, ChMed23APatientId> - Parameters:
basePath- The object's JSON path.contextAwareCaller- Whether caller is context aware or not. If true, some validation checks might be skipped.- Returns:
- The validation result.
-
fromEprFhir
public static ChMed23APatient fromEprFhir(ChEmedEprPatient eprFhirPatient, @Nullable org.hl7.fhir.r4.model.Observation weightObservation) Gets an EMediplanPatient from an CH EPR patient.- Parameters:
eprFhirPatient- The CH EPR patient to be converted.- Returns:
- The eMediplan patient.
-
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.
-