Interface EMediplanMedicationResolver
- All Known Implementing Classes:
EMediplanMedicationResolver.NoOpMedicationResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This is an interface for a service that can return a FHIR
ChEmedEprMedication resource from a provided
eMediplan medication identifier:
- free text (no identifier)
- GTIN
- HCI index pharmacode
- HCI index product number (not valid for prescriptions)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic final classExtremely basic medication resolver that only supports free text medication specification. -
Method Summary
Modifier and TypeMethodDescriptiongetMedication(MedicamentIdType idType, String id) Gets a valid FHIR CH EMED EPR Medication resource from the medication
-
Method Details
-
getMedication
ChEmedEprMedication getMedication(MedicamentIdType idType, String id) throws UnsupportedOperationException, EMediplanMedicationResolver.MedicationNotFoundException Gets a valid FHIR CH EMED EPR Medication resource from the medication- Parameters:
idType- The type of medication id provided with the eMediplan document.id- The value of the medication id provided with the eMediplan document.- Returns:
- A valid FHIR CH EMED EPR Medication resource with the matching medication.
- Throws:
UnsupportedOperationException- if the resolver does not support the received medication id type.EMediplanMedicationResolver.MedicationNotFoundException- if the resolver could not find a match for the received id and id type, despite supporting the received id type.
-