On 04/07/2018 22:49, Pablo Pazos wrote:
Hi all,

Recently a client committed COMPOSITIONS with empty content to the EHRServer, because in the OPT all the structure was associated to context.other_context.

After reviewing the specs, I found this invariant on the COMPOSITION spec:

Content_valid: content /= Void implies not content.is_empty

That means that content can actually be null/void, since on that case, the "implies" is true.

this is indeed what the spec says.

Also checked the COMPOSITION XSD, and the minOccurs for content is 0.

Does it make sense to have an empty COMPOSITION.content?
Does other implementers support that?

This is certainly the way to decide whether Void is allowed or not.

- thomas

_______________________________________________
openEHR-technical mailing list
openEHR-technical@lists.openehr.org
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to