0

This link talks about how to write Vital information to FHIR database. Write Vital on Smart on FHIR

As we are demonstrating our data collection capabilities we find that we get a large amount of database making our graphs look cluttered.

How do we delete a particular observation, a set of observations or all the observations for a given patient ID and LOINC code?

Community
  • 1
  • 1
SC-SL
  • 377
  • 3
  • 19

1 Answers1

0

Deletions are only handled on a resource by resource basis. There's no ability to delete by "query". So you'd have to do a query, find all the ids, then send requests to delete each record. (Though you could do so using batch.) Instructions for delete are here: http://build.fhir.org/http.html#delete

Lloyd McKenzie
  • 6,345
  • 1
  • 13
  • 10
  • You could use the conditional delete described in the instructions to delete multiple resources, if the server allows that. – Mirjam Baltus Mar 21 '17 at 09:50