Kanker.nl - Caremaps API Example

Here you can find the required POC API library to display Caremap information within custom pages.




Introduction


Select one of the following code examples to include it within your page:

Production:

Acceptance: *: This uses the script from acceptance, and a local development environment as the content endpoint. You can mix and match these, but be aware that acceptance is behind a basic authentication login. This means you will need to authenticate first. Also, acceptance doesn't work well, if at all, as a content endpoint.

Next you can display the content summary of an entire caremap by adding the following script:

You can also display a single section of a caremap if you know the UUID. For this, an extra function is available:

You need a valid Caremap UUID for the above script tag that has been inserted. he UUID: 2d7debeb-fab2-41bb-a02f-01999e780d0e defines the Caremap to fetch.

The second argument, #knl-caremaps, defines the location where the result will be displayed. We insert this element in the following step;

You can place the API result within your document by simple adding the following element within the preferred DOM location.

Complete code

Result (all sections of the caremap )

Result (single caremap section)