🔧
Changelog
Flutter
React Native
MeasurementCreationData.fromCameraSdk
is now taking aMap<String, dynamic>
instead of aString
. It's to follow the update from theflutter-camera-sdk
.
- Method to get the
GeneralConfiguration &
UserConfiguration
. - Method to update the
UserConfiguration
. - Method
getMostSevereLabel()
on the measurement.
- Updated the method
updateProfile(ProfileData updateData,
string userId
)
to not require theuserId
anymore.
New symptoms are added and can now be included as an array. New symptoms include:
- racing_heart
- dizziness
- feeling_of_fainting
The Symptoms, Activity and the SymptomSeverity are also exported as types now.
The
onConsentNeeded
argument of the authenticate
function has become optional.sdk.updateProfile
signature changed fromupdateProfile: (userId: string, profileData: ProfileData)
toupdateProfile: (profileData: ProfileData)
. This way, you don't need to provide the userId
- The
ProfileData
interface has been expanded - The user's time zone is now applied to the periodic reports
- Outdated reports are now rerendered
postMeasurement
now throws aNoActivePrescriptionError
when no active prescription is active when trying to post a measurement
- Symptom severity score can now be added to a measurement context
sdk.canPerformMeasurement
: check if you have an active prescriptionsdk.updateMeasurementContext
: update the measurement context after a measurement has already been postedsdk.updateProfile
: update profile information
- Errors thrown by
sdk.activePrescription
are now more clear ->NoActivePrescriptionError
&AlreadyActivatedError
- renamed
getReportUrl
togetMeasurementReportUrl
- sdk.getReportUrl
+ sdk.getMeasurementReportUrl
sdk.getPeriodicReports
: gets a list of periodic reportssdk.getPeriodicReportPdf
: get the pdf of a periodic reportsdk.activatePrescription
: activate a prescription hash, so the user can perform a measurement
sdk.postMeasurement
now takes an optionalcameraSdkVersion
parameter
- sdk.postMeasurement(measurement)
+ sdk.postMeasurement(measurement, '1.0.0')
Last modified 1mo ago