REST Consolesection and let's see what we can do here.
Boxby sending HTTP requests in accordance with FHIR RESTful API. To do this, we need to type an HTTP verb (
DELETE) and the address of the resource (for example
/Patient— please pay attention to the resource name written with a capital letter). In cases when you need to send the request body (e.g for a
POSTrequest), it is passed separated by empty line, in YAML or JSON format — you can choose both (request and response) content type by YAML | JSON switcher.
POST /Patientand in the body of the request wherein we will send the data of our new patient (Aidbox supports JSON and a few other formats but we will use YAML for compactness and readability):
idfield in the request body is not required, and if you do not send it to the server, it will be generated. A description of the difference in the
createoperation behavior between FHIR and Aidbox endpoints can be found here.
Status: 201and the sent data, which means that our patient has been created. We can check this by sending the request
GET /Patient/<id>and receive created patient data (in our case id is
957d782d-3e40-4978-968c-63a1ef7d2473, we got the id from the response), or we can check a complete list of patients —