Interface TreatmentPlanResolver
- 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
ChEmedExtTreatmentPlan resource from a provided
CH EMED EPR Medication Request. The medication request is assumed to be as complete as possible. Nothing is specified
at this level as how complete it should be when received by the treatment plan resolver, but the resolver should do
its best to resolve to which treatment plan this new medication request would be attached to. This treatment plan
could be a previously existing one or a new one, this is to be determined by the resolver.-
Method Summary
Modifier and TypeMethodDescriptiongetTreatmentPlan(ChEmedEprMedicationRequestPre medRequest) Gets the treatment plan to which to attach the received newly created CH EMED EPR medication request.
-
Method Details
-
getTreatmentPlan
ChEmedExtTreatmentPlan getTreatmentPlan(ChEmedEprMedicationRequestPre medRequest) throws InvalidEmedContentException Gets the treatment plan to which to attach the received newly created CH EMED EPR medication request.This method expects a valid medication request, except for the treatment plan extension that should be empty. This method is supposed to resolve to which treatment plan this new medication request should be attached to.
Note that this method does not automatically attach the treatment plan extension to the received medication request, which it does not modify.
- Parameters:
medRequest- The new medication request for which to resolve a treatment plan to which to attach it.- Returns:
- The extension containing the treatment plan to which to attach the received medication request.
- Throws:
InvalidEmedContentException- may be thrown if the content of the received medication request is not valid.
-