java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.chmed16a.posology.ChMed16ATakingTime
All Implemented Interfaces:
EMediplanObject

public class ChMed16ATakingTime extends Object implements EMediplanObject
  • Field Details

    • AMOUNT_FIELD_NAME

      public static final String AMOUNT_FIELD_NAME
      See Also:
    • INITIAL_DOSE_FIELD_NAME

      public static final String INITIAL_DOSE_FIELD_NAME
      See Also:
    • MAXIMUM_AMOUNT_FIELD_NAME

      protected static final String MAXIMUM_AMOUNT_FIELD_NAME
      See Also:
    • OFFSET_FIELD_NAME

      protected static final String OFFSET_FIELD_NAME
      See Also:
    • DURATION_FIELD_NAME

      protected static final String DURATION_FIELD_NAME
      See Also:
    • offset

      protected int offset
      The offset (in seconds) for the Taking Time after cycle start.

      First cycle starts at DtFrom = dd.MM.yyyy 00:00:00 (midnight)

    • duration

      protected @Nullable Integer duration
      Duration of the medication application in seconds (e.g. 0 for a pill, 1'800 for an intravenous medication infusion of 30 minutes). Default: 0.
    • initialDose

      protected @Nullable Double initialDose
      Dose from (starting dose) Required if InRes = 0
    • finalDose

      protected @Nullable Double finalDose
      Dose to (ending dose). Default: DoFrom
    • amount

      protected @Nullable Double amount
      Amount. Required if InRes = 1
    • maximumDose

      protected @Nullable Double maximumDose
      Maximum amount per cycle.
  • Constructor Details

    • ChMed16ATakingTime

      public ChMed16ATakingTime()
  • Method Details

    • validate

      public ValidationResult validate(@Nullable String basePath)
      Description copied from interface: EMediplanObject
      Validates the eMediplan object, without any further context than its JSON path and its own content, against the eMediplan specs.
      Specified by:
      validate in interface EMediplanObject
      Parameters:
      basePath - The JSON path of this object. If null, 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: EMediplanObject
      Whether the eMediplan object has any extension or not.
      Specified by:
      hasExtensions in interface EMediplanObject
      Parameters:
      inDepth - If true, the called object, and all its children objects, are subject to the check. If false, only the called object is checked for extensions.
      Returns:
      true if the object contains any extensions; false otherwise.
    • trim

      public void trim()
      Description copied from interface: EMediplanObject
      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.
      Specified by:
      trim in interface EMediplanObject