Stream: implementers
Topic: Retrieve Questionnaire from a QuestionnaireResponse
Code And Choke (Sep 25 2019 at 15:37):
Hello,
for a customized operation I would like to have an IResourceProvider, which will be implemented as an endpoint for a jpa-server.
@Operation(name = "$example", idempotent = true)
public Bundle example(@ResourceParam QuestionnaireResponse questionnaireResponse) {
Bundle bundle = new Bundle();
Questionnaire questionnaire = ?
return bundle;
}
How can I retrieve the corresponding Questionnaire from the questionnaireResponse?
Thanks
James Agnew (Sep 25 2019 at 15:58):
You probably want to @Autowire in a field like IFhirResourceDao<Questionnaire> myQuestionnaireDao;
Code And Choke (Sep 26 2019 at 04:13):
@James Agnew Thank you very much I will try it :D
Last updated: Apr 12 2022 at 19:14 UTC