FHIR Chat · Searching by Extension value · hapi

Stream: hapi

Topic: Searching by Extension value


view this post on Zulip Andrew Broadbent (Dec 09 2016 at 13:46):

Hi I'm wondering if anyone can give me some advice on searching for resources via their extension values. To cut a long story short, all of my data is based on Basic, all of the data conforms to custom profiles I have created on Basic, and all of the data has 'custom' properties, which I've implemented by adding extensions to the profiles. My question is, what are all of the steps to allow me to search through Basic and filter my result based on the value of an extension? My data will live within an instance of the HAPI server

As an example; Suppose I have a profile defined for capturing Speed trap data. The data required is vehicle reg (String), and speed (Decimal). I want to search for all Basic resources which have a _profile or 'SpeedTrap' and a speed of over 30.0. p.s. This is just an example for clarity, I'm not actually capturing speed data.

My resources look something like this:
-Basic
-Extension[..../VehicleReg]
-valueString: "VXH88GH"
-Extension[..../Speed]
-valueDecimal: 31.0

In the implementer stream someone mentioned that I need to create a searchParameter for speed, so I've looked into doing that and think I have created something valid. They also mentioned something about conformance rules.

Could someone either give me (or link me to) a step by step of how to do this in HAPI?

view this post on Zulip Grahame Grieve (Dec 09 2016 at 18:56):

you sure these things aren't just observations?

view this post on Zulip James Agnew (Dec 09 2016 at 21:35):

Are you using HAPI's JPA module, or just the plain HAPI server module?


Last updated: Apr 12 2022 at 19:14 UTC