@openhealth/oht-custom-parser-lib 0.2.27 → 0.2.28

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.
@@ -393,7 +393,7 @@ async function ohtMeasurementsExtractor(labToOhtContract, ohtCoreApiKey) {
393
393
  const value = labToOhtMapper?.unknownMeasurement?.value ?? '';
394
394
  const unit = labToOhtMapper?.unknownMeasurement?.unit ?? '';
395
395
  const annotation = labToOhtMapper?.unknownMeasurement?.annotation ?? '';
396
- const jsonBlob = labToOhtMapper?.unknownMeasurement?.jsonBlob ?? '';
396
+ const jsonBlob = labToOhtMapper?.unknownMeasurement?.jsonBlob ?? {};
397
397
  const originalName = labToOhtMapper?.unknownMeasurement?.originalName ?? '';
398
398
  const labKey = labToOhtMapper.labKey;
399
399
  const dataOrigin = labToOhtMapper?.unknownMeasurement?.dataOrigin
@@ -40,7 +40,7 @@ export interface UnknownMeasurementExtraction {
40
40
  unit?: string;
41
41
  annotation?: string;
42
42
  dataOrigin?: DataOrigin;
43
- jsonBlob?: string;
43
+ jsonBlob?: Record<string, any>;
44
44
  originalName?: string;
45
45
  labKey?: string;
46
46
  }
@@ -148,7 +148,7 @@ export interface UnknownMeasurement {
148
148
  originalName?: string;
149
149
  }
150
150
  export interface UnmappedLabKey extends UnknownMeasurement {
151
- jsonBlob?: string;
151
+ jsonBlob?: Record<string, any>;
152
152
  labKey?: string;
153
153
  }
154
154
  export interface PatientInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openhealth/oht-custom-parser-lib",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "Shared nodejs lib with with reusable functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",