FHIR Chat · Retrieve the latest DiagnosticReports · implementers

Stream: implementers

Topic: Retrieve the latest DiagnosticReports


view this post on Zulip Santosh Jami (Sep 02 2017 at 22:08):

Hi,

I am getting results (ORU) from LIS.
Am converting them to DiagnosticReports resource and posting to FHIR server.
Also am posting the Patient / DiagnosticReport / Practitioner as Collection Bundle.

Suppose there are 2 DiagnosticReports that came back from LIS, so my bundle has the following entries:
Patient
DiagnosticReport
DiagnosticReport
Practitioner

And now if there is a Corrected Result that came back from LIS, I will post another set of DiagnosticReports and Bundle to the FHIR server.

Now my use case is to retrieve all the latest DiagnosticReport of that Patient.
How do I get the latest set of DiagnosticReports?

My planned approach: Search the Diagnostic Report based on subject (PatientId) and order by timestamp desc.
Navigate to the bundle associated with this DiagnosticReport search result and retrieve all other DiagnosticReports present in that bundle.
I am unable to navigate to the bundle from the DiagnosticReport that came back in the search, how do I do this?

If there is different approach as well for the use case I am referring to, please pass the suggestion.
Looks like a very standard Use case for me, so multiple folks must have achieved this I believe.

Thanks
Santosh Jami

view this post on Zulip Lloyd McKenzie (Sep 02 2017 at 23:39):

Well, if the corrected DiagnosticReport has the same "id" as the original, it can be sent as an update. Meaning that after you've posted all 3, when you query, you'll only see two - DiagnosticReport1 and updated DiagnosticReport2. That's the "proper" way to submit and minimizes any confusion. If you don't have a way of tracking whether a DiagnosticReport might have previously been delivered, you can also do a conditional update and a conditional create.

view this post on Zulip Eric Haas (Sep 03 2017 at 00:48):

We are looking at the LastN operation to get the lastN for Observation at the upcoming connectathon and one of our oustanding questions is whether should do this for DR as well.

view this post on Zulip Jayashree Surnar (Sep 04 2017 at 06:33):

what is LIS here?

view this post on Zulip Eric Haas (Sep 04 2017 at 06:34):

laboratory information system

view this post on Zulip Jayashree Surnar (Sep 04 2017 at 09:17):

tnq @Eric Haas

view this post on Zulip Santosh Jami (Sep 05 2017 at 20:46):

Thanks @Lloyd McKenzie for your suggestions. Responding late after the long weekend.
I started using the logical id and posting updates. This works as expected.

view this post on Zulip Santosh Jami (Sep 05 2017 at 20:47):

@Eric Haas - having such LastNOperation for DR would be very beneficial for the use case I am working on.


Last updated: Apr 12 2022 at 19:14 UTC