Class ValueSetEnumNarrativeForPatientService

java.lang.Object
org.projecthusky.fhir.emed.ch.epr.narrative.services.ValueSetEnumNarrativeForPatientService

public class ValueSetEnumNarrativeForPatientService extends Object
A service that loads display name for some enums that extend the ValueSetEnumInterface that are understandable by patients.

Value sets that are supported as of now are:

Author:
Quentin Ligier
  • Constructor Details

    • ValueSetEnumNarrativeForPatientService

      public ValueSetEnumNarrativeForPatientService() throws IOException
      Constructor.
      Throws:
      IOException - if one of the resource bundle files cannot be read.
  • Method Details

    • getMessage

      public String getMessage(ValueSetEnumInterface enumm, NarrativeLanguage language)
      Retrieves the patient-understandable message for the given enum element and narrative language. If the element is not found, the default display name of the enum element is returned.
      Parameters:
      enumm - The enum element.
      language - The narrative language.
      Returns:
      the translated message.