Class EPrescriptionMedicament
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanMedicament<ChMed16AExtension>
org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed16a.ChMed16AMedicament
org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed16a.EPrescriptionMedicament
- All Implemented Interfaces:
ChMed16AExtendable,EMediplanExtendable<ChMed16AExtension>,EMediplanObject
Extension of the
ChMed16AMedicament for the revision 3 of the CHMED16A ePrescription format.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Patternprotected @Nullable StringThis is the FOPH assigned indication code, which becomes mandatory for prescriptions.Fields inherited from class org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed16a.ChMed16AMedicament
applicationInstructions, extensions, FORBID_SUBSTITUTION_FIELD_NAME, forbidSubstitution, id, ID_FIELD_NAME, ID_TYPE_FIELD_NAME, idType, NUMBER_OF_PACKAGES_FIELD_NAME, numberOfPackages, posology, POSOLOGY_FIELD_NAME, PRESCRIBED_BY_FIELD_NAME, prescriber, reason, repetition, REPETITION_FIELD_NAME, ROUTE_OF_ADMINISTRATION_FIELD_NAME, routeOfAdministration, SELF_MEDICATION_FIELD_NAME, selfMedication, TAKING_REASON_FIELD_NAME, unit, UNIT_FIELD_NAMEFields inherited from class org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanMedicament
DEFAULT_NUMBER_OF_PACKAGES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringvoidtrim()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.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.chmed16a.ChMed16AMedicament
forbidSubstitution, getExtensions, getIdFieldName, getIdTypeFieldName, getNumberOfPackagesFieldName, getPosology, getRepetitionFieldName, hasExtensions, isSelfMedication, isSubstitutionForbidden, setSelfMedication, validate, validateBaseMethods inherited from class org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanMedicament
getId, getIdType, getNumberOfPackages, getPrescriber, getReason, resolveNumberOfPackagesMethods 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.chmed16a.ChMed16AExtendable
findExtension, getExtensionsFieldNameMethods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanExtendable
addExtension, validateExtensionsMethods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanObject
getFieldValidationPath, getFieldValidationPath, getIgnoredFieldValidationIssue, getRequiredFieldValidationIssue, getValidationIssue, validate
-
Field Details
-
INDICATION_CODE_FIELD_NAME
- See Also:
-
INDICATION_CODE_PATTERN
-
indicationCode
This is the FOPH assigned indication code, which becomes mandatory for prescriptions.This has the following format
XXXXX.XX. That is, 5 digits, a dot, and 2 more digits. The first five digits correspond to the FOPH dossier number for the product, while the 2 last are a sequential number per dossier's reimbursable indication.
-
-
Constructor Details
-
EPrescriptionMedicament
public EPrescriptionMedicament()
-
-
Method Details
-
getIndicationCodeFieldName
-
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 classEMediplanMedicament<ChMed16AExtension>- 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.
-
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 interfaceEMediplanExtendable<ChMed16AExtension>- Specified by:
trimin interfaceEMediplanObject- Overrides:
trimin classChMed16AMedicament
-