@ovok/core 0.4.49-dev.520 → 0.4.49-dev.521

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.
@@ -3,14 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.analyteValue = void 0;
4
4
  const MeasurementTypes_1 = require("../../../types/MeasurementTypes");
5
5
  const fhir_systems_1 = require("../fhir-systems");
6
- const presenceValue = (value) => ({
7
- valueCodeableConcept: {
8
- coding: [{
9
- system: MeasurementTypes_1.UrinePresenceCoding.system,
10
- code: value > 0 ? MeasurementTypes_1.UrinePresenceCoding.positive : MeasurementTypes_1.UrinePresenceCoding.negative,
11
- }],
12
- },
13
- });
6
+ const presenceValue = (value) => {
7
+ const positive = value > 0;
8
+ return {
9
+ valueCodeableConcept: {
10
+ coding: [{
11
+ system: MeasurementTypes_1.UrinePresenceCoding.system,
12
+ code: positive ? MeasurementTypes_1.UrinePresenceCoding.positive : MeasurementTypes_1.UrinePresenceCoding.negative,
13
+ display: positive ? "Positive" : "Negative",
14
+ }],
15
+ },
16
+ };
17
+ };
14
18
  const analyteQuantity = (analyte, value) => ({
15
19
  valueQuantity: {
16
20
  value,
@@ -26,7 +26,7 @@ exports.OVOK_CORE_REQUIREMENTS = {
26
26
  description: "The FHIR surface a server must provide for the @ovok/core client library's own methods to function.",
27
27
  software: {
28
28
  name: "@ovok/core",
29
- version: "0.4.49-dev.520+2f36c60",
29
+ version: "0.4.49-dev.521+9475981",
30
30
  },
31
31
  fhirVersion: "4.0.1",
32
32
  format: ["json"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/core",
3
- "version": "0.4.49-dev.520+2f36c60",
3
+ "version": "0.4.49-dev.521+9475981",
4
4
  "private": false,
5
5
  "main": "dist/next/index.js",
6
6
  "types": "dist/next/index.d.ts",