Hello, I’m having some trouble modeling this case:
I need to implement an operation or search that returns to a nurse a list of questionnaires that must be answered to a specific patient. I thought it would be done using the ‘useContext’ attribute of the resource ‘Questionnaire’, but this type of attribute (UsageContext) doesn’t support a valueReference to the resource Patient. Should I use a reference to a Group that has only the Patient that I need as a member to make this link?
The problem is caused because I need to use an third-party API that for a given patientId returns the list of questionnaireIds that this patient needs to answer, and I want to call this API inside an operation or method in one of the canonical FHIR resources.
Can anybody help me to think which would be the best solution?
Thanks in advance.