@d4l/collect-lib 1.1.0 → 1.1.2
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 +1 -0
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -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",
|
|
@@ -4445,8 +4450,9 @@ function generateFHIRConsent(id, consent, decision, start, end) {
|
|
|
4445
4450
|
}
|
|
4446
4451
|
|
|
4447
4452
|
// src/fhir/eligibilityScore.ts
|
|
4448
|
-
function generateFHIREligibility(surveyName, createdAt, value, max, stringTemplater) {
|
|
4453
|
+
function generateFHIREligibility(id, surveyName, createdAt, value, max, stringTemplater) {
|
|
4449
4454
|
return {
|
|
4455
|
+
id,
|
|
4450
4456
|
resourceType: "Observation",
|
|
4451
4457
|
status: "final",
|
|
4452
4458
|
extension: [
|
|
@@ -4795,7 +4801,7 @@ function displayLabelToFHIR(signal, reference, effectivePeriod) {
|
|
|
4795
4801
|
resourceType: "Observation",
|
|
4796
4802
|
status: "final",
|
|
4797
4803
|
code: {
|
|
4798
|
-
coding: [
|
|
4804
|
+
coding: [DEVICE_DISPLAY_LABEL_CODING]
|
|
4799
4805
|
},
|
|
4800
4806
|
subject: { reference },
|
|
4801
4807
|
effectivePeriod,
|
|
@@ -5045,8 +5051,9 @@ function generateFHIRSeenDisplay(id, seenDisplay) {
|
|
|
5045
5051
|
}
|
|
5046
5052
|
|
|
5047
5053
|
// src/fhir/tag.ts
|
|
5048
|
-
function generateFHIRTag(code, date, labels, stringTemplater) {
|
|
5054
|
+
function generateFHIRTag(id, code, date, labels, stringTemplater) {
|
|
5049
5055
|
return {
|
|
5056
|
+
id,
|
|
5050
5057
|
resourceType: "Observation",
|
|
5051
5058
|
status: "final",
|
|
5052
5059
|
code: {
|
|
@@ -5176,6 +5183,7 @@ export {
|
|
|
5176
5183
|
DEVICE_ANNOTATION_TIMESTAMP_UNIT,
|
|
5177
5184
|
DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG,
|
|
5178
5185
|
DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP,
|
|
5186
|
+
DEVICE_DISPLAY_LABEL_CODING,
|
|
5179
5187
|
DEVICE_LABEL_CODING,
|
|
5180
5188
|
DEVICE_OUTPUT_RATE_CODING,
|
|
5181
5189
|
DEVICE_SENSOR_DELAY_CODING,
|