Stream: implementers
Topic: Overriding usage of a resource that is in the resource list
Odd A. S. Dahl (Sep 06 2016 at 13:25):
We are implementing a service where you can query for critical information, either for a given timeframe (lastupdated) or for a given patient. we've chosen to use the Flag resource, since no specific resource object existed for this data . We are going to support two types queries; Flag?_lastupdated=date and Flag?patient=123. What is the best way to identify that this is critical information, not just an ordinary Flag object?
Would the Operations parameter be a good way to define this, and if so, is using both a search and an operation in the same GET query supported?
Lloyd McKenzie (Sep 06 2016 at 14:40):
@Odd A. S. Dahl Flag always represents "important" information - specifically long-standing information. So it wouldn't necessarily be used for a 1-time critical lab value, but it would be used for a severe latex allergy. It would also be used to indicate less critical but still important things such as "patient is pregnant". One of the challenges with returning "critical" information is the question of "critical to whom?" - what a GP, nurse, pharmacist psychiatrist or dentist would deem "critical" would all differ.
Odd A. S. Dahl (Sep 07 2016 at 13:35):
@Lloyd McKenzie We get the critical information from the EPJ system database, so it is up to them to present the information that is deemed critical. We also use classification codes to (coding: system/code) to organize the information so that the consumers can filter on what they are interested in.
Is it valid to use an Operation as a part of a search query? E.g. Flag?_lastUpdated=%3E2016-08-22T13:51:58&_lastUpdated=%3C2016-08-31T13:52:04$operationname?
Lloyd McKenzie (Sep 07 2016 at 19:39):
Hi @Odd A. S. Dahl, operation invocations aren't actually queries, but they can work similarly, depending on what parameters you need to pass them. So you'd be able to do this:
[base]/Flag/$operationname?_lastUpdated=ge2016-08-22T13:51:58&_lastUpdated=le2016-08-31T13:52:04
There's more information on operations here: http://hl7.org/fhir/operations.html
That said, that's a pretty tight time-window . . . :)
Last updated: Apr 12 2022 at 19:14 UTC