@d4l/collect-lib 1.0.0 → 1.1.1
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/README.md +35 -20
- package/dist/index.d.mts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +38 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -4392,6 +4392,11 @@ var DEVICE_LABEL_CODING = {
|
|
|
4392
4392
|
code: "device_label",
|
|
4393
4393
|
display: "Device label"
|
|
4394
4394
|
};
|
|
4395
|
+
var DEVICE_DISPLAY_LABEL_CODING = {
|
|
4396
|
+
system: SensorSettingsSystem,
|
|
4397
|
+
code: "display_label",
|
|
4398
|
+
display: "Display Label"
|
|
4399
|
+
};
|
|
4395
4400
|
var DEVICE_OUTPUT_RATE_CODING = {
|
|
4396
4401
|
system: "urn:iso:std:iso:11073:10101",
|
|
4397
4402
|
code: "68320",
|
|
@@ -4795,7 +4800,7 @@ function displayLabelToFHIR(signal, reference, effectivePeriod) {
|
|
|
4795
4800
|
resourceType: "Observation",
|
|
4796
4801
|
status: "final",
|
|
4797
4802
|
code: {
|
|
4798
|
-
coding: [
|
|
4803
|
+
coding: [DEVICE_DISPLAY_LABEL_CODING]
|
|
4799
4804
|
},
|
|
4800
4805
|
subject: { reference },
|
|
4801
4806
|
effectivePeriod,
|
|
@@ -5072,8 +5077,38 @@ function generateFHIRTag(code, date, labels, stringTemplater) {
|
|
|
5072
5077
|
}
|
|
5073
5078
|
};
|
|
5074
5079
|
}
|
|
5080
|
+
|
|
5081
|
+
// src/configuration/apis.ts
|
|
5082
|
+
var API_TARGET_MAP = {
|
|
5083
|
+
DEXCOM: {
|
|
5084
|
+
prod: {
|
|
5085
|
+
loginEndpoint: "https://api.dexcom.com/v2/oauth2/login",
|
|
5086
|
+
tokenEndpoint: "https://api.dexcom.com/v2/oauth2/token",
|
|
5087
|
+
dataEndpoint: "https://api.dexcom.eu/v3/users/self"
|
|
5088
|
+
},
|
|
5089
|
+
sandbox: {
|
|
5090
|
+
loginEndpoint: "https://sandbox-api.dexcom.com/v2/oauth2/login",
|
|
5091
|
+
tokenEndpoint: "https://sandbox-api.dexcom.com/v2/oauth2/token",
|
|
5092
|
+
dataEndpoint: "https://sandbox-api.dexcom.eu/v3/users/self"
|
|
5093
|
+
}
|
|
5094
|
+
},
|
|
5095
|
+
FITBIT: {
|
|
5096
|
+
prod: {
|
|
5097
|
+
loginEndpoint: "https://www.fitbit.com/oauth2/authorize",
|
|
5098
|
+
tokenEndpoint: "https://api.fitbit.com/oauth2/token",
|
|
5099
|
+
dataEndpoint: "https://api.fitbit.com/"
|
|
5100
|
+
},
|
|
5101
|
+
sandbox: {
|
|
5102
|
+
// Doesnt actually have a sandbox
|
|
5103
|
+
loginEndpoint: "https://www.fitbit.com/oauth2/authorize",
|
|
5104
|
+
tokenEndpoint: "https://api.fitbit.com/oauth2/token",
|
|
5105
|
+
dataEndpoint: "https://api.fitbit.com/"
|
|
5106
|
+
}
|
|
5107
|
+
}
|
|
5108
|
+
};
|
|
5075
5109
|
export {
|
|
5076
5110
|
ANDROID_SENSORS_CONSTANT_NAMES,
|
|
5111
|
+
API_TARGET_MAP,
|
|
5077
5112
|
ASMSECGMeasurementAnnotation,
|
|
5078
5113
|
ASMSSpO2MeasurementAnnotation,
|
|
5079
5114
|
AnswerCodeCondition,
|
|
@@ -5146,6 +5181,7 @@ export {
|
|
|
5146
5181
|
DEVICE_ANNOTATION_TIMESTAMP_UNIT,
|
|
5147
5182
|
DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG,
|
|
5148
5183
|
DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP,
|
|
5184
|
+
DEVICE_DISPLAY_LABEL_CODING,
|
|
5149
5185
|
DEVICE_LABEL_CODING,
|
|
5150
5186
|
DEVICE_OUTPUT_RATE_CODING,
|
|
5151
5187
|
DEVICE_SENSOR_DELAY_CODING,
|