String auditServerRootUri = new StringBuilder()
.append("https://")
.append(serverProperties.getHost())
.append(":")
.append(serverProperties.getPort())
.append("/fhir")
.toString();
client = ctx.newRestfulGenericClient(auditServerRootUri); Then i create a transaction bundle with an AuditEvent and i sent it to the server
public void testFhir(AuditEvent event) {
Bundle bundle = new Bundle();
bundle.setType(Bundle.BundleType.TRANSACTION);
bundle.addEntry()
.setResource(event)
.getRequest()
.setUrl("AuditEvent")
.setMethod(Bundle.HTTPVerb.POST);
client.transaction().withBundle(bundle).execute();
}
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/0455a459-d9ca-4b7b-82be-5273d5667616n%40googlegroups.com.