@d4l/collect-lib 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +28 -18
- package/dist/index.d.ts +28 -18
- package/dist/index.js +49 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -15,10 +15,13 @@ type Consent = {
|
|
|
15
15
|
};
|
|
16
16
|
type ConsentPath = RecursiveKeyOf<Consent>;
|
|
17
17
|
|
|
18
|
-
type
|
|
19
|
-
type
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
type MatrixAnswer = Record<string, string>;
|
|
19
|
+
type FlatAnswer = string | string[];
|
|
20
|
+
type Answer = FlatAnswer | MatrixAnswer;
|
|
21
|
+
type Answers = Record<string, Answer>;
|
|
22
|
+
declare function isMatrixAnswer(answer: Answer | undefined): answer is MatrixAnswer;
|
|
23
|
+
declare function isFlatAnswer(answer: Answer | undefined): answer is FlatAnswer;
|
|
24
|
+
declare function isScalarAnswer(answer: Answer | undefined): answer is string;
|
|
22
25
|
type MultiAnswers = {
|
|
23
26
|
[key: string]: {
|
|
24
27
|
date: Date | null;
|
|
@@ -399,15 +402,27 @@ type ProgramTag = {
|
|
|
399
402
|
};
|
|
400
403
|
type TagEffectiveType = 'dateTime' | 'period' | 'unknown';
|
|
401
404
|
|
|
405
|
+
type AnswerItemBase = {
|
|
406
|
+
id: string;
|
|
407
|
+
text: string;
|
|
408
|
+
};
|
|
409
|
+
type ScalarAnswerItem = AnswerItemBase & {
|
|
410
|
+
type: Exclude<QuestionInputType, 'matrix' | 'multi-select' | 'list'>;
|
|
411
|
+
response: ResponseValue;
|
|
412
|
+
};
|
|
413
|
+
type ArrayAnswerItem = AnswerItemBase & {
|
|
414
|
+
type: 'multi-select' | 'list';
|
|
415
|
+
response: ResponseValue[];
|
|
416
|
+
};
|
|
417
|
+
type MatrixAnswerItem = AnswerItemBase & {
|
|
418
|
+
type: 'matrix';
|
|
419
|
+
items: ScalarAnswerItem[];
|
|
420
|
+
};
|
|
421
|
+
type AnswerItem = ScalarAnswerItem | ArrayAnswerItem | MatrixAnswerItem;
|
|
402
422
|
interface QuestionnaireResponse {
|
|
403
423
|
status: fhir5.QuestionnaireResponse['status'];
|
|
404
424
|
language: string;
|
|
405
|
-
answers:
|
|
406
|
-
id: string;
|
|
407
|
-
type: QuestionInputType;
|
|
408
|
-
response: ResponseValue | ResponseValue[];
|
|
409
|
-
text: string;
|
|
410
|
-
}[];
|
|
425
|
+
answers: AnswerItem[];
|
|
411
426
|
questionnaire: {
|
|
412
427
|
name: string;
|
|
413
428
|
url: string;
|
|
@@ -437,7 +452,7 @@ type ResponseValue = {
|
|
|
437
452
|
type ResponseContext = {
|
|
438
453
|
[key: string]: string;
|
|
439
454
|
};
|
|
440
|
-
type QuestionInputType = 'decimal' | 'date' | 'year' | 'single-select' | 'multi-select' | 'scale-ordinal' | 'scale-numeric' | 'string' | 'text' | 'geo-location' | 'list' | 'country' | 'postal-code' | 'group' | 'display';
|
|
455
|
+
type QuestionInputType = 'decimal' | 'date' | 'year' | 'single-select' | 'multi-select' | 'scale-ordinal' | 'scale-numeric' | 'string' | 'text' | 'geo-location' | 'list' | 'country' | 'postal-code' | 'group' | 'display' | 'matrix' | 'matrix_item';
|
|
441
456
|
|
|
442
457
|
type DEVICE_ANNOTATION_DATA_TYPE = 'header' | 'flag' | 'any' | 'timestamp' | 'heartRate' | 'eulerAngles' | 'acceleration' | 'freeAcceleration' | 'angularSpeed' | 'angularVelocity' | 'magneticField' | 'distance' | 'remoteDistance' | 'rssi' | 'beaconId' | 'caloriesTotal' | 'distanceTotal' | 'speed' | 'motionCadence' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'vo2max' | 'stepsTotal' | 'runningStepsTotal' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'dailyElevationGain' | 'activityDetection' | 'egvs' | 'ecg' | 'spo2' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'skinTemperature' | 'sleepLevel' | 'duration' | 'respiratoryRate' | 'hrv' | 'calories' | 'steps' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'sleepState' | 'sleepStage' | 'dataSource' | 'normalWalkingEnergyExpenditure' | 'normalWalkingEnergyExpenditurePerHour' | 'intensityEnergyExpenditure' | 'intensityEnergyExpenditurePerHour' | 'totalEnergyExpenditurePerHour' | 'fatBurned' | 'fatBurnedPerHour' | 'metabolicEquivalent' | 'minimumMetabolicEquivalent' | 'maximumMetabolicEquivalent' | 'averageMetabolicEquivalent' | 'durationOfNormalWalkingEpisodes' | 'durationOfIntensityWalkingEpisodes';
|
|
443
458
|
type DEVICE_ANNOTATION_DATA_FORMAT = 'bitmask' | 'boolean' | 'unsignedInt' | 'signedInt' | 'signedBigInt' | 'float32' | 'float64' | 'byte';
|
|
@@ -913,12 +928,7 @@ declare function calculateScoreRangeForItem(item: fhir5.QuestionnaireItem, value
|
|
|
913
928
|
}, scoring: SurveyScoring): Range;
|
|
914
929
|
|
|
915
930
|
declare function generateFHIRResponse(id: string, { programName, effectiveDate, language, questionnaire, createdAt, status, answers, context, }: QuestionnaireResponse): fhir5.QuestionnaireResponse;
|
|
916
|
-
declare const toQuestionnaireResponseItem: (answer:
|
|
917
|
-
id: string;
|
|
918
|
-
type: QuestionInputType;
|
|
919
|
-
response: ResponseValue | ResponseValue[];
|
|
920
|
-
text: string;
|
|
921
|
-
}) => fhir5.QuestionnaireResponseItem;
|
|
931
|
+
declare const toQuestionnaireResponseItem: (answer: AnswerItem) => fhir5.QuestionnaireResponseItem;
|
|
922
932
|
|
|
923
933
|
type RecordingSignalWithId = RecordingSignal & {
|
|
924
934
|
id: string;
|
|
@@ -1557,4 +1567,4 @@ declare const API_TARGET_MAP: {
|
|
|
1557
1567
|
};
|
|
1558
1568
|
};
|
|
1559
1569
|
|
|
1560
|
-
export { ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_DATA_SOURCES, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION, APPLE_HEALTH_SLEEP_STATE_MAP, APPLE_HEALTH_STEP_COUNT_ANNOTATION, APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type Answers, AppIDNamingSystem, type AppleHealthDataSource, type AppleHealthSleepStates, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CommunicationTypeSystem, type ComparisonOperator, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CopyrightLabel, CountryValueSet, type CryptoModule, CustomExtensionContextValue, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, DEVICE_ANNOTATION_HEARTRATE, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DATA_SOURCE, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ERROR_CODES, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, type FitbitSleepLevelTypes, type FrequencySubset, type FrequencyType, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_DATA_SOURCES, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_STEPS_ANNOTATION, type HealthConnectDataSource, type HealthConnectSleepStages, IMUAnnotation, ImageExtension, type InternalDeviceConfig, InternalSensorAnnotationTypes, Iso3166CodeSystem, KeyHandler, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, OTHER_ANSWER_CODE, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, PostalCodeCountrySourceExtension, PostalCodeFixedCountryUrl, PostalCodeFromItemUrl, PrepopulateExtension, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramType, QItemControlDefinition, type QuestionInputType, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, type ResponseContext, ResponseGuard, type ResponseMinimal, type ResponseTimes, type ResponseValue, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderInputLabel, SliderMaxLabelExtension, SliderMinLabelExtension, SliderOrientationExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyMultiplex, type SurveyScoring, type Tag, type TagEffectiveType, type TaskFrequency, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, dayFormat, encodeDataSource, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getFollowUpQuestionLinkId, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isBeforeStartDate, isNotAfterEndDate, isNotBeforeStartDate, isScoreEligible, isYearString, newStepDateGuard, overwriteTime, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, uint8ArrayToBinaryString, utf8ToUint8Array, wordlists };
|
|
1570
|
+
export { ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_DATA_SOURCES, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION, APPLE_HEALTH_SLEEP_STATE_MAP, APPLE_HEALTH_STEP_COUNT_ANNOTATION, APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type AnswerItem, type Answers, AppIDNamingSystem, type AppleHealthDataSource, type AppleHealthSleepStates, type ArrayAnswerItem, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CommunicationTypeSystem, type ComparisonOperator, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CopyrightLabel, CountryValueSet, type CryptoModule, CustomExtensionContextValue, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, DEVICE_ANNOTATION_HEARTRATE, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DATA_SOURCE, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ERROR_CODES, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, type FitbitSleepLevelTypes, type FlatAnswer, type FrequencySubset, type FrequencyType, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_DATA_SOURCES, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_STEPS_ANNOTATION, type HealthConnectDataSource, type HealthConnectSleepStages, IMUAnnotation, ImageExtension, type InternalDeviceConfig, InternalSensorAnnotationTypes, Iso3166CodeSystem, KeyHandler, type MatrixAnswer, type MatrixAnswerItem, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, OTHER_ANSWER_CODE, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, PostalCodeCountrySourceExtension, PostalCodeFixedCountryUrl, PostalCodeFromItemUrl, PrepopulateExtension, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramType, QItemControlDefinition, type QuestionInputType, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, type ResponseContext, ResponseGuard, type ResponseMinimal, type ResponseTimes, type ResponseValue, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, type ScalarAnswerItem, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderInputLabel, SliderMaxLabelExtension, SliderMinLabelExtension, SliderOrientationExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyMultiplex, type SurveyScoring, type Tag, type TagEffectiveType, type TaskFrequency, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, dayFormat, encodeDataSource, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getFollowUpQuestionLinkId, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isBeforeStartDate, isFlatAnswer, isMatrixAnswer, isNotAfterEndDate, isNotBeforeStartDate, isScalarAnswer, isScoreEligible, isYearString, newStepDateGuard, overwriteTime, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, uint8ArrayToBinaryString, utf8ToUint8Array, wordlists };
|
package/dist/index.d.ts
CHANGED
|
@@ -15,10 +15,13 @@ type Consent = {
|
|
|
15
15
|
};
|
|
16
16
|
type ConsentPath = RecursiveKeyOf<Consent>;
|
|
17
17
|
|
|
18
|
-
type
|
|
19
|
-
type
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
type MatrixAnswer = Record<string, string>;
|
|
19
|
+
type FlatAnswer = string | string[];
|
|
20
|
+
type Answer = FlatAnswer | MatrixAnswer;
|
|
21
|
+
type Answers = Record<string, Answer>;
|
|
22
|
+
declare function isMatrixAnswer(answer: Answer | undefined): answer is MatrixAnswer;
|
|
23
|
+
declare function isFlatAnswer(answer: Answer | undefined): answer is FlatAnswer;
|
|
24
|
+
declare function isScalarAnswer(answer: Answer | undefined): answer is string;
|
|
22
25
|
type MultiAnswers = {
|
|
23
26
|
[key: string]: {
|
|
24
27
|
date: Date | null;
|
|
@@ -399,15 +402,27 @@ type ProgramTag = {
|
|
|
399
402
|
};
|
|
400
403
|
type TagEffectiveType = 'dateTime' | 'period' | 'unknown';
|
|
401
404
|
|
|
405
|
+
type AnswerItemBase = {
|
|
406
|
+
id: string;
|
|
407
|
+
text: string;
|
|
408
|
+
};
|
|
409
|
+
type ScalarAnswerItem = AnswerItemBase & {
|
|
410
|
+
type: Exclude<QuestionInputType, 'matrix' | 'multi-select' | 'list'>;
|
|
411
|
+
response: ResponseValue;
|
|
412
|
+
};
|
|
413
|
+
type ArrayAnswerItem = AnswerItemBase & {
|
|
414
|
+
type: 'multi-select' | 'list';
|
|
415
|
+
response: ResponseValue[];
|
|
416
|
+
};
|
|
417
|
+
type MatrixAnswerItem = AnswerItemBase & {
|
|
418
|
+
type: 'matrix';
|
|
419
|
+
items: ScalarAnswerItem[];
|
|
420
|
+
};
|
|
421
|
+
type AnswerItem = ScalarAnswerItem | ArrayAnswerItem | MatrixAnswerItem;
|
|
402
422
|
interface QuestionnaireResponse {
|
|
403
423
|
status: fhir5.QuestionnaireResponse['status'];
|
|
404
424
|
language: string;
|
|
405
|
-
answers:
|
|
406
|
-
id: string;
|
|
407
|
-
type: QuestionInputType;
|
|
408
|
-
response: ResponseValue | ResponseValue[];
|
|
409
|
-
text: string;
|
|
410
|
-
}[];
|
|
425
|
+
answers: AnswerItem[];
|
|
411
426
|
questionnaire: {
|
|
412
427
|
name: string;
|
|
413
428
|
url: string;
|
|
@@ -437,7 +452,7 @@ type ResponseValue = {
|
|
|
437
452
|
type ResponseContext = {
|
|
438
453
|
[key: string]: string;
|
|
439
454
|
};
|
|
440
|
-
type QuestionInputType = 'decimal' | 'date' | 'year' | 'single-select' | 'multi-select' | 'scale-ordinal' | 'scale-numeric' | 'string' | 'text' | 'geo-location' | 'list' | 'country' | 'postal-code' | 'group' | 'display';
|
|
455
|
+
type QuestionInputType = 'decimal' | 'date' | 'year' | 'single-select' | 'multi-select' | 'scale-ordinal' | 'scale-numeric' | 'string' | 'text' | 'geo-location' | 'list' | 'country' | 'postal-code' | 'group' | 'display' | 'matrix' | 'matrix_item';
|
|
441
456
|
|
|
442
457
|
type DEVICE_ANNOTATION_DATA_TYPE = 'header' | 'flag' | 'any' | 'timestamp' | 'heartRate' | 'eulerAngles' | 'acceleration' | 'freeAcceleration' | 'angularSpeed' | 'angularVelocity' | 'magneticField' | 'distance' | 'remoteDistance' | 'rssi' | 'beaconId' | 'caloriesTotal' | 'distanceTotal' | 'speed' | 'motionCadence' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'vo2max' | 'stepsTotal' | 'runningStepsTotal' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'dailyElevationGain' | 'activityDetection' | 'egvs' | 'ecg' | 'spo2' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'skinTemperature' | 'sleepLevel' | 'duration' | 'respiratoryRate' | 'hrv' | 'calories' | 'steps' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'sleepState' | 'sleepStage' | 'dataSource' | 'normalWalkingEnergyExpenditure' | 'normalWalkingEnergyExpenditurePerHour' | 'intensityEnergyExpenditure' | 'intensityEnergyExpenditurePerHour' | 'totalEnergyExpenditurePerHour' | 'fatBurned' | 'fatBurnedPerHour' | 'metabolicEquivalent' | 'minimumMetabolicEquivalent' | 'maximumMetabolicEquivalent' | 'averageMetabolicEquivalent' | 'durationOfNormalWalkingEpisodes' | 'durationOfIntensityWalkingEpisodes';
|
|
443
458
|
type DEVICE_ANNOTATION_DATA_FORMAT = 'bitmask' | 'boolean' | 'unsignedInt' | 'signedInt' | 'signedBigInt' | 'float32' | 'float64' | 'byte';
|
|
@@ -913,12 +928,7 @@ declare function calculateScoreRangeForItem(item: fhir5.QuestionnaireItem, value
|
|
|
913
928
|
}, scoring: SurveyScoring): Range;
|
|
914
929
|
|
|
915
930
|
declare function generateFHIRResponse(id: string, { programName, effectiveDate, language, questionnaire, createdAt, status, answers, context, }: QuestionnaireResponse): fhir5.QuestionnaireResponse;
|
|
916
|
-
declare const toQuestionnaireResponseItem: (answer:
|
|
917
|
-
id: string;
|
|
918
|
-
type: QuestionInputType;
|
|
919
|
-
response: ResponseValue | ResponseValue[];
|
|
920
|
-
text: string;
|
|
921
|
-
}) => fhir5.QuestionnaireResponseItem;
|
|
931
|
+
declare const toQuestionnaireResponseItem: (answer: AnswerItem) => fhir5.QuestionnaireResponseItem;
|
|
922
932
|
|
|
923
933
|
type RecordingSignalWithId = RecordingSignal & {
|
|
924
934
|
id: string;
|
|
@@ -1557,4 +1567,4 @@ declare const API_TARGET_MAP: {
|
|
|
1557
1567
|
};
|
|
1558
1568
|
};
|
|
1559
1569
|
|
|
1560
|
-
export { ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_DATA_SOURCES, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION, APPLE_HEALTH_SLEEP_STATE_MAP, APPLE_HEALTH_STEP_COUNT_ANNOTATION, APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type Answers, AppIDNamingSystem, type AppleHealthDataSource, type AppleHealthSleepStates, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CommunicationTypeSystem, type ComparisonOperator, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CopyrightLabel, CountryValueSet, type CryptoModule, CustomExtensionContextValue, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, DEVICE_ANNOTATION_HEARTRATE, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DATA_SOURCE, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ERROR_CODES, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, type FitbitSleepLevelTypes, type FrequencySubset, type FrequencyType, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_DATA_SOURCES, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_STEPS_ANNOTATION, type HealthConnectDataSource, type HealthConnectSleepStages, IMUAnnotation, ImageExtension, type InternalDeviceConfig, InternalSensorAnnotationTypes, Iso3166CodeSystem, KeyHandler, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, OTHER_ANSWER_CODE, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, PostalCodeCountrySourceExtension, PostalCodeFixedCountryUrl, PostalCodeFromItemUrl, PrepopulateExtension, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramType, QItemControlDefinition, type QuestionInputType, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, type ResponseContext, ResponseGuard, type ResponseMinimal, type ResponseTimes, type ResponseValue, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderInputLabel, SliderMaxLabelExtension, SliderMinLabelExtension, SliderOrientationExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyMultiplex, type SurveyScoring, type Tag, type TagEffectiveType, type TaskFrequency, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, dayFormat, encodeDataSource, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getFollowUpQuestionLinkId, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isBeforeStartDate, isNotAfterEndDate, isNotBeforeStartDate, isScoreEligible, isYearString, newStepDateGuard, overwriteTime, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, uint8ArrayToBinaryString, utf8ToUint8Array, wordlists };
|
|
1570
|
+
export { ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_DATA_SOURCES, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION, APPLE_HEALTH_SLEEP_STATE_MAP, APPLE_HEALTH_STEP_COUNT_ANNOTATION, APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type AnswerItem, type Answers, AppIDNamingSystem, type AppleHealthDataSource, type AppleHealthSleepStates, type ArrayAnswerItem, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CommunicationTypeSystem, type ComparisonOperator, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CopyrightLabel, CountryValueSet, type CryptoModule, CustomExtensionContextValue, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, DEVICE_ANNOTATION_HEARTRATE, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DATA_SOURCE, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ERROR_CODES, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, type FitbitSleepLevelTypes, type FlatAnswer, type FrequencySubset, type FrequencyType, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_DATA_SOURCES, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_STEPS_ANNOTATION, type HealthConnectDataSource, type HealthConnectSleepStages, IMUAnnotation, ImageExtension, type InternalDeviceConfig, InternalSensorAnnotationTypes, Iso3166CodeSystem, KeyHandler, type MatrixAnswer, type MatrixAnswerItem, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, OTHER_ANSWER_CODE, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, PostalCodeCountrySourceExtension, PostalCodeFixedCountryUrl, PostalCodeFromItemUrl, PrepopulateExtension, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramType, QItemControlDefinition, type QuestionInputType, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, type ResponseContext, ResponseGuard, type ResponseMinimal, type ResponseTimes, type ResponseValue, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, type ScalarAnswerItem, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderInputLabel, SliderMaxLabelExtension, SliderMinLabelExtension, SliderOrientationExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyMultiplex, type SurveyScoring, type Tag, type TagEffectiveType, type TaskFrequency, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, dayFormat, encodeDataSource, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getFollowUpQuestionLinkId, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isBeforeStartDate, isFlatAnswer, isMatrixAnswer, isNotAfterEndDate, isNotBeforeStartDate, isScalarAnswer, isScoreEligible, isYearString, newStepDateGuard, overwriteTime, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, uint8ArrayToBinaryString, utf8ToUint8Array, wordlists };
|
package/dist/index.js
CHANGED
|
@@ -879,6 +879,17 @@ var RECORDING_MODEL_CURRENT_VERSION = "0.0.6";
|
|
|
879
879
|
// src/types/recordingSignal.ts
|
|
880
880
|
var RECORDING_SIGNAL_MODEL_CURRENT_VERSION = "1.0.0";
|
|
881
881
|
|
|
882
|
+
// src/types/survey.ts
|
|
883
|
+
function isMatrixAnswer(answer) {
|
|
884
|
+
return typeof answer === "object" && answer !== null && !Array.isArray(answer);
|
|
885
|
+
}
|
|
886
|
+
function isFlatAnswer(answer) {
|
|
887
|
+
return typeof answer === "string" || Array.isArray(answer);
|
|
888
|
+
}
|
|
889
|
+
function isScalarAnswer(answer) {
|
|
890
|
+
return typeof answer === "string";
|
|
891
|
+
}
|
|
892
|
+
|
|
882
893
|
// src/fhir/consent.ts
|
|
883
894
|
|
|
884
895
|
|
|
@@ -1177,50 +1188,46 @@ function generateFHIRResponse(id, {
|
|
|
1177
1188
|
};
|
|
1178
1189
|
}
|
|
1179
1190
|
var toQuestionnaireResponseItem = (answer) => {
|
|
1180
|
-
const response = answer.response;
|
|
1181
|
-
if (Array.isArray(response)) {
|
|
1182
|
-
switch (answer.type) {
|
|
1183
|
-
case "multi-select":
|
|
1184
|
-
return {
|
|
1185
|
-
linkId: answer.id,
|
|
1186
|
-
text: answer.text,
|
|
1187
|
-
answer: response.map((r) => ({
|
|
1188
|
-
valueCoding: { system: r.system, code: r.value, display: r == null ? void 0 : r.display }
|
|
1189
|
-
}))
|
|
1190
|
-
};
|
|
1191
|
-
case "list":
|
|
1192
|
-
return {
|
|
1193
|
-
linkId: answer.id,
|
|
1194
|
-
text: answer.text,
|
|
1195
|
-
answer: response.map((r) => ({
|
|
1196
|
-
valueString: r.value
|
|
1197
|
-
}))
|
|
1198
|
-
};
|
|
1199
|
-
default:
|
|
1200
|
-
return {
|
|
1201
|
-
linkId: answer.id
|
|
1202
|
-
};
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
1191
|
switch (answer.type) {
|
|
1192
|
+
case "multi-select":
|
|
1193
|
+
return {
|
|
1194
|
+
linkId: answer.id,
|
|
1195
|
+
text: answer.text,
|
|
1196
|
+
answer: answer.response.map((r) => ({
|
|
1197
|
+
valueCoding: { system: r.system, code: r.value, display: r.display }
|
|
1198
|
+
}))
|
|
1199
|
+
};
|
|
1200
|
+
case "list":
|
|
1201
|
+
return {
|
|
1202
|
+
linkId: answer.id,
|
|
1203
|
+
text: answer.text,
|
|
1204
|
+
answer: answer.response.map((r) => ({ valueString: r.value }))
|
|
1205
|
+
};
|
|
1206
1206
|
case "date":
|
|
1207
1207
|
return {
|
|
1208
1208
|
linkId: answer.id,
|
|
1209
1209
|
text: answer.text,
|
|
1210
|
-
answer: [{ valueDate: String(response.value) }]
|
|
1210
|
+
answer: [{ valueDate: String(answer.response.value) }]
|
|
1211
1211
|
};
|
|
1212
1212
|
case "decimal":
|
|
1213
1213
|
return {
|
|
1214
1214
|
linkId: answer.id,
|
|
1215
1215
|
text: answer.text,
|
|
1216
|
-
answer: [{ valueDecimal: Number(response.value) }]
|
|
1216
|
+
answer: [{ valueDecimal: Number(answer.response.value) }]
|
|
1217
1217
|
};
|
|
1218
1218
|
case "year":
|
|
1219
1219
|
return {
|
|
1220
1220
|
linkId: answer.id,
|
|
1221
1221
|
text: answer.text,
|
|
1222
|
-
answer: [{ valueDate: String(response.value) }]
|
|
1222
|
+
answer: [{ valueDate: String(answer.response.value) }]
|
|
1223
|
+
};
|
|
1224
|
+
case "matrix":
|
|
1225
|
+
return {
|
|
1226
|
+
linkId: answer.id,
|
|
1227
|
+
text: answer.text,
|
|
1228
|
+
item: answer.items.map(toQuestionnaireResponseItem)
|
|
1223
1229
|
};
|
|
1230
|
+
case "matrix_item":
|
|
1224
1231
|
case "single-select":
|
|
1225
1232
|
case "country":
|
|
1226
1233
|
return {
|
|
@@ -1229,9 +1236,9 @@ var toQuestionnaireResponseItem = (answer) => {
|
|
|
1229
1236
|
answer: [
|
|
1230
1237
|
{
|
|
1231
1238
|
valueCoding: {
|
|
1232
|
-
system: response.system,
|
|
1233
|
-
code: response
|
|
1234
|
-
display: response
|
|
1239
|
+
system: answer.response.system,
|
|
1240
|
+
code: answer.response.value,
|
|
1241
|
+
display: answer.response.display
|
|
1235
1242
|
}
|
|
1236
1243
|
}
|
|
1237
1244
|
]
|
|
@@ -1241,7 +1248,7 @@ var toQuestionnaireResponseItem = (answer) => {
|
|
|
1241
1248
|
return {
|
|
1242
1249
|
linkId: answer.id,
|
|
1243
1250
|
text: answer.text,
|
|
1244
|
-
answer: [{ valueInteger: Number(response.value) }]
|
|
1251
|
+
answer: [{ valueInteger: Number(answer.response.value) }]
|
|
1245
1252
|
};
|
|
1246
1253
|
case "string":
|
|
1247
1254
|
case "text":
|
|
@@ -1249,12 +1256,10 @@ var toQuestionnaireResponseItem = (answer) => {
|
|
|
1249
1256
|
return {
|
|
1250
1257
|
linkId: answer.id,
|
|
1251
1258
|
text: answer.text,
|
|
1252
|
-
answer: [{ valueString: response.value }]
|
|
1259
|
+
answer: [{ valueString: answer.response.value }]
|
|
1253
1260
|
};
|
|
1254
1261
|
default:
|
|
1255
|
-
return {
|
|
1256
|
-
linkId: answer.id
|
|
1257
|
-
};
|
|
1262
|
+
return { linkId: answer.id };
|
|
1258
1263
|
}
|
|
1259
1264
|
};
|
|
1260
1265
|
|
|
@@ -5165,7 +5170,7 @@ var AnswerDateGuard = class {
|
|
|
5165
5170
|
return false;
|
|
5166
5171
|
}
|
|
5167
5172
|
const answer = answers[questionID];
|
|
5168
|
-
if (
|
|
5173
|
+
if (typeof answer !== "string") {
|
|
5169
5174
|
return false;
|
|
5170
5175
|
}
|
|
5171
5176
|
const has = stringToDate(answer);
|
|
@@ -5178,7 +5183,7 @@ var AnswerDateGuard = class {
|
|
|
5178
5183
|
const { multiAnswers } = params;
|
|
5179
5184
|
if (this.surveyName && multiAnswers !== void 0) {
|
|
5180
5185
|
const answer = multiAnswers[this.surveyName].answers[this.questionID];
|
|
5181
|
-
if (answer
|
|
5186
|
+
if (typeof answer === "string") {
|
|
5182
5187
|
const jsDate = new Date(answer);
|
|
5183
5188
|
if (!isNaN(jsDate.getTime())) {
|
|
5184
5189
|
const answerDate = _luxon.DateTime.fromJSDate(jsDate).plus(this.offset);
|
|
@@ -5202,7 +5207,7 @@ var YearGuard = class {
|
|
|
5202
5207
|
return false;
|
|
5203
5208
|
}
|
|
5204
5209
|
const answer = answers[questionID];
|
|
5205
|
-
if (
|
|
5210
|
+
if (typeof answer !== "string") {
|
|
5206
5211
|
return false;
|
|
5207
5212
|
}
|
|
5208
5213
|
const has = stringToYear(answer);
|
|
@@ -5227,7 +5232,7 @@ var DecimalGuard = class {
|
|
|
5227
5232
|
return false;
|
|
5228
5233
|
}
|
|
5229
5234
|
const answer = answers[questionID];
|
|
5230
|
-
if (
|
|
5235
|
+
if (typeof answer !== "string") {
|
|
5231
5236
|
return false;
|
|
5232
5237
|
}
|
|
5233
5238
|
const has = parseFloat(answer);
|
|
@@ -5903,5 +5908,8 @@ var API_TARGET_MAP = {
|
|
|
5903
5908
|
|
|
5904
5909
|
|
|
5905
5910
|
|
|
5906
|
-
exports.ANDROID_SENSORS_CONSTANT_NAMES = ANDROID_SENSORS_CONSTANT_NAMES; exports.API_TARGET_MAP = API_TARGET_MAP; exports.APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION = APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION; exports.APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY = APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY; exports.APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION = APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION; exports.APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE = APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE; exports.APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT = APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT; exports.APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE = APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE; exports.APPLE_HEALTH_DATA_SOURCES = APPLE_HEALTH_DATA_SOURCES; exports.APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS = APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS; exports.APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION = APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION; exports.APPLE_HEALTH_SLEEP_STATE_MAP = APPLE_HEALTH_SLEEP_STATE_MAP; exports.APPLE_HEALTH_STEP_COUNT_ANNOTATION = APPLE_HEALTH_STEP_COUNT_ANNOTATION; exports.APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION = APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION; exports.ASMSECGMeasurementAnnotation = ASMSECGMeasurementAnnotation; exports.ASMSSpO2MeasurementAnnotation = ASMSSpO2MeasurementAnnotation; exports.AnswerCodeGuard = AnswerCodeGuard; exports.AnswerDateGuard = AnswerDateGuard; exports.AppIDNamingSystem = AppIDNamingSystem; exports.BLE_ASMS_ANNOTATION_ITEM_ECG = BLE_ASMS_ANNOTATION_ITEM_ECG; exports.BLE_ASMS_ANNOTATION_ITEM_SPO2 = BLE_ASMS_ANNOTATION_ITEM_SPO2; exports.BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE = BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES = BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE = BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN = BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS = BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS = BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS; exports.BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION = BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION; exports.BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE = BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE; exports.BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED = BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED; exports.BLE_PAMS_ANNOTATION_ITEM_BYTE = BLE_PAMS_ANNOTATION_ITEM_BYTE; exports.BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL = BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL = BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_FLAGS_16 = BLE_PAMS_ANNOTATION_ITEM_FLAGS_16; exports.BLE_PAMS_ANNOTATION_ITEM_FLAGS_24 = BLE_PAMS_ANNOTATION_ITEM_FLAGS_24; exports.BLE_PAMS_ANNOTATION_ITEM_FLAGS_32 = BLE_PAMS_ANNOTATION_ITEM_FLAGS_32; exports.BLE_PAMS_ANNOTATION_ITEM_FLAGS_8 = BLE_PAMS_ANNOTATION_ITEM_FLAGS_8; exports.BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL = BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES = BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES; exports.BLE_PAMS_ANNOTATION_ITEM_HEADER = BLE_PAMS_ANNOTATION_ITEM_HEADER; exports.BLE_PAMS_ANNOTATION_ITEM_HEART_RATE = BLE_PAMS_ANNOTATION_ITEM_HEART_RATE; exports.BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE = BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE; exports.BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED = BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED; exports.BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE = BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE; exports.BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED = BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED; exports.BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE = BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE; exports.BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN = BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN; exports.BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN = BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN; exports.BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL = BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_SPEED = BLE_PAMS_ANNOTATION_ITEM_SPEED; exports.BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL = BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES = BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES; exports.BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES = BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES; exports.BLE_PAMS_ANNOTATION_ITEM_VO2_MAX = BLE_PAMS_ANNOTATION_ITEM_VO2_MAX; exports.BLE_PSMS_ANNOTATION_ITEM_HEART_RATE = BLE_PSMS_ANNOTATION_ITEM_HEART_RATE; exports.BLE_PSMS_ANNOTATION_ITEM_IBI = BLE_PSMS_ANNOTATION_ITEM_IBI; exports.BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN = BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN; exports.BLE_PSMS_ANNOTATION_ITEM_PPG_IR = BLE_PSMS_ANNOTATION_ITEM_PPG_IR; exports.BLE_PSMS_ANNOTATION_ITEM_PPG_RED = BLE_PSMS_ANNOTATION_ITEM_PPG_RED; exports.BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE = BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE; exports.BoolGuard = BoolGuard; exports.CPMSHealthServicesActivityDetectionAnnotation = CPMSHealthServicesActivityDetectionAnnotation; exports.CPMSHealthServicesPassiveDataAnnotation = CPMSHealthServicesPassiveDataAnnotation; exports.CommunicationTypeSystem = CommunicationTypeSystem; exports.Conjunction = Conjunction; exports.ConsentGuard = ConsentGuard; exports.ConsentNameSystem = ConsentNameSystem; exports.ConsentVersionSystem = ConsentVersionSystem; exports.CountryValueSet = CountryValueSet; exports.CustomExtensionContextValue = CustomExtensionContextValue; exports.CustomExtensionDate = CustomExtensionDate; exports.CustomExtensionStudyName = CustomExtensionStudyName; exports.CustomQuestionSystem = CustomQuestionSystem; exports.DEVICE_ANNOTATION_HEARTRATE = DEVICE_ANNOTATION_HEARTRATE; exports.DEVICE_ANNOTATION_ITEM_ACCELERATION = DEVICE_ANNOTATION_ITEM_ACCELERATION; exports.DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED = DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED; exports.DEVICE_ANNOTATION_ITEM_BEACON_ID = DEVICE_ANNOTATION_ITEM_BEACON_ID; exports.DEVICE_ANNOTATION_ITEM_DATA_SOURCE = DEVICE_ANNOTATION_ITEM_DATA_SOURCE; exports.DEVICE_ANNOTATION_ITEM_DISTANCE = DEVICE_ANNOTATION_ITEM_DISTANCE; exports.DEVICE_ANNOTATION_ITEM_EGVS = DEVICE_ANNOTATION_ITEM_EGVS; exports.DEVICE_ANNOTATION_ITEM_HEARTRATE = DEVICE_ANNOTATION_ITEM_HEARTRATE; exports.DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD = DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD; exports.DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE = DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE; exports.DEVICE_ANNOTATION_ITEM_RSSI = DEVICE_ANNOTATION_ITEM_RSSI; exports.DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP = DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP; exports.DEVICE_ANNOTATION_TIMESTAMP_NOTE = DEVICE_ANNOTATION_TIMESTAMP_NOTE; exports.DEVICE_ANNOTATION_TIMESTAMP_SIZE = DEVICE_ANNOTATION_TIMESTAMP_SIZE; exports.DEVICE_ANNOTATION_TIMESTAMP_UNIT = DEVICE_ANNOTATION_TIMESTAMP_UNIT; exports.DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG = DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG; exports.DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP = DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP; exports.DEVICE_DISPLAY_LABEL_CODING = DEVICE_DISPLAY_LABEL_CODING; exports.DEVICE_KEY_TO_NAME = DEVICE_KEY_TO_NAME; exports.DEVICE_LABEL_CODING = DEVICE_LABEL_CODING; exports.DEVICE_OUTPUT_RATE_CODING = DEVICE_OUTPUT_RATE_CODING; exports.DEVICE_SENSOR_DELAY_CODING = DEVICE_SENSOR_DELAY_CODING; exports.DateGuard = DateGuard; exports.DecimalGuard = DecimalGuard; exports.Disjunction = Disjunction; exports.DonationSDK = DonationSDK; exports.ERROR_CODES = ERROR_CODES; exports.ExistsGuard = ExistsGuard; exports.FITBIT_ANNOTATION_ITEM_BREATHING_RATE = FITBIT_ANNOTATION_ITEM_BREATHING_RATE; exports.FITBIT_ANNOTATION_ITEM_CALORIES = FITBIT_ANNOTATION_ITEM_CALORIES; exports.FITBIT_ANNOTATION_ITEM_HEART_RATE = FITBIT_ANNOTATION_ITEM_HEART_RATE; exports.FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY = FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY; exports.FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE = FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE; exports.FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL = FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL; exports.FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION = FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION; exports.FITBIT_ANNOTATION_ITEM_SPO2 = FITBIT_ANNOTATION_ITEM_SPO2; exports.FITBIT_ANNOTATION_ITEM_STEPS = FITBIT_ANNOTATION_ITEM_STEPS; exports.FITBIT_BREATHING_RATE_ANNOTATION = FITBIT_BREATHING_RATE_ANNOTATION; exports.FITBIT_CALORIES_ANNOTATION = FITBIT_CALORIES_ANNOTATION; exports.FITBIT_HEART_RATE_ANNOTATION = FITBIT_HEART_RATE_ANNOTATION; exports.FITBIT_HEART_RATE_VARIABILITY_ANNOTATION = FITBIT_HEART_RATE_VARIABILITY_ANNOTATION; exports.FITBIT_SIGNAL_TYPE_ANNOTATIONS = FITBIT_SIGNAL_TYPE_ANNOTATIONS; exports.FITBIT_SKIN_TEMPERATURE_ANNOTATION = FITBIT_SKIN_TEMPERATURE_ANNOTATION; exports.FITBIT_SLEEP_ANNOTATION = FITBIT_SLEEP_ANNOTATION; exports.FITBIT_SLEEP_LEVEL_MAP = FITBIT_SLEEP_LEVEL_MAP; exports.FITBIT_SPO2_ANNOTATION = FITBIT_SPO2_ANNOTATION; exports.FITBIT_STEPS_ANNOTATION = FITBIT_STEPS_ANNOTATION; exports.HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION = HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION; exports.HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE = HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE; exports.HEALTH_CONNECT_ANNOTATION_ITEM_STEPS = HEALTH_CONNECT_ANNOTATION_ITEM_STEPS; exports.HEALTH_CONNECT_DATA_SOURCES = HEALTH_CONNECT_DATA_SOURCES; exports.HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS = HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS; exports.HEALTH_CONNECT_SLEEP_ANNOTATION = HEALTH_CONNECT_SLEEP_ANNOTATION; exports.HEALTH_CONNECT_SLEEP_STAGE_MAP = HEALTH_CONNECT_SLEEP_STAGE_MAP; exports.HEALTH_CONNECT_STEPS_ANNOTATION = HEALTH_CONNECT_STEPS_ANNOTATION; exports.IMUAnnotation = IMUAnnotation; exports.ImageExtension = ImageExtension; exports.InternalSensorAnnotationTypes = InternalSensorAnnotationTypes; exports.Iso3166CodeSystem = Iso3166CodeSystem; exports.KeyHandler = KeyHandler; exports.MaxValueExtension = MaxValueExtension; exports.MeasurementTypeSystem = MeasurementTypeSystem; exports.MinLengthExtension = MinLengthExtension; exports.MinValueExtension = MinValueExtension; exports.OTHER_ANSWER_CODE = OTHER_ANSWER_CODE; exports.ObservationTypeSystem = ObservationTypeSystem; exports.Offset = Offset; exports.PAMSCardioVascularActivityAnnotation = PAMSCardioVascularActivityAnnotation; exports.PAMSGeneralActivityInstantaneousAnnotation = PAMSGeneralActivityInstantaneousAnnotation; exports.PAMSGeneralActivitySummaryAnnotation = PAMSGeneralActivitySummaryAnnotation; exports.PAMSStepCounterActivitySummaryAnnotation = PAMSStepCounterActivitySummaryAnnotation; exports.PSMSHeartRateAnnotation = PSMSHeartRateAnnotation; exports.PSMSPPGGreenAnnotation = PSMSPPGGreenAnnotation; exports.PSMSPPGIRAnnotation = PSMSPPGIRAnnotation; exports.PSMSPPGRedAnnotation = PSMSPPGRedAnnotation; exports.PSMSSkinTemperatureAnnotation = PSMSSkinTemperatureAnnotation; exports.PostalCodeCountrySourceExtension = PostalCodeCountrySourceExtension; exports.PostalCodeFixedCountryUrl = PostalCodeFixedCountryUrl; exports.PostalCodeFromItemUrl = PostalCodeFromItemUrl; exports.PrepopulateExtension = PrepopulateExtension; exports.QItemControlDefinition = QItemControlDefinition; exports.RECORDING_MODEL_CURRENT_VERSION = RECORDING_MODEL_CURRENT_VERSION; exports.RECORDING_SIGNAL_MODEL_CURRENT_VERSION = RECORDING_SIGNAL_MODEL_CURRENT_VERSION; exports.RelativeMaxValueExtension = RelativeMaxValueExtension; exports.RelativeMinValueExtension = RelativeMinValueExtension; exports.ResponseGuard = ResponseGuard; exports.RoutineGuard = RoutineGuard; exports.RoutineIsPassiveExtension = RoutineIsPassiveExtension; exports.SIGNAL_DURATION_CODING = SIGNAL_DURATION_CODING; exports.SensorIdentifierSystem = SensorIdentifierSystem; exports.SensorSettingsSystem = SensorSettingsSystem; exports.SensorTypeSystem = SensorTypeSystem; exports.SignalIDSystem = SignalIDSystem; exports.SliderInputLabel = SliderInputLabel; exports.SliderMaxLabelExtension = SliderMaxLabelExtension; exports.SliderMinLabelExtension = SliderMinLabelExtension; exports.SliderOrientationExtension = SliderOrientationExtension; exports.SliderStepSizeExtension = SliderStepSizeExtension; exports.StudyNameSystem = StudyNameSystem; exports.SurveyGuard = SurveyGuard; exports.TimeFuncs = TimeFuncs; exports.TokenNamingSystem = TokenNamingSystem; exports.ULID_REGEX = ULID_REGEX; exports.ULIDtoUUID = ULIDtoUUID; exports.UUID_REGEX = UUID_REGEX; exports.UUIDtoULID = UUIDtoULID; exports.WORDLIST_LANGUAGES = WORDLIST_LANGUAGES; exports.WearOS3AnnotationMap = WearOS3AnnotationMap; exports.WebConverter = WebConverter; exports.YearGuard = YearGuard; exports.binaryStringToUint8Array = binaryStringToUint8Array; exports.calculateQuestionnaireScoreRange = calculateQuestionnaireScoreRange; exports.calculateScoreRangeForItem = calculateScoreRangeForItem; exports.capitalizeFirstLetter = capitalizeFirstLetter; exports.dayFormat = dayFormat; exports.encodeDataSource = encodeDataSource; exports.extractWordsFromRecoveryPhrase = extractWordsFromRecoveryPhrase; exports.generateFHIRConsent = generateFHIRConsent; exports.generateFHIRQuestionnaireScore = generateFHIRQuestionnaireScore; exports.generateFHIRRecordingBundle = generateFHIRRecordingBundle; exports.generateFHIRResearchSubject = generateFHIRResearchSubject; exports.generateFHIRResponse = generateFHIRResponse; exports.generateFHIRSeenDisplay = generateFHIRSeenDisplay; exports.generateFHIRSeenMessage = generateFHIRSeenMessage; exports.generateFHIRTag = generateFHIRTag; exports.generateQuestionGuard = generateQuestionGuard; exports.generateStepGuard = generateStepGuard; exports.generateUrn = generateUrn; exports.get = get; exports.getFollowUpQuestionLinkId = getFollowUpQuestionLinkId; exports.getLanguageOfPassPhrase = getLanguageOfPassPhrase; exports.getMovellaAnnotation = getMovellaAnnotation; exports.getText = getText; exports.getTimeFuncs = getTimeFuncs; exports.indexArrayBy = indexArrayBy; exports.isBeforeStartDate = isBeforeStartDate; exports.isNotAfterEndDate = isNotAfterEndDate; exports.isNotBeforeStartDate = isNotBeforeStartDate; exports.isScoreEligible = isScoreEligible; exports.isYearString = isYearString; exports.newStepDateGuard = newStepDateGuard; exports.overwriteTime = overwriteTime; exports.stringToDate = stringToDate; exports.stringToYear = stringToYear; exports.timezonelessDate = timezonelessDate; exports.toDeviceConfig = toDeviceConfig; exports.toQuestionnaireResponseItem = toQuestionnaireResponseItem; exports.uint8ArrayToBinaryString = uint8ArrayToBinaryString; exports.utf8ToUint8Array = utf8ToUint8Array; exports.wordlists = wordlists;
|
|
5911
|
+
|
|
5912
|
+
|
|
5913
|
+
|
|
5914
|
+
exports.ANDROID_SENSORS_CONSTANT_NAMES = ANDROID_SENSORS_CONSTANT_NAMES; exports.API_TARGET_MAP = API_TARGET_MAP; exports.APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION = APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION; exports.APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY = APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY; exports.APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION = APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION; exports.APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE = APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE; exports.APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT = APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT; exports.APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE = APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE; exports.APPLE_HEALTH_DATA_SOURCES = APPLE_HEALTH_DATA_SOURCES; exports.APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS = APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS; exports.APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION = APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION; exports.APPLE_HEALTH_SLEEP_STATE_MAP = APPLE_HEALTH_SLEEP_STATE_MAP; exports.APPLE_HEALTH_STEP_COUNT_ANNOTATION = APPLE_HEALTH_STEP_COUNT_ANNOTATION; exports.APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION = APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION; exports.ASMSECGMeasurementAnnotation = ASMSECGMeasurementAnnotation; exports.ASMSSpO2MeasurementAnnotation = ASMSSpO2MeasurementAnnotation; exports.AnswerCodeGuard = AnswerCodeGuard; exports.AnswerDateGuard = AnswerDateGuard; exports.AppIDNamingSystem = AppIDNamingSystem; exports.BLE_ASMS_ANNOTATION_ITEM_ECG = BLE_ASMS_ANNOTATION_ITEM_ECG; exports.BLE_ASMS_ANNOTATION_ITEM_SPO2 = BLE_ASMS_ANNOTATION_ITEM_SPO2; exports.BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE = BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES = BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE = BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN = BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS = BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS; exports.BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS = BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS; exports.BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION = BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION; exports.BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE = BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE; exports.BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED = BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED; exports.BLE_PAMS_ANNOTATION_ITEM_BYTE = BLE_PAMS_ANNOTATION_ITEM_BYTE; exports.BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL = BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL = BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_FLAGS_16 = BLE_PAMS_ANNOTATION_ITEM_FLAGS_16; exports.BLE_PAMS_ANNOTATION_ITEM_FLAGS_24 = BLE_PAMS_ANNOTATION_ITEM_FLAGS_24; exports.BLE_PAMS_ANNOTATION_ITEM_FLAGS_32 = BLE_PAMS_ANNOTATION_ITEM_FLAGS_32; exports.BLE_PAMS_ANNOTATION_ITEM_FLAGS_8 = BLE_PAMS_ANNOTATION_ITEM_FLAGS_8; exports.BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL = BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES = BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES; exports.BLE_PAMS_ANNOTATION_ITEM_HEADER = BLE_PAMS_ANNOTATION_ITEM_HEADER; exports.BLE_PAMS_ANNOTATION_ITEM_HEART_RATE = BLE_PAMS_ANNOTATION_ITEM_HEART_RATE; exports.BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE = BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE; exports.BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED = BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED; exports.BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE = BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE; exports.BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED = BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED; exports.BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE = BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE; exports.BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN = BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN; exports.BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN = BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN; exports.BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL = BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_SPEED = BLE_PAMS_ANNOTATION_ITEM_SPEED; exports.BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL = BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL; exports.BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES = BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES; exports.BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES = BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES; exports.BLE_PAMS_ANNOTATION_ITEM_VO2_MAX = BLE_PAMS_ANNOTATION_ITEM_VO2_MAX; exports.BLE_PSMS_ANNOTATION_ITEM_HEART_RATE = BLE_PSMS_ANNOTATION_ITEM_HEART_RATE; exports.BLE_PSMS_ANNOTATION_ITEM_IBI = BLE_PSMS_ANNOTATION_ITEM_IBI; exports.BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN = BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN; exports.BLE_PSMS_ANNOTATION_ITEM_PPG_IR = BLE_PSMS_ANNOTATION_ITEM_PPG_IR; exports.BLE_PSMS_ANNOTATION_ITEM_PPG_RED = BLE_PSMS_ANNOTATION_ITEM_PPG_RED; exports.BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE = BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE; exports.BoolGuard = BoolGuard; exports.CPMSHealthServicesActivityDetectionAnnotation = CPMSHealthServicesActivityDetectionAnnotation; exports.CPMSHealthServicesPassiveDataAnnotation = CPMSHealthServicesPassiveDataAnnotation; exports.CommunicationTypeSystem = CommunicationTypeSystem; exports.Conjunction = Conjunction; exports.ConsentGuard = ConsentGuard; exports.ConsentNameSystem = ConsentNameSystem; exports.ConsentVersionSystem = ConsentVersionSystem; exports.CountryValueSet = CountryValueSet; exports.CustomExtensionContextValue = CustomExtensionContextValue; exports.CustomExtensionDate = CustomExtensionDate; exports.CustomExtensionStudyName = CustomExtensionStudyName; exports.CustomQuestionSystem = CustomQuestionSystem; exports.DEVICE_ANNOTATION_HEARTRATE = DEVICE_ANNOTATION_HEARTRATE; exports.DEVICE_ANNOTATION_ITEM_ACCELERATION = DEVICE_ANNOTATION_ITEM_ACCELERATION; exports.DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED = DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED; exports.DEVICE_ANNOTATION_ITEM_BEACON_ID = DEVICE_ANNOTATION_ITEM_BEACON_ID; exports.DEVICE_ANNOTATION_ITEM_DATA_SOURCE = DEVICE_ANNOTATION_ITEM_DATA_SOURCE; exports.DEVICE_ANNOTATION_ITEM_DISTANCE = DEVICE_ANNOTATION_ITEM_DISTANCE; exports.DEVICE_ANNOTATION_ITEM_EGVS = DEVICE_ANNOTATION_ITEM_EGVS; exports.DEVICE_ANNOTATION_ITEM_HEARTRATE = DEVICE_ANNOTATION_ITEM_HEARTRATE; exports.DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD = DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD; exports.DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE = DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE; exports.DEVICE_ANNOTATION_ITEM_RSSI = DEVICE_ANNOTATION_ITEM_RSSI; exports.DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP = DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP; exports.DEVICE_ANNOTATION_TIMESTAMP_NOTE = DEVICE_ANNOTATION_TIMESTAMP_NOTE; exports.DEVICE_ANNOTATION_TIMESTAMP_SIZE = DEVICE_ANNOTATION_TIMESTAMP_SIZE; exports.DEVICE_ANNOTATION_TIMESTAMP_UNIT = DEVICE_ANNOTATION_TIMESTAMP_UNIT; exports.DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG = DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG; exports.DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP = DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP; exports.DEVICE_DISPLAY_LABEL_CODING = DEVICE_DISPLAY_LABEL_CODING; exports.DEVICE_KEY_TO_NAME = DEVICE_KEY_TO_NAME; exports.DEVICE_LABEL_CODING = DEVICE_LABEL_CODING; exports.DEVICE_OUTPUT_RATE_CODING = DEVICE_OUTPUT_RATE_CODING; exports.DEVICE_SENSOR_DELAY_CODING = DEVICE_SENSOR_DELAY_CODING; exports.DateGuard = DateGuard; exports.DecimalGuard = DecimalGuard; exports.Disjunction = Disjunction; exports.DonationSDK = DonationSDK; exports.ERROR_CODES = ERROR_CODES; exports.ExistsGuard = ExistsGuard; exports.FITBIT_ANNOTATION_ITEM_BREATHING_RATE = FITBIT_ANNOTATION_ITEM_BREATHING_RATE; exports.FITBIT_ANNOTATION_ITEM_CALORIES = FITBIT_ANNOTATION_ITEM_CALORIES; exports.FITBIT_ANNOTATION_ITEM_HEART_RATE = FITBIT_ANNOTATION_ITEM_HEART_RATE; exports.FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY = FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY; exports.FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE = FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE; exports.FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL = FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL; exports.FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION = FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION; exports.FITBIT_ANNOTATION_ITEM_SPO2 = FITBIT_ANNOTATION_ITEM_SPO2; exports.FITBIT_ANNOTATION_ITEM_STEPS = FITBIT_ANNOTATION_ITEM_STEPS; exports.FITBIT_BREATHING_RATE_ANNOTATION = FITBIT_BREATHING_RATE_ANNOTATION; exports.FITBIT_CALORIES_ANNOTATION = FITBIT_CALORIES_ANNOTATION; exports.FITBIT_HEART_RATE_ANNOTATION = FITBIT_HEART_RATE_ANNOTATION; exports.FITBIT_HEART_RATE_VARIABILITY_ANNOTATION = FITBIT_HEART_RATE_VARIABILITY_ANNOTATION; exports.FITBIT_SIGNAL_TYPE_ANNOTATIONS = FITBIT_SIGNAL_TYPE_ANNOTATIONS; exports.FITBIT_SKIN_TEMPERATURE_ANNOTATION = FITBIT_SKIN_TEMPERATURE_ANNOTATION; exports.FITBIT_SLEEP_ANNOTATION = FITBIT_SLEEP_ANNOTATION; exports.FITBIT_SLEEP_LEVEL_MAP = FITBIT_SLEEP_LEVEL_MAP; exports.FITBIT_SPO2_ANNOTATION = FITBIT_SPO2_ANNOTATION; exports.FITBIT_STEPS_ANNOTATION = FITBIT_STEPS_ANNOTATION; exports.HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION = HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION; exports.HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE = HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE; exports.HEALTH_CONNECT_ANNOTATION_ITEM_STEPS = HEALTH_CONNECT_ANNOTATION_ITEM_STEPS; exports.HEALTH_CONNECT_DATA_SOURCES = HEALTH_CONNECT_DATA_SOURCES; exports.HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS = HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS; exports.HEALTH_CONNECT_SLEEP_ANNOTATION = HEALTH_CONNECT_SLEEP_ANNOTATION; exports.HEALTH_CONNECT_SLEEP_STAGE_MAP = HEALTH_CONNECT_SLEEP_STAGE_MAP; exports.HEALTH_CONNECT_STEPS_ANNOTATION = HEALTH_CONNECT_STEPS_ANNOTATION; exports.IMUAnnotation = IMUAnnotation; exports.ImageExtension = ImageExtension; exports.InternalSensorAnnotationTypes = InternalSensorAnnotationTypes; exports.Iso3166CodeSystem = Iso3166CodeSystem; exports.KeyHandler = KeyHandler; exports.MaxValueExtension = MaxValueExtension; exports.MeasurementTypeSystem = MeasurementTypeSystem; exports.MinLengthExtension = MinLengthExtension; exports.MinValueExtension = MinValueExtension; exports.OTHER_ANSWER_CODE = OTHER_ANSWER_CODE; exports.ObservationTypeSystem = ObservationTypeSystem; exports.Offset = Offset; exports.PAMSCardioVascularActivityAnnotation = PAMSCardioVascularActivityAnnotation; exports.PAMSGeneralActivityInstantaneousAnnotation = PAMSGeneralActivityInstantaneousAnnotation; exports.PAMSGeneralActivitySummaryAnnotation = PAMSGeneralActivitySummaryAnnotation; exports.PAMSStepCounterActivitySummaryAnnotation = PAMSStepCounterActivitySummaryAnnotation; exports.PSMSHeartRateAnnotation = PSMSHeartRateAnnotation; exports.PSMSPPGGreenAnnotation = PSMSPPGGreenAnnotation; exports.PSMSPPGIRAnnotation = PSMSPPGIRAnnotation; exports.PSMSPPGRedAnnotation = PSMSPPGRedAnnotation; exports.PSMSSkinTemperatureAnnotation = PSMSSkinTemperatureAnnotation; exports.PostalCodeCountrySourceExtension = PostalCodeCountrySourceExtension; exports.PostalCodeFixedCountryUrl = PostalCodeFixedCountryUrl; exports.PostalCodeFromItemUrl = PostalCodeFromItemUrl; exports.PrepopulateExtension = PrepopulateExtension; exports.QItemControlDefinition = QItemControlDefinition; exports.RECORDING_MODEL_CURRENT_VERSION = RECORDING_MODEL_CURRENT_VERSION; exports.RECORDING_SIGNAL_MODEL_CURRENT_VERSION = RECORDING_SIGNAL_MODEL_CURRENT_VERSION; exports.RelativeMaxValueExtension = RelativeMaxValueExtension; exports.RelativeMinValueExtension = RelativeMinValueExtension; exports.ResponseGuard = ResponseGuard; exports.RoutineGuard = RoutineGuard; exports.RoutineIsPassiveExtension = RoutineIsPassiveExtension; exports.SIGNAL_DURATION_CODING = SIGNAL_DURATION_CODING; exports.SensorIdentifierSystem = SensorIdentifierSystem; exports.SensorSettingsSystem = SensorSettingsSystem; exports.SensorTypeSystem = SensorTypeSystem; exports.SignalIDSystem = SignalIDSystem; exports.SliderInputLabel = SliderInputLabel; exports.SliderMaxLabelExtension = SliderMaxLabelExtension; exports.SliderMinLabelExtension = SliderMinLabelExtension; exports.SliderOrientationExtension = SliderOrientationExtension; exports.SliderStepSizeExtension = SliderStepSizeExtension; exports.StudyNameSystem = StudyNameSystem; exports.SurveyGuard = SurveyGuard; exports.TimeFuncs = TimeFuncs; exports.TokenNamingSystem = TokenNamingSystem; exports.ULID_REGEX = ULID_REGEX; exports.ULIDtoUUID = ULIDtoUUID; exports.UUID_REGEX = UUID_REGEX; exports.UUIDtoULID = UUIDtoULID; exports.WORDLIST_LANGUAGES = WORDLIST_LANGUAGES; exports.WearOS3AnnotationMap = WearOS3AnnotationMap; exports.WebConverter = WebConverter; exports.YearGuard = YearGuard; exports.binaryStringToUint8Array = binaryStringToUint8Array; exports.calculateQuestionnaireScoreRange = calculateQuestionnaireScoreRange; exports.calculateScoreRangeForItem = calculateScoreRangeForItem; exports.capitalizeFirstLetter = capitalizeFirstLetter; exports.dayFormat = dayFormat; exports.encodeDataSource = encodeDataSource; exports.extractWordsFromRecoveryPhrase = extractWordsFromRecoveryPhrase; exports.generateFHIRConsent = generateFHIRConsent; exports.generateFHIRQuestionnaireScore = generateFHIRQuestionnaireScore; exports.generateFHIRRecordingBundle = generateFHIRRecordingBundle; exports.generateFHIRResearchSubject = generateFHIRResearchSubject; exports.generateFHIRResponse = generateFHIRResponse; exports.generateFHIRSeenDisplay = generateFHIRSeenDisplay; exports.generateFHIRSeenMessage = generateFHIRSeenMessage; exports.generateFHIRTag = generateFHIRTag; exports.generateQuestionGuard = generateQuestionGuard; exports.generateStepGuard = generateStepGuard; exports.generateUrn = generateUrn; exports.get = get; exports.getFollowUpQuestionLinkId = getFollowUpQuestionLinkId; exports.getLanguageOfPassPhrase = getLanguageOfPassPhrase; exports.getMovellaAnnotation = getMovellaAnnotation; exports.getText = getText; exports.getTimeFuncs = getTimeFuncs; exports.indexArrayBy = indexArrayBy; exports.isBeforeStartDate = isBeforeStartDate; exports.isFlatAnswer = isFlatAnswer; exports.isMatrixAnswer = isMatrixAnswer; exports.isNotAfterEndDate = isNotAfterEndDate; exports.isNotBeforeStartDate = isNotBeforeStartDate; exports.isScalarAnswer = isScalarAnswer; exports.isScoreEligible = isScoreEligible; exports.isYearString = isYearString; exports.newStepDateGuard = newStepDateGuard; exports.overwriteTime = overwriteTime; exports.stringToDate = stringToDate; exports.stringToYear = stringToYear; exports.timezonelessDate = timezonelessDate; exports.toDeviceConfig = toDeviceConfig; exports.toQuestionnaireResponseItem = toQuestionnaireResponseItem; exports.uint8ArrayToBinaryString = uint8ArrayToBinaryString; exports.utf8ToUint8Array = utf8ToUint8Array; exports.wordlists = wordlists;
|
|
5907
5915
|
//# sourceMappingURL=index.js.map
|