@metriport/ihe-gateway-sdk 0.27.1 → 0.27.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/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/models/document-query/document-query-responses.d.ts +2 -0
- package/dist/models/document-query/document-query-responses.d.ts.map +1 -1
- package/dist/models/document-query/document-query-responses.js +17 -1
- package/dist/models/document-query/document-query-responses.js.map +1 -1
- package/dist/models/document-retrieval/document-retrieval-requests.d.ts +3 -0
- package/dist/models/document-retrieval/document-retrieval-requests.d.ts.map +1 -1
- package/dist/models/document-retrieval/document-retrieval-requests.js +1 -0
- package/dist/models/document-retrieval/document-retrieval-requests.js.map +1 -1
- package/dist/models/document-retrieval/document-retrieval-responses.d.ts +14 -0
- package/dist/models/document-retrieval/document-retrieval-responses.d.ts.map +1 -1
- package/dist/models/document-retrieval/document-retrieval-responses.js +23 -1
- package/dist/models/document-retrieval/document-retrieval-responses.js.map +1 -1
- package/dist/models/patient-discovery/patient-discovery-responses.d.ts +14 -12
- package/dist/models/patient-discovery/patient-discovery-responses.d.ts.map +1 -1
- package/dist/models/patient-discovery/patient-discovery-responses.js +19 -1
- package/dist/models/patient-discovery/patient-discovery-responses.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { IHEGateway } from "./client/ihe-gateway";
|
|
2
2
|
export { ON_DEMAND_DOCUMENT_TYPE_UUID, STABLE_DOCUMENT_TYPE_UUID } from "./common/constants";
|
|
3
3
|
export { InboundDocumentQueryReq, inboundDocumentQueryReqSchema, inboundSpecificDocumentQueryReqSchema, InboundSpecificDocumentQueryReq, OutboundDocumentQueryReq, outboundDocumentQueryReqSchema, } from "./models/document-query/document-query-requests";
|
|
4
|
-
export { InboundDocumentQueryResp, InboundDocumentQueryRespFault, inboundDocumentQueryRespSchema, InboundDocumentQueryRespSuccessful, isSuccessfulOutboundDocQueryResponse, OutboundDocumentQueryResp, outboundDocumentQueryRespSchema, } from "./models/document-query/document-query-responses";
|
|
4
|
+
export { InboundDocumentQueryResp, InboundDocumentQueryRespFault, inboundDocumentQueryRespSchema, InboundDocumentQueryRespSuccessful, isSuccessfulOutboundDocQueryResponse, OutboundDocumentQueryResp, outboundDocumentQueryRespSchema, toSafeCaptureContext as toSafeCaptureContextDocumentQuery, } from "./models/document-query/document-query-responses";
|
|
5
5
|
export { InboundDocumentRetrievalReq, inboundDocumentRetrievalReqSchema, OutboundDocumentRetrievalReq, outboundDocumentRetrievalReqSchema, } from "./models/document-retrieval/document-retrieval-requests";
|
|
6
|
-
export { InboundDocumentRetrievalResp, InboundDocumentRetrievalRespFault, inboundDocumentRetrievalRespSchema, InboundDocumentRetrievalRespSuccessful, isSuccessfulInboundDocRetrievalResponse, isSuccessfulOutboundDocRetrievalResponse, OutboundDocumentRetrievalResp, outboundDocumentRetrievalRespSchema, } from "./models/document-retrieval/document-retrieval-responses";
|
|
6
|
+
export { InboundDocumentRetrievalResp, InboundDocumentRetrievalRespFault, inboundDocumentRetrievalRespSchema, InboundDocumentRetrievalRespSuccessful, isSuccessfulInboundDocRetrievalResponse, isSuccessfulOutboundDocRetrievalResponse, OutboundDocumentRetrievalResp, outboundDocumentRetrievalRespSchema, toSafeCaptureContext as toSafeCaptureContextDocumentRetrieval, } from "./models/document-retrieval/document-retrieval-responses";
|
|
7
7
|
export { Address, Gender, Name, PatientResource, patientResourceSchema, PersonalIdentifier, Telecom, } from "./models/patient-discovery/patient";
|
|
8
8
|
export { InboundPatientDiscoveryReq, inboundPatientDiscoveryReqSchema, OutboundPatientDiscoveryReq, outboundPatientDiscoveryReqSchema, } from "./models/patient-discovery/patient-discovery-requests";
|
|
9
|
-
export { InboundPatientDiscoveryResp, inboundPatientDiscoveryRespSchema, isNonErroringOutboundPatientDiscoveryResponse, isSuccessfulInboundPatientDiscoveryResponse, isSuccessfulOutboundPatientDiscoveryResponse, OutboundPatientDiscoveryResp, outboundPatientDiscoveryRespFaultSchema, OutboundPatientDiscoveryRespFaultSchema, outboundPatientDiscoveryRespSchema, outboundPatientDiscoveryRespSuccessfulSchema, OutboundPatientDiscoveryRespSuccessfulSchema, } from "./models/patient-discovery/patient-discovery-responses";
|
|
9
|
+
export { InboundPatientDiscoveryResp, inboundPatientDiscoveryRespSchema, isNonErroringOutboundPatientDiscoveryResponse, isSuccessfulInboundPatientDiscoveryResponse, isSuccessfulOutboundPatientDiscoveryResponse, OutboundPatientDiscoveryResp, outboundPatientDiscoveryRespFaultSchema, OutboundPatientDiscoveryRespFaultSchema, outboundPatientDiscoveryRespSchema, outboundPatientDiscoveryRespSuccessfulSchema, OutboundPatientDiscoveryRespSuccessfulSchema, toSafeCaptureContext, } from "./models/patient-discovery/patient-discovery-responses";
|
|
10
10
|
export { BaseErrorResponse, BaseRequest, baseRequestSchema, BaseResponse, Coding, DocumentReference, Issue, isBaseErrorResponse, NPIString, NPIStringArray, npiStringArraySchema, npiStringSchema, oidStringSchema, OperationOutcome, SamlAttributes, SubjectRole, XCAGateway, XCPDGateway, XCPDPatientId, } from "./models/shared";
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,qCAAqC,EACrC,+BAA+B,EAC/B,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,oCAAoC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wDAAwD,CAAC;AAChE,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,GACd,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.oidStringSchema = exports.npiStringSchema = exports.npiStringArraySchema = exports.isBaseErrorResponse = exports.baseRequestSchema = exports.outboundPatientDiscoveryRespSuccessfulSchema = exports.outboundPatientDiscoveryRespSchema = exports.outboundPatientDiscoveryRespFaultSchema = exports.isSuccessfulOutboundPatientDiscoveryResponse = exports.isSuccessfulInboundPatientDiscoveryResponse = exports.isNonErroringOutboundPatientDiscoveryResponse = exports.inboundPatientDiscoveryRespSchema = exports.outboundPatientDiscoveryReqSchema = exports.inboundPatientDiscoveryReqSchema = exports.patientResourceSchema = exports.outboundDocumentRetrievalRespSchema = exports.isSuccessfulOutboundDocRetrievalResponse = exports.isSuccessfulInboundDocRetrievalResponse = exports.inboundDocumentRetrievalRespSchema = exports.outboundDocumentRetrievalReqSchema = exports.inboundDocumentRetrievalReqSchema = exports.outboundDocumentQueryRespSchema = exports.isSuccessfulOutboundDocQueryResponse = exports.inboundDocumentQueryRespSchema = exports.outboundDocumentQueryReqSchema = exports.inboundSpecificDocumentQueryReqSchema = exports.inboundDocumentQueryReqSchema = exports.STABLE_DOCUMENT_TYPE_UUID = exports.ON_DEMAND_DOCUMENT_TYPE_UUID = exports.IHEGateway = void 0;
|
|
3
|
+
exports.oidStringSchema = exports.npiStringSchema = exports.npiStringArraySchema = exports.isBaseErrorResponse = exports.baseRequestSchema = exports.toSafeCaptureContext = exports.outboundPatientDiscoveryRespSuccessfulSchema = exports.outboundPatientDiscoveryRespSchema = exports.outboundPatientDiscoveryRespFaultSchema = exports.isSuccessfulOutboundPatientDiscoveryResponse = exports.isSuccessfulInboundPatientDiscoveryResponse = exports.isNonErroringOutboundPatientDiscoveryResponse = exports.inboundPatientDiscoveryRespSchema = exports.outboundPatientDiscoveryReqSchema = exports.inboundPatientDiscoveryReqSchema = exports.patientResourceSchema = exports.toSafeCaptureContextDocumentRetrieval = exports.outboundDocumentRetrievalRespSchema = exports.isSuccessfulOutboundDocRetrievalResponse = exports.isSuccessfulInboundDocRetrievalResponse = exports.inboundDocumentRetrievalRespSchema = exports.outboundDocumentRetrievalReqSchema = exports.inboundDocumentRetrievalReqSchema = exports.toSafeCaptureContextDocumentQuery = exports.outboundDocumentQueryRespSchema = exports.isSuccessfulOutboundDocQueryResponse = exports.inboundDocumentQueryRespSchema = exports.outboundDocumentQueryReqSchema = exports.inboundSpecificDocumentQueryReqSchema = exports.inboundDocumentQueryReqSchema = exports.STABLE_DOCUMENT_TYPE_UUID = exports.ON_DEMAND_DOCUMENT_TYPE_UUID = exports.IHEGateway = void 0;
|
|
4
4
|
var ihe_gateway_1 = require("./client/ihe-gateway");
|
|
5
5
|
Object.defineProperty(exports, "IHEGateway", { enumerable: true, get: function () { return ihe_gateway_1.IHEGateway; } });
|
|
6
6
|
var constants_1 = require("./common/constants");
|
|
@@ -14,6 +14,7 @@ var document_query_responses_1 = require("./models/document-query/document-query
|
|
|
14
14
|
Object.defineProperty(exports, "inboundDocumentQueryRespSchema", { enumerable: true, get: function () { return document_query_responses_1.inboundDocumentQueryRespSchema; } });
|
|
15
15
|
Object.defineProperty(exports, "isSuccessfulOutboundDocQueryResponse", { enumerable: true, get: function () { return document_query_responses_1.isSuccessfulOutboundDocQueryResponse; } });
|
|
16
16
|
Object.defineProperty(exports, "outboundDocumentQueryRespSchema", { enumerable: true, get: function () { return document_query_responses_1.outboundDocumentQueryRespSchema; } });
|
|
17
|
+
Object.defineProperty(exports, "toSafeCaptureContextDocumentQuery", { enumerable: true, get: function () { return document_query_responses_1.toSafeCaptureContext; } });
|
|
17
18
|
var document_retrieval_requests_1 = require("./models/document-retrieval/document-retrieval-requests");
|
|
18
19
|
Object.defineProperty(exports, "inboundDocumentRetrievalReqSchema", { enumerable: true, get: function () { return document_retrieval_requests_1.inboundDocumentRetrievalReqSchema; } });
|
|
19
20
|
Object.defineProperty(exports, "outboundDocumentRetrievalReqSchema", { enumerable: true, get: function () { return document_retrieval_requests_1.outboundDocumentRetrievalReqSchema; } });
|
|
@@ -22,6 +23,7 @@ Object.defineProperty(exports, "inboundDocumentRetrievalRespSchema", { enumerabl
|
|
|
22
23
|
Object.defineProperty(exports, "isSuccessfulInboundDocRetrievalResponse", { enumerable: true, get: function () { return document_retrieval_responses_1.isSuccessfulInboundDocRetrievalResponse; } });
|
|
23
24
|
Object.defineProperty(exports, "isSuccessfulOutboundDocRetrievalResponse", { enumerable: true, get: function () { return document_retrieval_responses_1.isSuccessfulOutboundDocRetrievalResponse; } });
|
|
24
25
|
Object.defineProperty(exports, "outboundDocumentRetrievalRespSchema", { enumerable: true, get: function () { return document_retrieval_responses_1.outboundDocumentRetrievalRespSchema; } });
|
|
26
|
+
Object.defineProperty(exports, "toSafeCaptureContextDocumentRetrieval", { enumerable: true, get: function () { return document_retrieval_responses_1.toSafeCaptureContext; } });
|
|
25
27
|
var patient_1 = require("./models/patient-discovery/patient");
|
|
26
28
|
Object.defineProperty(exports, "patientResourceSchema", { enumerable: true, get: function () { return patient_1.patientResourceSchema; } });
|
|
27
29
|
var patient_discovery_requests_1 = require("./models/patient-discovery/patient-discovery-requests");
|
|
@@ -35,6 +37,7 @@ Object.defineProperty(exports, "isSuccessfulOutboundPatientDiscoveryResponse", {
|
|
|
35
37
|
Object.defineProperty(exports, "outboundPatientDiscoveryRespFaultSchema", { enumerable: true, get: function () { return patient_discovery_responses_1.outboundPatientDiscoveryRespFaultSchema; } });
|
|
36
38
|
Object.defineProperty(exports, "outboundPatientDiscoveryRespSchema", { enumerable: true, get: function () { return patient_discovery_responses_1.outboundPatientDiscoveryRespSchema; } });
|
|
37
39
|
Object.defineProperty(exports, "outboundPatientDiscoveryRespSuccessfulSchema", { enumerable: true, get: function () { return patient_discovery_responses_1.outboundPatientDiscoveryRespSuccessfulSchema; } });
|
|
40
|
+
Object.defineProperty(exports, "toSafeCaptureContext", { enumerable: true, get: function () { return patient_discovery_responses_1.toSafeCaptureContext; } });
|
|
38
41
|
var shared_1 = require("./models/shared");
|
|
39
42
|
Object.defineProperty(exports, "baseRequestSchema", { enumerable: true, get: function () { return shared_1.baseRequestSchema; } });
|
|
40
43
|
Object.defineProperty(exports, "isBaseErrorResponse", { enumerable: true, get: function () { return shared_1.isBaseErrorResponse; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAAkD;AAAzC,yGAAA,UAAU,OAAA;AACnB,gDAA6F;AAApF,yHAAA,4BAA4B,OAAA;AAAE,sHAAA,yBAAyB,OAAA;AAChE,2FAOyD;AALvD,wIAAA,6BAA6B,OAAA;AAC7B,gJAAA,qCAAqC,OAAA;AAGrC,yIAAA,8BAA8B,OAAA;AAEhC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAAkD;AAAzC,yGAAA,UAAU,OAAA;AACnB,gDAA6F;AAApF,yHAAA,4BAA4B,OAAA;AAAE,sHAAA,yBAAyB,OAAA;AAChE,2FAOyD;AALvD,wIAAA,6BAA6B,OAAA;AAC7B,gJAAA,qCAAqC,OAAA;AAGrC,yIAAA,8BAA8B,OAAA;AAEhC,6FAS0D;AANxD,0IAAA,8BAA8B,OAAA;AAE9B,gJAAA,oCAAoC,OAAA;AAEpC,2IAAA,+BAA+B,OAAA;AAC/B,6IAAA,oBAAoB,OAAqC;AAE3D,uGAKiE;AAH/D,gJAAA,iCAAiC,OAAA;AAEjC,iJAAA,kCAAkC,OAAA;AAEpC,yGAUkE;AAPhE,kJAAA,kCAAkC,OAAA;AAElC,uJAAA,uCAAuC,OAAA;AACvC,wJAAA,wCAAwC,OAAA;AAExC,mJAAA,mCAAmC,OAAA;AACnC,qJAAA,oBAAoB,OAAyC;AAE/D,8DAQ4C;AAH1C,gHAAA,qBAAqB,OAAA;AAIvB,oGAK+D;AAH7D,8IAAA,gCAAgC,OAAA;AAEhC,+IAAA,iCAAiC,OAAA;AAEnC,sGAagE;AAX9D,gJAAA,iCAAiC,OAAA;AACjC,4JAAA,6CAA6C,OAAA;AAC7C,0JAAA,2CAA2C,OAAA;AAC3C,2JAAA,4CAA4C,OAAA;AAE5C,sJAAA,uCAAuC,OAAA;AAEvC,iJAAA,kCAAkC,OAAA;AAClC,2JAAA,4CAA4C,OAAA;AAE5C,mIAAA,oBAAoB,OAAA;AAEtB,0CAoByB;AAjBvB,2GAAA,iBAAiB,OAAA;AAKjB,6GAAA,mBAAmB,OAAA;AAGnB,8GAAA,oBAAoB,OAAA;AACpB,yGAAA,eAAe,OAAA;AACf,yGAAA,eAAe,OAAA"}
|
|
@@ -1685,5 +1685,7 @@ export type OutboundDocumentQueryResp = z.infer<typeof outboundDocumentQueryResp
|
|
|
1685
1685
|
export declare function isSuccessfulOutboundDocQueryResponse(obj: BaseResponse): obj is OutboundDocumentQueryResp & {
|
|
1686
1686
|
documentReference: DocumentReference[];
|
|
1687
1687
|
};
|
|
1688
|
+
/** Safe context for logging/capture: no document content or patient identifiers. */
|
|
1689
|
+
export declare function toSafeCaptureContext(response: OutboundDocumentQueryResp): Record<string, unknown>;
|
|
1688
1690
|
export {};
|
|
1689
1691
|
//# sourceMappingURL=document-query-responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-query-responses.d.ts","sourceRoot":"","sources":["../../../src/models/document-query/document-query-responses.ts"],"names":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAGxF,wBAAgB,oCAAoC,CAClD,GAAG,EAAE,YAAY,GAChB,GAAG,IAAI,yBAAyB,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAE/E"}
|
|
1
|
+
{"version":3,"file":"document-query-responses.d.ts","sourceRoot":"","sources":["../../../src/models/document-query/document-query-responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,YAAY,EAEZ,iBAAiB,EAGlB,MAAM,WAAW,CAAC;AAGnB,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5C,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AAEF,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEvC,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAGxF,wBAAgB,oCAAoC,CAClD,GAAG,EAAE,YAAY,GAChB,GAAG,IAAI,yBAAyB,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAE/E;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAajG"}
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.isSuccessfulOutboundDocQueryResponse = exports.outboundDocumentQueryRespSchema = exports.inboundDocumentQueryRespSchema = void 0;
|
|
26
|
+
exports.toSafeCaptureContext = exports.isSuccessfulOutboundDocQueryResponse = exports.outboundDocumentQueryRespSchema = exports.inboundDocumentQueryRespSchema = void 0;
|
|
27
27
|
const z = __importStar(require("zod"));
|
|
28
28
|
const shared_1 = require("../shared");
|
|
29
29
|
// TO EXTERNAL GATEWAY
|
|
@@ -55,4 +55,20 @@ function isSuccessfulOutboundDocQueryResponse(obj) {
|
|
|
55
55
|
return "documentReference" in obj;
|
|
56
56
|
}
|
|
57
57
|
exports.isSuccessfulOutboundDocQueryResponse = isSuccessfulOutboundDocQueryResponse;
|
|
58
|
+
/** Safe context for logging/capture: no document content or patient identifiers. */
|
|
59
|
+
function toSafeCaptureContext(response) {
|
|
60
|
+
const { gateway } = response;
|
|
61
|
+
return {
|
|
62
|
+
id: response.id,
|
|
63
|
+
requestChunkId: response.requestChunkId,
|
|
64
|
+
timestamp: response.timestamp,
|
|
65
|
+
responseTimestamp: response.responseTimestamp,
|
|
66
|
+
requestTimestamp: response.requestTimestamp,
|
|
67
|
+
duration: response.duration,
|
|
68
|
+
responseHttpStatusCode: response.responseHttpStatusCode,
|
|
69
|
+
documentReferenceCount: response.documentReference?.length ?? 0,
|
|
70
|
+
gatewayHomeCommunityId: gateway?.homeCommunityId,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
exports.toSafeCaptureContext = toSafeCaptureContext;
|
|
58
74
|
//# sourceMappingURL=document-query-responses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-query-responses.js","sourceRoot":"","sources":["../../../src/models/document-query/document-query-responses.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sCAOmB;AAEnB,sBAAsB;AACtB,MAAM,wCAAwC,GAAG,2BAAkB,CAAC,MAAM,CAAC;IACzE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAC;AAMH,MAAM,mCAAmC,GAAG,gCAAuB,CAAC,MAAM,CAAC;IACzE,mBAAmB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;CACxD,CAAC,CAAC;AAIU,QAAA,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC;IACpD,wCAAwC;IACxC,mCAAmC;CACpC,CAAC,CAAC;AAIH,wBAAwB;AACxB,MAAM,6CAA6C,GAAG,2BAAkB,CAAC,MAAM,CAAC;IAC9E,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAuB,CAAC;IACnD,OAAO,EAAE,yBAAgB;CAC1B,CAAC,CAAC;AAEH,MAAM,wCAAwC,GAAG,gCAAuB,CAAC,MAAM,CAAC;IAC9E,iBAAiB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACrD,OAAO,EAAE,yBAAgB;CAC1B,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC;IACrD,6CAA6C;IAC7C,wCAAwC;CACzC,CAAC,CAAC;AAGH,mEAAmE;AACnE,SAAgB,oCAAoC,CAClD,GAAiB;IAEjB,OAAO,mBAAmB,IAAI,GAAG,CAAC;AACpC,CAAC;AAJD,oFAIC"}
|
|
1
|
+
{"version":3,"file":"document-query-responses.js","sourceRoot":"","sources":["../../../src/models/document-query/document-query-responses.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sCAOmB;AAEnB,sBAAsB;AACtB,MAAM,wCAAwC,GAAG,2BAAkB,CAAC,MAAM,CAAC;IACzE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAC;AAMH,MAAM,mCAAmC,GAAG,gCAAuB,CAAC,MAAM,CAAC;IACzE,mBAAmB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;CACxD,CAAC,CAAC;AAIU,QAAA,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC;IACpD,wCAAwC;IACxC,mCAAmC;CACpC,CAAC,CAAC;AAIH,wBAAwB;AACxB,MAAM,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ZodNullable<z.ZodString>>;
|
|
304
304
|
cxId: z.ZodString;
|
|
305
|
+
originalRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
306
|
}>, "strip", z.ZodTypeAny, {
|
|
306
307
|
id: string;
|
|
307
308
|
cxId: string;
|
|
@@ -389,6 +390,7 @@ export declare const outboundDocumentRetrievalReqSchema: z.ZodObject<z.objectUti
|
|
|
389
390
|
requestChunkId?: string | undefined;
|
|
390
391
|
signatureConfirmation?: string | undefined;
|
|
391
392
|
externalPatientId?: string | null | undefined;
|
|
393
|
+
originalRequestId?: string | null | undefined;
|
|
392
394
|
}, {
|
|
393
395
|
id: string;
|
|
394
396
|
cxId: string;
|
|
@@ -476,6 +478,7 @@ export declare const outboundDocumentRetrievalReqSchema: z.ZodObject<z.objectUti
|
|
|
476
478
|
requestChunkId?: string | undefined;
|
|
477
479
|
signatureConfirmation?: string | undefined;
|
|
478
480
|
externalPatientId?: string | null | undefined;
|
|
481
|
+
originalRequestId?: string | null | undefined;
|
|
479
482
|
}>;
|
|
480
483
|
export type OutboundDocumentRetrievalReq = z.infer<typeof outboundDocumentRetrievalReqSchema>;
|
|
481
484
|
export declare const inboundDocumentRetrievalReqSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-retrieval-requests.d.ts","sourceRoot":"","sources":["../../../src/models/document-retrieval/document-retrieval-requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAQzB,eAAO,MAAM,kCAAkC
|
|
1
|
+
{"version":3,"file":"document-retrieval-requests.d.ts","sourceRoot":"","sources":["../../../src/models/document-retrieval/document-retrieval-requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAQzB,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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iCAAiC,CAAC,CAAC"}
|
|
@@ -35,6 +35,7 @@ exports.outboundDocumentRetrievalReqSchema = documentRetrievalReqDefaultSchema.e
|
|
|
35
35
|
patientId: z.string(),
|
|
36
36
|
externalPatientId: z.string().nullish(),
|
|
37
37
|
cxId: z.string(),
|
|
38
|
+
originalRequestId: z.string().nullish(),
|
|
38
39
|
});
|
|
39
40
|
// FROM EXTERNAL GATEWAY
|
|
40
41
|
exports.inboundDocumentRetrievalReqSchema = documentRetrievalReqDefaultSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-retrieval-requests.js","sourceRoot":"","sources":["../../../src/models/document-retrieval/document-retrieval-requests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sCAAyF;AAEzF,MAAM,iCAAiC,GAAG,0BAAiB,CAAC,MAAM,CAAC;IACjE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAuB,CAAC;CACpD,CAAC,CAAC;AAEH,sBAAsB;AACT,QAAA,kCAAkC,GAAG,iCAAiC,CAAC,MAAM,CAAC;IACzF,OAAO,EAAE,yBAAgB;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"document-retrieval-requests.js","sourceRoot":"","sources":["../../../src/models/document-retrieval/document-retrieval-requests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sCAAyF;AAEzF,MAAM,iCAAiC,GAAG,0BAAiB,CAAC,MAAM,CAAC;IACjE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAuB,CAAC;CACpD,CAAC,CAAC;AAEH,sBAAsB;AACT,QAAA,kCAAkC,GAAG,iCAAiC,CAAC,MAAM,CAAC;IACzF,OAAO,EAAE,yBAAgB;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CACxC,CAAC,CAAC;AAIH,wBAAwB;AACX,QAAA,iCAAiC,GAAG,iCAAiC,CAAC"}
|
|
@@ -1874,6 +1874,8 @@ export declare const outboundDocumentRetrievalRespSchema: z.ZodUnion<[z.ZodObjec
|
|
|
1874
1874
|
name?: string | null | undefined;
|
|
1875
1875
|
}[] | null | undefined;
|
|
1876
1876
|
}>, "many">;
|
|
1877
|
+
requestedDocumentCount: z.ZodOptional<z.ZodNumber>;
|
|
1878
|
+
originalRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1877
1879
|
}>, "strip", z.ZodTypeAny, {
|
|
1878
1880
|
id: string;
|
|
1879
1881
|
timestamp: string;
|
|
@@ -1969,6 +1971,8 @@ export declare const outboundDocumentRetrievalRespSchema: z.ZodUnion<[z.ZodObjec
|
|
|
1969
1971
|
responseHttpStatusCode?: number | undefined;
|
|
1970
1972
|
retried?: number | undefined;
|
|
1971
1973
|
iheGatewayV2?: boolean | undefined;
|
|
1974
|
+
originalRequestId?: string | null | undefined;
|
|
1975
|
+
requestedDocumentCount?: number | undefined;
|
|
1972
1976
|
}, {
|
|
1973
1977
|
id: string;
|
|
1974
1978
|
timestamp: string;
|
|
@@ -2064,6 +2068,8 @@ export declare const outboundDocumentRetrievalRespSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2064
2068
|
responseHttpStatusCode?: number | undefined;
|
|
2065
2069
|
retried?: number | undefined;
|
|
2066
2070
|
iheGatewayV2?: boolean | undefined;
|
|
2071
|
+
originalRequestId?: string | null | undefined;
|
|
2072
|
+
requestedDocumentCount?: number | undefined;
|
|
2067
2073
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2068
2074
|
id: z.ZodString;
|
|
2069
2075
|
requestChunkId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2266,6 +2272,8 @@ export declare const outboundDocumentRetrievalRespSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2266
2272
|
actualHomeCommunityId?: string | null | undefined;
|
|
2267
2273
|
}>;
|
|
2268
2274
|
documentReference: z.ZodUnion<[z.ZodNever, z.ZodLiteral<undefined>]>;
|
|
2275
|
+
requestedDocumentCount: z.ZodOptional<z.ZodNumber>;
|
|
2276
|
+
originalRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2269
2277
|
}>, "strip", z.ZodTypeAny, {
|
|
2270
2278
|
id: string;
|
|
2271
2279
|
timestamp: string;
|
|
@@ -2305,6 +2313,8 @@ export declare const outboundDocumentRetrievalRespSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2305
2313
|
retried?: number | undefined;
|
|
2306
2314
|
iheGatewayV2?: boolean | undefined;
|
|
2307
2315
|
documentReference?: undefined;
|
|
2316
|
+
originalRequestId?: string | null | undefined;
|
|
2317
|
+
requestedDocumentCount?: number | undefined;
|
|
2308
2318
|
}, {
|
|
2309
2319
|
id: string;
|
|
2310
2320
|
timestamp: string;
|
|
@@ -2344,6 +2354,8 @@ export declare const outboundDocumentRetrievalRespSchema: z.ZodUnion<[z.ZodObjec
|
|
|
2344
2354
|
retried?: number | undefined;
|
|
2345
2355
|
iheGatewayV2?: boolean | undefined;
|
|
2346
2356
|
documentReference?: undefined;
|
|
2357
|
+
originalRequestId?: string | null | undefined;
|
|
2358
|
+
requestedDocumentCount?: number | undefined;
|
|
2347
2359
|
}>]>;
|
|
2348
2360
|
export type OutboundDocumentRetrievalResp = z.infer<typeof outboundDocumentRetrievalRespSchema>;
|
|
2349
2361
|
export declare function isSuccessfulOutboundDocRetrievalResponse(obj: BaseResponse): obj is OutboundDocumentRetrievalResp & {
|
|
@@ -2352,5 +2364,7 @@ export declare function isSuccessfulOutboundDocRetrievalResponse(obj: BaseRespon
|
|
|
2352
2364
|
export declare function isSuccessfulInboundDocRetrievalResponse(obj: BaseResponse): obj is InboundDocumentRetrievalResp & {
|
|
2353
2365
|
documentReference: DocumentReference[];
|
|
2354
2366
|
};
|
|
2367
|
+
/** Safe context for logging/capture: no document content or patient identifiers. */
|
|
2368
|
+
export declare function toSafeCaptureContext(response: OutboundDocumentRetrievalResp): Record<string, unknown>;
|
|
2355
2369
|
export {};
|
|
2356
2370
|
//# sourceMappingURL=document-retrieval-responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-retrieval-responses.d.ts","sourceRoot":"","sources":["../../../src/models/document-retrieval/document-retrieval-responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,YAAY,EAKZ,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAGnB,QAAA,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAG7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"document-retrieval-responses.d.ts","sourceRoot":"","sources":["../../../src/models/document-retrieval/document-retrieval-responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,YAAY,EAKZ,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAGnB,QAAA,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhD,CAAC;AAEH,MAAM,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAG9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,wBAAgB,wCAAwC,CACtD,GAAG,EAAE,YAAY,GAChB,GAAG,IAAI,6BAA6B,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAEnF;AAED,wBAAgB,uCAAuC,CACrD,GAAG,EAAE,YAAY,GAChB,GAAG,IAAI,4BAA4B,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAElF;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,6BAA6B,GACtC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAezB"}
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.isSuccessfulInboundDocRetrievalResponse = exports.isSuccessfulOutboundDocRetrievalResponse = exports.outboundDocumentRetrievalRespSchema = exports.inboundDocumentRetrievalRespSchema = void 0;
|
|
26
|
+
exports.toSafeCaptureContext = exports.isSuccessfulInboundDocRetrievalResponse = exports.isSuccessfulOutboundDocRetrievalResponse = exports.outboundDocumentRetrievalRespSchema = exports.inboundDocumentRetrievalRespSchema = void 0;
|
|
27
27
|
const z = __importStar(require("zod"));
|
|
28
28
|
const shared_1 = require("../shared");
|
|
29
29
|
// TO EXTERNAL GATEWAY
|
|
@@ -41,10 +41,14 @@ exports.inboundDocumentRetrievalRespSchema = z.union([
|
|
|
41
41
|
const outboundDocumentRetrievalRespSuccessfulSchema = shared_1.baseResponseSchema.extend({
|
|
42
42
|
gateway: shared_1.xcaGatewaySchema,
|
|
43
43
|
documentReference: z.array(shared_1.documentReferenceSchema),
|
|
44
|
+
requestedDocumentCount: z.number().optional(),
|
|
45
|
+
originalRequestId: z.string().nullish(),
|
|
44
46
|
});
|
|
45
47
|
const outboundDocumentRetrievalRespFaultSchema = shared_1.baseErrorResponseSchema.extend({
|
|
46
48
|
gateway: shared_1.xcaGatewaySchema,
|
|
47
49
|
documentReference: z.never().or(z.literal(undefined)),
|
|
50
|
+
requestedDocumentCount: z.number().optional(),
|
|
51
|
+
originalRequestId: z.string().nullish(),
|
|
48
52
|
});
|
|
49
53
|
exports.outboundDocumentRetrievalRespSchema = z.union([
|
|
50
54
|
outboundDocumentRetrievalRespSuccessfulSchema,
|
|
@@ -58,4 +62,22 @@ function isSuccessfulInboundDocRetrievalResponse(obj) {
|
|
|
58
62
|
return "documentReference" in obj;
|
|
59
63
|
}
|
|
60
64
|
exports.isSuccessfulInboundDocRetrievalResponse = isSuccessfulInboundDocRetrievalResponse;
|
|
65
|
+
/** Safe context for logging/capture: no document content or patient identifiers. */
|
|
66
|
+
function toSafeCaptureContext(response) {
|
|
67
|
+
const { gateway } = response;
|
|
68
|
+
return {
|
|
69
|
+
id: response.id,
|
|
70
|
+
requestChunkId: response.requestChunkId,
|
|
71
|
+
timestamp: response.timestamp,
|
|
72
|
+
responseTimestamp: response.responseTimestamp,
|
|
73
|
+
requestTimestamp: response.requestTimestamp,
|
|
74
|
+
duration: response.duration,
|
|
75
|
+
responseHttpStatusCode: response.responseHttpStatusCode,
|
|
76
|
+
documentReferenceCount: response.documentReference?.length ?? 0,
|
|
77
|
+
requestedDocumentCount: response.requestedDocumentCount,
|
|
78
|
+
originalRequestId: response.originalRequestId,
|
|
79
|
+
gatewayHomeCommunityId: gateway?.homeCommunityId,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
exports.toSafeCaptureContext = toSafeCaptureContext;
|
|
61
83
|
//# sourceMappingURL=document-retrieval-responses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-retrieval-responses.js","sourceRoot":"","sources":["../../../src/models/document-retrieval/document-retrieval-responses.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sCAOmB;AAEnB,sBAAsB;AACtB,MAAM,4CAA4C,GAAG,2BAAkB,CAAC,MAAM,CAAC;IAC7E,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAuB,CAAC;CACpD,CAAC,CAAC;AAMH,MAAM,uCAAuC,GAAG,gCAAuB,CAAC,MAAM,CAAC;IAC7E,iBAAiB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;CACtD,CAAC,CAAC;AAMU,QAAA,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC;IACxD,4CAA4C;IAC5C,uCAAuC;CACxC,CAAC,CAAC;AAIH,wBAAwB;AACxB,MAAM,6CAA6C,GAAG,2BAAkB,CAAC,MAAM,CAAC;IAC9E,OAAO,EAAE,yBAAgB;IACzB,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"document-retrieval-responses.js","sourceRoot":"","sources":["../../../src/models/document-retrieval/document-retrieval-responses.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sCAOmB;AAEnB,sBAAsB;AACtB,MAAM,4CAA4C,GAAG,2BAAkB,CAAC,MAAM,CAAC;IAC7E,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAuB,CAAC;CACpD,CAAC,CAAC;AAMH,MAAM,uCAAuC,GAAG,gCAAuB,CAAC,MAAM,CAAC;IAC7E,iBAAiB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;CACtD,CAAC,CAAC;AAMU,QAAA,kCAAkC,GAAG,CAAC,CA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E,QAAQ,CAAC,iBAAiB;QAC7C,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;QAC3C,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,sBAAsB,EAAE,QAAQ,CAAC,sBAAsB;QACvD,sBAAsB,EAAE,QAAQ,CAAC,iBAAiB,EAAE,MAAM,IAAI,CAAC;QAC/D,sBAAsB,EAAE,QAAQ,CAAC,sBAAsB;QACvD,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;QAC7C,sBAAsB,EAAE,OAAO,EAAE,eAAe;KACjD,CAAC;AACJ,CAAC;AAjBD,oDAiBC"}
|
|
@@ -255,8 +255,8 @@ declare const inboundPatientDiscoveryRespSuccessfulSchema: z.ZodObject<z.objectU
|
|
|
255
255
|
system?: string | undefined;
|
|
256
256
|
}[] | undefined;
|
|
257
257
|
};
|
|
258
|
-
patientMatch: true;
|
|
259
258
|
gatewayHomeCommunityId: string;
|
|
259
|
+
patientMatch: true;
|
|
260
260
|
requestChunkId?: string | null | undefined;
|
|
261
261
|
cxId?: string | undefined;
|
|
262
262
|
patientId?: string | null | undefined;
|
|
@@ -316,8 +316,8 @@ declare const inboundPatientDiscoveryRespSuccessfulSchema: z.ZodObject<z.objectU
|
|
|
316
316
|
system?: string | undefined;
|
|
317
317
|
}[] | undefined;
|
|
318
318
|
};
|
|
319
|
-
patientMatch: true;
|
|
320
319
|
gatewayHomeCommunityId: string;
|
|
320
|
+
patientMatch: true;
|
|
321
321
|
requestChunkId?: string | null | undefined;
|
|
322
322
|
cxId?: string | undefined;
|
|
323
323
|
patientId?: string | null | undefined;
|
|
@@ -601,8 +601,8 @@ export declare const inboundPatientDiscoveryRespSchema: z.ZodUnion<[z.ZodObject<
|
|
|
601
601
|
system?: string | undefined;
|
|
602
602
|
}[] | undefined;
|
|
603
603
|
};
|
|
604
|
-
patientMatch: true;
|
|
605
604
|
gatewayHomeCommunityId: string;
|
|
605
|
+
patientMatch: true;
|
|
606
606
|
requestChunkId?: string | null | undefined;
|
|
607
607
|
cxId?: string | undefined;
|
|
608
608
|
patientId?: string | null | undefined;
|
|
@@ -662,8 +662,8 @@ export declare const inboundPatientDiscoveryRespSchema: z.ZodUnion<[z.ZodObject<
|
|
|
662
662
|
system?: string | undefined;
|
|
663
663
|
}[] | undefined;
|
|
664
664
|
};
|
|
665
|
-
patientMatch: true;
|
|
666
665
|
gatewayHomeCommunityId: string;
|
|
666
|
+
patientMatch: true;
|
|
667
667
|
requestChunkId?: string | null | undefined;
|
|
668
668
|
cxId?: string | undefined;
|
|
669
669
|
patientId?: string | null | undefined;
|
|
@@ -802,8 +802,8 @@ export declare const inboundPatientDiscoveryRespSchema: z.ZodUnion<[z.ZodObject<
|
|
|
802
802
|
id: string;
|
|
803
803
|
timestamp: string;
|
|
804
804
|
responseTimestamp: string;
|
|
805
|
-
patientMatch: false;
|
|
806
805
|
gatewayHomeCommunityId: string;
|
|
806
|
+
patientMatch: false;
|
|
807
807
|
requestChunkId?: string | null | undefined;
|
|
808
808
|
cxId?: string | undefined;
|
|
809
809
|
patientId?: string | null | undefined;
|
|
@@ -837,8 +837,8 @@ export declare const inboundPatientDiscoveryRespSchema: z.ZodUnion<[z.ZodObject<
|
|
|
837
837
|
id: string;
|
|
838
838
|
timestamp: string;
|
|
839
839
|
responseTimestamp: string;
|
|
840
|
-
patientMatch: false;
|
|
841
840
|
gatewayHomeCommunityId: string;
|
|
841
|
+
patientMatch: false;
|
|
842
842
|
requestChunkId?: string | null | undefined;
|
|
843
843
|
cxId?: string | undefined;
|
|
844
844
|
patientId?: string | null | undefined;
|
|
@@ -1062,8 +1062,8 @@ export declare const inboundPatientDiscoveryRespSchema: z.ZodUnion<[z.ZodObject<
|
|
|
1062
1062
|
id: string;
|
|
1063
1063
|
timestamp: string;
|
|
1064
1064
|
responseTimestamp: string;
|
|
1065
|
-
patientMatch: null;
|
|
1066
1065
|
gatewayHomeCommunityId: string;
|
|
1066
|
+
patientMatch: null;
|
|
1067
1067
|
requestChunkId?: string | null | undefined;
|
|
1068
1068
|
cxId?: string | undefined;
|
|
1069
1069
|
patientId?: string | null | undefined;
|
|
@@ -1097,8 +1097,8 @@ export declare const inboundPatientDiscoveryRespSchema: z.ZodUnion<[z.ZodObject<
|
|
|
1097
1097
|
id: string;
|
|
1098
1098
|
timestamp: string;
|
|
1099
1099
|
responseTimestamp: string;
|
|
1100
|
-
patientMatch: null;
|
|
1101
1100
|
gatewayHomeCommunityId: string;
|
|
1101
|
+
patientMatch: null;
|
|
1102
1102
|
requestChunkId?: string | null | undefined;
|
|
1103
1103
|
cxId?: string | undefined;
|
|
1104
1104
|
patientId?: string | null | undefined;
|
|
@@ -1496,8 +1496,8 @@ export declare const outboundPatientDiscoveryRespSuccessfulSchema: z.ZodObject<z
|
|
|
1496
1496
|
system?: string | undefined;
|
|
1497
1497
|
}[] | undefined;
|
|
1498
1498
|
};
|
|
1499
|
-
patientMatch: true;
|
|
1500
1499
|
gatewayHomeCommunityId: string;
|
|
1500
|
+
patientMatch: true;
|
|
1501
1501
|
requestChunkId?: string | null | undefined;
|
|
1502
1502
|
cxId?: string | undefined;
|
|
1503
1503
|
patientId?: string | null | undefined;
|
|
@@ -1561,8 +1561,8 @@ export declare const outboundPatientDiscoveryRespSuccessfulSchema: z.ZodObject<z
|
|
|
1561
1561
|
system?: string | undefined;
|
|
1562
1562
|
}[] | undefined;
|
|
1563
1563
|
};
|
|
1564
|
-
patientMatch: true;
|
|
1565
1564
|
gatewayHomeCommunityId: string;
|
|
1565
|
+
patientMatch: true;
|
|
1566
1566
|
requestChunkId?: string | null | undefined;
|
|
1567
1567
|
cxId?: string | undefined;
|
|
1568
1568
|
patientId?: string | null | undefined;
|
|
@@ -2160,8 +2160,8 @@ export declare const outboundPatientDiscoveryRespSchema: z.ZodUnion<[z.ZodObject
|
|
|
2160
2160
|
system?: string | undefined;
|
|
2161
2161
|
}[] | undefined;
|
|
2162
2162
|
};
|
|
2163
|
-
patientMatch: true;
|
|
2164
2163
|
gatewayHomeCommunityId: string;
|
|
2164
|
+
patientMatch: true;
|
|
2165
2165
|
requestChunkId?: string | null | undefined;
|
|
2166
2166
|
cxId?: string | undefined;
|
|
2167
2167
|
patientId?: string | null | undefined;
|
|
@@ -2225,8 +2225,8 @@ export declare const outboundPatientDiscoveryRespSchema: z.ZodUnion<[z.ZodObject
|
|
|
2225
2225
|
system?: string | undefined;
|
|
2226
2226
|
}[] | undefined;
|
|
2227
2227
|
};
|
|
2228
|
-
patientMatch: true;
|
|
2229
2228
|
gatewayHomeCommunityId: string;
|
|
2229
|
+
patientMatch: true;
|
|
2230
2230
|
requestChunkId?: string | null | undefined;
|
|
2231
2231
|
cxId?: string | undefined;
|
|
2232
2232
|
patientId?: string | null | undefined;
|
|
@@ -2460,5 +2460,7 @@ export type OutboundPatientDiscoveryResp = z.infer<typeof outboundPatientDiscove
|
|
|
2460
2460
|
export declare function isSuccessfulInboundPatientDiscoveryResponse(response: InboundPatientDiscoveryResp): response is InboundPatientDiscoveryRespSuccess;
|
|
2461
2461
|
export declare function isSuccessfulOutboundPatientDiscoveryResponse(response: OutboundPatientDiscoveryResp): response is OutboundPatientDiscoveryRespSuccessfulSchema;
|
|
2462
2462
|
export declare function isNonErroringOutboundPatientDiscoveryResponse(response: OutboundPatientDiscoveryResp): response is OutboundPatientDiscoveryResp;
|
|
2463
|
+
/** Safe context for logging/capture: no PHI (no patientResource, no patient identifiers). */
|
|
2464
|
+
export declare function toSafeCaptureContext(response: OutboundPatientDiscoveryResp): Record<string, unknown>;
|
|
2463
2465
|
export {};
|
|
2464
2466
|
//# sourceMappingURL=patient-discovery-responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-discovery-responses.d.ts","sourceRoot":"","sources":["../../../src/models/patient-discovery/patient-discovery-responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAezB,QAAA,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,wBAAgB,2CAA2C,CACzD,QAAQ,EAAE,2BAA2B,GACpC,QAAQ,IAAI,kCAAkC,CAEhD;AAED,wBAAgB,4CAA4C,CAC1D,QAAQ,EAAE,4BAA4B,GACrC,QAAQ,IAAI,4CAA4C,CAE1D;AAED,wBAAgB,6CAA6C,CAC3D,QAAQ,EAAE,4BAA4B,GACrC,QAAQ,IAAI,4BAA4B,CAE1C;AAED,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,4BAA4B,GACrC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgBzB"}
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.isNonErroringOutboundPatientDiscoveryResponse = exports.isSuccessfulOutboundPatientDiscoveryResponse = exports.isSuccessfulInboundPatientDiscoveryResponse = exports.outboundPatientDiscoveryRespSchema = exports.outboundPatientDiscoveryRespFaultSchema = exports.outboundPatientDiscoveryRespSuccessfulSchema = exports.inboundPatientDiscoveryRespSchema = void 0;
|
|
26
|
+
exports.toSafeCaptureContext = exports.isNonErroringOutboundPatientDiscoveryResponse = exports.isSuccessfulOutboundPatientDiscoveryResponse = exports.isSuccessfulInboundPatientDiscoveryResponse = exports.outboundPatientDiscoveryRespSchema = exports.outboundPatientDiscoveryRespFaultSchema = exports.outboundPatientDiscoveryRespSuccessfulSchema = exports.inboundPatientDiscoveryRespSchema = void 0;
|
|
27
27
|
const z = __importStar(require("zod"));
|
|
28
28
|
const shared_1 = require("../shared");
|
|
29
29
|
const patient_1 = require("./patient");
|
|
@@ -78,4 +78,22 @@ function isNonErroringOutboundPatientDiscoveryResponse(response) {
|
|
|
78
78
|
return response.patientMatch != null;
|
|
79
79
|
}
|
|
80
80
|
exports.isNonErroringOutboundPatientDiscoveryResponse = isNonErroringOutboundPatientDiscoveryResponse;
|
|
81
|
+
/** Safe context for logging/capture: no PHI (no patientResource, no patient identifiers). */
|
|
82
|
+
function toSafeCaptureContext(response) {
|
|
83
|
+
const { gateway, patientMatch } = response;
|
|
84
|
+
const gatewayHomeCommunityId = "gatewayHomeCommunityId" in response ? response.gatewayHomeCommunityId : undefined;
|
|
85
|
+
return {
|
|
86
|
+
id: response.id,
|
|
87
|
+
requestChunkId: response.requestChunkId,
|
|
88
|
+
timestamp: response.timestamp,
|
|
89
|
+
responseTimestamp: response.responseTimestamp,
|
|
90
|
+
requestTimestamp: response.requestTimestamp,
|
|
91
|
+
duration: response.duration,
|
|
92
|
+
responseHttpStatusCode: response.responseHttpStatusCode,
|
|
93
|
+
patientMatch,
|
|
94
|
+
gatewayHomeCommunityId,
|
|
95
|
+
gateway: gateway ? { oid: gateway.oid, url: gateway.url, id: gateway.id } : undefined,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
exports.toSafeCaptureContext = toSafeCaptureContext;
|
|
81
99
|
//# sourceMappingURL=patient-discovery-responses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-discovery-responses.js","sourceRoot":"","sources":["../../../src/models/patient-discovery/patient-discovery-responses.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sCAKmB;AACnB,uCAAkD;AAElD,MAAM,2CAA2C,GAAG,2BAAkB,CAAC,MAAM,CAAC;IAC5E,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC7B,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;CACnC,CAAC,CAAC;AAEH,sBAAsB;AACtB,MAAM,2CAA2C,GAC/C,2CAA2C,CAAC,MAAM,CAAC;IACjD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAE,+BAAq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IC;AAED,SAAgB,6CAA6C,CAC3D,QAAsC;IAEtC,OAAO,QAAQ,CAAC,YAAY,IAAI,IAAI,CAAC;AACvC,CAAC;AAJD,sGAIC"}
|
|
1
|
+
{"version":3,"file":"patient-discovery-responses.js","sourceRoot":"","sources":["../../../src/models/patient-discovery/patient-discovery-responses.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sCAKmB;AACnB,uCAAkD;AAElD,MAAM,2CAA2C,GAAG,2BAAkB,CAAC,MAAM,CAAC;IAC5E,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC7B,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;CACnC,CAAC,CAAC;AAEH,sBAAsB;AACtB,MAAM,2CAA2C,GAC/C,2CAA2C,CAAC,MAAM,CAAC;IACjD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAE,+BAAqB;IACtC,sBAAsB,EAAE,qCAA4B;CACrD,CAAC,CAAC;AAEL,MAAM,kDAAkD,GAAG,2BAAkB,CAAC,MAAM,CAAC;IACnF,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC9B,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,sCAAsC,GAAG,gCAAuB,CAAC,MAAM,CAAC;IAC5E,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC7B,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;CACnC,CAAC,CAAC;AAEU,QAAA,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC;IACvD,2CAA2C;IAC3C,kDAAkD;IAClD,sCAAsC;CACvC,CAAC,CAAC;AAQH,wBAAwB;AACxB,MAAM,yCAAyC,GAAG,2BAAkB,CAAC,MAAM,CAAC;IAC1E,OAAO,EAAE,0BAAiB;CAC3B,CAAC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AAE,QAAQ,CAAC,sBAAsB;QACvD,YAAY;QACZ,sBAAsB;QACtB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS;KACtF,CAAC;AACJ,CAAC;AAlBD,oDAkBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/ihe-gateway-sdk",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.2",
|
|
4
4
|
"description": "SDK to interact with other IHE Gateways - by Metriport Inc.",
|
|
5
5
|
"author": "Metriport Inc. <contact@metriport.com>",
|
|
6
6
|
"homepage": "https://metriport.com/",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"url": "https://github.com/metriport/metriport/issues"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@metriport/shared": "^0.32.
|
|
60
|
+
"@metriport/shared": "^0.32.2",
|
|
61
61
|
"axios": "^1.8.2",
|
|
62
62
|
"zod": "^3.22.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "47fb645e3b65d4e97ac5ded23d0b5ff02ebc2cd6"
|
|
65
65
|
}
|