FHIR Chat · Question on operations · implementers

Stream: implementers

Topic: Question on operations


view this post on Zulip Eric Haas (Oct 23 2017 at 03:42):

I created GF#14076 because I needs some clarity after creating several operations and reviewing the specification. In a nutshell can you mix and match standard search parameters with the operation's parameter to filter etc? e.g:

Using GET

GET [base]/Observation/$stats?[stats-parameters]&status:not=entered-in-error

GET [base]/Appointment/$find?[find-parameters]&_count=3

Using POST

POST[base]/Observation/$stats?status:not=entered-in-error
{payload}

POST [base]/Appointment/$find?_count=3
{payload}

Are all of these valid?

view this post on Zulip Lloyd McKenzie (Oct 23 2017 at 14:07):

No. The only parameters allowed for an operation are those defined for the operation. Standard search parameters don't apply.

view this post on Zulip Eric Haas (Oct 23 2017 at 18:27):

Hmmm see lastN Query...

1) GET [base]/Observation/$lastn?max=3&patient=Patient/123&category=vital-signs


2) GET [base]/Observation/$lastn?patient=Patient/123&category=laboratory


3) GET [base]/Observation/$lastn?max=3&patient=Patient/123&category=vital-signs&code=9279-1,8867-4,85354-9

view this post on Zulip Grahame Grieve (Oct 23 2017 at 19:45):

lastN is special because it says that it takes search parameters. The other operations don't

view this post on Zulip Eric Haas (Oct 23 2017 at 19:51):

OK so in general 1) you can define the FHIR search parameters you support in your operations ( e.g. _count) or 2) if nothing said in OperationDefintion then only the parameters that you define in the operation?

view this post on Zulip Grahame Grieve (Oct 23 2017 at 19:52):

well, servers can always support whatever parameters they like, but in general, search parameters aren't automatically available in operations

view this post on Zulip Eric Haas (Oct 23 2017 at 19:57):

OK

view this post on Zulip Salvador Rodriguez (Oct 23 2017 at 21:01):

Hello everybody,

I would really apreciate if you could help to figure out how to retrieve RelatedPerson observations. I am working on a bilirubin application, that collects the observations from the baby, but I would like also to collect some observations from the mother.

I wonder if there is a FHIR query that could also return mother's observations within the context of the baby.

Thank you

view this post on Zulip Grahame Grieve (Oct 23 2017 at 21:02):

so we assume that the mother and baby are linked by Patient.contact on the baby?

view this post on Zulip Salvador Rodriguez (Oct 23 2017 at 21:14):

@Grahame Grieve No, we do not assume that. In fact the implementation that we use does not support that. We can get a RelatedPerson then navigate to the mother, but would like a simpler way to access the mother's data using the access that we have for the baby

view this post on Zulip Grahame Grieve (Oct 23 2017 at 21:16):

hm I guess we should follow http://hl7.org/fhir/patient.html#maternity

view this post on Zulip Salvador Rodriguez (Oct 23 2017 at 21:19):

@Grahame Grieve This is great, thank you!

view this post on Zulip Grahame Grieve (Oct 23 2017 at 21:25):

np

view this post on Zulip Ramandeep kaur kalra (Oct 24 2017 at 00:39):

Hi Everyone, I am using HAPI Fhir API and want to change the description of an error that is being returned. I have used @Search annotation which returns the "Invalid request: <ErrorMessage>" if wrong number of arguments are passed in the search. Is there any way I can change that error message text ?
Thanks
Ramandeep

view this post on Zulip Lloyd McKenzie (Oct 24 2017 at 01:21):

You might want to raise the question on the HAPI stream


Last updated: Apr 12 2022 at 19:14 UTC