Created
December 6, 2018 15:34
-
-
Save KevinMayfield/72de3e3d7975f0d1876337d7b8811721 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bundle bundle = new Bundle(); | |
bundle.addEntry().setResource(doc).setFullUrl("urn:uuid:"+doc.getId()); | |
bundle.addEntry().setResource(binary).setFullUrl("urn:uuid:"+binary.getId()); | |
bundle.setType(Bundle.BundleType.COLLECTION); | |
System.out.println(FhirContext.forDstu3().newJsonParser().setPrettyPrint(true).encodeResourceToString(bundle)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment