FHIR Chat · server-wide operations · implementers

Stream: implementers

Topic: server-wide operations


view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:02):

Hi. Can we specify an operation that impacts several resource types?

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:03):

i assume so, from the documentation. The goal is to handle barcodes. I want to say "$decode-barcode?string=123123123" and the server will apply that to devices, medications, etc. and return the resource that actually matches the decoded content.

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:04):

is that possible?

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:05):

the actual url for that would be what?
[base]$decode-barcode?string=123123123
?

view this post on Zulip Lloyd McKenzie (Oct 10 2017 at 11:08):

That would work, though for that use-case, you could also just do a cross-resource search - [base]?identifier=123123123

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:09):

yesm that was first thought But that depends on each resource having an identifier that matches the barcode as it is read

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:10):

which brings challenges like checkdigit present or absent...

view this post on Zulip Lloyd McKenzie (Oct 10 2017 at 11:16):

If the standard identifier matching rules wouldn't apply, then yes, operation is your best bet

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:16):

operation seems also suitable for another use case which is "i scanned this and I don't want to know what this is - just decide where you want to forward this to."

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:17):

identifiers would pose some operational dependencies, so operation seems a safer bet.

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 11:51):

Waht if the operation fails? e.g. if the check digits dont match, or part of thecontent is not correct...
Error code is 400, right?

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 12:22):

Can an operation return a resource outside of a bundle? Or it must be always inside a bundle?

view this post on Zulip Christiaan Knaap (Oct 10 2017 at 13:13):

Any FHIR operation can return at most 1 resource. That can be a Bundle or any of the other resource types, including OperationOutcome.

view this post on Zulip Jose Costa Teixeira (Oct 10 2017 at 13:39):

Thanks!

view this post on Zulip Lloyd McKenzie (Oct 10 2017 at 18:38):

If all you're passing in is an identifier, what would be the point of forwarding it?


Last updated: Apr 12 2022 at 19:14 UTC