...
All the cases presented here can be seen as an example in this POSTMAN collection.
Forget me
When Patients want to remove their data from our system, we are NOT going to DELETE the registry from our databases. The main goal in these cases is to preserve the analytics information but remove sensitive data or data which can identify the patient. So, to do that, we will update the patient data leaving empty information like name, surname, or telecom, and of course, we will set active=false to indicate this patient is not active.
NoCache
The HAPI FHIR server has a configured cache of 1 minute when the same GET requests are made. That is , if the same resource is queried twice in less than a minute and this resource changes between both queries, the second query will show the same information as the first query, which is not ideal.
...
Code Block |
---|
Cache-Control: no-cache |
Patch
PUT requests in HAPI FHIR to update a resource require all the information of this resource in the payload.
That is, if we only want to modify the name of a patient, the payload to be sent will be all the patient's information modifying only the name. If only the name is sent, the rest of the patient's data will be deleted.
To send only the name, we must use the resource PATCH. You can see in postman an example in patient and also in QuestionnaireResponse.
Last Record for a resource
...