Medplum is rejecting document type bundles
# support
a
Hello everyone! I need some help. I'm trying to send a document bundle, but I'm getting an error. I'm pasting the bundle I'm trying to send as an attachment to the post. The message I'm getting is the following: { "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Unrecognized bundle type: document" } } ], "extension": [ { "url": "https://medplum.com/fhir/StructureDefinition/tracing", "extension": [ { "url": "requestId", "valueId": "852b95d0-73e7-4f5a-93fe-55a0ffc9dda7" }, { "url": "traceId", "valueId": "65c3dd7e-264a-483e-a25b-39f8a05fd47a" } ] } ] } Can anyone help me? It's important for the project I'm working on. Thank you! https://cdn.discordapp.com/attachments/1408104026582810634/1408104027677266061/message.txt?ex=68a88691&is=68a73511&hm=fd1887e6ba13da1e1ef3952976a8ab9a21f37e263f0558e92e2b71c5c5cfe678&
f
Hi @Adriano Freitas , at the moment, Medplum only supports the Bundle types of
transaction
and
batch
You should be able to achieve your desired behavior with a batch or transaction
a
Thank you so much for the quick response, @finnbergquist ! It's a shame Medplum doesn't support the Document type. What I really needed was to store the complete Bundle. The transaction type is unpacking the resources, but it's not storing the sent bundle.
I hadn't thought of that, but it seems like a good idea! In this case, when I generate a bundle, should I include another Provenance-type resource in the entry, referencing all the resources in the bundle? Would that be the idea?
f
Yea, exactly. If the goal is to have some record of everything that was processed in that Bundle, that would be a good fit.
a
Dude, thanks a lot @finnbergquist ! I'll try to develop a template that's as generic as possible, because we're receiving these bundles from another institution. Thanks a lot! I'll let you know if I have any questions.
114 Views