@azure-rest/health-insights-clinicalmatching 1.0.0-alpha.20241121.1 → 1.0.0-alpha.20241126.1

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 (178) hide show
  1. package/dist/browser/clientDefinitions.d.ts +21 -0
  2. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  3. package/dist/browser/clientDefinitions.js.map +1 -0
  4. package/dist/browser/clinicalMatchingRest.d.ts +11 -0
  5. package/dist/browser/clinicalMatchingRest.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/clinicalMatchingRest.js +1 -1
  7. package/dist/browser/clinicalMatchingRest.js.map +1 -0
  8. package/dist/browser/index.d.ts +11 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/dist/browser/index.js +14 -0
  11. package/dist/browser/index.js.map +1 -0
  12. package/dist/browser/isUnexpected.d.ts +4 -0
  13. package/dist/browser/isUnexpected.d.ts.map +1 -0
  14. package/dist/browser/isUnexpected.js.map +1 -0
  15. package/dist/browser/logger.d.ts +2 -0
  16. package/dist/browser/logger.d.ts.map +1 -0
  17. package/dist/browser/models.d.ts +302 -0
  18. package/dist/browser/models.d.ts.map +1 -0
  19. package/dist/browser/outputModels.d.ts +186 -0
  20. package/dist/browser/outputModels.d.ts.map +1 -0
  21. package/dist/browser/package.json +3 -0
  22. package/dist/browser/parameters.d.ts +18 -0
  23. package/dist/browser/parameters.d.ts.map +1 -0
  24. package/dist/browser/parameters.js.map +1 -0
  25. package/dist/browser/pollingHelper.d.ts +12 -0
  26. package/dist/browser/pollingHelper.d.ts.map +1 -0
  27. package/dist/browser/pollingHelper.js.map +1 -0
  28. package/dist/browser/responses.d.ts +50 -0
  29. package/dist/browser/responses.d.ts.map +1 -0
  30. package/dist/browser/responses.js.map +1 -0
  31. package/dist/commonjs/clientDefinitions.d.ts +21 -0
  32. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  33. package/dist/commonjs/clientDefinitions.js +5 -0
  34. package/dist/commonjs/clientDefinitions.js.map +1 -0
  35. package/dist/commonjs/clinicalMatchingRest.d.ts +11 -0
  36. package/dist/commonjs/clinicalMatchingRest.d.ts.map +1 -0
  37. package/dist/commonjs/clinicalMatchingRest.js +33 -0
  38. package/dist/commonjs/clinicalMatchingRest.js.map +1 -0
  39. package/dist/commonjs/index.d.ts +11 -0
  40. package/dist/commonjs/index.d.ts.map +1 -0
  41. package/dist/commonjs/index.js +17 -0
  42. package/dist/commonjs/index.js.map +1 -0
  43. package/dist/commonjs/isUnexpected.d.ts +4 -0
  44. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  45. package/dist/commonjs/isUnexpected.js +75 -0
  46. package/dist/commonjs/isUnexpected.js.map +1 -0
  47. package/dist/commonjs/logger.d.ts +2 -0
  48. package/dist/commonjs/logger.d.ts.map +1 -0
  49. package/dist/commonjs/logger.js +8 -0
  50. package/dist/commonjs/logger.js.map +1 -0
  51. package/dist/commonjs/models.d.ts +302 -0
  52. package/dist/commonjs/models.d.ts.map +1 -0
  53. package/dist/commonjs/models.js +5 -0
  54. package/dist/commonjs/models.js.map +1 -0
  55. package/dist/commonjs/outputModels.d.ts +186 -0
  56. package/dist/commonjs/outputModels.d.ts.map +1 -0
  57. package/dist/commonjs/outputModels.js +5 -0
  58. package/dist/commonjs/outputModels.js.map +1 -0
  59. package/dist/commonjs/package.json +3 -0
  60. package/dist/commonjs/parameters.d.ts +18 -0
  61. package/dist/commonjs/parameters.d.ts.map +1 -0
  62. package/dist/commonjs/parameters.js +5 -0
  63. package/dist/commonjs/parameters.js.map +1 -0
  64. package/dist/commonjs/pollingHelper.d.ts +12 -0
  65. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  66. package/dist/commonjs/pollingHelper.js +46 -0
  67. package/dist/commonjs/pollingHelper.js.map +1 -0
  68. package/dist/commonjs/responses.d.ts +50 -0
  69. package/dist/commonjs/responses.d.ts.map +1 -0
  70. package/dist/commonjs/responses.js +5 -0
  71. package/dist/commonjs/responses.js.map +1 -0
  72. package/dist/commonjs/tsdoc-metadata.json +11 -0
  73. package/dist/esm/clientDefinitions.d.ts +21 -0
  74. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  75. package/dist/esm/clientDefinitions.js +4 -0
  76. package/dist/esm/clientDefinitions.js.map +1 -0
  77. package/dist/esm/clinicalMatchingRest.d.ts +11 -0
  78. package/dist/esm/clinicalMatchingRest.d.ts.map +1 -0
  79. package/dist/esm/clinicalMatchingRest.js +30 -0
  80. package/dist/esm/clinicalMatchingRest.js.map +1 -0
  81. package/dist/esm/index.d.ts +11 -0
  82. package/dist/esm/index.d.ts.map +1 -0
  83. package/dist/esm/index.js +14 -0
  84. package/dist/esm/index.js.map +1 -0
  85. package/dist/esm/isUnexpected.d.ts +4 -0
  86. package/dist/esm/isUnexpected.d.ts.map +1 -0
  87. package/dist/esm/isUnexpected.js +72 -0
  88. package/dist/esm/isUnexpected.js.map +1 -0
  89. package/dist/esm/logger.d.ts +2 -0
  90. package/dist/esm/logger.d.ts.map +1 -0
  91. package/dist/esm/logger.js +5 -0
  92. package/dist/esm/logger.js.map +1 -0
  93. package/dist/esm/models.d.ts +302 -0
  94. package/dist/esm/models.d.ts.map +1 -0
  95. package/dist/esm/models.js +4 -0
  96. package/dist/esm/models.js.map +1 -0
  97. package/dist/esm/outputModels.d.ts +186 -0
  98. package/dist/esm/outputModels.d.ts.map +1 -0
  99. package/dist/esm/outputModels.js +4 -0
  100. package/dist/esm/outputModels.js.map +1 -0
  101. package/dist/esm/package.json +3 -0
  102. package/dist/esm/parameters.d.ts +18 -0
  103. package/dist/esm/parameters.d.ts.map +1 -0
  104. package/dist/esm/parameters.js +4 -0
  105. package/dist/esm/parameters.js.map +1 -0
  106. package/dist/esm/pollingHelper.d.ts +12 -0
  107. package/dist/esm/pollingHelper.d.ts.map +1 -0
  108. package/dist/esm/pollingHelper.js +43 -0
  109. package/dist/esm/pollingHelper.js.map +1 -0
  110. package/dist/esm/responses.d.ts +50 -0
  111. package/dist/esm/responses.d.ts.map +1 -0
  112. package/dist/esm/responses.js +4 -0
  113. package/dist/esm/responses.js.map +1 -0
  114. package/dist/health-insights-clinicalmatching-rest.d.ts +650 -0
  115. package/dist/react-native/clientDefinitions.d.ts +21 -0
  116. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  117. package/dist/react-native/clientDefinitions.js +4 -0
  118. package/dist/react-native/clientDefinitions.js.map +1 -0
  119. package/dist/react-native/clinicalMatchingRest.d.ts +11 -0
  120. package/dist/react-native/clinicalMatchingRest.d.ts.map +1 -0
  121. package/dist/react-native/clinicalMatchingRest.js +30 -0
  122. package/dist/react-native/clinicalMatchingRest.js.map +1 -0
  123. package/dist/react-native/index.d.ts +11 -0
  124. package/dist/react-native/index.d.ts.map +1 -0
  125. package/dist/react-native/index.js +14 -0
  126. package/dist/react-native/index.js.map +1 -0
  127. package/dist/react-native/isUnexpected.d.ts +4 -0
  128. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  129. package/dist/react-native/isUnexpected.js +72 -0
  130. package/dist/react-native/isUnexpected.js.map +1 -0
  131. package/dist/react-native/logger.d.ts +2 -0
  132. package/dist/react-native/logger.d.ts.map +1 -0
  133. package/dist/react-native/logger.js +5 -0
  134. package/dist/react-native/logger.js.map +1 -0
  135. package/dist/react-native/models.d.ts +302 -0
  136. package/dist/react-native/models.d.ts.map +1 -0
  137. package/dist/react-native/models.js +4 -0
  138. package/dist/react-native/models.js.map +1 -0
  139. package/dist/react-native/outputModels.d.ts +186 -0
  140. package/dist/react-native/outputModels.d.ts.map +1 -0
  141. package/dist/react-native/outputModels.js +4 -0
  142. package/dist/react-native/outputModels.js.map +1 -0
  143. package/dist/react-native/package.json +3 -0
  144. package/dist/react-native/parameters.d.ts +18 -0
  145. package/dist/react-native/parameters.d.ts.map +1 -0
  146. package/dist/react-native/parameters.js +4 -0
  147. package/dist/react-native/parameters.js.map +1 -0
  148. package/dist/react-native/pollingHelper.d.ts +12 -0
  149. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  150. package/dist/react-native/pollingHelper.js +43 -0
  151. package/dist/react-native/pollingHelper.js.map +1 -0
  152. package/dist/react-native/responses.d.ts +50 -0
  153. package/dist/react-native/responses.d.ts.map +1 -0
  154. package/dist/react-native/responses.js +4 -0
  155. package/dist/react-native/responses.js.map +1 -0
  156. package/package.json +67 -47
  157. package/dist/index.js +0 -161
  158. package/dist/index.js.map +0 -1
  159. package/dist-esm/src/clientDefinitions.js.map +0 -1
  160. package/dist-esm/src/clinicalMatchingRest.js.map +0 -1
  161. package/dist-esm/src/index.js +0 -13
  162. package/dist-esm/src/index.js.map +0 -1
  163. package/dist-esm/src/isUnexpected.js.map +0 -1
  164. package/dist-esm/src/parameters.js.map +0 -1
  165. package/dist-esm/src/pollingHelper.js.map +0 -1
  166. package/dist-esm/src/responses.js.map +0 -1
  167. package/review/health-insights-clinicalmatching.api.md +0 -411
  168. /package/{dist-esm/src → dist/browser}/clientDefinitions.js +0 -0
  169. /package/{dist-esm/src → dist/browser}/isUnexpected.js +0 -0
  170. /package/{dist-esm/src → dist/browser}/logger.js +0 -0
  171. /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
  172. /package/{dist-esm/src → dist/browser}/models.js +0 -0
  173. /package/{dist-esm/src → dist/browser}/models.js.map +0 -0
  174. /package/{dist-esm/src → dist/browser}/outputModels.js +0 -0
  175. /package/{dist-esm/src → dist/browser}/outputModels.js.map +0 -0
  176. /package/{dist-esm/src → dist/browser}/parameters.js +0 -0
  177. /package/{dist-esm/src → dist/browser}/pollingHelper.js +0 -0
  178. /package/{dist-esm/src → dist/browser}/responses.js +0 -0
@@ -0,0 +1,11 @@
1
+ import type { ClientOptions } from "@azure-rest/core-client";
2
+ import type { KeyCredential } from "@azure/core-auth";
3
+ import type { ClinicalMatchingRestClient } from "./clientDefinitions.js";
4
+ /**
5
+ * Initialize a new instance of `ClinicalMatchingRestClient`
6
+ * @param endpoint - Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).
7
+ * @param credentials - uniquely identify client credential
8
+ * @param options - the parameter for all optional parameters
9
+ */
10
+ export default function createClient(endpoint: string, credentials: KeyCredential, options?: ClientOptions): ClinicalMatchingRestClient;
11
+ //# sourceMappingURL=clinicalMatchingRest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clinicalMatchingRest.d.ts","sourceRoot":"","sources":["../../src/clinicalMatchingRest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,aAAa,EAC1B,OAAO,GAAE,aAAkB,GAC1B,0BAA0B,CA4B5B"}
@@ -0,0 +1,30 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { getClient } from "@azure-rest/core-client";
4
+ import { logger } from "./logger.js";
5
+ /**
6
+ * Initialize a new instance of `ClinicalMatchingRestClient`
7
+ * @param endpoint - Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).
8
+ * @param credentials - uniquely identify client credential
9
+ * @param options - the parameter for all optional parameters
10
+ */
11
+ export default function createClient(endpoint, credentials, options = {}) {
12
+ var _a, _b, _c, _d, _e, _f;
13
+ const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}/healthinsights`;
14
+ options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2023-03-01-preview";
15
+ options = Object.assign(Object.assign({}, options), { credentials: {
16
+ apiKeyHeaderName: (_d = (_c = options.credentials) === null || _c === void 0 ? void 0 : _c.apiKeyHeaderName) !== null && _d !== void 0 ? _d : "Ocp-Apim-Subscription-Key",
17
+ } });
18
+ const userAgentInfo = `azsdk-js-health-insights-clinicalmatching-rest/1.0.0-beta.1`;
19
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
20
+ ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
21
+ : `${userAgentInfo}`;
22
+ options = Object.assign(Object.assign({}, options), { userAgentOptions: {
23
+ userAgentPrefix,
24
+ }, loggingOptions: {
25
+ logger: (_f = (_e = options.loggingOptions) === null || _e === void 0 ? void 0 : _e.logger) !== null && _f !== void 0 ? _f : logger.info,
26
+ } });
27
+ const client = getClient(baseUrl, credentials, options);
28
+ return client;
29
+ }
30
+ //# sourceMappingURL=clinicalMatchingRest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clinicalMatchingRest.js","sourceRoot":"","sources":["../../src/clinicalMatchingRest.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAgB,EAChB,WAA0B,EAC1B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,iBAAiB,CAAC;IAChE,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,oBAAoB,CAAC;IAChE,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,gBAAgB,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,gBAAgB,mCAAI,2BAA2B;SACvF,GACF,CAAC;IAEF,MAAM,aAAa,GAAG,6DAA6D,CAAC;IACpF,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,GACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA+B,CAAC;IAEtF,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { KeyCredential } from \"@azure/core-auth\";\nimport type { ClinicalMatchingRestClient } from \"./clientDefinitions.js\";\n\n/**\n * Initialize a new instance of `ClinicalMatchingRestClient`\n * @param endpoint - Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpoint: string,\n credentials: KeyCredential,\n options: ClientOptions = {},\n): ClinicalMatchingRestClient {\n const baseUrl = options.baseUrl ?? `${endpoint}/healthinsights`;\n options.apiVersion = options.apiVersion ?? \"2023-03-01-preview\";\n options = {\n ...options,\n credentials: {\n apiKeyHeaderName: options.credentials?.apiKeyHeaderName ?? \"Ocp-Apim-Subscription-Key\",\n },\n };\n\n const userAgentInfo = `azsdk-js-health-insights-clinicalmatching-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as ClinicalMatchingRestClient;\n\n return client;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import ClinicalMatchingRest from "./clinicalMatchingRest.js";
2
+ export * from "./clinicalMatchingRest.js";
3
+ export * from "./parameters.js";
4
+ export * from "./responses.js";
5
+ export * from "./clientDefinitions.js";
6
+ export * from "./isUnexpected.js";
7
+ export * from "./models.js";
8
+ export * from "./outputModels.js";
9
+ export * from "./pollingHelper.js";
10
+ export default ClinicalMatchingRest;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAE7D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAGnC,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import ClinicalMatchingRest from "./clinicalMatchingRest.js";
4
+ export * from "./clinicalMatchingRest.js";
5
+ export * from "./parameters.js";
6
+ export * from "./responses.js";
7
+ export * from "./clientDefinitions.js";
8
+ export * from "./isUnexpected.js";
9
+ export * from "./models.js";
10
+ export * from "./outputModels.js";
11
+ export * from "./pollingHelper.js";
12
+ // eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named
13
+ export default ClinicalMatchingRest;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAE7D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAEnC,kEAAkE;AAClE,eAAe,oBAAoB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport ClinicalMatchingRest from \"./clinicalMatchingRest.js\";\n\nexport * from \"./clinicalMatchingRest.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./models.js\";\nexport * from \"./outputModels.js\";\nexport * from \"./pollingHelper.js\";\n\n// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named\nexport default ClinicalMatchingRest;\n"]}
@@ -0,0 +1,4 @@
1
+ import type { GetJob200Response, GetJobDefaultResponse, CreateJob200Response, CreateJob202Response, CreateJobLogicalResponse, CreateJobDefaultResponse } from "./responses.js";
2
+ export declare function isUnexpected(response: GetJob200Response | GetJobDefaultResponse): response is GetJobDefaultResponse;
3
+ export declare function isUnexpected(response: CreateJob200Response | CreateJob202Response | CreateJobLogicalResponse | CreateJobDefaultResponse): response is CreateJobDefaultResponse;
4
+ //# sourceMappingURL=isUnexpected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AAQxB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,iBAAiB,GAAG,qBAAqB,GAClD,QAAQ,IAAI,qBAAqB,CAAC;AACrC,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,oBAAoB,GACpB,oBAAoB,GACpB,wBAAwB,GACxB,wBAAwB,GAC3B,QAAQ,IAAI,wBAAwB,CAAC"}
@@ -0,0 +1,72 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ const responseMap = {
4
+ "GET /trialmatcher/jobs/{jobId}": ["200"],
5
+ "POST /trialmatcher/jobs": ["200", "202"],
6
+ "GET /trialmatcher/jobs": ["200", "202"],
7
+ };
8
+ export function isUnexpected(response) {
9
+ const lroOriginal = response.headers["x-ms-original-url"];
10
+ const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
11
+ const method = response.request.method;
12
+ let pathDetails = responseMap[`${method} ${url.pathname}`];
13
+ if (!pathDetails) {
14
+ pathDetails = getParametrizedPathSuccess(method, url.pathname);
15
+ }
16
+ return !pathDetails.includes(response.status);
17
+ }
18
+ function getParametrizedPathSuccess(method, path) {
19
+ var _a, _b, _c, _d;
20
+ const pathParts = path.split("/");
21
+ // Traverse list to match the longest candidate
22
+ // matchedLen: the length of candidate path
23
+ // matchedValue: the matched status code array
24
+ let matchedLen = -1, matchedValue = [];
25
+ // Iterate the responseMap to find a match
26
+ for (const [key, value] of Object.entries(responseMap)) {
27
+ // Extracting the path from the map key which is in format
28
+ // GET /path/foo
29
+ if (!key.startsWith(method)) {
30
+ continue;
31
+ }
32
+ const candidatePath = getPathFromMapKey(key);
33
+ // Get each part of the url path
34
+ const candidateParts = candidatePath.split("/");
35
+ // track if we have found a match to return the values found.
36
+ let found = true;
37
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
38
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
39
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
40
+ // If the current part of the candidate is a "template" part
41
+ // Try to use the suffix of pattern to match the path
42
+ // {guid} ==> $
43
+ // {guid}:export ==> :export$
44
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
45
+ if (!isMatched) {
46
+ found = false;
47
+ break;
48
+ }
49
+ continue;
50
+ }
51
+ // If the candidate part is not a template and
52
+ // the parts don't match mark the candidate as not found
53
+ // to move on with the next candidate path.
54
+ if (candidateParts[i] !== pathParts[j]) {
55
+ found = false;
56
+ break;
57
+ }
58
+ }
59
+ // We finished evaluating the current candidate parts
60
+ // Update the matched value if and only if we found the longer pattern
61
+ if (found && candidatePath.length > matchedLen) {
62
+ matchedLen = candidatePath.length;
63
+ matchedValue = value;
64
+ }
65
+ }
66
+ return matchedValue;
67
+ }
68
+ function getPathFromMapKey(mapKey) {
69
+ const pathStart = mapKey.indexOf("/");
70
+ return mapKey.slice(pathStart);
71
+ }
72
+ //# sourceMappingURL=isUnexpected.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,MAAM,WAAW,GAA6B;IAC5C,gCAAgC,EAAE,CAAC,KAAK,CAAC;IACzC,yBAAyB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACzC,wBAAwB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;CACzC,CAAC;AAYF,MAAM,UAAU,YAAY,CAC1B,QAM4B;IAE5B,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM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AC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n GetJob200Response,\n GetJobDefaultResponse,\n CreateJob200Response,\n CreateJob202Response,\n CreateJobLogicalResponse,\n CreateJobDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /trialmatcher/jobs/{jobId}\": [\"200\"],\n \"POST /trialmatcher/jobs\": [\"200\", \"202\"],\n \"GET /trialmatcher/jobs\": [\"200\", \"202\"],\n};\n\nexport function isUnexpected(\n response: GetJob200Response | GetJobDefaultResponse,\n): response is GetJobDefaultResponse;\nexport function isUnexpected(\n response:\n | CreateJob200Response\n | CreateJob202Response\n | CreateJobLogicalResponse\n | CreateJobDefaultResponse,\n): response is CreateJobDefaultResponse;\nexport function isUnexpected(\n response:\n | GetJob200Response\n | GetJobDefaultResponse\n | CreateJob200Response\n | CreateJob202Response\n | CreateJobLogicalResponse\n | CreateJobDefaultResponse,\n): response is GetJobDefaultResponse | CreateJobDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAyD,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createClientLogger } from "@azure/logger";
4
+ export const logger = createClientLogger("health-insights-clinicalmatching");
5
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,kCAAkC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"health-insights-clinicalmatching\");\n"]}
@@ -0,0 +1,302 @@
1
+ /** A piece of clinical information, expressed as a code in a clinical coding system. */
2
+ export interface ClinicalCodedElement {
3
+ /** The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. */
4
+ system: string;
5
+ /** The code within the given clinical coding system. */
6
+ code: string;
7
+ /** The name of this coded concept in the coding system. */
8
+ name?: string;
9
+ /** A value associated with the code within the given clinical coding system. */
10
+ value?: string;
11
+ }
12
+ /** Trial data which is of interest to the potential participant. */
13
+ export interface ClinicalTrialMetadata {
14
+ /**
15
+ * Phases which are relevant for the clinical trial.
16
+ * Each clinical trial can be in a certain phase or in multiple phases.
17
+ */
18
+ phases?: string[];
19
+ /**
20
+ * Possible study types of a clinical trial.
21
+ *
22
+ * Possible values: interventional, observational, expandedAccess, patientRegistries
23
+ */
24
+ studyType?: string;
25
+ /**
26
+ * Possible recruitment status of a clinical trial.
27
+ *
28
+ * Possible values: unknownStatus, notYetRecruiting, recruiting, enrollingByInvitation
29
+ */
30
+ recruitmentStatus?: string;
31
+ /** Medical conditions and their synonyms which are relevant for the clinical trial, given as strings. */
32
+ conditions: string[];
33
+ /** Sponsors/collaborators involved with the trial. */
34
+ sponsors?: string[];
35
+ /** Contact details of the trial administrators, for patients that want to participate in the trial. */
36
+ contacts?: Array<ContactDetails>;
37
+ /** Research facilities where the clinical trial is conducted. */
38
+ facilities?: Array<ClinicalTrialResearchFacility>;
39
+ }
40
+ /** A person's contact details. */
41
+ export interface ContactDetails {
42
+ /** The person's name. */
43
+ name?: string;
44
+ /** The person's email. */
45
+ email?: string;
46
+ /** A person's phone number. */
47
+ phone?: string;
48
+ }
49
+ /** Details of a research facility where a clinical trial is conducted. */
50
+ export interface ClinicalTrialResearchFacility {
51
+ /** The facility's name. */
52
+ name: string;
53
+ /** City name. */
54
+ city?: string;
55
+ /** State name. */
56
+ state?: string;
57
+ /** Country/region name. */
58
+ countryOrRegion: string;
59
+ }
60
+ /** The body of the Trial Matcher request. */
61
+ export interface TrialMatcherData {
62
+ /** The list of patients, including their clinical information and data. */
63
+ patients: Array<PatientRecord>;
64
+ /** Configuration affecting the Trial Matcher model's inference. */
65
+ configuration?: TrialMatcherModelConfiguration;
66
+ }
67
+ /** A patient record, including their clinical information and data. */
68
+ export interface PatientRecord {
69
+ /** A given identifier for the patient. Has to be unique across all patients in a single request. */
70
+ id: string;
71
+ /** Patient structured information, including demographics and known structured clinical information. */
72
+ info?: PatientInfo;
73
+ /** Patient unstructured clinical data, given as documents. */
74
+ data?: Array<PatientDocument>;
75
+ }
76
+ /** Patient structured information, including demographics and known structured clinical information. */
77
+ export interface PatientInfo {
78
+ /**
79
+ * The patient's sex.
80
+ *
81
+ * Possible values: female, male, unspecified
82
+ */
83
+ sex?: string;
84
+ /** The patient's date of birth. */
85
+ birthDate?: Date | string;
86
+ /** Known clinical information for the patient, structured. */
87
+ clinicalInfo?: Array<ClinicalCodedElement>;
88
+ }
89
+ /** A clinical document related to a patient. Document here is in the wide sense - not just a text document (note). */
90
+ export interface PatientDocument {
91
+ /**
92
+ * The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document).
93
+ *
94
+ * Possible values: note, fhirBundle, dicom, genomicSequencing
95
+ */
96
+ type: string;
97
+ /**
98
+ * The type of the clinical document.
99
+ *
100
+ * Possible values: consultation, dischargeSummary, historyAndPhysical, procedure, progress, imaging, laboratory, pathology
101
+ */
102
+ clinicalType?: string;
103
+ /** A given identifier for the document. Has to be unique across all documents for a single patient. */
104
+ id: string;
105
+ /** A 2 letter ISO 639-1 representation of the language of the document. */
106
+ language?: string;
107
+ /** The date and time when the document was created. */
108
+ createdDateTime?: Date | string;
109
+ /** The content of the patient document. */
110
+ content: DocumentContent;
111
+ }
112
+ /** The content of the patient document. */
113
+ export interface DocumentContent {
114
+ /**
115
+ * The type of the content's source.
116
+ * In case the source type is 'inline', the content is given as a string (for instance, text).
117
+ * In case the source type is 'reference', the content is given as a URI.
118
+ *
119
+ * Possible values: inline, reference
120
+ */
121
+ sourceType: string;
122
+ /** The content of the document, given either inline (as a string) or as a reference (URI). */
123
+ value: string;
124
+ }
125
+ /** Configuration affecting the Trial Matcher model's inference. */
126
+ export interface TrialMatcherModelConfiguration {
127
+ /** An indication whether the model should produce verbose output. */
128
+ verbose?: boolean;
129
+ /** An indication whether the model's output should include evidence for the inferences. */
130
+ includeEvidence?: boolean;
131
+ /**
132
+ * The clinical trials that the patient(s) should be matched to. <br />The trial
133
+ * selection can be given as a list of custom clinical trials and/or a list of
134
+ * filters to known clinical trial registries. In case both are given, the
135
+ * resulting trial set is a union of the two sets.
136
+ */
137
+ clinicalTrials: ClinicalTrials;
138
+ }
139
+ /**
140
+ * The clinical trials that the patient(s) should be matched to.
141
+ * The trial selection can be given as a list of custom clinical trials and/or a list of filters to known clinical trial registries.
142
+ * In case both are given, the resulting trial set is a union of the two sets.
143
+ */
144
+ export interface ClinicalTrials {
145
+ /** A list of clinical trials. */
146
+ customTrials?: Array<ClinicalTrialDetails>;
147
+ /**
148
+ * A list of filters, each one creating a selection of trials from a given
149
+ * clinical trial registry.
150
+ */
151
+ registryFilters?: Array<ClinicalTrialRegistryFilter>;
152
+ }
153
+ /** A description of a clinical trial. */
154
+ export interface ClinicalTrialDetails {
155
+ /** A given identifier for the clinical trial. Has to be unique within a list of clinical trials. */
156
+ id: string;
157
+ /** The eligibility criteria of the clinical trial (inclusion and exclusion), given as text. */
158
+ eligibilityCriteriaText?: string;
159
+ /** Demographic criteria for a clinical trial. */
160
+ demographics?: ClinicalTrialDemographics;
161
+ /** Trial data which is of interest to the potential participant. */
162
+ metadata: ClinicalTrialMetadata;
163
+ }
164
+ /** Demographic criteria for a clinical trial. */
165
+ export interface ClinicalTrialDemographics {
166
+ /**
167
+ * Indication of the sex of people who may participate in the clinical trial.
168
+ *
169
+ * Possible values: all, female, male
170
+ */
171
+ acceptedSex?: string;
172
+ /** A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age. */
173
+ acceptedAgeRange?: AcceptedAgeRange;
174
+ }
175
+ /** A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age. */
176
+ export interface AcceptedAgeRange {
177
+ /** A person's age, given as a number (value) and a unit (e.g. years, months) */
178
+ minimumAge?: AcceptedAge;
179
+ /** A person's age, given as a number (value) and a unit (e.g. years, months) */
180
+ maximumAge?: AcceptedAge;
181
+ }
182
+ /** A person's age, given as a number (value) and a unit (e.g. years, months) */
183
+ export interface AcceptedAge {
184
+ /**
185
+ * Possible units for a person's age.
186
+ *
187
+ * Possible values: years, months, days
188
+ */
189
+ unit: string;
190
+ /** The number of years/months/days that represents the person's age. */
191
+ value: number;
192
+ }
193
+ /** A filter defining a subset of clinical trials from a given clinical trial registry (e.g. clinicaltrials.gov). */
194
+ export interface ClinicalTrialRegistryFilter {
195
+ /**
196
+ * Trials with any of the given medical conditions will be included in the selection (provided that other limitations are satisfied).
197
+ * Leaving this list empty will not limit the medical conditions.
198
+ */
199
+ conditions?: string[];
200
+ /**
201
+ * Trials with any of the given study types will be included in the selection (provided that other limitations are satisfied).
202
+ * Leaving this list empty will not limit the study types.
203
+ */
204
+ studyTypes?: string[];
205
+ /**
206
+ * Trials with any of the given recruitment statuses will be included in the selection (provided that other limitations are satisfied).
207
+ * Leaving this list empty will not limit the recruitment statuses.
208
+ */
209
+ recruitmentStatuses?: string[];
210
+ /**
211
+ * Trials with any of the given sponsors will be included in the selection (provided that other limitations are satisfied).
212
+ * Leaving this list empty will not limit the sponsors.
213
+ */
214
+ sponsors?: string[];
215
+ /**
216
+ * Trials with any of the given phases will be included in the selection (provided that other limitations are satisfied).
217
+ * Leaving this list empty will not limit the phases.
218
+ */
219
+ phases?: string[];
220
+ /**
221
+ * Trials with any of the given purposes will be included in the selection (provided that other limitations are satisfied).
222
+ * Leaving this list empty will not limit the purposes.
223
+ */
224
+ purposes?: string[];
225
+ /**
226
+ * Trials with any of the given identifiers will be included in the selection (provided that other limitations are satisfied).
227
+ * Leaving this list empty will not limit the trial identifiers.
228
+ */
229
+ ids?: string[];
230
+ /**
231
+ * Trials with any of the given sources will be included in the selection (provided that other limitations are satisfied).
232
+ * Leaving this list empty will not limit the sources.
233
+ */
234
+ sources?: string[];
235
+ /**
236
+ * Trials with any of the given facility names will be included in the selection (provided that other limitations are satisfied).
237
+ * Leaving this list empty will not limit the trial facility names.
238
+ */
239
+ facilityNames?: string[];
240
+ /**
241
+ * Trials with any of the given facility locations will be included in the selection (provided that other limitations are satisfied).
242
+ * Leaving this list empty will not limit the trial facility locations.
243
+ */
244
+ facilityLocations?: Array<GeographicLocation>;
245
+ /**
246
+ * Trials with any of the given facility area boundaries will be included in the selection (provided that other limitations are satisfied).
247
+ * Leaving this list empty will not limit the trial facility area boundaries.
248
+ */
249
+ facilityAreas?: Array<GeographicArea>;
250
+ }
251
+ /**
252
+ * A location given as a combination of city, state and country/region. It could specify a city, a state or a country/region.
253
+ * In case a city is specified, either state +country/region or country/region (for countries/regions where there are no states) should be added.
254
+ * In case a state is specified (without a city), country/region should be added.
255
+ */
256
+ export interface GeographicLocation {
257
+ /** City name. */
258
+ city?: string;
259
+ /** State name. */
260
+ state?: string;
261
+ /** Country/region name. */
262
+ countryOrRegion: string;
263
+ }
264
+ /** A geographic area, expressed as a `Circle` geometry represented using a `GeoJSON Feature` (see [GeoJSON spec](https://tools.ietf.org/html/rfc7946)). */
265
+ export interface GeographicArea {
266
+ /**
267
+ * `GeoJSON` type.
268
+ *
269
+ * Possible values: Feature
270
+ */
271
+ type: string;
272
+ /** `GeoJSON` geometry, representing the area circle's center. */
273
+ geometry: AreaGeometry;
274
+ /** `GeoJSON` object properties. */
275
+ properties: AreaProperties;
276
+ }
277
+ /** `GeoJSON` geometry, representing the area circle's center. */
278
+ export interface AreaGeometry {
279
+ /**
280
+ * `GeoJSON` geometry type.
281
+ *
282
+ * Possible values: Point
283
+ */
284
+ type: string;
285
+ /**
286
+ * Coordinates of the area circle's center, represented according to the `GeoJSON` standard.
287
+ * This is an array of 2 decimal numbers, longitude and latitude (precisely in this order).
288
+ */
289
+ coordinates: number[];
290
+ }
291
+ /** `GeoJSON` object properties. */
292
+ export interface AreaProperties {
293
+ /**
294
+ * `GeoJSON` object sub-type.
295
+ *
296
+ * Possible values: Circle
297
+ */
298
+ subType: string;
299
+ /** The radius of the area's circle, in meters. */
300
+ radius: number;
301
+ }
302
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,wFAAwF;AACxF,MAAM,WAAW,oBAAoB;IACnC,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,oEAAoE;AACpE,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yGAAyG;IACzG,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACjC,iEAAiE;IACjE,UAAU,CAAC,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;CACnD;AAED,kCAAkC;AAClC,MAAM,WAAW,cAAc;IAC7B,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAA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,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A piece of clinical information, expressed as a code in a clinical coding system. */\nexport interface ClinicalCodedElement {\n /** The clinical coding system, e.g. ICD-10, SNOMED-CT, UMLS. */\n system: string;\n /** The code within the given clinical coding system. */\n code: string;\n /** The name of this coded concept in the coding system. */\n name?: string;\n /** A value associated with the code within the given clinical coding system. */\n value?: string;\n}\n\n/** Trial data which is of interest to the potential participant. */\nexport interface ClinicalTrialMetadata {\n /**\n * Phases which are relevant for the clinical trial.\n * Each clinical trial can be in a certain phase or in multiple phases.\n */\n phases?: string[];\n /**\n * Possible study types of a clinical trial.\n *\n * Possible values: interventional, observational, expandedAccess, patientRegistries\n */\n studyType?: string;\n /**\n * Possible recruitment status of a clinical trial.\n *\n * Possible values: unknownStatus, notYetRecruiting, recruiting, enrollingByInvitation\n */\n recruitmentStatus?: string;\n /** Medical conditions and their synonyms which are relevant for the clinical trial, given as strings. */\n conditions: string[];\n /** Sponsors/collaborators involved with the trial. */\n sponsors?: string[];\n /** Contact details of the trial administrators, for patients that want to participate in the trial. */\n contacts?: Array<ContactDetails>;\n /** Research facilities where the clinical trial is conducted. */\n facilities?: Array<ClinicalTrialResearchFacility>;\n}\n\n/** A person's contact details. */\nexport interface ContactDetails {\n /** The person's name. */\n name?: string;\n /** The person's email. */\n email?: string;\n /** A person's phone number. */\n phone?: string;\n}\n\n/** Details of a research facility where a clinical trial is conducted. */\nexport interface ClinicalTrialResearchFacility {\n /** The facility's name. */\n name: string;\n /** City name. */\n city?: string;\n /** State name. */\n state?: string;\n /** Country/region name. */\n countryOrRegion: string;\n}\n\n/** The body of the Trial Matcher request. */\nexport interface TrialMatcherData {\n /** The list of patients, including their clinical information and data. */\n patients: Array<PatientRecord>;\n /** Configuration affecting the Trial Matcher model's inference. */\n configuration?: TrialMatcherModelConfiguration;\n}\n\n/** A patient record, including their clinical information and data. */\nexport interface PatientRecord {\n /** A given identifier for the patient. Has to be unique across all patients in a single request. */\n id: string;\n /** Patient structured information, including demographics and known structured clinical information. */\n info?: PatientInfo;\n /** Patient unstructured clinical data, given as documents. */\n data?: Array<PatientDocument>;\n}\n\n/** Patient structured information, including demographics and known structured clinical information. */\nexport interface PatientInfo {\n /**\n * The patient's sex.\n *\n * Possible values: female, male, unspecified\n */\n sex?: string;\n /** The patient's date of birth. */\n birthDate?: Date | string;\n /** Known clinical information for the patient, structured. */\n clinicalInfo?: Array<ClinicalCodedElement>;\n}\n\n/** A clinical document related to a patient. Document here is in the wide sense - not just a text document (note). */\nexport interface PatientDocument {\n /**\n * The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document).\n *\n * Possible values: note, fhirBundle, dicom, genomicSequencing\n */\n type: string;\n /**\n * The type of the clinical document.\n *\n * Possible values: consultation, dischargeSummary, historyAndPhysical, procedure, progress, imaging, laboratory, pathology\n */\n clinicalType?: string;\n /** A given identifier for the document. Has to be unique across all documents for a single patient. */\n id: string;\n /** A 2 letter ISO 639-1 representation of the language of the document. */\n language?: string;\n /** The date and time when the document was created. */\n createdDateTime?: Date | string;\n /** The content of the patient document. */\n content: DocumentContent;\n}\n\n/** The content of the patient document. */\nexport interface DocumentContent {\n /**\n * The type of the content's source.\n * In case the source type is 'inline', the content is given as a string (for instance, text).\n * In case the source type is 'reference', the content is given as a URI.\n *\n * Possible values: inline, reference\n */\n sourceType: string;\n /** The content of the document, given either inline (as a string) or as a reference (URI). */\n value: string;\n}\n\n/** Configuration affecting the Trial Matcher model's inference. */\nexport interface TrialMatcherModelConfiguration {\n /** An indication whether the model should produce verbose output. */\n verbose?: boolean;\n /** An indication whether the model's output should include evidence for the inferences. */\n includeEvidence?: boolean;\n /**\n * The clinical trials that the patient(s) should be matched to. <br />The trial\n * selection can be given as a list of custom clinical trials and/or a list of\n * filters to known clinical trial registries. In case both are given, the\n * resulting trial set is a union of the two sets.\n */\n clinicalTrials: ClinicalTrials;\n}\n\n/**\n * The clinical trials that the patient(s) should be matched to.\n * The trial selection can be given as a list of custom clinical trials and/or a list of filters to known clinical trial registries.\n * In case both are given, the resulting trial set is a union of the two sets.\n */\nexport interface ClinicalTrials {\n /** A list of clinical trials. */\n customTrials?: Array<ClinicalTrialDetails>;\n /**\n * A list of filters, each one creating a selection of trials from a given\n * clinical trial registry.\n */\n registryFilters?: Array<ClinicalTrialRegistryFilter>;\n}\n\n/** A description of a clinical trial. */\nexport interface ClinicalTrialDetails {\n /** A given identifier for the clinical trial. Has to be unique within a list of clinical trials. */\n id: string;\n /** The eligibility criteria of the clinical trial (inclusion and exclusion), given as text. */\n eligibilityCriteriaText?: string;\n /** Demographic criteria for a clinical trial. */\n demographics?: ClinicalTrialDemographics;\n /** Trial data which is of interest to the potential participant. */\n metadata: ClinicalTrialMetadata;\n}\n\n/** Demographic criteria for a clinical trial. */\nexport interface ClinicalTrialDemographics {\n /**\n * Indication of the sex of people who may participate in the clinical trial.\n *\n * Possible values: all, female, male\n */\n acceptedSex?: string;\n /** A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age. */\n acceptedAgeRange?: AcceptedAgeRange;\n}\n\n/** A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age. */\nexport interface AcceptedAgeRange {\n /** A person's age, given as a number (value) and a unit (e.g. years, months) */\n minimumAge?: AcceptedAge;\n /** A person's age, given as a number (value) and a unit (e.g. years, months) */\n maximumAge?: AcceptedAge;\n}\n\n/** A person's age, given as a number (value) and a unit (e.g. years, months) */\nexport interface AcceptedAge {\n /**\n * Possible units for a person's age.\n *\n * Possible values: years, months, days\n */\n unit: string;\n /** The number of years/months/days that represents the person's age. */\n value: number;\n}\n\n/** A filter defining a subset of clinical trials from a given clinical trial registry (e.g. clinicaltrials.gov). */\nexport interface ClinicalTrialRegistryFilter {\n /**\n * Trials with any of the given medical conditions will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the medical conditions.\n */\n conditions?: string[];\n /**\n * Trials with any of the given study types will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the study types.\n */\n studyTypes?: string[];\n /**\n * Trials with any of the given recruitment statuses will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the recruitment statuses.\n */\n recruitmentStatuses?: string[];\n /**\n * Trials with any of the given sponsors will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the sponsors.\n */\n sponsors?: string[];\n /**\n * Trials with any of the given phases will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the phases.\n */\n phases?: string[];\n /**\n * Trials with any of the given purposes will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the purposes.\n */\n purposes?: string[];\n /**\n * Trials with any of the given identifiers will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the trial identifiers.\n */\n ids?: string[];\n /**\n * Trials with any of the given sources will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the sources.\n */\n sources?: string[];\n /**\n * Trials with any of the given facility names will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the trial facility names.\n */\n facilityNames?: string[];\n /**\n * Trials with any of the given facility locations will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the trial facility locations.\n */\n facilityLocations?: Array<GeographicLocation>;\n /**\n * Trials with any of the given facility area boundaries will be included in the selection (provided that other limitations are satisfied).\n * Leaving this list empty will not limit the trial facility area boundaries.\n */\n facilityAreas?: Array<GeographicArea>;\n}\n\n/**\n * A location given as a combination of city, state and country/region. It could specify a city, a state or a country/region.\n * In case a city is specified, either state +country/region or country/region (for countries/regions where there are no states) should be added.\n * In case a state is specified (without a city), country/region should be added.\n */\nexport interface GeographicLocation {\n /** City name. */\n city?: string;\n /** State name. */\n state?: string;\n /** Country/region name. */\n countryOrRegion: string;\n}\n\n/** A geographic area, expressed as a `Circle` geometry represented using a `GeoJSON Feature` (see [GeoJSON spec](https://tools.ietf.org/html/rfc7946)). */\nexport interface GeographicArea {\n /**\n * `GeoJSON` type.\n *\n * Possible values: Feature\n */\n type: string;\n /** `GeoJSON` geometry, representing the area circle's center. */\n geometry: AreaGeometry;\n /** `GeoJSON` object properties. */\n properties: AreaProperties;\n}\n\n/** `GeoJSON` geometry, representing the area circle's center. */\nexport interface AreaGeometry {\n /**\n * `GeoJSON` geometry type.\n *\n * Possible values: Point\n */\n type: string;\n /**\n * Coordinates of the area circle's center, represented according to the `GeoJSON` standard.\n * This is an array of 2 decimal numbers, longitude and latitude (precisely in this order).\n */\n coordinates: number[];\n}\n\n/** `GeoJSON` object properties. */\nexport interface AreaProperties {\n /**\n * `GeoJSON` object sub-type.\n *\n * Possible values: Circle\n */\n subType: string;\n /** The radius of the area's circle, in meters. */\n radius: number;\n}\n"]}