We're updating the issue view to help you get more done. 

For create compositions on the server, add error if referenced template do not exist on the server

Description

Ref: https://specifications.openehr.org/releases/ITS-REST/Release-1.0.0/ehr.html#composition-composition-post

A committed COMPOSITION references a template_id, the template should exist in the server before the commit to accept the commit.

Check the template exists, and return HTTP Status Code 400 Bad Request if the template doesn't exists.

Environment

None

Status

Reporter

Pablo Pazos

Labels

Components

Priority

Major