Closed pandalec closed 3 years ago
Hi @parsifallo,
this is the expected behaviour. The two entries in the Bundle are two different resources, with two different profiles. The Task.identifier is implemented as Array, but the Bundle.identifier is implemented as single field.
We recommend to use some kind of class hierarchy in object oriented programming languages. Like Resource as base class and Task and Bundle derived from Resource. In non object oriented programming languages you can use some kind of enumeration or union with Task and Bundle as enum/union variants.
Best regards, gematik Dev-Team.
Ok, thank you for clarifying!
Hi!
Attached is a JSON response from "Quittung erneut abrufen (get receipt)". Problem is that it is quite hard to deserialize the response because
identifier
is once aList<Identifier>
and once an objectIdentifier
.First appearance:
entry.resource[0].identifier
:Second:
entry.resource[1].identifier
:Is this wanted or could this be a problem with the implementation? Otherwise it is not trivial to deserialize this JSON answer, at least in Java or C#.
BR parsi
GetReceipt_Response_2021-04-15_10-58-40.txt