Stream: implementers
Topic: Observation Resource
Lakshmi Thrivarna (Sep 26 2018 at 10:08):
Hi all,
We created many profiles using Observation resource just changing category(like vitalsigns, social history, etc..) and codes. We are not changing any structure. Should we create so many java objects at server side or we can use observation? How to handle this?
Thank you.
Lloyd McKenzie (Sep 26 2018 at 16:06):
We're working on a solution to that problem where we'd combine a smaller number of profiles with a simple catalog that sets values for things like Observation.code and value units of measure. However, that's not done yet. For now, you can either create a lot of profiles or create a small number of profiles and add extra custom logic that defines the details.
Lakshmi Bhamidipati (Aug 19 2019 at 21:02):
We are implementing a FHIR server where the logical ID of the resource is a GUID that correlates a record in our EHR database. For example, the id of an AllergyIntolerance resource will be the ID of a patient allergy record in our table. However, I am not sure how to implement GET [base]/Observation/{id} because the data for an observation resource is from different tables depending on the category type or code. To implement GET with search parameters, GET [base]/Observation?patient=[id]&category=vital-signs , I can go to the table has the vital signs data and get the ID of the resource. However, when implementing the route to get a resource by ID, how do I go about it? Thank you.
Michele Mottini (Aug 19 2019 at 21:34):
Instead of using the straight GUID as the FHIR logical ID use a prefixed version, where the prefix indicates the table - eg 1.<GUID> is the FHIR id of a vital sign, 2.<GUID> is a lab etc.
Michele Mottini (Aug 19 2019 at 21:34):
(we do this in our server where we have that exact same problem)
Lakshmi Bhamidipati (Aug 20 2019 at 01:11):
Thank you @Michele Mottini . That should work for us too.
Last updated: Apr 12 2022 at 19:14 UTC