Custom Search
FHIR search has a lot of capabilities, but in some cases, there aren't enough. For example, we want to get a patient resource with an additional field 'encounters' that contains all encounters of that patient, but it's not possible to implement it with FHIR search API. Aidbox has a solution for such complex tasks, and this tutorial is about how to solve this kind of problem.
We need some sample data to see results of our queries. Let's create it using Batch/Transaction.
Copy the following snippet to the Aidbox.Cloud
REST Console
.Request
POST /
Accept: text/yaml
Content-Type: text/yaml
type: transaction
entry:
- resource:
id: patient1
name:
- given: [Max]
family: Turikov
request:
method: POST
url: "/Patient"