FHIR Chat · hapi-fhir-plain-server · hapi

Stream: hapi

Topic: hapi-fhir-plain-server


view this post on Zulip Jeannie Huang (Mar 20 2021 at 20:12):

Hi all,

I'm using HAPI FHIR Plain server for my project. I wish to define a RespRate resource provider so that my FHIR clients can access resp rate data by visiting the http://localhost:8080/RespRate endpoint, but I'm not sure how to do this with the given tutorial on Profiles and Extensions within Hapi FHIR: https://hapifhir.io/hapi-fhir/docs/model/profiles_and_extensions.html. I'm using the starter code @ https://github.com/FirelyTeam/fhirstarters/tree/master/java/hapi-fhirstarters-simple-server.

I have a lot of metrics that fit within the Observation resource type so I need to distinguish them somehow. And should I be doing something with Structure Definitions too?

view this post on Zulip James Agnew (Mar 21 2021 at 13:34):

There is no RespRate resource in FHIR, respiratory rate is modeled as an Observation resource with a specific Observation.code value indicating that an Observation is a respiratory rate.

So essentially you are creating a resource provider to serve Observation and then giving it a search parameter on the code to let people specifically ask for that kind of observation.


Last updated: Apr 12 2022 at 19:14 UTC