1. Overview

1.1. Authentication

The API supports a mixture of authenticated and unauthenticated calls.
A civilian will use the API unauthenticated where as the EMD will be required to authenticate.
Authentication is done using a bearer token.
These tokens can be obtained through our Authorization Server.
Via our Authorization Server an STS-token can be converted to an Oauth2 token.
It is advisable to always use an Oauth2 token when possible.
Based on the principals authorization, a different response with more details is returned.

The STS-token used to obtain an Oauth2 token should be requested with the correct SAML designators. The quality and nihii should be available.
Doctor STS designators
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:ehealth:1.0:certificateholder:person:ssin" AttributeNamespace="urn:be:fgov:identification-namespace"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin" AttributeNamespace="urn:be:fgov:identification-namespace"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:givenname" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:surname" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:doctor:nihii11" AttributeNamespace="urn:be:fgov:identification-namespace"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin:doctor:boolean" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth"/>
Dentist STS designators
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:ehealth:1.0:certificateholder:person:ssin" AttributeNamespace="urn:be:fgov:identification-namespace"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin" AttributeNamespace="urn:be:fgov:identification-namespace"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:givenname" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:surname" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:professional:dentist:boolean" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth"/>
<saml1:AttributeDesignator xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:nihii:dentist:nihii11" AttributeNamespace="urn:be:fgov:identification-namespace"/>

1.2. REST

Our API is (all debates aside) a restful API.
The HTTP verbs GET, POST, PUT and DELETE are used to implement ‘CRUD’ operations on our resource endpoints.

Unless otherwise indicated, our API will always return JSON and only JSON.
The biggest exception is the export endpoints that will return XML, PDF, etc.

1.3. Response codes

To indicate the outcome of a request, we use the HTTP status codes.

1.3.1. Success

Successful requests return or a 200 OK, a 201 Created or a 204 No Content.
There are no asynchronous requests.
If the requests returns, the operation has been executed.

1.3.2. Errors

As for the error codes, we follow the standard categories of 4xx Client errors and 5xx Server errors.
A response with a 4xx or 5xx code will always contain a response body following a fixed template.

Table 1. Error message fields

code

A unique code giving some more details

Required

message

A message that will contain some more details about the origins and cause of the error.
This is done on a best effort basis.

Required

description

A more detailed description of the problem and what can be done to solve it.

Optional

uniqueId

Depending on the environment, we will do more extensive logging.
Given that id, we can find the root cause of the problem more easily.

Optional

stacktrace

Depending on the environment and availability, we will return a stacktrace.

Optional

Error message
{
   "code":"internal_server_error",
   "message":"An unknown error has occurred.",
   "description":"The reason and origin of this error cannot be processed automatically. Contact support to further investigate this problem. Do not forget to pass the unique id returned in the response.",
   "uniqueId":"d84d49e2fb5548a8956540f778b79f50",
   "stacktrace":"..."
}

There are three groups of errors: validation errors, client errors and server errors.

Validation errors

This kind of error is always returned with the HTTP status code 422 Unprocessable Entity.
Besides the usual fields, this kind of error contains an extra field validationErrors.
The object assigned to that field contains three extra field being:

  • The field that contains the validation error

  • The error message indicating the problem

  • The value that triggered the validation violation

Validation error message
{
   "code":"input_validation_error",
   "message":"The input contains validation errors.",
   "description":"Check the error messages contained in this response to correct your input and try again. This error is entirely related to your input. Do not retry without changing the input.",
   "uniqueId":"a6399b01e8294162be4f4f914b353a4b",
   "validationErrors":[
      {
         "field":"name",
         "value":null,
         "message":"Request is missing fields. Consult the documentation for details on how to build the request."
      },
      {
         "field":"identifier",
         "value":null,
         "message":"may not be null"
      },
      {
         "field":"lastName",
         "value":null,
         "message":"Request is missing fields. Consult the documentation for details on how to build the request."
      },
      {
         "field":"firstName",
         "value":null,
         "message":"Request is missing fields. Consult the documentation for details on how to build the request."
      }
   ]
}
Client errors

All errors in the 4xx range are client errors.
We use the following non-exhaustive list of status codes: 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 415 Unsupported Media Type, 422 Unprocessable Entity, etc.

Server errors

A server error is returned as either a 500 Internal Server Error or a 503 Service Unavailable.

1.4. Pagination

Some of our endpoints support pagination.
This is implemented using a combination of query parameters and headers.

Every resource endpoint that supports paging, accepts a page parameter and a per_page parameter.

http://acc-services.e-forms.be/catalogue/api/v1/form-definitions?page=1&per_page=10

In the response for that request, the link header is populated with first, next, prev and last links.

Link: <http://acc-services.e-forms.be/catalogue/api/v1/form-definitions?page=1&per_page=10>; rel="first",
      <http://acc-services.e-forms.be/catalogue/api/v1/form-definitions?page=2&per_page=10>; rel=“last"

If the parameters are omitted, 1 is the default page value and 25 is the default per_page value.

1.5. Locale

Every request requires a locale.
This locale must be set via the Accept-language header.
Acceptable values are en-BE, fr-BE and nl-BE.
The results returned by our services are based on and oriented towards the given locale.
For instance labels and descriptions will be set accordingly.

2. Migration from 1.X

If you already have an integration on eForms 1.X standalone, this part will guide you through all the necessary steps to switch to the cloud version.

2.1. Endpoint changes

The cloud version is installed on our central architecture, so the following endpoint changes are required :

2.2. SAML Authentication Oauth2.0

The standalone version required no additional security on API calls.
Obviously, API calls to the cloud will require strong authentication and authorisation.A valid OAuth token can be requested by providing a valid STS SAML to the IAM OAuth provider.
Please see Authentication for more information.

2.3. Api Changes

The standalone version required one call to create a form with the associated data-set:

    /private/form/{formType}/nl

In the cloud version the creation and data population are split up in multiple calls.
The following calls are needed:

3. Tutorials

3.1. Form flow tutorial

This tutorial walks you through the process of querying the e-form catalogue, creating a specific e-form, and sending it to the required recipient.
Each form is configured to allow or disallow certain calls.
This means that depending on the form type your create, some calls will not be necessary or even possible.
Throughout this tutorial, we assume that the integrator is properly authenticated and given standard priviliges.

3.1.1. Form Lifecyle

Before we proceed, it’s very important to understand the lifecycle of a form.
Basically there are three phases in the life of a form.

  • Init Phase: create the form and upload data-sets

  • Edit Phase: edit form-data

  • Final Phase: export and send the form

Lifecycle

Init Phase

During the init phase the form is created at server side and all necessary data to populate the form is provided by the integrator.

This phase allows the following actions:

  • Upload and merge data-sets

  • Attachment operations

  • Recipient and sender operations

During this phase the form can be visualized but is not editable.
So basically, the user cannot edit the form-data.

Edit Phase

The edit phase is where the user interacts with the form and inputs all his data.
Typically the form is now visualised in an integrated webview component.

This phase allows the folling actions:

  • Edit the form

  • Attachment operation

  • Recipient and sender operations

Final Phase

During the final phase the user wants to export the form for sending or printing.
Typically this is when the users clicks on the 'send form' button.
During this phase the form is not editable.

This phase support the following actions:

  • Export operations

3.1.2. Authentication

All clients are authenticated using an Oauth2 token.
We provide an Oauth2 provider.
To call it, you must encode your STS-Token using a base64 string that is URL safe encoded.
The basic authentication header contains your credentials.
Every integrator must request a username and password.
We provide a set for our acceptance and production environment.

Request
POST /iamWeb/oauth/token HTTP/1.1
Accept-Language: nl-BE
Authorization: Basic aGVsbG86d29ybGQ=
Accept: */*
Content-Type: application/x-www-form-urlencoded; charset=ISO-8859-1
Host: acc.healthconnect.be

sts-token=PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48QXNzZXJ0aW9uIHhtbG5zPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoxLjA6YXNzZXJ0aW9uIiB4bWxuczp4cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIEFzc2VydGlvbklEPSJfYjI5NjcxZD...&grant_type=sts_token&integratorVersion=2.3.7&postalCode=1000
Response
HTTP/1.1 200 OK
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Access-Control-Allow-Headers: x-requested-with, Content-Type, Accept-language, Authorization, identification, contactId, criteria, uuid, applicationId
Access-Control-Max-Age: 3600
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Content-Type: application/json;charset=UTF-8
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Content-Security-Policy: default-src https: 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https:; style-src https: 'unsafe-inline'; img-src https: 'self' data:;
Keep-Alive: timeout=5, max=100

{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2ZDBmZGExNS1iYzgzLTRkOTYtODhhNi0yNzFlNDE2MDJmYTMiLCJpc3MiOiJoZWFsdGhjb25uZWN0IiwiZXhwIjoxNTAwMjg2Mjk2LCJzdWIiOiJmYTY0OWYyNGFkZDhjZjkwNGVk...",
  "token_type": "bearer",
  "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxZThjNTMzNy01NzY3LTQyNWYtYjVlYy1mOTY5MjVlY2Y1MzkiLCJpc3MiOiJoZWFsdGhjb25uZWN0IiwiZXhwIjoxNTAyODcxMDk2LCJhdGkiOiI2ZDBmZGExNS1iYzgzLTRkOTY...",
  "sub": "fa649f24add8cf904ed50c9bd9236145"
}

3.1.3. Receive form definitions

Attached to the nodes of the taxonomy tree, we have form definitions.
A form definition is a blueprint for a form.
It contains information on how a form is constructed and how it will behave.
Throughout this tutorial, the term form and form definition will be used as synonyms unless the difference is essential.
In that case a clear distinction will be made explicitly.

The form definition answers questions such as:

  • Can we configure the sender?

  • Can we configure the receivers?

  • Can we add attachments?

  • Can we edit this form?

  • What page formats are supported by the PDF format?

All integrators must interpret this response correctly and construct a user interface based on the form definition.
The id is unique and must be passed along when creating a new instance of this form type.
The label is the user friendly name of the form.
The description explains in more detail what the form is used for.
It can contain newline characters.
Both the label and the description of the form are returned in the requested language indicated by the Accept-language header in the request.

Besides those fields, we have some other objects containing more details about the form.

Functional configuration

Information meant for the integrator.
What actions are available and what kind of form are we dealing with.

Fixed recipient

This object is optional.
If it is present, it is meant to be able to show the end user where the form is going to be send to.
If this object is included in the response, the functionalConfiguration.containsRecipients flag is automatically set to true and the functionalConfiguration.canModifyRecipients flag almost always to false.
The functionalConfiguration.containsRecipients flag can also be set to true if the form contains a dropdown box with recipients.
In this case the form will handle setting the recipients.

Export configuration

Details which formats are supported and what the recommended default format is.

Request
GET /catalogue/api/v1/form-definitions?page=1&per_page=10 HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be
Parameter Description

page

The page to retrieve

per_page

Records per page

Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: 61bc5389-4ba4-4ac5-9ba7-cc455d371b67
Link: <http://localhost:36421/catalogue/api/v1/form-definitions?page=1&per_page=10&latest_version_only=true>; rel="first",<http://localhost:36421/catalogue/api/v1/form-definitions?page=1&per_page=10&latest_version_only=true>; rel="last"
X-total-count: 7
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

[ {
  "id" : {
    "name" : "CAPABILITY",
    "version" : "6.1.26"
  },
  "label" : "Geschiktheidsattest",
  "description" : "Geschiktheidsattest",
  "functionalConfiguration" : {
    "documentType" : "LETTER",
    "lifespan" : "SEND_ONE_TIME",
    "canModifySender" : true,
    "canModifyRecipients" : false,
    "canModifyAttachments" : false,
    "containsRecipients" : false,
    "supportsDataSet" : false,
    "supportsExport" : true,
    "supportedDataSets" : [ "application/vnd.healthconnect.eforms.kmehr.integrator.v1+xml" ],
    "authenticData" : [ ],
    "targetAttachmentsSize" : 9437184,
    "maxAttachmentsCount" : 10,
    "minAttachmentsCount" : 0
  },
  "exportConfiguration" : {
    "documentFormats" : [ "DL", "A4", "A5" ],
    "defaultDocumentFormat" : "DL",
    "availableFormats" : [ "transcript", "pdf", "form-data", "raw", "kmehr", "adr" ]
  }
}, {
  "id" : {
    "name" : "CONSULT",
    "version" : "7.0.405"
  },
  "label" : "Consultatiebewijs",
  "description" : "Consultatiebewijs",
  "functionalConfiguration" : {
    "documentType" : "PRESCRIPTION",
    "lifespan" : "SEND_ONE_TIME",
    "canModifySender" : true,
    "canModifyRecipients" : true,
    "canModifyAttachments" : false,
    "containsRecipients" : false,
    "supportsDataSet" : false,
    "supportsExport" : true,
    "supportedDataSets" : [ "application/vnd.healthconnect.eforms.kmehr.integrator.v1+xml" ],
    "authenticData" : [ ],
    "targetAttachmentsSize" : 9437184,
    "maxAttachmentsCount" : 10,
    "minAttachmentsCount" : 0
  },
  "exportConfiguration" : {
    "documentFormats" : [ "DL", "A4", "A5" ],
    "defaultDocumentFormat" : "DL",
    "availableFormats" : [ "transcript", "pdf", "form-data", "raw", "kmehr", "adr" ]
  }
} ]
Form definition fields
Path Type Description

[].id

Object

The form definition id

[].id.name

String

The name of the form-definition.

[].id.version

String

The version of the form-definition.

[].label

String

A human readable name for the form

[].description

String

A full description of the form

[].functionalConfiguration

Object

The functional configuration for this form

[].functionalConfiguration.documentType

String

Indicates the default printing format for this form. Can be LETTER or PRESCRIPTION

[].functionalConfiguration.lifespan

String

For internal use only.

[].functionalConfiguration.canModifySender

Boolean

Indicate if the sender can be modified. The sender should always be set to the current active user.

[].functionalConfiguration.canModifyRecipients

Boolean

Indicate if the recipients can be modified.

[].functionalConfiguration.canModifyAttachments

Boolean

Indicate if attachments can be added to the form.

[].functionalConfiguration.containsRecipients

Boolean

Informative variable that specifies if the form contains one or more recipients. Could be in the form of a hard coded addressee in the metadata or a contact-select-box on the form.

[].functionalConfiguration.supportsDataSet

Boolean

Indicate if a history data-set can be generated for this form.

[].functionalConfiguration.supportsExport

Boolean

Indicate if this form can be exported to recreate the exact same instance later on.

[].functionalConfiguration.supportedDataSets

Array

A list of supported data sets.

[].functionalConfiguration.targetAttachmentsSize

Number

The target size of the combined list of attachments

[].functionalConfiguration.maxAttachmentsCount

Number

The maximum number of attachments allowed

[].functionalConfiguration.minAttachmentsCount

Number

The minimum number of attachments that need to be provided.

[].functionalConfiguration.authenticData

Array

For internal use only.

[].fixedRecipient

Object

The recipient of the form.

[].fixedRecipient.identifier

String

The recipient’s identifier.

[].fixedRecipient.quality

String

The recipient’s quality.

[].fixedRecipient.name

String

The recipient’s name.

[].exportConfiguration

Object

Details on how this form can be exported

[].exportConfiguration.documentFormats

Array

The available PDF document formats

[].exportConfiguration.availableFormats

Array

A list of all available export formats

[].exportConfiguration.defaultDocumentFormat

String

The document format chosen for the PDF generation when the integrator doesn’t specify one

3.1.4. Create a form instance

The creation of a new form is a simple call.
The integrator must pass the id as found in the form definitions response, as well as the PDF format.

The integrator object is meant to identify the integrator of the E-forms application.
We do not require the integrator to submit their identification details to our organisation before making use of this object.

The purpose of the integration object is to help solve any issues that occur.
Acceptable values are the application’s name - for instance CareConnect.
Keep it consistent over all requests in time.
The version should always reflect the application’s version number.

Request
POST /cloud/api/v1/forms/ HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Content-Type: application/json;charset=UTF-8
Host: e-forms.be
Content-Length: 233

{
  "id" : {
    "name" : "MEDICAL-IMAGING-DENTAL",
    "version" : "2.19.1"
  },
  "format" : "A4",
  "integrator" : {
    "name" : "CareConnect",
    "version" : "2.6"
  },
  "headless" : false,
  "formManagesAttachments" : false
}
Path Type Description

id.name

String

The name of the form-definition.

id.version

String

The version of the form-definition.

format

String

The desired print format.

integrator.name

String

The name of the integrator.

integrator.version

String

The current version-number of the integrator.

headless

Boolean

True if we want to be able to run this form in a headless mode.

formManagesAttachments

Boolean

True if the attachments should be managed by the form. This will be ignored when the form does not support attachments.

Response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: e942c2f7-5f6e-423b-9975-623937868f10
Location: http://localhost:36421/catalogue/api/v1/forms/TZPXG
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

{
  "formId" : "TZPXG",
  "clientUrl" : "http://localhost:36421/catalogue/resource-provider/form-definitions/MEDICAL-IMAGING-DENTAL/2.19.1/index.html#!/TZPXG?baseUrl=http://localhost:36421/&access_token=eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJlUVNQalV4LVE3QkxuR3pXM3AtdkVnIiwiaXNzIjoiaGVhbHRoY29ubmVjdCIsImV4cCI6MTczMDk3NTg5Miwic3ViIjoiMTY2MmU5ZmJlYWZhNmJjZmZlMTFjMzRkZWY4YzcxYjgiLCJhdGkiOiI5MDcyMDA1NS01ZTk3LTRlNTItYWU5MC00NTVkNWY1Nzg5MWEiLCJmb3JtSWQiOiJUWlBYRyIsImludGVncmF0b3IiOnsiaWQiOiJlZm9ybXNfY2xvdWQiLCJ2ZXJzaW9uIjoidW5rbm93biJ9LCJzY29wZSI6WyJST0xFX0VGQ19ERVJJVkVEX1RPS0VOIl19.Q0E4uT8H8ocPzzFgUlsTWhQHNAfl86-ySsjNpPojjuF36r_juOHObSPbEBOwYh-iJ9Q1BklVLREP41XBv33gYg9l5ZOVzxx_G2k-nvuFG3hX4d7iPTHXmNBqJgTPlLsyvIMZypnJK-wEWGX3BmxntA5Ni0D1BSRhee_cgxgBR5FcARAL_W0QwQg7vzMsw_iVf6BmijhBzEKUQSrS-FhUBaEx7SeQcPkf7yP3Z0v0ja2wvOzxX_pdGwrMKC5zlKNQ18i7mK3rpJtPy0VgHEsYyGj30ezVAKUaM0LKdoGBzy8zty-uIdUZZ70cuzJ1Up_9kkAuA2HqoJ0ib_oaRx7htA"
}
Path Type Description

formId

String

The form’s instance identifier.

clientUrl

String

The URL to open for the user to show the form.

Once a new form is created, the data-sets should be loaded into the form.
This is a two step process.
In the first step, the integrator should upload the data-set.
Once uploaded, a separate call will merge the data set into the form.

3.1.5. Upload a data set

E-forms can be exported, this is an important concept to grasp.
When creating an e-form, data is entered via data-sets.
One of the data-sets can be the previous version of this form.
This makes it essentially an export-import function.

Every data set has a type and a name as well as content of course.

DataSet
 - content
 - type
 - name

The content is given at creation the time.
The name is generated by our services and returned in the response.

This type is represented by a vendor specific content type.
Currently we support the following data set types.

Table 2. Data types
Data type Description

application/vnd.healthconnect.eforms.kmehr.integrator.v1+xml

This data type is used for the initial data set

application/vnd.healthconnect.eforms.kmehr.history.v1+xml

This data type is used for the previously exported data set.
It is a data set based on the previous instance of the form.

To know exactly which data sets are supported for a given form, consult the supportedDataSets field in the form definition JSON response.
When uploading a new data set that is not supported by the form, an error will be returned.

Example flow
create form_instance_1
... // many operations performed on this form
form_instance_1 --> export to data_set_1

create form_instance_2
feed data_set_1 to form_instance_2 (only possible if the form is editable)

When uploading a data set, the service will return a unique id.
This id must be used in the next step.

Request
POST /cloud/api/v1/forms/TZPXG/data-set HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Accept: text/plain
Content-Type: application/vnd.healthconnect.eforms.kmehr.integrator.v1+xml;charset=UTF-8
Host: e-forms.be
Content-Length: 2337

<kmehrmessage xmlns="http://e-forms.be/standards/kmehr/schema/v1">
    <header>
        <standard>
            <cd S="CD-STANDARD" SV="1.5">20121001</cd>
        </standard>
        <id S="ID-KMEHR" SV="1.0">a9b2646e-1bed-4abb-92d5-b24672b06077</id>
        <date>2016-06-21</date>
        <time>17:57:35</time>
        <sender>
            <hcparty>
                <id S="ID-HCPARTY" SV="1.0">41161652401</id>
                <id S="INSS" SV="1.0">79070436460</id>
                <cd S="CD-HCPARTY" SV="1.6">persphysician</cd>
                <firstname>Mickey</firstname>
                <familyname>Met Alle Rechten</familyname>
                <address>
                    <cd S="CD-ADDRESS" SV="1.0">work</cd>
                    <country>
                        <cd S="CD-FED-COUNTRY" SV="1.0">be</cd>
                    </country>
                    <zip>2000</zip>
                    <city>Antwerpen</city>
                    <street>Groenplaats</street>
                    <housenumber>3</housenumber>
                    <postboxnumber>4a</postboxnumber>
                </address>
                <telecom>
                    <cd S="CD-ADDRESS" SV="1.0">work</cd>
                    <cd S="CD-TELECOM" SV="1.0">phone</cd>
                    <telecomnumber>+13790882</telecomnumber>
                </telecom>
                <telecom>
                    <cd S="CD-ADDRESS" SV="1.0">work</cd>
                    <cd S="CD-TELECOM" SV="1.0">mobile</cd>
                    <telecomnumber>0488219319</telecomnumber>
                </telecom>
                <telecom>
                    <cd S="CD-ADDRESS" SV="1.0">work</cd>
                    <cd S="CD-TELECOM" SV="1.0">fax</cd>
                    <telecomnumber>+13790881</telecomnumber>
                </telecom>
                <telecom>
                    <cd S="CD-ADDRESS" SV="1.0">work</cd>
                    <cd S="CD-TELECOM" SV="1.0">email</cd>
                    <telecomnumber>stephane.paulus@healthconnect.be</telecomnumber>
                </telecom>
            </hcparty>
            <hcparty>
                <id S="LOCAL" SV="2.6">CareConnect</id>
                <cd S="CD-HCPARTY" SV="1.0">application</cd>
                <name>CareConnect</name>
            </hcparty>
        </sender>
        <recipient>
            <hcparty>
...
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: 1e83cf08-1abc-497f-b8c5-fd4061c3607b
Content-Type: text/plain;charset=ISO-8859-1
Keep-Alive: timeout=60

3F37AMTO2RHL

3.1.6. Merge a data set

Once a new data set has been uploaded in the system, a new call is made to merge this data set into the current form instance.
Next to the id of the data set, you need to specify the merge strategy that we want to apply.
We can choose between extend and overwrite.
Extend will copy a value from the data set to the form if the value does not yet exist in the form.
Overwrite will copy the value regardless of the state of the form.
This operation is irreversible!

Request
POST /cloud/api/v1/forms/TZPXG/merge HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Content-Type: application/json;charset=UTF-8
Host: e-forms.be
Content-Length: 64

{
  "dataSetId" : "3F37AMTO2RHL",
  "mergeStrategy" : "extend"
}
Table 3. mergeStrategy
Path Type Description

dataSetId

String

The id of the data set to merge

mergeStrategy

String

Do we want to extend our data set or overwrite it

Response
HTTP/1.1 204 No Content
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: 4f252a46-daa7-4e7a-bd4b-5fb935fe5844
Keep-Alive: timeout=60

3.1.7. Release the form lock

When a form is created a lock is placed on the form to prevent user editing.
First all data should be uploaded and merged to populate the form.
Once the form is ready, the lock should be deleted to make the form editable.

In fact this means : the form is ready, you can now edit it.
Request
DELETE /cloud/api/v1/forms/TZPXG/lock HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be
Response
HTTP/1.1 204 No Content
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: ddb63105-5b12-4c10-bc65-f87581d85aa6
Keep-Alive: timeout=60

3.1.8. Set a sender

Every form has one sender which can be set by the integrator.
If you set a sender a second time, you overwrite the previous sender.
Since there is only one sender, it does not have an ID assigned to it.
If the functionalConfiguration.canModifySender flag is set to false, the call will fail with an error response.

If there is no sender supplied, the communication software will need set one. (e.g. In Hector this is the default sending identity)

Request
PUT /cloud/api/v1/forms/TZPXG/sender HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Content-Type: application/json;charset=UTF-8
Host: e-forms.be
Content-Length: 122

{
  "firstName": "Mad",
  "lastName": "Max",
  "identifier": {
    "identifier": "14032237",
    "quality": "DOCTOR"
  }
}
Response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: 469df95e-be59-46c1-b6e7-813b5deef6e3
Location: http://localhost:36421/catalogue/api/v1/forms/TZPXG/sender
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

{
  "firstName" : "Mad",
  "lastName" : "Max",
  "identifier" : {
    "identifier" : "14032237",
    "quality" : "DOCTOR"
  }
}
Sender fields
Path Type Description

firstName

String

The contact’s first name. Either this field is filled together with the last name, or the name field is filled.

lastName

String

The contact’s last name.

identifier.identifier

String

The identifier to contact e-health.

identifier.quality

String

The contact’s e-health quality.

3.1.9. Set one or more recipients

A recipient has the same properties as the sender, the only additional field is an id as we support several recipients on the same form.
If a fixed recipient is configured for this form, a GET on the recipients endpoint will include that recipient in the response.
If the form provides a component to let the end user select one or more recipients, that same GET call will reflect the current selection made by the end user.
If the functionalConfiguration.canModifyRecipients flag is set to false, the call will fail with an error response.

Request
PUT /cloud/api/v1/forms/TZPXG/recipients/ca71bf42fa9138c063bcb59f46a04a0ec68e926384084ddcbcec53dbf2292a440ced83385812347733ad8e7b7d948abf39d46ba89221cc7d45076c613fb3405e HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Content-Type: application/json;charset=UTF-8
Host: e-forms.be
Response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: d74c241c-9b32-441e-a410-13c43dacc393
Location: http://localhost:36421/catalogue/api/v1/forms/TZPXG/recipients/ca71bf42fa9138c063bcb59f46a04a0ec68e926384084ddcbcec53dbf2292a440ced83385812347733ad8e7b7d948abf39d46ba89221cc7d45076c613fb3405e
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

{
  "id" : "ca71bf42fa9138c063bcb59f46a04a0ec68e926384084ddcbcec53dbf2292a440ced83385812347733ad8e7b7d948abf39d46ba89221cc7d45076c613fb3405e",
  "firstName" : "Andries",
  "lastName" : "Demont",
  "identifier" : {
    "identifier" : "10050881001",
    "quality" : "DOCTOR"
  }
}
Recipient fields
Path Type Description

id

String

Unique contact id. Set by the server side when returning a contact instance. If set by the client side, this field must be null.

firstName

String

The contact’s first name. Either this field is filled together with the last name, or the name field is filled.

lastName

String

The contact’s last name.

identifier.identifier

String

The identifier to contact e-health.

identifier.quality

String

The contact’s e-health quality.

Unlike the sender, recipients have an id.
This way they can be removed from the list.

Request
DELETE /cloud/api/v1/forms/TZPXG/recipients/ca71bf42fa9138c063bcb59f46a04a0ec68e926384084ddcbcec53dbf2292a440ced83385812347733ad8e7b7d948abf39d46ba89221cc7d45076c613fb3405e HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be
Response
HTTP/1.1 204 No Content
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: 706d1b52-b11d-4bcb-8938-a02b278ebee9
Keep-Alive: timeout=60

Depending on the type of contact, either a first name and last name or just a name is given.

Request
PUT /cloud/api/v1/forms/TZPXG/recipients/e828899d98c9e4355297295a19315a11f8d842f22fb8f71b377424850e304daf904b00e26700de7e32ca9f0e223fa9e072f33cafd026e40d96c60283d560cdc5 HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Content-Type: application/json;charset=UTF-8
Host: e-forms.be
Response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: bd4754f6-24b7-4f14-b731-c4b29141442f
Location: http://localhost:36421/catalogue/api/v1/forms/TZPXG/recipients/2b45fbd6111002ccbca5042592e30abce763630318ac17253bf1b9c19db380dd18989f1ddf4cb4f8d1d692e43cd65ae09817c87d020d66028e69610770a0a7d7
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

{
  "id" : "2b45fbd6111002ccbca5042592e30abce763630318ac17253bf1b9c19db380dd18989f1ddf4cb4f8d1d692e43cd65ae09817c87d020d66028e69610770a0a7d7",
  "name" : "HealthConnect",
  "identifier" : {
    "identifier" : "71030130",
    "quality" : "HOSPITAL"
  }
}

3.1.10. Add an attachment

The form can contain attachments with a combined maximum size of 9MB or a maximum total count of 10! Once a single condition is exceeded a proper error code will be returned.
Every attachment has a technical id assigned by the system.
This id is included in the response.
The content type of the attachment must be set when uploading a new attachment and it will be included in the final response.
The filename must be be unique.
If a name collision is detected, the system will add a sequence number to make it unique.
The final name assigned to the attachment can be found in the response.

The request is a multipart request, where the name if the part has to be attachment.
The filename has to be specified.
If either of these is not the case, the call will fail.

Request
POST /cloud/api/v1/forms/TZPXG/attachments HTTP/1.1
Accept-Language: nl-BE
Accept: */*
Content-Type: multipart/mixed; boundary="FJ_q-BfRc-x-Df5menYwHTiu42yOdCXx8pq"; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be

--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=attachment; filename=exampleAttachment.txt
Content-Type: text/plain

hello world
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--
Response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: f65a9ae4-c106-4df6-9eee-c7c4bf508ff4
Location: http://localhost:36421/catalogue/api/v1/forms/TZPXG/attachments/JHQWAXRQB77U
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

{
  "id" : "JHQWAXRQB77U",
  "fileName" : "exampleAttachment.txt",
  "mimeType" : "text/plain",
  "size" : 11,
  "originalSize" : 11,
  "sizes" : { },
  "creationDateTime" : "2024-11-07T10:08:12.941932"
}

3.1.11. Send the form

Sending a e-form is done by exporting the form to the ADR format (XML).
The ADR should be delivered to your communication software (e.g. Hector) or manually converted to an eHealthbox message.

Request
GET /cloud/api/v1/forms/TZPXG/adr HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: e14dad2f-f8a5-4ee3-9fd3-479c47a43c17
Content-Disposition: filename="adr_TZPXG.xml"
Content-Type: application/xml
Keep-Alive: timeout=60

<ADR xmlns="urn:be:healthconnect:adr:1_0">
   <Sender>
      <Quality>DOCTOR</Quality>
      <Identifier>14032237</Identifier>
      <FirstName>Mad</FirstName>
      <LastName>Max</LastName>
   </Sender>
   <Addressee>
      <Quality>HOSPITAL</Quality>
      <Identifier>71030130</Identifier>
      <Name>HealthConnect</Name>
   </Addressee>
   <Subject>Aanvraag medische beeldvorming (bijlage 82)</Subject>
   <Patient>
      <INSS>79070429037</INSS>
   </Patient>
   <Attachment>
      <Content>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48a21laHJtZXNzYWdlIHhtbG5zPSJodHRwOi8vd3d3LmVoZWFsdGguZmdvdi5iZS9zdGFuZGFyZHMva21laHIvc2NoZW1hL3YxIi8+</Content>
      <Name>TZPXG-20241107100813.xml</Name>
      <MimeType>application/xml</MimeType>
      <FunctionalType>EFORMS</FunctionalType>
   </Attachment>
   <Attachment>
      <Content>JVBERi0xLjQKJaqrrK0KNCAwIG9iago8PAovQ3JlYXRvciAoQXBhY2hlIEZPUCBWZXJzaW9uIDEuMCkKL1Byb2R1Y2VyIChBcGFjaGUgRk9QIFZlcnNpb24gMS4wKQovQ3JlYXRpb25EYXRlIChEOjIwMjQxMTA3MTAwODEzKzAxJzAwJykKPj4KZW5kb2JqCjUgMCBvYmoKPDwKICAvTiAzCiAgL0xlbmd0aCAxMiAwIFIKICAvRmlsdGVyIC9GbGF0ZURlY29kZQo+PgpzdHJlYW0KeJydlndUU9kWh8+9N71QkhCKlNBraFICSA29SJEuKjEJEErAkAAiNkRUcERRkaYIMijggKNDkbEiioUBUbHrBBlE1HFwFBuWSWStGd+8ee/Nm98f935rn73P3Wfvfda6AJD8gwXCTFgJgAyhWBTh58WIjYtnYAcBDPA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G4gCjAwMDAwMDkwMTMgMDAwMDAgbiAKMDAwMDAwOTgzNSAwMDAwMCBuIAowMDAwMDAzNzg4IDAwMDAwIG4gCjAwMDAwMDU1MzYgMDAwMDAgbiAKMDAwMDAwNjM3MiAwMDAwMCBuIAowMDAwMDA2MzkzIDAwMDAwIG4gCjAwMDAwMDY0MTMgMDAwMDAgbiAKMDAwMDAwNjQzNCAwMDAwMCBuIAowMDAwMDA2NDU0IDAwMDAwIG4gCjAwMDAwMDc1MTUgMDAwMDAgbiAKMDAwMDAwNzUzNSAwMDAwMCBuIAowMDAwMDA3NzYyIDAwMDAwIG4gCjAwMDAwMDc3ODEgMDAwMDAgbiAKMDAwMDAwOTIzNyAwMDAwMCBuIAowMDAwMDA5MjU4IDAwMDAwIG4gCjAwMDAwMDkzNjUgMDAwMDAgbiAKdHJhaWxlcgo8PAovU2l6ZSAyNAovUm9vdCAyIDAgUgovSW5mbyA0IDAgUgovSUQgWzxGQ0QzMkE2MjhFMTRERDVERTkxNENDNUFGRTAyRkM4NT4gPEZDRDMyQTYyOEUxNERENURFOTE0Q0M1QUZFMDJGQzg1Pl0KPj4Kc3RhcnR4cmVmCjk4ODEKJSVFT0YK</Content>
      <Name>TZPXG-20241107100813.pdf</Name>
      <MimeType>application/pdf</MimeType>
      <FunctionalType>EFORMS-ATTACHMENT</FunctionalType>
   </Attachment>
   <Attachment>
      <Content>aGVsbG8gd29ybGQ=</Content>
      <Name>exampleAttachment.txt</Name>
      <MimeType>text/plain</MimeType>
      <FunctionalType>EFORMS-ATTACHMENT</FunctionalType>
   </Attachment>
   <MetaData>
      <Key>EFORMS_GENERATED_KMEHR</Key>
      <Value>TZPXG-20241107100813.xml</Value>
   </MetaData>
   <MetaData>
      <Key>EFORMS_GENERATED_PDF</Key>
      <Value>TZPXG-20241107100813.pdf</Value>
   </MetaData>
   <MetaData>
      <Key>HC_MESSAGE</Key>
      <Value>HC_EFORMS</Value>
   </MetaData>
   <MetaData>
      <Key>EFORMS_TYPE</Key>
      <Value>MEDICAL-IMAGING-DENTAL</Value>
   </MetaData>
</ADR>
...

3.1.12. Remove the form

After 60 minutes of inactivity, the form is automatically deleted.
This clock will reset every time an API call made by the integrator, or an interaction made by the end user via the web view.
If the integrator can determine that he no longer needs the form instance - all exports are made - we strongly advise actively deleting the form instance.
Once removed, all data related to the form instance is permanently lost.

Request
DELETE /cloud/api/v1/forms/TZPXG HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be
Response
HTTP/1.1 204 No Content
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: 7473e011-7e1a-4329-be3f-0bd0c2e473e1
Keep-Alive: timeout=60

3.2. Advanced tutorials

3.2.1. Exporting the form to other formats

A form supports a number of different export formats.
The list of supported formats can be queried as followed.

Request
GET /cloud/api/v1/forms/TZPXG/formats HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: be2321ba-b6e7-47fc-9f62-ad93fb2b521c
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

[ "transcript", "form-data", "pdf", "adr", "kmehr", "raw" ]

Once a format is selected, the real export can be requested.

Table 4. Export formats

export format

description

adr

the adr.xml sending envelope.
This xml contains all information needed to construct an eHealth message.

kmehr

the KMEHR representation of the form which contains all medical and form specific values.
This is included in the ADR.

pdf

pdf representation of the form.
This is included in the ADR.

form-data

internal form representation, not to be used by integrators.

An export of a supported export format can be requested as follows:

Request
GET /cloud/api/v1/forms/TZPXG/adr HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be

3.2.2. Save and restore a form instance

Form instance exist for a short period of time in our servers.
We try to minimize the time that the instance exist as well as the amount of data attached to it.
It is possible to serialize a form instance to restore it at a later time.
There is no limit on the amount of time that a form can remain serialized.

Request
GET /cloud/api/v1/forms/TZPXG/export HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: 3815391d-9028-4111-b007-e2fad0ada677
Content-Disposition: filename="raw_TZPXG.raw"
Content-Type: application/vnd.healthconnect.eforms.raw.export.v1+txt
Keep-Alive: timeout=60

o+b+Ac/A7EM4YDE0XVA8duL3yHRqpTVJ6QlKUC1VkCJUGXJs1R8IBhz3UTHz7vNaJl1TohJuH0GyCsxAFGCK9Y7TQr16A7Jzdnknemm4gg9NYvZEh2G03bD3qCuz5...

The returned string and content type need to be stored locally.
When the user wants to continue with the form instance, it can be restored easily by executing the following call:

Request
POST /cloud/api/v1/forms/ HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Content-Type: application/vnd.healthconnect.eforms.raw.export.v1+txt; charset=ISO-8859-1
Host: e-forms.be
Content-Length: 128

o+b+Ac/A7EM4YDE0XVA8duL3yHRqpTVJ6QlKUC1VkCJUGXJs1R8IBhz3UTHz7vNaJl1TohJuH0GyCsxAFGCK9Y7TQr16A7Jzdnknemm4gg9NYvZEh2G03bD3qCuz5...
Response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: 5a5f135b-44e7-4f20-a885-a94589adfb31
Location: http://localhost:36421/catalogue/api/v1/forms/TUYU3
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

{
  "formId" : "TUYU3",
  "clientUrl" : "http://localhost:36421/catalogue/resource-provider/form-definitions/MEDICAL-IMAGING-DENTAL/2.19.1/index.html#!/TUYU3?baseUrl=http://localhost:36421/&access_token=eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJadVlTR3BBYWFqRVFYN1EyblA4WVB3IiwiaXNzIjoiaGVhbHRoY29ubmVjdCIsImV4cCI6MTczMDk3NTg5Mywic3ViIjoiMTY2MmU5ZmJlYWZhNmJjZmZlMTFjMzRkZWY4YzcxYjgiLCJhdGkiOiI5MDcyMDA1NS01ZTk3LTRlNTItYWU5MC00NTVkNWY1Nzg5MWEiLCJmb3JtSWQiOiJUVVlVMyIsImludGVncmF0b3IiOnsiaWQiOiJlZm9ybXNfY2xvdWQiLCJ2ZXJzaW9uIjoidW5rbm93biJ9LCJzY29wZSI6WyJST0xFX0VGQ19ERVJJVkVEX1RPS0VOIl19.C6pgrW_aUlSUH8wt-fiCDSSvzpq7N45RZ1jD0gFXyEPolQXPZHG4_uX5_JNJJJ2smds1rV_tROQN5QdCyY38Rwa15WsLkvKlXKFHmPsougLpKsMjLt69QBpTYbhP6YTg915DVysSYJLHgHGykNU86r_lNoDkiUnO6LEU0AMdAgqs69glkan1hk31SNau-axZp00EtiSNW6BGvXD6-bS1V7BKn5hQ_J5J75zv5Eazbbx0gMz5ybi8ziUqUYu0Y69F290xKY46GCAMrRohZfHjjJUMXTxy6YzNcNBXcMbedKNdJ4U6Q2J8jxKfOhCXUUE5iv_6a8O8IsdoygzWIzk78w"
}

3.2.3. Fetch a single form definition

It is possible to fetch a single form definition.
This is usually done to retrieve the current version number of the form definition.

Request
GET /catalogue/api/v1/form-definitions/MEDICAL-IMAGING-DENTAL HTTP/1.1
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept-Language: nl-BE
Accept: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Host: e-forms.be
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Correlation-Id: a6749a0c-9135-437a-8714-f83cf968ef70
Content-Type: application/json;charset=UTF-8
Keep-Alive: timeout=60

[ {
  "id" : {
    "name" : "MEDICAL-IMAGING-DENTAL",
    "version" : "2.19.1"
  },
  "label" : "Aanvraag medische beeldvorming (bijlage 82)",
  "description" : "Aanvraag medische beeldvorming (bijlage 82)",
  "functionalConfiguration" : {
    "documentType" : "LETTER",
    "lifespan" : "SEND_ONE_TIME",
    "canModifySender" : true,
    "canModifyRecipients" : false,
    "canModifyAttachments" : true,
    "containsRecipients" : true,
    "supportsDataSet" : false,
    "supportsExport" : true,
    "supportedDataSets" : [ "application/vnd.healthconnect.eforms.kmehr.integrator.v1+xml" ],
    "authenticData" : [ ],
    "targetAttachmentsSize" : 9437184,
    "maxAttachmentsCount" : 10,
    "minAttachmentsCount" : 0
  },
  "exportConfiguration" : {
    "documentFormats" : [ "A4" ],
    "defaultDocumentFormat" : "A4",
    "availableFormats" : [ "transcript", "pdf", "form-data", "raw", "kmehr", "adr" ]
  }
} ]

3.2.4. Searching for recipients

The recipient of an e-form can be any caregiver with a valid ETK.
However, a service is provided to allow searching for caregivers :

Request
GET https://acc.healthconnect.be/reporting-ws/spring-rs/contact/search HTTP/1.1
Accept-Encoding: gzip,deflate
criteria: john
maxResults: 5
Host: acc.healthconnect.be
Table 5. Query Parameters
Field Description

criteria

the string to search for in the caregiverlist.
Search is done on name, lastname, firstname, identifier and quality.

maxResults

the maximum results to return in the searchresult

Response
[
  {
  "uuid": "d45df7ae-010c-4224-b862-f89731b12122",
  "firstName": "John",
  "lastName": "Doe",
  "name": null,
  "isPerson": true,
  "address":       {
     "addressType": "PRACTICE",
     "id": 516,
     "email": "my.email@gmail.com",
     "city": "Vilvoorde",
     "street": "Luchthavenlaan",
     "postalcode": "1800",
     "streetbox": "B",
     "streetnumber": "25",
     "country": "België",
     "fax": null,
     "phone": "0544445456"
  },
  "parents": [],
  "displayName": "John Doe (Dentist - 39015378)",
  "profile":       {
     "internalId": 1083,
     "identifier": "39015378",
     "type": "EHEALTH",
     "quality": "DENTIST",
     "eHealthConfiguration":          {
        "etkEnabled": true,
        "applicationId": "",
        "eHealthCertificateExpirationDate": 1502373000000,
        "etkIdentifierType": "NIHII",
        "ehBoxIdentifierType": "NIHII"
     },
     "mexiConfiguration": null,
     "translations":          [
                    {
           "locale": "nl",
           "value": "Tandarts"
        },
                    {
           "locale": "fr",
           "value": "Dentiste"
        },
                    {
           "locale": "en",
           "value": "Dentist"
        }
     ]
  }
...
Table 6. Respone to Contact mapping
Response Field Description Contact Mapping

firstName

The firstname of the contact

firstName

lastName

The lastname of the caregiver

lastName

name

The name of the contact, only organisations or departments have a name

name

profile.quality

The quality of the contact

identifier.quality

profile.identifier

The ehealthbox identifier of the contact

identifier.identifier

So the above response results in the following

POST /cloud/api/v1/forms/AtHXc/recipients HTTP/1.1
Accept-Language: nl-BE
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzE5MDAy...
Accept: application/json;charset=UTF-8
Content-Type: application/json;charset=UTF-8
{
  "firstName": "John",
  "lastName": "Doe",
  "identifier": {
    "identifier": "14032237",
    "quality": "DOCTOR"
  }
}