Have a bit of code that looks like this:
Reference ref = new Reference();
Organization organisation = (Organization) bundle.getEntry().get(0).getResource();
ref.setReference("Organization/"+organisation.getId());
patient.setManagingOrganization(ref);
Originally this would create a reference like:
<managingOrganization>
<reference value="Organization/32859"/>
</managingOrganization>
But now it's returning this (when converted to XML)
<managingOrganization>
</managingOrganization>
Is this new behaviour?? I'm still investigating but the getId() appears to return the correct resource Id, so I'd suspect it's something to do with setting the reference.
Server is not configured to use external references.
"issue": [
{
"severity": "error",
"code": "processing",
}
]