@icure/api 8.4.6 → 8.4.7

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.
@@ -10,7 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { CodeStub } from './CodeStub';
13
- import { ReferenceRange } from "./ReferenceRange";
13
+ import { ReferenceRange } from './ReferenceRange';
14
+ import { ValueWithPrecision } from './ValueWithPrecision';
14
15
  export declare class Measure {
15
16
  /**
16
17
  * We delete min and max from the json and create a referenceRanges from it
@@ -20,6 +21,7 @@ export declare class Measure {
20
21
  */
21
22
  constructor(json: JSON | any);
22
23
  value?: number;
24
+ valueWithPrecision?: ValueWithPrecision;
23
25
  ref?: number;
24
26
  severity?: number;
25
27
  severityCode?: string;
@@ -15,8 +15,8 @@ class Measure {
15
15
  measureValue.referenceRanges = [
16
16
  new ReferenceRange_1.ReferenceRange({
17
17
  low: measureValue.min,
18
- high: measureValue.max
19
- })
18
+ high: measureValue.max,
19
+ }),
20
20
  ];
21
21
  measureValue === null || measureValue === void 0 ? true : delete measureValue.min;
22
22
  measureValue === null || measureValue === void 0 ? true : delete measureValue.max;
@@ -1 +1 @@
1
- {"version":3,"file":"Measure.js","sourceRoot":"","sources":["../../../icc-api/model/Measure.ts"],"names":[],"mappings":";;;AAYA,qDAA+C;AAE/C,MAAa,OAAO;IAClB;;;;;OAKG;IACH,YAAY,IAAgB;QAC1B,MAAM,YAAY,qBAAO,IAAI,CAAC,CAAA;QAE9B,IAAI,CAAC,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,GAAG,CAAA,IAAI,CAAC,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,GAAG,CAAA,EAAE,CAAC;YAC/C,YAAY,CAAC,eAAe,GAAG;gBAC7B,IAAI,+BAAc,CAAC;oBACjB,GAAG,EAAE,YAAY,CAAC,GAAG;oBACrB,IAAI,EAAE,YAAY,CAAC,GAAG;iBACvB,CAAC;aACH,CAAA;YACM,YAAY,aAAZ,YAAY,4BAAZ,YAAY,CAAE,GAAG,CAAA;YACjB,YAAY,aAAZ,YAAY,4BAAZ,YAAY,CAAE,GAAG,CAAA;QAC1B,CAAC;QAED,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,YAAY,CAAC,CAAA;IAC9C,CAAC;CAgBF;AAtCD,0BAsCC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { CodeStub } from './CodeStub'\nimport {ReferenceRange} from \"./ReferenceRange\"\n\nexport class Measure {\n /**\n * We delete min and max from the json and create a referenceRanges from it\n * Since this is a shallow copy, deletion of min and max will have no effect on the original json since it's the top level fields\n *\n * @param json\n */\n constructor(json: JSON | any) {\n const measureValue = {...json}\n\n if (!!measureValue?.min || !!measureValue?.max) {\n measureValue.referenceRanges = [\n new ReferenceRange({\n low: measureValue.min,\n high: measureValue.max\n })\n ]\n delete measureValue?.min\n delete measureValue?.max\n }\n\n Object.assign(this as Measure, measureValue)\n }\n\n value?: number\n ref?: number\n severity?: number\n severityCode?: string\n evolution?: number\n unit?: string\n sign?: string\n unitCodes?: Array<CodeStub>\n comment?: string\n comparator?: string\n /**\n * Reference range for the measure\n */\n referenceRanges?: Array<ReferenceRange>\n}\n"]}
1
+ {"version":3,"file":"Measure.js","sourceRoot":"","sources":["../../../icc-api/model/Measure.ts"],"names":[],"mappings":";;;AAYA,qDAAiD;AAGjD,MAAa,OAAO;IAClB;;;;;OAKG;IACH,YAAY,IAAgB;QAC1B,MAAM,YAAY,qBAAQ,IAAI,CAAE,CAAA;QAEhC,IAAI,CAAC,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,GAAG,CAAA,IAAI,CAAC,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,GAAG,CAAA,EAAE,CAAC;YAC/C,YAAY,CAAC,eAAe,GAAG;gBAC7B,IAAI,+BAAc,CAAC;oBACjB,GAAG,EAAE,YAAY,CAAC,GAAG;oBACrB,IAAI,EAAE,YAAY,CAAC,GAAG;iBACvB,CAAC;aACH,CAAA;YACM,YAAY,aAAZ,YAAY,4BAAZ,YAAY,CAAE,GAAG,CAAA;YACjB,YAAY,aAAZ,YAAY,4BAAZ,YAAY,CAAE,GAAG,CAAA;QAC1B,CAAC;QAED,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,YAAY,CAAC,CAAA;IAC9C,CAAC;CAiBF;AAvCD,0BAuCC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { CodeStub } from './CodeStub'\nimport { ReferenceRange } from './ReferenceRange'\nimport { ValueWithPrecision } from './ValueWithPrecision'\n\nexport class Measure {\n /**\n * We delete min and max from the json and create a referenceRanges from it\n * Since this is a shallow copy, deletion of min and max will have no effect on the original json since it's the top level fields\n *\n * @param json\n */\n constructor(json: JSON | any) {\n const measureValue = { ...json }\n\n if (!!measureValue?.min || !!measureValue?.max) {\n measureValue.referenceRanges = [\n new ReferenceRange({\n low: measureValue.min,\n high: measureValue.max,\n }),\n ]\n delete measureValue?.min\n delete measureValue?.max\n }\n\n Object.assign(this as Measure, measureValue)\n }\n\n value?: number\n valueWithPrecision?: ValueWithPrecision\n ref?: number\n severity?: number\n severityCode?: string\n evolution?: number\n unit?: string\n sign?: string\n unitCodes?: Array<CodeStub>\n comment?: string\n comparator?: string\n /**\n * Reference range for the measure\n */\n referenceRanges?: Array<ReferenceRange>\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export declare class ValueWithPrecision {
2
+ constructor(json: JSON | any);
3
+ value?: number;
4
+ precision?: number;
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValueWithPrecision = void 0;
4
+ class ValueWithPrecision {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.ValueWithPrecision = ValueWithPrecision;
10
+ //# sourceMappingURL=ValueWithPrecision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValueWithPrecision.js","sourceRoot":"","sources":["../../../icc-api/model/ValueWithPrecision.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;IAC7B,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAA0B,EAAE,IAAI,CAAC,CAAA;IACjD,CAAC;CAIF;AAPD,gDAOC","sourcesContent":["export class ValueWithPrecision {\n constructor(json: JSON | any) {\n Object.assign(this as ValueWithPrecision, json)\n }\n\n value?: number\n precision?: number\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/api",
3
- "version": "8.4.6",
3
+ "version": "8.4.7",
4
4
  "description": "Typescript version of iCure standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",