FHIR Chat · How to validate FHIR Resource is Updated or not. · implementers

Stream: implementers

Topic: How to validate FHIR Resource is Updated or not.


view this post on Zulip Karimulla (Nov 22 2017 at 06:18):

Hi,

I have some of Resource in local data base which are got from server.
I am displaying those Resource in View. If user come again to this view instead of getting again Resources from server I want show data from local database data. But I want to check is there any api end point in FHIR to check whether thisResources are updated or not?

Example: I am getting List of AllergyIntolerance resources of selected patient and displayed in app view. Saved those response in local database.
Whenever user returns to the view again instead of getting Resource from server I want to show data from local Database. But I want to verify those allergy intolerance resources are updated or not?

Can you please help me for check FHIR resource object Updated or not with server?

Thank you in Advance.

view this post on Zulip Ben Spencer (Nov 22 2017 at 06:30):

https://www.hl7.org/fhir/http.html#cread

view this post on Zulip Karimulla (Nov 22 2017 at 06:43):

Thank you @Ben Spencer .

Do I need to send. If-Modified-Since in header as value last modified date?
Right?

view this post on Zulip Ben Spencer (Nov 22 2017 at 06:44):

yes, the latest value you have locally for the resource

view this post on Zulip Karimulla (Nov 22 2017 at 06:46):

I need to send the resource value in Time intervals or as String?

view this post on Zulip Ben Spencer (Nov 22 2017 at 06:56):

it's an http formatted date: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since

view this post on Zulip Karimulla (Nov 22 2017 at 07:00):

Thank you @Ben Spencer .

I have one more doubt, as I told in my Scenario example for getting Allergy Intolerance Resources. Do I need to make a request for each resource or is there any way to get updated info of all resource in single Request?

view this post on Zulip Ben Spencer (Nov 22 2017 at 07:01):

I think you can send a batch request

view this post on Zulip Karimulla (Nov 22 2017 at 07:05):

Currently I am using http://fhirtest.uhn.ca/baseDstu3/ server for testing purpose.

Is this (http://fhirtest.uhn.ca/baseDstu3/) server supports Conditional Read features?

view this post on Zulip Vadim Peretokin (Nov 22 2017 at 08:34):

Well, check its capability statement! That's what it's there for :)

http://fhirtest.uhn.ca/baseDstu3/metadata does not mention support for conditionalRead

view this post on Zulip Karimulla (Nov 22 2017 at 08:45):

Thank you @Vadim Peretokin


Last updated: Apr 12 2022 at 19:14 UTC