@icure/be-fhc-api 0.4.5 → 0.4.8

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.
Files changed (38) hide show
  1. package/api/{fhcDataattributeserviceApi.d.ts → fhcDataAttributeServiceApi.d.ts} +19 -16
  2. package/api/fhcDataAttributeServiceApi.js +65 -0
  3. package/api/fhcSchematronApi.d.ts +29 -0
  4. package/api/fhcSchematronApi.js +53 -0
  5. package/fhcApi.d.ts +2 -7
  6. package/fhcApi.js +2 -8
  7. package/index.d.ts +2 -0
  8. package/index.js +2 -0
  9. package/model/ActivePattern.d.ts +18 -0
  10. package/model/ActivePattern.js +20 -0
  11. package/model/DaasResponse.d.ts +2 -14
  12. package/model/DaasResponse.js +0 -23
  13. package/model/DiagnosticReference.d.ts +16 -0
  14. package/model/DiagnosticReference.js +20 -0
  15. package/model/FailedAssert.d.ts +22 -0
  16. package/model/FailedAssert.js +9 -0
  17. package/model/FiredRule.d.ts +18 -0
  18. package/model/FiredRule.js +20 -0
  19. package/model/ItemType.d.ts +2 -2
  20. package/model/KmehrRegimen.d.ts +16 -0
  21. package/model/KmehrRegimen.js +9 -0
  22. package/model/Mapstringstring.d.ts +2 -14
  23. package/model/Mapstringstring.js +1 -13
  24. package/model/MessageOperationResponse.d.ts +1 -1
  25. package/model/Ns.d.ts +16 -0
  26. package/model/Ns.js +20 -0
  27. package/model/NsPrefixInAttributeValues.d.ts +16 -0
  28. package/model/NsPrefixInAttributeValues.js +20 -0
  29. package/model/SchematronOutput.d.ts +30 -0
  30. package/model/SchematronOutput.js +9 -0
  31. package/model/SchematronValidationResult.d.ts +20 -0
  32. package/model/SchematronValidationResult.js +9 -0
  33. package/model/SuccessfulReport.d.ts +22 -0
  34. package/model/SuccessfulReport.js +9 -0
  35. package/model/models.d.ts +13 -0
  36. package/model/models.js +13 -0
  37. package/package.json +1 -1
  38. package/api/fhcDataattributeserviceApi.js +0 -67
@@ -8,27 +8,30 @@
8
8
  * NOTE: This class is auto generated by the swagger code generator program.
9
9
  * https://github.com/swagger-api/swagger-codegen.git
10
10
  * Do not edit the class manually.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
11
  */
24
12
  import { XHR } from "./XHR";
25
- import * as models from "../model/models";
26
- export declare class fhcDataattributeserviceApi {
13
+ import { DaasResponse } from "../model/DaasResponse";
14
+ export declare class fhcDataAttributeserviceApi {
27
15
  host: string;
28
16
  headers: Array<XHR.Header>;
29
17
  fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
30
18
  constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
31
19
  setHeaders(h: Array<XHR.Header>): void;
32
- handleError(e: XHR.XHRError): void;
33
- getDinRoutingInfoUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, nihii: string, ssin: string, dateOfBirth: number, from: number, to: number, cause: string, prolongation: boolean, total: boolean): Promise<models.DaasResponse | any>;
20
+ handleError(e: XHR.XHRError): never;
21
+ /**
22
+ *
23
+ * @summary getDinRoutingInfo
24
+ * @param xFHCKeystoreId X-FHC-keystoreId
25
+ * @param xFHCTokenId X-FHC-tokenId
26
+ * @param xFHCPassPhrase X-FHC-passPhrase
27
+ * @param nihii nihii
28
+ * @param ssin ssin
29
+ * @param dateOfBirth dateOfBirth
30
+ * @param from from
31
+ * @param to to
32
+ * @param cause cause
33
+ * @param prolongation prolongation
34
+ * @param total total
35
+ */
36
+ getDinRoutingInfoUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, nihii: string, ssin: string, dateOfBirth: number, from: number, to: number, cause: string, prolongation: boolean, total: boolean): Promise<DaasResponse>;
34
37
  }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fhcDataAttributeserviceApi = void 0;
4
+ /**
5
+ * Api Documentation
6
+ * Api Documentation
7
+ *
8
+ * OpenAPI spec version: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by the swagger code generator program.
12
+ * https://github.com/swagger-api/swagger-codegen.git
13
+ * Do not edit the class manually.
14
+ */
15
+ const XHR_1 = require("./XHR");
16
+ const DaasResponse_1 = require("../model/DaasResponse");
17
+ class fhcDataAttributeserviceApi {
18
+ constructor(host, headers, fetchImpl) {
19
+ this.host = host;
20
+ this.headers = Object.keys(headers).map(k => new XHR_1.XHR.Header(k, headers[k]));
21
+ this.fetchImpl = fetchImpl;
22
+ }
23
+ setHeaders(h) {
24
+ this.headers = h;
25
+ }
26
+ handleError(e) {
27
+ throw e;
28
+ }
29
+ /**
30
+ *
31
+ * @summary getDinRoutingInfo
32
+ * @param xFHCKeystoreId X-FHC-keystoreId
33
+ * @param xFHCTokenId X-FHC-tokenId
34
+ * @param xFHCPassPhrase X-FHC-passPhrase
35
+ * @param nihii nihii
36
+ * @param ssin ssin
37
+ * @param dateOfBirth dateOfBirth
38
+ * @param from from
39
+ * @param to to
40
+ * @param cause cause
41
+ * @param prolongation prolongation
42
+ * @param total total
43
+ */
44
+ getDinRoutingInfoUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, nihii, ssin, dateOfBirth, from, to, cause, prolongation, total) {
45
+ let _body = null;
46
+ const _url = this.host +
47
+ `/daas/din/${encodeURIComponent(String(nihii))}/${encodeURIComponent(String(ssin))}` +
48
+ "?ts=" +
49
+ new Date().getTime() +
50
+ (dateOfBirth ? "&dateOfBirth=" + encodeURIComponent(String(dateOfBirth)) : "") +
51
+ (from ? "&from=" + encodeURIComponent(String(from)) : "") +
52
+ (to ? "&to=" + encodeURIComponent(String(to)) : "") +
53
+ (cause ? "&cause=" + encodeURIComponent(String(cause)) : "") +
54
+ (prolongation ? "&prolongation=" + encodeURIComponent(String(prolongation)) : "") +
55
+ (total ? "&total=" + encodeURIComponent(String(total)) : "");
56
+ let headers = this.headers;
57
+ xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
58
+ xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
59
+ xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
60
+ return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
61
+ .then(doc => new DaasResponse_1.DaasResponse(doc.body))
62
+ .catch(err => this.handleError(err));
63
+ }
64
+ }
65
+ exports.fhcDataAttributeserviceApi = fhcDataAttributeserviceApi;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { XHR } from "./XHR";
13
+ import { SchematronValidationResult } from "../model/SchematronValidationResult";
14
+ export declare class fhcSchematronApi {
15
+ host: string;
16
+ headers: Array<XHR.Header>;
17
+ fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
18
+ constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
19
+ setHeaders(h: Array<XHR.Header>): void;
20
+ handleError(e: XHR.XHRError): never;
21
+ /**
22
+ *
23
+ * @summary getDinRoutingInfo
24
+ * @param body body
25
+ * @param xFHCTokenId X-FHC-tokenId
26
+ * @param schema schema
27
+ */
28
+ validateUsingShematron(xFHCTokenId: string, schema: string, body?: string): Promise<SchematronValidationResult>;
29
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fhcSchematronApi = void 0;
4
+ /**
5
+ * Api Documentation
6
+ * Api Documentation
7
+ *
8
+ * OpenAPI spec version: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by the swagger code generator program.
12
+ * https://github.com/swagger-api/swagger-codegen.git
13
+ * Do not edit the class manually.
14
+ */
15
+ const XHR_1 = require("./XHR");
16
+ const SchematronValidationResult_1 = require("../model/SchematronValidationResult");
17
+ class fhcSchematronApi {
18
+ constructor(host, headers, fetchImpl) {
19
+ this.host = host;
20
+ this.headers = Object.keys(headers).map(k => new XHR_1.XHR.Header(k, headers[k]));
21
+ this.fetchImpl = fetchImpl;
22
+ }
23
+ setHeaders(h) {
24
+ this.headers = h;
25
+ }
26
+ handleError(e) {
27
+ throw e;
28
+ }
29
+ /**
30
+ *
31
+ * @summary getDinRoutingInfo
32
+ * @param body body
33
+ * @param xFHCTokenId X-FHC-tokenId
34
+ * @param schema schema
35
+ */
36
+ validateUsingShematron(xFHCTokenId, schema, body) {
37
+ let _body = null;
38
+ _body = body;
39
+ const _url = this.host +
40
+ `/schematron/validate/${encodeURIComponent(String(schema))}` +
41
+ "?ts=" +
42
+ new Date().getTime();
43
+ let headers = this.headers;
44
+ headers = headers
45
+ .filter(h => h.header !== "Content-Type")
46
+ .concat(new XHR_1.XHR.Header("Content-Type", "application/xml"));
47
+ xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
48
+ return XHR_1.XHR.sendCommand("POST", _url, headers, _body, this.fetchImpl)
49
+ .then(doc => new SchematronValidationResult_1.SchematronValidationResult(doc.body))
50
+ .catch(err => this.handleError(err));
51
+ }
52
+ }
53
+ exports.fhcSchematronApi = fhcSchematronApi;
package/fhcApi.d.ts CHANGED
@@ -4,7 +4,7 @@ export * from "./api/fhcChapter4Api";
4
4
  export * from "./api/fhcConsentApi";
5
5
  export * from "./api/fhcConsultrnApi";
6
6
  export * from "./api/fhcCryptoApi";
7
- export * from "./api/fhcDataattributeserviceApi";
7
+ export * from "./api/fhcDataAttributeServiceApi";
8
8
  export * from "./api/fhcDmgApi";
9
9
  export * from "./api/fhcEattestApi";
10
10
  export * from "./api/fhcEattestV2Api";
@@ -17,13 +17,8 @@ export * from "./api/fhcMemberDataApi";
17
17
  export * from "./api/fhcMhmApi";
18
18
  export * from "./api/fhcRecipeApi";
19
19
  export * from "./api/fhcRnConsultApi";
20
+ export * from "./api/fhcSchematronApi";
20
21
  export * from "./api/fhcStsApi";
21
22
  export * from "./api/fhcTarificationApi";
22
23
  export * from "./api/fhcTherLinkApi";
23
24
  export * from "./api/fhcVaccinnetApi";
24
- export * from "./x-api/message-x-api";
25
- export * from "./x-api/receipt-x-api";
26
- import * as efactUtil from "./x-api/utils/efact-util";
27
- export { efactUtil };
28
- import * as efactParser from "./x-api/utils/efact-parser";
29
- export { efactParser };
package/fhcApi.js CHANGED
@@ -10,14 +10,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.efactParser = exports.efactUtil = void 0;
14
13
  __exportStar(require("./api/fhcAddressbookApi"), exports);
15
14
  __exportStar(require("./api/fhcAdminApi"), exports);
16
15
  __exportStar(require("./api/fhcChapter4Api"), exports);
17
16
  __exportStar(require("./api/fhcConsentApi"), exports);
18
17
  __exportStar(require("./api/fhcConsultrnApi"), exports);
19
18
  __exportStar(require("./api/fhcCryptoApi"), exports);
20
- __exportStar(require("./api/fhcDataattributeserviceApi"), exports);
19
+ __exportStar(require("./api/fhcDataAttributeServiceApi"), exports);
21
20
  __exportStar(require("./api/fhcDmgApi"), exports);
22
21
  __exportStar(require("./api/fhcEattestApi"), exports);
23
22
  __exportStar(require("./api/fhcEattestV2Api"), exports);
@@ -30,13 +29,8 @@ __exportStar(require("./api/fhcMemberDataApi"), exports);
30
29
  __exportStar(require("./api/fhcMhmApi"), exports);
31
30
  __exportStar(require("./api/fhcRecipeApi"), exports);
32
31
  __exportStar(require("./api/fhcRnConsultApi"), exports);
32
+ __exportStar(require("./api/fhcSchematronApi"), exports);
33
33
  __exportStar(require("./api/fhcStsApi"), exports);
34
34
  __exportStar(require("./api/fhcTarificationApi"), exports);
35
35
  __exportStar(require("./api/fhcTherLinkApi"), exports);
36
36
  __exportStar(require("./api/fhcVaccinnetApi"), exports);
37
- __exportStar(require("./x-api/message-x-api"), exports);
38
- __exportStar(require("./x-api/receipt-x-api"), exports);
39
- const efactUtil = require("./x-api/utils/efact-util");
40
- exports.efactUtil = efactUtil;
41
- const efactParser = require("./x-api/utils/efact-parser");
42
- exports.efactParser = efactParser;
package/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export * from "./fhcApi";
2
2
  export * from "./model/models";
3
+ export * from "./x-api/message-x-api";
4
+ export * from "./x-api/receipt-x-api";
3
5
  export { XHR } from "./api/XHR";
package/index.js CHANGED
@@ -13,5 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.XHR = void 0;
14
14
  __exportStar(require("./fhcApi"), exports);
15
15
  __exportStar(require("./model/models"), exports);
16
+ __exportStar(require("./x-api/message-x-api"), exports);
17
+ __exportStar(require("./x-api/receipt-x-api"), exports);
16
18
  var XHR_1 = require("./api/XHR");
17
19
  Object.defineProperty(exports, "XHR", { enumerable: true, get: function () { return XHR_1.XHR; } });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class ActivePattern {
13
+ constructor(json: JSON | any);
14
+ document?: string;
15
+ id?: string;
16
+ name?: string;
17
+ role?: string;
18
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Api Documentation
4
+ * Api Documentation
5
+ *
6
+ * OpenAPI spec version: 1.0
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ActivePattern = void 0;
15
+ class ActivePattern {
16
+ constructor(json) {
17
+ Object.assign(this, json);
18
+ }
19
+ }
20
+ exports.ActivePattern = ActivePattern;
@@ -8,25 +8,13 @@
8
8
  * NOTE: This class is auto generated by the swagger code generator program.
9
9
  * https://github.com/swagger-api/swagger-codegen.git
10
10
  * Do not edit the class manually.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
11
  */
24
- import * as models from "./models";
12
+ import { Mapstringstring } from "./Mapstringstring";
25
13
  export declare class DaasResponse {
26
14
  constructor(json: JSON | any);
27
15
  context?: {
28
16
  [key: string]: string;
29
17
  };
30
- destinations?: Array<models.Mapstringstring>;
18
+ destinations?: Array<Mapstringstring>;
31
19
  status?: string;
32
20
  }
@@ -1,27 +1,4 @@
1
1
  "use strict";
2
- /**
3
- * Api Documentation
4
- * Api Documentation
5
- *
6
- * OpenAPI spec version: 1.0
7
- *
8
- *
9
- * NOTE: This class is auto generated by the swagger code generator program.
10
- * https://github.com/swagger-api/swagger-codegen.git
11
- * Do not edit the class manually.
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.DaasResponse = void 0;
27
4
  class DaasResponse {
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class DiagnosticReference {
13
+ constructor(json: JSON | any);
14
+ diagnostic?: string;
15
+ text?: string;
16
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Api Documentation
4
+ * Api Documentation
5
+ *
6
+ * OpenAPI spec version: 1.0
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.DiagnosticReference = void 0;
15
+ class DiagnosticReference {
16
+ constructor(json) {
17
+ Object.assign(this, json);
18
+ }
19
+ }
20
+ exports.DiagnosticReference = DiagnosticReference;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { DiagnosticReference } from "./DiagnosticReference";
13
+ export declare class FailedAssert {
14
+ constructor(json: JSON | any);
15
+ diagnosticReference?: Array<DiagnosticReference>;
16
+ flag?: string;
17
+ id?: string;
18
+ location?: string;
19
+ role?: string;
20
+ test?: string;
21
+ text?: string;
22
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FailedAssert = void 0;
4
+ class FailedAssert {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.FailedAssert = FailedAssert;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class FiredRule {
13
+ constructor(json: JSON | any);
14
+ context?: string;
15
+ flag?: string;
16
+ id?: string;
17
+ role?: string;
18
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Api Documentation
4
+ * Api Documentation
5
+ *
6
+ * OpenAPI spec version: 1.0
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.FiredRule = void 0;
15
+ class FiredRule {
16
+ constructor(json) {
17
+ Object.assign(this, json);
18
+ }
19
+ }
20
+ exports.FiredRule = FiredRule;
@@ -20,13 +20,13 @@ import { DurationType } from "./DurationType";
20
20
  import { Feedback } from "./Feedback";
21
21
  import { FrequencyType } from "./FrequencyType";
22
22
  import { IDKMEHR } from "./IDKMEHR";
23
+ import { KmehrRegimen } from "./KmehrRegimen";
23
24
  import { LifecycleType } from "./LifecycleType";
24
25
  import { LnkType } from "./LnkType";
25
26
  import { LocalitemattributeType } from "./LocalitemattributeType";
26
27
  import { MomentType } from "./MomentType";
27
28
  import { Posology } from "./Posology";
28
29
  import { QuantityType } from "./QuantityType";
29
- import { Regimen } from "./Regimen";
30
30
  import { RenewalType } from "./RenewalType";
31
31
  import { RouteType } from "./RouteType";
32
32
  import { SeverityType } from "./SeverityType";
@@ -65,7 +65,7 @@ export declare class ItemType {
65
65
  posology?: Posology;
66
66
  quantity?: QuantityType;
67
67
  recorddatetime?: Date;
68
- regimen?: Regimen;
68
+ regimen?: KmehrRegimen;
69
69
  renewal?: RenewalType;
70
70
  route?: RouteType;
71
71
  severity?: SeverityType;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { JAXBElementobject } from "./JAXBElementobject";
13
+ export declare class KmehrRegimen {
14
+ constructor(json: JSON | any);
15
+ daynumbersAndQuantitiesAndDates?: Array<JAXBElementobject>;
16
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KmehrRegimen = void 0;
4
+ class KmehrRegimen {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.KmehrRegimen = KmehrRegimen;
@@ -8,20 +8,8 @@
8
8
  * NOTE: This class is auto generated by the swagger code generator program.
9
9
  * https://github.com/swagger-api/swagger-codegen.git
10
10
  * Do not edit the class manually.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
11
  */
24
- export declare class Mapstringstring {
25
- constructor(json: JSON | any);
12
+ export declare class Mapstringstring extends null<String, string> {
26
13
  [key: string]: string;
14
+ constructor(json: JSON | any);
27
15
  }
@@ -9,22 +9,10 @@
9
9
  * NOTE: This class is auto generated by the swagger code generator program.
10
10
  * https://github.com/swagger-api/swagger-codegen.git
11
11
  * Do not edit the class manually.
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
12
  */
25
13
  Object.defineProperty(exports, "__esModule", { value: true });
26
14
  exports.Mapstringstring = void 0;
27
- class Mapstringstring {
15
+ class Mapstringstring extends null {
28
16
  constructor(json) {
29
17
  Object.assign(this, json);
30
18
  }
@@ -12,6 +12,6 @@
12
12
  export declare class MessageOperationResponse {
13
13
  constructor(json: JSON | any);
14
14
  error?: Error;
15
- success?: boolean;
16
15
  messageId?: string;
16
+ success?: boolean;
17
17
  }
package/model/Ns.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class Ns {
13
+ constructor(json: JSON | any);
14
+ prefix?: string;
15
+ uri?: string;
16
+ }
package/model/Ns.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Api Documentation
4
+ * Api Documentation
5
+ *
6
+ * OpenAPI spec version: 1.0
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Ns = void 0;
15
+ class Ns {
16
+ constructor(json) {
17
+ Object.assign(this, json);
18
+ }
19
+ }
20
+ exports.Ns = Ns;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class NsPrefixInAttributeValues {
13
+ constructor(json: JSON | any);
14
+ prefix?: string;
15
+ uri?: string;
16
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Api Documentation
4
+ * Api Documentation
5
+ *
6
+ * OpenAPI spec version: 1.0
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.NsPrefixInAttributeValues = void 0;
15
+ class NsPrefixInAttributeValues {
16
+ constructor(json) {
17
+ Object.assign(this, json);
18
+ }
19
+ }
20
+ exports.NsPrefixInAttributeValues = NsPrefixInAttributeValues;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ActivePattern } from "./ActivePattern";
13
+ import { FailedAssert } from "./FailedAssert";
14
+ import { FiredRule } from "./FiredRule";
15
+ import { Ns } from "./Ns";
16
+ import { NsPrefixInAttributeValues } from "./NsPrefixInAttributeValues";
17
+ import { SuccessfulReport } from "./SuccessfulReport";
18
+ export declare class SchematronOutput {
19
+ constructor(json: JSON | any);
20
+ activePattern?: Array<ActivePattern>;
21
+ failedAssert?: Array<FailedAssert>;
22
+ firedRule?: Array<FiredRule>;
23
+ ns?: Array<Ns>;
24
+ nsPrefixInAttributeValues?: Array<NsPrefixInAttributeValues>;
25
+ phase?: string;
26
+ schemaVersion?: string;
27
+ successfulReport?: Array<SuccessfulReport>;
28
+ text?: Array<string>;
29
+ title?: string;
30
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchematronOutput = void 0;
4
+ class SchematronOutput {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.SchematronOutput = SchematronOutput;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { SchematronOutput } from "./SchematronOutput";
13
+ export declare class SchematronValidationResult {
14
+ constructor(json: JSON | any);
15
+ failedMessages?: Array<string>;
16
+ reportMessages?: Array<string>;
17
+ svrl?: SchematronOutput;
18
+ svrlasString?: string;
19
+ valid?: boolean;
20
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchematronValidationResult = void 0;
4
+ class SchematronValidationResult {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.SchematronValidationResult = SchematronValidationResult;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { DiagnosticReference } from "./DiagnosticReference";
13
+ export declare class SuccessfulReport {
14
+ constructor(json: JSON | any);
15
+ diagnosticReference?: Array<DiagnosticReference>;
16
+ flag?: string;
17
+ id?: string;
18
+ location?: string;
19
+ role?: string;
20
+ test?: string;
21
+ text?: string;
22
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SuccessfulReport = void 0;
4
+ class SuccessfulReport {
5
+ constructor(json) {
6
+ Object.assign(this, json);
7
+ }
8
+ }
9
+ exports.SuccessfulReport = SuccessfulReport;
package/model/models.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  export * from "./AccessRightListType";
2
2
  export * from "./AccessRightType";
3
+ export * from "./AcknowledgeType";
3
4
  export * from "./Acknowledgement";
4
5
  export * from "./AcknowledgeType";
5
6
  export * from "./AcknowledgmentType";
6
7
  export * from "./ActType";
8
+ export * from "./ActivePattern";
7
9
  export * from "./AddVaccinationsResponseType";
8
10
  export * from "./AddedDocumentPreview";
9
11
  export * from "./Address";
@@ -136,6 +138,7 @@ export * from "./DeceaseResponseType";
136
138
  export * from "./Denominator";
137
139
  export * from "./DetailType";
138
140
  export * from "./DetailsType";
141
+ export * from "./DiagnosticReference";
139
142
  export * from "./DigestMethod";
140
143
  export * from "./DimensionDto";
141
144
  export * from "./DiplomaticInformationType";
@@ -183,9 +186,11 @@ export * from "./Externalsource";
183
186
  export * from "./FCMAXType";
184
187
  export * from "./FCMINType";
185
188
  export * from "./FacetDto";
189
+ export * from "./FailedAssert";
186
190
  export * from "./FaultType";
187
191
  export * from "./Feedback";
188
192
  export * from "./FinancialInstitutionInformation";
193
+ export * from "./FiredRule";
189
194
  export * from "./FlatFileMetadata";
190
195
  export * from "./FlatFileWithMetadata";
191
196
  export * from "./FolderType";
@@ -243,6 +248,7 @@ export * from "./KmehrCd";
243
248
  export * from "./KmehrId";
244
249
  export * from "./KmehrPatientDto";
245
250
  export * from "./KmehrQuantity";
251
+ export * from "./KmehrRegimen";
246
252
  export * from "./Kmehrmessage";
247
253
  export * from "./LOCAL";
248
254
  export * from "./LegalCohabitationBaseType";
@@ -276,6 +282,7 @@ export * from "./MemberinsuranceType";
276
282
  export * from "./Message";
277
283
  export * from "./MessageOperationResponse";
278
284
  export * from "./MessageResponse";
285
+ export * from "./MessageStatusOperationResponse";
279
286
  export * from "./MessagesResponse";
280
287
  export * from "./MessageStatusOperationResponse";
281
288
  export * from "./MiddleNameType";
@@ -306,6 +313,8 @@ export * from "./NationalityType";
306
313
  export * from "./NobilityTitleBaseType";
307
314
  export * from "./NobilityTitleType";
308
315
  export * from "./Nominator";
316
+ export * from "./Ns";
317
+ export * from "./NsPrefixInAttributeValues";
309
318
  export * from "./PackageType";
310
319
  export * from "./Paginationrequestinfo";
311
320
  export * from "./Paginationresponseinfo";
@@ -412,6 +421,8 @@ export * from "./RnConsultSearchPersonBySsinResponseDto";
412
421
  export * from "./RnConsultSearchPersonPhoneticallyResponseDto";
413
422
  export * from "./RouteType";
414
423
  export * from "./SamlTokenResult";
424
+ export * from "./SchematronOutput";
425
+ export * from "./SchematronValidationResult";
415
426
  export * from "./SearchBySSINReplyDto";
416
427
  export * from "./SearchPhoneticReplyDto";
417
428
  export * from "./SendAttestResult";
@@ -450,6 +461,7 @@ export * from "./SubjectConfirmationDataType";
450
461
  export * from "./SubregisterBaseType";
451
462
  export * from "./SubstanceType";
452
463
  export * from "./Substanceproduct";
464
+ export * from "./SuccessfulReport";
453
465
  export * from "./TAck";
454
466
  export * from "./Takes";
455
467
  export * from "./TarificationConsultationResult";
@@ -482,6 +494,7 @@ export * from "./UUIDType";
482
494
  export * from "./UnitType";
483
495
  export * from "./UpdateFeedbackFlagResult";
484
496
  export * from "./UrgencyType";
497
+ export * from "./User";
485
498
  export * from "./VaccinationId";
486
499
  export * from "./VaccinationStatusType";
487
500
  export * from "./VaccineInjection";
package/model/models.js CHANGED
@@ -12,10 +12,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./AccessRightListType"), exports);
14
14
  __exportStar(require("./AccessRightType"), exports);
15
+ __exportStar(require("./AcknowledgeType"), exports);
15
16
  __exportStar(require("./Acknowledgement"), exports);
16
17
  __exportStar(require("./AcknowledgeType"), exports);
17
18
  __exportStar(require("./AcknowledgmentType"), exports);
18
19
  __exportStar(require("./ActType"), exports);
20
+ __exportStar(require("./ActivePattern"), exports);
19
21
  __exportStar(require("./AddVaccinationsResponseType"), exports);
20
22
  __exportStar(require("./AddedDocumentPreview"), exports);
21
23
  __exportStar(require("./Address"), exports);
@@ -148,6 +150,7 @@ __exportStar(require("./DeceaseResponseType"), exports);
148
150
  __exportStar(require("./Denominator"), exports);
149
151
  __exportStar(require("./DetailType"), exports);
150
152
  __exportStar(require("./DetailsType"), exports);
153
+ __exportStar(require("./DiagnosticReference"), exports);
151
154
  __exportStar(require("./DigestMethod"), exports);
152
155
  __exportStar(require("./DimensionDto"), exports);
153
156
  __exportStar(require("./DiplomaticInformationType"), exports);
@@ -195,9 +198,11 @@ __exportStar(require("./Externalsource"), exports);
195
198
  __exportStar(require("./FCMAXType"), exports);
196
199
  __exportStar(require("./FCMINType"), exports);
197
200
  __exportStar(require("./FacetDto"), exports);
201
+ __exportStar(require("./FailedAssert"), exports);
198
202
  __exportStar(require("./FaultType"), exports);
199
203
  __exportStar(require("./Feedback"), exports);
200
204
  __exportStar(require("./FinancialInstitutionInformation"), exports);
205
+ __exportStar(require("./FiredRule"), exports);
201
206
  __exportStar(require("./FlatFileMetadata"), exports);
202
207
  __exportStar(require("./FlatFileWithMetadata"), exports);
203
208
  __exportStar(require("./FolderType"), exports);
@@ -255,6 +260,7 @@ __exportStar(require("./KmehrCd"), exports);
255
260
  __exportStar(require("./KmehrId"), exports);
256
261
  __exportStar(require("./KmehrPatientDto"), exports);
257
262
  __exportStar(require("./KmehrQuantity"), exports);
263
+ __exportStar(require("./KmehrRegimen"), exports);
258
264
  __exportStar(require("./Kmehrmessage"), exports);
259
265
  __exportStar(require("./LOCAL"), exports);
260
266
  __exportStar(require("./LegalCohabitationBaseType"), exports);
@@ -288,6 +294,7 @@ __exportStar(require("./MemberinsuranceType"), exports);
288
294
  __exportStar(require("./Message"), exports);
289
295
  __exportStar(require("./MessageOperationResponse"), exports);
290
296
  __exportStar(require("./MessageResponse"), exports);
297
+ __exportStar(require("./MessageStatusOperationResponse"), exports);
291
298
  __exportStar(require("./MessagesResponse"), exports);
292
299
  __exportStar(require("./MessageStatusOperationResponse"), exports);
293
300
  __exportStar(require("./MiddleNameType"), exports);
@@ -318,6 +325,8 @@ __exportStar(require("./NationalityType"), exports);
318
325
  __exportStar(require("./NobilityTitleBaseType"), exports);
319
326
  __exportStar(require("./NobilityTitleType"), exports);
320
327
  __exportStar(require("./Nominator"), exports);
328
+ __exportStar(require("./Ns"), exports);
329
+ __exportStar(require("./NsPrefixInAttributeValues"), exports);
321
330
  __exportStar(require("./PackageType"), exports);
322
331
  __exportStar(require("./Paginationrequestinfo"), exports);
323
332
  __exportStar(require("./Paginationresponseinfo"), exports);
@@ -424,6 +433,8 @@ __exportStar(require("./RnConsultSearchPersonBySsinResponseDto"), exports);
424
433
  __exportStar(require("./RnConsultSearchPersonPhoneticallyResponseDto"), exports);
425
434
  __exportStar(require("./RouteType"), exports);
426
435
  __exportStar(require("./SamlTokenResult"), exports);
436
+ __exportStar(require("./SchematronOutput"), exports);
437
+ __exportStar(require("./SchematronValidationResult"), exports);
427
438
  __exportStar(require("./SearchBySSINReplyDto"), exports);
428
439
  __exportStar(require("./SearchPhoneticReplyDto"), exports);
429
440
  __exportStar(require("./SendAttestResult"), exports);
@@ -462,6 +473,7 @@ __exportStar(require("./SubjectConfirmationDataType"), exports);
462
473
  __exportStar(require("./SubregisterBaseType"), exports);
463
474
  __exportStar(require("./SubstanceType"), exports);
464
475
  __exportStar(require("./Substanceproduct"), exports);
476
+ __exportStar(require("./SuccessfulReport"), exports);
465
477
  __exportStar(require("./TAck"), exports);
466
478
  __exportStar(require("./Takes"), exports);
467
479
  __exportStar(require("./TarificationConsultationResult"), exports);
@@ -494,6 +506,7 @@ __exportStar(require("./UUIDType"), exports);
494
506
  __exportStar(require("./UnitType"), exports);
495
507
  __exportStar(require("./UpdateFeedbackFlagResult"), exports);
496
508
  __exportStar(require("./UrgencyType"), exports);
509
+ __exportStar(require("./User"), exports);
497
510
  __exportStar(require("./VaccinationId"), exports);
498
511
  __exportStar(require("./VaccinationStatusType"), exports);
499
512
  __exportStar(require("./VaccineInjection"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/be-fhc-api",
3
- "version": "0.4.5",
3
+ "version": "0.4.8",
4
4
  "description": "Typescript version of Freehealth Connector standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,67 +0,0 @@
1
- "use strict";
2
- /**
3
- * Api Documentation
4
- * Api Documentation
5
- *
6
- * OpenAPI spec version: 1.0
7
- *
8
- *
9
- * NOTE: This class is auto generated by the swagger code generator program.
10
- * https://github.com/swagger-api/swagger-codegen.git
11
- * Do not edit the class manually.
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.fhcDataattributeserviceApi = void 0;
27
- const XHR_1 = require("./XHR");
28
- const models = require("../model/models");
29
- class fhcDataattributeserviceApi {
30
- constructor(host, headers, fetchImpl) {
31
- this.host = host;
32
- this.headers = Object.keys(headers).map(k => new XHR_1.XHR.Header(k, headers[k]));
33
- this.fetchImpl = fetchImpl;
34
- }
35
- setHeaders(h) {
36
- this.headers = h;
37
- }
38
- handleError(e) {
39
- throw e;
40
- }
41
- getDinRoutingInfoUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, nihii, ssin, dateOfBirth, from, to, cause, prolongation, total) {
42
- let _body = null;
43
- const _url = this.host +
44
- "/daas/din/{nihii}/{ssin}".replace("{nihii}", nihii + "").replace("{ssin}", ssin + "") +
45
- "?ts=" +
46
- new Date().getTime() +
47
- (dateOfBirth ? "&dateOfBirth=" + dateOfBirth : "") +
48
- (from ? "&from=" + from : "") +
49
- (to ? "&to=" + to : "") +
50
- (cause ? "&cause=" + cause : "") +
51
- "&prolongation=" +
52
- prolongation +
53
- "&total=" +
54
- total;
55
- let headers = this.headers;
56
- headers = headers
57
- .filter(h => h.header !== "Content-Type")
58
- .concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
59
- headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId));
60
- headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId));
61
- headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase));
62
- return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
63
- .then(doc => new models.DaasResponse(doc.body))
64
- .catch(err => this.handleError(err));
65
- }
66
- }
67
- exports.fhcDataattributeserviceApi = fhcDataattributeserviceApi;