Correct subscription read before send

This commit is contained in:
James Agnew 2018-02-15 17:38:29 -05:00
parent 8ea527fa76
commit 2847edd04a
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public abstract class BaseSubscriptionDeliverySubscriber extends BaseSubscriptio
// useful for resources created in a transaction, since they
// can have placeholder IDs in them.
IIdType payloadId = msg.getPayloadId(getContext());
Class type = Class.forName(payloadId.getResourceType());
Class type = getContext().getResourceDefinition(payloadId.getResourceType()).getImplementingClass();
IFhirResourceDao dao = getSubscriptionDao().getDao(type);
IBaseResource loadedPayload = dao.read(payloadId);
msg.setPayload(getContext(), loadedPayload);