0

I want to return search results of medicationRequest using the episodeOfCare id. An episodeOfCare is available on on encounter resource which is a reference on medicationRequest resource. Would anyone help me on how to to search for medication requests using the episode of care ID? Thanks

Muteshi
  • 820
  • 1
  • 10
  • 25

1 Answers1

2

You would use chain searching for querying the medicationRequest by EpisodeOfCare.id: {base}/MedicationRequest?encounter.episode-of-care._id=123

Patrick Werner
  • 1,106
  • 9
  • 24
  • 1
    Thanks. This has worked. I was using ```episodeOfcare``` instead of ```episode-of-care```! – Muteshi Jun 13 '22 at 06:20
  • This is a correct answer. Another difficult way to answer your question is to configure the search parameter FHIR resource. But just take it as a consideration. – Vibin Guevara Jun 15 '22 at 16:56