Get a template
Retrieves the ADL 1.4 operational template (OPT) identified by template_id identifier.
Note that this can return either the original (canonical) XML based OPT format (if called with the Accept: application/xml request header), as well as the simplified JSON-based “web template” format (if called with the Accept: application/openehr.wt+json request header). For more details see the data representation specification.
- Type: stringtemplate
_id requiredTemplate identifier.
- Type: stringenumAcceptrequired
Header to indicate the expected response format.
values- application/json
- application/xml
- text/plain
- application/openehr
.wt+json
- 400
400 Bad Requestis returned when the request has invalidtemplate_id(i.e. an incorrectly formattedtemplate_id). - 404
404 Not Foundis returned when a template with the specifiedtemplate_iddoes not exist. - 406
406 Not Acceptableis returned when the service cannot produce a response matchingAcceptrequest header, i.e. content type or format is not supported.
curl 'https://cataniamc.prod.cadasto.com/v1/definition/template/adl1.4/Vital Signs' \
--header 'Accept: application/json'
<template xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.openehr.org/v1">
<language>
<terminology_id>
<value>ISO_639-1</value>
</terminology_id>
<code_string>en</code_string>
</language>
<description>
<original_author id="Original Author">Not Specified</original_author>
<lifecycle_state>Initial</lifecycle_state>
<other_details id="MetaDataSet:Sample Set ">Template metadata sample set</other_details>
<other_details id="Acknowledgements"></other_details>
<other_details id="Business Process Level"></other_details>
<other_details id="Care setting"></other_details>
<other_details id="Client group"></other_details>
<other_details id="Clinical Record Element"></other_details>
<other_details id="Copyright"></other_details>
<other_details id="Issues"></other_details>
<other_details id="Owner"></other_details>
<other_details id="Sign off"></other_details>
<other_details id="Speciality"></other_details>
<other_details id="User roles"></other_details>
<details>
<language>
<terminology_id>
<value>ISO_639-1</value>
</terminology_id>
<code_string>en</code_string>
</language>
<purpose>Not Specified</purpose>
</details>
</description>
<uid>
<value>b4d7f203-b329-4e89-a58a-c605b19e94de</value>
</uid>
<template_id>
<value>Vital Signs</value>
</template_id>
<concept>Vital Signs</concept>
<definition>
<rm_type_name>COMPOSITION</rm_type_name>
<occurrences>
<lower_included>true</lower_included>
<upper_included>true</upper_included>
<lower_unbounded>false</lower_unbounded>
<upper_unbounded>false</upper_unbounded>
<lower>1</lower>
<upper>1</upper>
</occurrences>
<node_id>at0000</node_id>
...