gematik / ePA-XDS-Document

Resources for electronic health record, XDS Document Service for document and MIO related use cases.
Apache License 2.0
3 stars 1 forks source link

Add `assignment` property to `DenyPolicyAssignmentResponseType` #17

Closed alisianoi closed 1 month ago

alisianoi commented 3 months ago

The DenyPolicyAssignmentResponseType communicates back to the user one of the three possible variants of DenyPolicyAssignmentType together with a unique id assigned by the server. The specification says to destructure the fields of the DenyPolicyAssignmentType into the response. In other words, those fields which are found in the subclasses of DenyPolicyAssignmentType must be placed directly into the DenyPolicyAssignmentResponseType instance.

This approach will work for dynamically typed languages but it definitely does not work for the statically typed ones. In a statically typed language, the compiler needs to know the fields of DenyPolicyAssignmentResponseType at compile time, i.e. those fields must be specified. If those fields are not specified, then the specification in its current form cannot be used for code generation.

Adding an assignment property makes automated code generation possible.

DanielVortmann commented 1 month ago

Change was rejected after review (currently not necessary)