Class ChMed23APatientMedicalData
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanPatientMedicalData<ChMed23AExtension>
org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed23a.ChMed23APatientMedicalData
- All Implemented Interfaces:
ChMed23AExtendable,EMediplanExtendable<ChMed23AExtension>,EMediplanObject
public class ChMed23APatientMedicalData
extends EMediplanPatientMedicalData<ChMed23AExtension>
implements ChMed23AExtendable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable List<@NonNull ChMed23AExtension> Extensions.protected @Nullable DoubleHeight in cm.protected static final Stringprotected @Nullable LocalDateFirst day of last menstruation, format: yyyy-mm-dd (ISO 86017 Date).protected static final Stringprotected @Nullable BooleanTrue if it is a premature baby (and only if age invalid input: '<'= 18 months), false otherwise.protected @Nullable List<@NonNull EMediplanRiskList> Risks per category.protected static final Stringprotected @Nullable StringThe time of gestation, should usually only be filled if prematureBaby is true.protected @Nullable DoubleWeight in kg.Fields inherited from class org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanPatientMedicalData
TIME_OF_GESTATION_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<@NonNull ChMed23AExtension> Gets the list of this object's extensions.List<@NonNull EMediplanRiskList> getRisks()booleanhasExtensions(boolean inDepth) Whether the eMediplan object has any extension or not.@Nullable BooleanWhether the patient is a premature baby or not.Validates the eMediplan object, without any further context than its JSON path and its own content, against the eMediplan specs.Methods inherited from class org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanPatientMedicalData
addRisk, getLastMenstruation, getTimeOfGestation, trim, 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.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
-
Field Details
-
PREMATURE_BABY_FIELD_NAME
- See Also:
-
TIME_OF_GESTATION_FIELD_NAME
- See Also:
-
LAST_MENSTRUATION_FIELD_NAME
- See Also:
-
lastMenstruation
First day of last menstruation, format: yyyy-mm-dd (ISO 86017 Date). Only required in case of risk code 78, category code 3 (seeEMediplanRisk). -
prematureBaby
True if it is a premature baby (and only if age invalid input: '<'= 18 months), false otherwise. -
timeOfGestation
The time of gestation, should usually only be filled if prematureBaby is true. Format: {week}-{day}, week is a natural number including 0, day excluding 0. -
risks
Risks per category. SeeEMediplanRiskandEMediplanRiskList.If a risk category is specified but empty, is considered as explicitly excluded for the current patient. If the category does not exist, the risks are considered to be unknown for the patient.
-
weight
Weight in kg. -
height
Height in cm. -
extensions
Extensions.
-
-
Constructor Details
-
ChMed23APatientMedicalData
public ChMed23APatientMedicalData()
-
-
Method Details
-
getPrematureBabyFieldName
- Specified by:
getPrematureBabyFieldNamein classEMediplanPatientMedicalData<ChMed23AExtension>
-
getTimeOfGestationFieldName
- Specified by:
getTimeOfGestationFieldNamein classEMediplanPatientMedicalData<ChMed23AExtension>
-
getLastMenstruationFieldName
- Specified by:
getLastMenstruationFieldNamein classEMediplanPatientMedicalData<ChMed23AExtension>
-
getRisks
- Specified by:
getRisksin classEMediplanPatientMedicalData<ChMed23AExtension>
-
getExtensions
Description copied from interface:EMediplanExtendableGets the list of this object's extensions.- Specified by:
getExtensionsin interfaceEMediplanExtendable<ChMed23AExtension>- Returns:
- The list of extensions.
-
isPrematureBaby
Description copied from class:EMediplanPatientMedicalDataWhether the patient is a premature baby or not. Take into account that calling this method makes sense only when the age of the patient is lesser or equal than 18 months, but this method does not perform any such checks and will return the result solely based on the content of the underlying property.- Specified by:
isPrematureBabyin classEMediplanPatientMedicalData<ChMed23AExtension>- Returns:
trueif the eMediplan document explicitly declares the baby to be prematurefalseif the eMediplan document explicitly declares the baby not to be prematurenullotherwise
invalid input: '<'/ul
-
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- Overrides:
validatein classEMediplanPatientMedicalData<ChMed23AExtension>- 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.
-
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.
-