Class ValueSetEnumNarrativeForPatientService
java.lang.Object
org.projecthusky.fhir.emed.ch.epr.narrative.services.ValueSetEnumNarrativeForPatientService
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(ValueSetEnumInterface enumm, NarrativeLanguage language) Retrieves the patient-understandable message for the given enum element and narrative language.
-
Constructor Details
-
ValueSetEnumNarrativeForPatientService
Constructor.- Throws:
IOException
- if one of the resource bundle files cannot be read.
-
-
Method Details
-
getMessage
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.
-