Class ChMed16APatientId
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed16a.ChMed16APatientId
- All Implemented Interfaces:
EMediplanIdentifier,EMediplanObject
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ChMed16APatientIdfromFhirIdentifier(org.hl7.fhir.r4.model.Identifier identifier) Converts a FHIR identifier to a ChMed16APatientId.booleanhasExtensions(boolean inDepth) Whether the eMediplan object has any extension or not.org.hl7.fhir.r4.model.IdentifiertoFhir()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, trim, validate
-
Field Details
-
PATIENT_ID_TYPE_INSURANCE_CARD
public static final int PATIENT_ID_TYPE_INSURANCE_CARD- See Also:
-
TYPE_FIELD_NAME
- See Also:
-
type
Type of the ID Possible values 1: Insurance card number -
value
The ID value
-
-
Constructor Details
-
ChMed16APatientId
public ChMed16APatientId()
-
-
Method Details
-
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.
-
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.
-
fromFhirIdentifier
public static @Nullable ChMed16APatientId fromFhirIdentifier(org.hl7.fhir.r4.model.Identifier identifier) Converts a FHIR identifier to a ChMed16APatientId.- Parameters:
identifier- The FHIR identifier to be converted.- Returns:
- A ChMed16APatientId object with the Swiss insurance card number contained in the FHIR identifier. If the
FHIR identifier does not contain a recognizable Swiss insurance card number,
null.
-
toFhir
- Specified by:
toFhirin interfaceEMediplanIdentifier
-