Class TimingModifierExtensionR5

java.lang.Object
io.github.jy95.fds.r5.translators.TimingModifierExtensionR5
All Implemented Interfaces:
Translator<FDSConfigR5,org.hl7.fhir.r5.model.Dosage>

public class TimingModifierExtensionR5 extends Object implements Translator<FDSConfigR5,org.hl7.fhir.r5.model.Dosage>
R5 class for translating "timing.modifierExtension"
Author:
jy95
  • Constructor Details

    • TimingModifierExtensionR5

      public TimingModifierExtensionR5()
  • Method Details

    • convert

      public CompletableFuture<String> convert(org.hl7.fhir.r5.model.Dosage dosage)
      Converts a dosage field into a human-readable string representation asynchronously.
      Specified by:
      convert in interface Translator<FDSConfigR5,org.hl7.fhir.r5.model.Dosage>
      Parameters:
      dosage - the dosage field to be converted
      Returns:
      a CompletableFuture that will complete with the human-readable string
    • isPresent

      public boolean isPresent(org.hl7.fhir.r5.model.Dosage dosage)
      Checks whether a dosage field is present and can be converted to a string.
      Specified by:
      isPresent in interface Translator<FDSConfigR5,org.hl7.fhir.r5.model.Dosage>
      Parameters:
      dosage - the dosage field to check
      Returns:
      true if the dosage field is present, false otherwise