REST Console
.DB Console
of our box and run the following code snippets:patient1
Patient
{"name":[{"given":["Max"],"family":"Turikov"}]}
patient2
Patient
{"name":[{"given":["Alex"],"family":"Antonov"}]}
patient1
Patient
{"id":"patient1","name":[{"given":["Max"],"family":"Turikov"}],"resource_type":"Patient"}
patient2
Patient
{"id":"patient2","name":[{"given":["Alex"],"family":"Antonov"}],"resource_type":"Patient"}
patient1
enc1
{"status":"draft","subject":{"id":"patient1","resourceType":"Patient"}}
patient1
enc2
{"status":"draft","subject":{"id":"patient1","resourceType":"Patient"}}
patient2
enc3
{"status":"draft","subject":{"id":"patient2","resourceType":"Patient"}}
patient1
[{"status":"draft","subject":{"id":"patient1","resourceType":"Patient"}}, {"status":"draft","subject":{"id":"patient1","resourceType":"Patient"}}]
patient2
[{"status":"draft","subject":{"id":"patient2","resourceType":"Patient"}}]
patient1
[{"id":"enc1","status":"draft","subject":{"id":"patient1","resourceType":"Patient"},"resource_type":"Encounter"},{"id":"enc2","status":"draft","subject":{"id":"patient1","resourceType":"Patient"},"resource_type":"Encounter"}]
patient2
[{"id":"enc3","status":"draft","subject":{"id":"patient2","resourceType":"Patient"},"resource_type":"Encounter"}]
patient1
{"id":"patient1",
"name":[{"given":["Max"],"family":"Turikov"}],
"encounters":[
{"id":"enc1",
"status":"draft",
"subject":{"id":"patient1","resourceType":"Patient"},
"resourceType":"Encounter"},
{"id":"enc2",
"status":"draft",
"subject":{"id":"patient1","resourceType":"Patient"},
"resourceType":"Encounter"}],
"resourceType":"Patient"}
AidboxQuery
resource:{{params.patient.id}}
which takes the value from the request and passes it to the query securely (using PostgreSQL PREPARE
statement). This means that the user of our custom search can change some parameters of the query and get different results.