Creating resources in the Medplum application from...
# support
t
Is it possible to create resources with JSON? For instance, if we stored specific
AccessPolicy
configurations as JSON and wanted to initially create them by pasting into the Medplum backend? I understand you can edit the JSON of an existing resource, I'm wondering specifically about creation. Would we use the batch functionality for this?
r
Hi @taylorqj , you can definitely create a resource from a JSON blob using the API. If you want to do it through the medplum UI, you would have a couple of choices: 1. You could create the resource as empty, and then copy your data into the JSON tab 2. You could use the
Batch
functionality for the functionality. You can create a FHIR bundle, and then upload it using the
Batch
link in your medplum sidebar https://www.hl7.org/fhir/bundle.html#transaction
t
Great thank you!
160 Views