tidepool-platform-client
Advanced tools
Comparing version 0.62.0-web-3272-patient-data-linking-after-creation.1 to 0.62.0-web-3400-strip-clinic-patient-update-fields.1
@@ -307,5 +307,25 @@ 'use strict'; | ||
common.assertArgumentsSize(4); | ||
// Explicitly omit any fields that are never expected to be updated from frontend clients. | ||
// Note that some fields that we don't provide a means to update are still sent along if they don't | ||
// implement `omitEmpty` when being written to the database, as they would otherwise be deleted. | ||
const patientUpdate = _.omit(patient, [ | ||
'clinicId', | ||
'createdTime', | ||
'ehrSubscriptions', | ||
'id', | ||
'isMigrated', | ||
'legacyClinicianIds', | ||
'invitedBy', | ||
'lastUploadReminderTime', | ||
'permissions', | ||
'reviews', | ||
'summary', | ||
'updatedTime', | ||
'userId', | ||
]); | ||
common.doPutWithToken( | ||
`/v1/clinics/${clinicId}/patients/${patientId}`, | ||
patient, | ||
patientUpdate, | ||
{ 200: function(res){ return res.body; } }, | ||
@@ -312,0 +332,0 @@ cb |
@@ -7,3 +7,3 @@ { | ||
"packageManager": "yarn@3.6.4", | ||
"version": "0.62.0-web-3272-patient-data-linking-after-creation.1", | ||
"version": "0.62.0-web-3400-strip-clinic-patient-update-fields.1", | ||
"description": "Client-side library to interact with the Tidepool platform", | ||
@@ -10,0 +10,0 @@ "main": "tidepool.js", |
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
2348678
12492