@azure/ai-language-text 1.1.0-alpha.20230508.3 → 1.1.0-alpha.20230727.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.
@@ -8,7 +8,7 @@ export const DEFAULT_COGNITIVE_SCOPE = "https://cognitiveservices.azure.com/.def
8
8
  /**
9
9
  * @internal
10
10
  */
11
- export const SDK_VERSION = "1.1.0-beta.3";
11
+ export const SDK_VERSION = "1.1.0";
12
12
  /**
13
13
  * @internal
14
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,8CAA8C,CAAC;AAEtF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,oBAAoB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * The default AAD permissions scope for Cognitive Services.\n * @internal\n */\nexport const DEFAULT_COGNITIVE_SCOPE = \"https://cognitiveservices.azure.com/.default\";\n\n/**\n * @internal\n */\nexport const SDK_VERSION = \"1.1.0-beta.3\";\n\n/**\n * @internal\n */\nexport const clientName = \"TextAnalysisClient\";\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,8CAA8C,CAAC;AAEtF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,oBAAoB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * The default AAD permissions scope for Cognitive Services.\n * @internal\n */\nexport const DEFAULT_COGNITIVE_SCOPE = \"https://cognitiveservices.azure.com/.default\";\n\n/**\n * @internal\n */\nexport const SDK_VERSION = \"1.1.0\";\n\n/**\n * @internal\n */\nexport const clientName = \"TextAnalysisClient\";\n"]}
@@ -29,7 +29,7 @@ export class GeneratedClient extends coreClient.ServiceClient {
29
29
  const defaults = {
30
30
  requestContentType: "application/json; charset=utf-8"
31
31
  };
32
- const packageDetails = `azsdk-js-ai-language-text/1.1.0-beta.3`;
32
+ const packageDetails = `azsdk-js-ai-language-text/1.1.0`;
33
33
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
34
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
35
  : `${packageDetails}`;
@@ -40,7 +40,7 @@ export class GeneratedClient extends coreClient.ServiceClient {
40
40
  // Parameter assignments
41
41
  this.endpoint = endpoint;
42
42
  // Assigning values to Constant parameters
43
- this.apiVersion = options.apiVersion || "2022-10-01-preview";
43
+ this.apiVersion = options.apiVersion || "2023-04-01";
44
44
  this.analyzeText = new AnalyzeTextImpl(this);
45
45
  this.addCustomApiVersionPolicy(options.apiVersion);
46
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAW5C,gBAAgB;AAChB,MAAM,OAAO,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAI3D;;;;;OAKG;IACH,YAAY,QAAgB,EAAE,OAAuC;;QACnE,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,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WAAW,EAAE,UAAU,CAAC,IAAI;IAC5B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACtE,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport { AnalyzeTextImpl } from \"./operations\";\nimport { AnalyzeText } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n GeneratedClientOptionalParams,\n AnalyzeActionUnion,\n AnalyzeOptionalParams,\n AnalyzeResponse,\n AnalyzeTextJobsInput,\n AnalyzeBatchOptionalParams,\n AnalyzeBatchResponse\n} from \"./models\";\n\n/** @internal */\nexport class GeneratedClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClient class.\n * @param endpoint Supported Cognitive Services endpoint (e.g.,\n * https://<resource-name>.api.cognitiveservices.azure.com).\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: GeneratedClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-ai-language-text/1.1.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{Endpoint}/language\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2022-10-01-preview\";\n this.analyzeText = new AnalyzeTextImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Submit a collection of text documents for analysis. Specify a single unique task to be executed\n * immediately.\n * @param body Collection of documents to analyze and a single task to execute.\n * @param options The options parameters.\n */\n analyze(\n body: AnalyzeActionUnion,\n options?: AnalyzeOptionalParams\n ): Promise<AnalyzeResponse> {\n return this.sendOperationRequest({ body, options }, analyzeOperationSpec);\n }\n\n /**\n * Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed\n * as a long-running operation.\n * @param body Collection of documents to analyze and one or more tasks to execute.\n * @param options The options parameters.\n */\n analyzeBatch(\n body: AnalyzeTextJobsInput,\n options?: AnalyzeBatchOptionalParams\n ): Promise<AnalyzeBatchResponse> {\n return this.sendOperationRequest(\n { body, options },\n analyzeBatchOperationSpec\n );\n }\n\n analyzeText: AnalyzeText;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst analyzeOperationSpec: coreClient.OperationSpec = {\n path: \"/:analyze-text\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AnalyzeTextTaskResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion, Parameters.includeStatistics],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst analyzeBatchOperationSpec: coreClient.OperationSpec = {\n path: \"/analyze-text/jobs\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n headersMapper: Mappers.GeneratedClientAnalyzeBatchHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
1
+ {"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAA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,CAAC;CAGF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,gBAAgB;IACtB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,IAAI;IAC5B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACtE,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport { AnalyzeTextImpl } from \"./operations\";\nimport { AnalyzeText } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n GeneratedClientOptionalParams,\n AnalyzeActionUnion,\n AnalyzeOptionalParams,\n AnalyzeResponse,\n AnalyzeTextJobsInput,\n AnalyzeBatchOptionalParams,\n AnalyzeBatchResponse\n} from \"./models\";\n\n/** @internal */\nexport class GeneratedClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClient class.\n * @param endpoint Supported Cognitive Services endpoint (e.g.,\n * https://<resource-name>.api.cognitiveservices.azure.com).\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: GeneratedClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-ai-language-text/1.1.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{Endpoint}/language\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2023-04-01\";\n this.analyzeText = new AnalyzeTextImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Submit a collection of text documents for analysis. Specify a single unique task to be executed\n * immediately.\n * @param body Collection of documents to analyze and a single task to execute.\n * @param options The options parameters.\n */\n analyze(\n body: AnalyzeActionUnion,\n options?: AnalyzeOptionalParams\n ): Promise<AnalyzeResponse> {\n return this.sendOperationRequest({ body, options }, analyzeOperationSpec);\n }\n\n /**\n * Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed\n * as a long-running operation.\n * @param body Collection of documents to analyze and one or more tasks to execute.\n * @param options The options parameters.\n */\n analyzeBatch(\n body: AnalyzeTextJobsInput,\n options?: AnalyzeBatchOptionalParams\n ): Promise<AnalyzeBatchResponse> {\n return this.sendOperationRequest(\n { body, options },\n analyzeBatchOperationSpec\n );\n }\n\n analyzeText: AnalyzeText;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst analyzeOperationSpec: coreClient.OperationSpec = {\n path: \"/:analyze-text\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AnalyzeTextTaskResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion, Parameters.includeStatistics],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst analyzeBatchOperationSpec: coreClient.OperationSpec = {\n path: \"/analyze-text/jobs\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n headersMapper: Mappers.GeneratedClientAnalyzeBatchHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -563,40 +563,6 @@ export var KnownPiiEntityCategory;
563
563
  /** Default */
564
564
  KnownPiiEntityCategory["Default"] = "Default";
565
565
  })(KnownPiiEntityCategory || (KnownPiiEntityCategory = {}));
566
- /** Known values of {@link ResolutionKind} that the service accepts. */
567
- export var KnownResolutionKind;
568
- (function (KnownResolutionKind) {
569
- /** BooleanResolution */
570
- KnownResolutionKind["BooleanResolution"] = "BooleanResolution";
571
- /** DateTimeResolution */
572
- KnownResolutionKind["DateTimeResolution"] = "DateTimeResolution";
573
- /** NumberResolution */
574
- KnownResolutionKind["NumberResolution"] = "NumberResolution";
575
- /** OrdinalResolution */
576
- KnownResolutionKind["OrdinalResolution"] = "OrdinalResolution";
577
- /** SpeedResolution */
578
- KnownResolutionKind["SpeedResolution"] = "SpeedResolution";
579
- /** WeightResolution */
580
- KnownResolutionKind["WeightResolution"] = "WeightResolution";
581
- /** LengthResolution */
582
- KnownResolutionKind["LengthResolution"] = "LengthResolution";
583
- /** VolumeResolution */
584
- KnownResolutionKind["VolumeResolution"] = "VolumeResolution";
585
- /** AreaResolution */
586
- KnownResolutionKind["AreaResolution"] = "AreaResolution";
587
- /** AgeResolution */
588
- KnownResolutionKind["AgeResolution"] = "AgeResolution";
589
- /** InformationResolution */
590
- KnownResolutionKind["InformationResolution"] = "InformationResolution";
591
- /** TemperatureResolution */
592
- KnownResolutionKind["TemperatureResolution"] = "TemperatureResolution";
593
- /** CurrencyResolution */
594
- KnownResolutionKind["CurrencyResolution"] = "CurrencyResolution";
595
- /** NumericRangeResolution */
596
- KnownResolutionKind["NumericRangeResolution"] = "NumericRangeResolution";
597
- /** TemporalSpanResolution */
598
- KnownResolutionKind["TemporalSpanResolution"] = "TemporalSpanResolution";
599
- })(KnownResolutionKind || (KnownResolutionKind = {}));
600
566
  /** Known values of {@link WarningCode} that the service accepts. */
601
567
  export var KnownWarningCode;
602
568
  (function (KnownWarningCode) {
@@ -605,18 +571,6 @@ export var KnownWarningCode;
605
571
  /** DocumentTruncated */
606
572
  KnownWarningCode["DocumentTruncated"] = "DocumentTruncated";
607
573
  })(KnownWarningCode || (KnownWarningCode = {}));
608
- /** Known values of {@link ScriptKind} that the service accepts. */
609
- export var KnownScriptKind;
610
- (function (KnownScriptKind) {
611
- /** Latin */
612
- KnownScriptKind["Latin"] = "Latin";
613
- })(KnownScriptKind || (KnownScriptKind = {}));
614
- /** Known values of {@link FhirVersion} that the service accepts. */
615
- export var KnownFhirVersion;
616
- (function (KnownFhirVersion) {
617
- /** Four01 */
618
- KnownFhirVersion["Four01"] = "4.0.1";
619
- })(KnownFhirVersion || (KnownFhirVersion = {}));
620
574
  /** Known values of {@link HealthcareEntityCategory} that the service accepts. */
621
575
  export var KnownHealthcareEntityCategory;
622
576
  (function (KnownHealthcareEntityCategory) {
@@ -626,6 +580,8 @@ export var KnownHealthcareEntityCategory;
626
580
  KnownHealthcareEntityCategory["Age"] = "Age";
627
581
  /** Gender */
628
582
  KnownHealthcareEntityCategory["Gender"] = "Gender";
583
+ /** Ethnicity */
584
+ KnownHealthcareEntityCategory["Ethnicity"] = "Ethnicity";
629
585
  /** ExaminationName */
630
586
  KnownHealthcareEntityCategory["ExaminationName"] = "ExaminationName";
631
587
  /** Date */
@@ -642,10 +598,16 @@ export var KnownHealthcareEntityCategory;
642
598
  KnownHealthcareEntityCategory["RelationalOperator"] = "RelationalOperator";
643
599
  /** Time */
644
600
  KnownHealthcareEntityCategory["Time"] = "Time";
601
+ /** Course */
602
+ KnownHealthcareEntityCategory["Course"] = "Course";
645
603
  /** GeneOrProtein */
646
604
  KnownHealthcareEntityCategory["GeneOrProtein"] = "GeneOrProtein";
647
605
  /** Variant */
648
606
  KnownHealthcareEntityCategory["Variant"] = "Variant";
607
+ /** Expression */
608
+ KnownHealthcareEntityCategory["Expression"] = "Expression";
609
+ /** MutationType */
610
+ KnownHealthcareEntityCategory["MutationType"] = "MutationType";
649
611
  /** AdministrativeEvent */
650
612
  KnownHealthcareEntityCategory["AdministrativeEvent"] = "AdministrativeEvent";
651
613
  /** CareEnvironment */
@@ -658,6 +620,8 @@ export var KnownHealthcareEntityCategory;
658
620
  KnownHealthcareEntityCategory["SymptomOrSign"] = "SymptomOrSign";
659
621
  /** ConditionQualifier */
660
622
  KnownHealthcareEntityCategory["ConditionQualifier"] = "ConditionQualifier";
623
+ /** ConditionScale */
624
+ KnownHealthcareEntityCategory["ConditionScale"] = "ConditionScale";
661
625
  /** MedicationClass */
662
626
  KnownHealthcareEntityCategory["MedicationClass"] = "MedicationClass";
663
627
  /** MedicationName */
@@ -672,12 +636,34 @@ export var KnownHealthcareEntityCategory;
672
636
  KnownHealthcareEntityCategory["FamilyRelation"] = "FamilyRelation";
673
637
  /** TreatmentName */
674
638
  KnownHealthcareEntityCategory["TreatmentName"] = "TreatmentName";
639
+ /** Allergen */
640
+ KnownHealthcareEntityCategory["Allergen"] = "Allergen";
641
+ /** Employment */
642
+ KnownHealthcareEntityCategory["Employment"] = "Employment";
643
+ /** LivingStatus */
644
+ KnownHealthcareEntityCategory["LivingStatus"] = "LivingStatus";
645
+ /** SubstanceUse */
646
+ KnownHealthcareEntityCategory["SubstanceUse"] = "SubstanceUse";
647
+ /** SubstanceUseAmount */
648
+ KnownHealthcareEntityCategory["SubstanceUseAmount"] = "SubstanceUseAmount";
675
649
  })(KnownHealthcareEntityCategory || (KnownHealthcareEntityCategory = {}));
676
650
  /** Known values of {@link RelationType} that the service accepts. */
677
651
  export var KnownRelationType;
678
652
  (function (KnownRelationType) {
679
653
  /** Abbreviation */
680
654
  KnownRelationType["Abbreviation"] = "Abbreviation";
655
+ /** BodySiteOfCondition */
656
+ KnownRelationType["BodySiteOfCondition"] = "BodySiteOfCondition";
657
+ /** BodySiteOfTreatment */
658
+ KnownRelationType["BodySiteOfTreatment"] = "BodySiteOfTreatment";
659
+ /** CourseOfCondition */
660
+ KnownRelationType["CourseOfCondition"] = "CourseOfCondition";
661
+ /** CourseOfExamination */
662
+ KnownRelationType["CourseOfExamination"] = "CourseOfExamination";
663
+ /** CourseOfMedication */
664
+ KnownRelationType["CourseOfMedication"] = "CourseOfMedication";
665
+ /** CourseOfTreatment */
666
+ KnownRelationType["CourseOfTreatment"] = "CourseOfTreatment";
681
667
  /** DirectionOfBodyStructure */
682
668
  KnownRelationType["DirectionOfBodyStructure"] = "DirectionOfBodyStructure";
683
669
  /** DirectionOfCondition */
@@ -688,18 +674,32 @@ export var KnownRelationType;
688
674
  KnownRelationType["DirectionOfTreatment"] = "DirectionOfTreatment";
689
675
  /** DosageOfMedication */
690
676
  KnownRelationType["DosageOfMedication"] = "DosageOfMedication";
677
+ /** ExaminationFindsCondition */
678
+ KnownRelationType["ExaminationFindsCondition"] = "ExaminationFindsCondition";
679
+ /** ExpressionOfGene */
680
+ KnownRelationType["ExpressionOfGene"] = "ExpressionOfGene";
681
+ /** ExpressionOfVariant */
682
+ KnownRelationType["ExpressionOfVariant"] = "ExpressionOfVariant";
691
683
  /** FormOfMedication */
692
684
  KnownRelationType["FormOfMedication"] = "FormOfMedication";
685
+ /** FrequencyOfCondition */
686
+ KnownRelationType["FrequencyOfCondition"] = "FrequencyOfCondition";
693
687
  /** FrequencyOfMedication */
694
688
  KnownRelationType["FrequencyOfMedication"] = "FrequencyOfMedication";
695
689
  /** FrequencyOfTreatment */
696
690
  KnownRelationType["FrequencyOfTreatment"] = "FrequencyOfTreatment";
691
+ /** MutationTypeOfGene */
692
+ KnownRelationType["MutationTypeOfGene"] = "MutationTypeOfGene";
693
+ /** MutationTypeOfVariant */
694
+ KnownRelationType["MutationTypeOfVariant"] = "MutationTypeOfVariant";
697
695
  /** QualifierOfCondition */
698
696
  KnownRelationType["QualifierOfCondition"] = "QualifierOfCondition";
699
697
  /** RelationOfExamination */
700
698
  KnownRelationType["RelationOfExamination"] = "RelationOfExamination";
701
699
  /** RouteOfMedication */
702
700
  KnownRelationType["RouteOfMedication"] = "RouteOfMedication";
701
+ /** ScaleOfCondition */
702
+ KnownRelationType["ScaleOfCondition"] = "ScaleOfCondition";
703
703
  /** TimeOfCondition */
704
704
  KnownRelationType["TimeOfCondition"] = "TimeOfCondition";
705
705
  /** TimeOfEvent */
@@ -718,365 +718,9 @@ export var KnownRelationType;
718
718
  KnownRelationType["ValueOfCondition"] = "ValueOfCondition";
719
719
  /** ValueOfExamination */
720
720
  KnownRelationType["ValueOfExamination"] = "ValueOfExamination";
721
+ /** VariantOfGene */
722
+ KnownRelationType["VariantOfGene"] = "VariantOfGene";
721
723
  })(KnownRelationType || (KnownRelationType = {}));
722
- /** Known values of {@link AgeUnit} that the service accepts. */
723
- export var KnownAgeUnit;
724
- (function (KnownAgeUnit) {
725
- /** Unspecified */
726
- KnownAgeUnit["Unspecified"] = "Unspecified";
727
- /** Year */
728
- KnownAgeUnit["Year"] = "Year";
729
- /** Month */
730
- KnownAgeUnit["Month"] = "Month";
731
- /** Week */
732
- KnownAgeUnit["Week"] = "Week";
733
- /** Day */
734
- KnownAgeUnit["Day"] = "Day";
735
- })(KnownAgeUnit || (KnownAgeUnit = {}));
736
- /** Known values of {@link VolumeUnit} that the service accepts. */
737
- export var KnownVolumeUnit;
738
- (function (KnownVolumeUnit) {
739
- /** Unspecified */
740
- KnownVolumeUnit["Unspecified"] = "Unspecified";
741
- /** CubicMeter */
742
- KnownVolumeUnit["CubicMeter"] = "CubicMeter";
743
- /** CubicCentimeter */
744
- KnownVolumeUnit["CubicCentimeter"] = "CubicCentimeter";
745
- /** CubicMillimeter */
746
- KnownVolumeUnit["CubicMillimeter"] = "CubicMillimeter";
747
- /** Hectoliter */
748
- KnownVolumeUnit["Hectoliter"] = "Hectoliter";
749
- /** Decaliter */
750
- KnownVolumeUnit["Decaliter"] = "Decaliter";
751
- /** Liter */
752
- KnownVolumeUnit["Liter"] = "Liter";
753
- /** Centiliter */
754
- KnownVolumeUnit["Centiliter"] = "Centiliter";
755
- /** Milliliter */
756
- KnownVolumeUnit["Milliliter"] = "Milliliter";
757
- /** CubicYard */
758
- KnownVolumeUnit["CubicYard"] = "CubicYard";
759
- /** CubicInch */
760
- KnownVolumeUnit["CubicInch"] = "CubicInch";
761
- /** CubicFoot */
762
- KnownVolumeUnit["CubicFoot"] = "CubicFoot";
763
- /** CubicMile */
764
- KnownVolumeUnit["CubicMile"] = "CubicMile";
765
- /** FluidOunce */
766
- KnownVolumeUnit["FluidOunce"] = "FluidOunce";
767
- /** Teaspoon */
768
- KnownVolumeUnit["Teaspoon"] = "Teaspoon";
769
- /** Tablespoon */
770
- KnownVolumeUnit["Tablespoon"] = "Tablespoon";
771
- /** Pint */
772
- KnownVolumeUnit["Pint"] = "Pint";
773
- /** Quart */
774
- KnownVolumeUnit["Quart"] = "Quart";
775
- /** Cup */
776
- KnownVolumeUnit["Cup"] = "Cup";
777
- /** Gill */
778
- KnownVolumeUnit["Gill"] = "Gill";
779
- /** Pinch */
780
- KnownVolumeUnit["Pinch"] = "Pinch";
781
- /** FluidDram */
782
- KnownVolumeUnit["FluidDram"] = "FluidDram";
783
- /** Barrel */
784
- KnownVolumeUnit["Barrel"] = "Barrel";
785
- /** Minim */
786
- KnownVolumeUnit["Minim"] = "Minim";
787
- /** Cord */
788
- KnownVolumeUnit["Cord"] = "Cord";
789
- /** Peck */
790
- KnownVolumeUnit["Peck"] = "Peck";
791
- /** Bushel */
792
- KnownVolumeUnit["Bushel"] = "Bushel";
793
- /** Hogshead */
794
- KnownVolumeUnit["Hogshead"] = "Hogshead";
795
- })(KnownVolumeUnit || (KnownVolumeUnit = {}));
796
- /** Known values of {@link SpeedUnit} that the service accepts. */
797
- export var KnownSpeedUnit;
798
- (function (KnownSpeedUnit) {
799
- /** Unspecified */
800
- KnownSpeedUnit["Unspecified"] = "Unspecified";
801
- /** MeterPerSecond */
802
- KnownSpeedUnit["MeterPerSecond"] = "MeterPerSecond";
803
- /** KilometerPerHour */
804
- KnownSpeedUnit["KilometerPerHour"] = "KilometerPerHour";
805
- /** KilometerPerMinute */
806
- KnownSpeedUnit["KilometerPerMinute"] = "KilometerPerMinute";
807
- /** KilometerPerSecond */
808
- KnownSpeedUnit["KilometerPerSecond"] = "KilometerPerSecond";
809
- /** MilePerHour */
810
- KnownSpeedUnit["MilePerHour"] = "MilePerHour";
811
- /** Knot */
812
- KnownSpeedUnit["Knot"] = "Knot";
813
- /** FootPerSecond */
814
- KnownSpeedUnit["FootPerSecond"] = "FootPerSecond";
815
- /** FootPerMinute */
816
- KnownSpeedUnit["FootPerMinute"] = "FootPerMinute";
817
- /** YardPerMinute */
818
- KnownSpeedUnit["YardPerMinute"] = "YardPerMinute";
819
- /** YardPerSecond */
820
- KnownSpeedUnit["YardPerSecond"] = "YardPerSecond";
821
- /** MeterPerMillisecond */
822
- KnownSpeedUnit["MeterPerMillisecond"] = "MeterPerMillisecond";
823
- /** CentimeterPerMillisecond */
824
- KnownSpeedUnit["CentimeterPerMillisecond"] = "CentimeterPerMillisecond";
825
- /** KilometerPerMillisecond */
826
- KnownSpeedUnit["KilometerPerMillisecond"] = "KilometerPerMillisecond";
827
- })(KnownSpeedUnit || (KnownSpeedUnit = {}));
828
- /** Known values of {@link AreaUnit} that the service accepts. */
829
- export var KnownAreaUnit;
830
- (function (KnownAreaUnit) {
831
- /** Unspecified */
832
- KnownAreaUnit["Unspecified"] = "Unspecified";
833
- /** SquareKilometer */
834
- KnownAreaUnit["SquareKilometer"] = "SquareKilometer";
835
- /** SquareHectometer */
836
- KnownAreaUnit["SquareHectometer"] = "SquareHectometer";
837
- /** SquareDecameter */
838
- KnownAreaUnit["SquareDecameter"] = "SquareDecameter";
839
- /** SquareDecimeter */
840
- KnownAreaUnit["SquareDecimeter"] = "SquareDecimeter";
841
- /** SquareMeter */
842
- KnownAreaUnit["SquareMeter"] = "SquareMeter";
843
- /** SquareCentimeter */
844
- KnownAreaUnit["SquareCentimeter"] = "SquareCentimeter";
845
- /** SquareMillimeter */
846
- KnownAreaUnit["SquareMillimeter"] = "SquareMillimeter";
847
- /** SquareInch */
848
- KnownAreaUnit["SquareInch"] = "SquareInch";
849
- /** SquareFoot */
850
- KnownAreaUnit["SquareFoot"] = "SquareFoot";
851
- /** SquareMile */
852
- KnownAreaUnit["SquareMile"] = "SquareMile";
853
- /** SquareYard */
854
- KnownAreaUnit["SquareYard"] = "SquareYard";
855
- /** Acre */
856
- KnownAreaUnit["Acre"] = "Acre";
857
- })(KnownAreaUnit || (KnownAreaUnit = {}));
858
- /** Known values of {@link LengthUnit} that the service accepts. */
859
- export var KnownLengthUnit;
860
- (function (KnownLengthUnit) {
861
- /** Unspecified */
862
- KnownLengthUnit["Unspecified"] = "Unspecified";
863
- /** Kilometer */
864
- KnownLengthUnit["Kilometer"] = "Kilometer";
865
- /** Hectometer */
866
- KnownLengthUnit["Hectometer"] = "Hectometer";
867
- /** Decameter */
868
- KnownLengthUnit["Decameter"] = "Decameter";
869
- /** Meter */
870
- KnownLengthUnit["Meter"] = "Meter";
871
- /** Decimeter */
872
- KnownLengthUnit["Decimeter"] = "Decimeter";
873
- /** Centimeter */
874
- KnownLengthUnit["Centimeter"] = "Centimeter";
875
- /** Millimeter */
876
- KnownLengthUnit["Millimeter"] = "Millimeter";
877
- /** Micrometer */
878
- KnownLengthUnit["Micrometer"] = "Micrometer";
879
- /** Nanometer */
880
- KnownLengthUnit["Nanometer"] = "Nanometer";
881
- /** Picometer */
882
- KnownLengthUnit["Picometer"] = "Picometer";
883
- /** Mile */
884
- KnownLengthUnit["Mile"] = "Mile";
885
- /** Yard */
886
- KnownLengthUnit["Yard"] = "Yard";
887
- /** Inch */
888
- KnownLengthUnit["Inch"] = "Inch";
889
- /** Foot */
890
- KnownLengthUnit["Foot"] = "Foot";
891
- /** LightYear */
892
- KnownLengthUnit["LightYear"] = "LightYear";
893
- /** Pt */
894
- KnownLengthUnit["Pt"] = "Pt";
895
- })(KnownLengthUnit || (KnownLengthUnit = {}));
896
- /** Known values of {@link InformationUnit} that the service accepts. */
897
- export var KnownInformationUnit;
898
- (function (KnownInformationUnit) {
899
- /** Unspecified */
900
- KnownInformationUnit["Unspecified"] = "Unspecified";
901
- /** Bit */
902
- KnownInformationUnit["Bit"] = "Bit";
903
- /** Kilobit */
904
- KnownInformationUnit["Kilobit"] = "Kilobit";
905
- /** Megabit */
906
- KnownInformationUnit["Megabit"] = "Megabit";
907
- /** Gigabit */
908
- KnownInformationUnit["Gigabit"] = "Gigabit";
909
- /** Terabit */
910
- KnownInformationUnit["Terabit"] = "Terabit";
911
- /** Petabit */
912
- KnownInformationUnit["Petabit"] = "Petabit";
913
- /** Byte */
914
- KnownInformationUnit["Byte"] = "Byte";
915
- /** Kilobyte */
916
- KnownInformationUnit["Kilobyte"] = "Kilobyte";
917
- /** Megabyte */
918
- KnownInformationUnit["Megabyte"] = "Megabyte";
919
- /** Gigabyte */
920
- KnownInformationUnit["Gigabyte"] = "Gigabyte";
921
- /** Terabyte */
922
- KnownInformationUnit["Terabyte"] = "Terabyte";
923
- /** Petabyte */
924
- KnownInformationUnit["Petabyte"] = "Petabyte";
925
- })(KnownInformationUnit || (KnownInformationUnit = {}));
926
- /** Known values of {@link TemperatureUnit} that the service accepts. */
927
- export var KnownTemperatureUnit;
928
- (function (KnownTemperatureUnit) {
929
- /** Unspecified */
930
- KnownTemperatureUnit["Unspecified"] = "Unspecified";
931
- /** Fahrenheit */
932
- KnownTemperatureUnit["Fahrenheit"] = "Fahrenheit";
933
- /** Kelvin */
934
- KnownTemperatureUnit["Kelvin"] = "Kelvin";
935
- /** Rankine */
936
- KnownTemperatureUnit["Rankine"] = "Rankine";
937
- /** Celsius */
938
- KnownTemperatureUnit["Celsius"] = "Celsius";
939
- })(KnownTemperatureUnit || (KnownTemperatureUnit = {}));
940
- /** Known values of {@link WeightUnit} that the service accepts. */
941
- export var KnownWeightUnit;
942
- (function (KnownWeightUnit) {
943
- /** Unspecified */
944
- KnownWeightUnit["Unspecified"] = "Unspecified";
945
- /** Kilogram */
946
- KnownWeightUnit["Kilogram"] = "Kilogram";
947
- /** Gram */
948
- KnownWeightUnit["Gram"] = "Gram";
949
- /** Milligram */
950
- KnownWeightUnit["Milligram"] = "Milligram";
951
- /** Gallon */
952
- KnownWeightUnit["Gallon"] = "Gallon";
953
- /** MetricTon */
954
- KnownWeightUnit["MetricTon"] = "MetricTon";
955
- /** Ton */
956
- KnownWeightUnit["Ton"] = "Ton";
957
- /** Pound */
958
- KnownWeightUnit["Pound"] = "Pound";
959
- /** Ounce */
960
- KnownWeightUnit["Ounce"] = "Ounce";
961
- /** Grain */
962
- KnownWeightUnit["Grain"] = "Grain";
963
- /** PennyWeight */
964
- KnownWeightUnit["PennyWeight"] = "PennyWeight";
965
- /** LongTonBritish */
966
- KnownWeightUnit["LongTonBritish"] = "LongTonBritish";
967
- /** ShortTonUS */
968
- KnownWeightUnit["ShortTonUS"] = "ShortTonUS";
969
- /** ShortHundredWeightUS */
970
- KnownWeightUnit["ShortHundredWeightUS"] = "ShortHundredWeightUS";
971
- /** Stone */
972
- KnownWeightUnit["Stone"] = "Stone";
973
- /** Dram */
974
- KnownWeightUnit["Dram"] = "Dram";
975
- })(KnownWeightUnit || (KnownWeightUnit = {}));
976
- /** Known values of {@link DateTimeSubKind} that the service accepts. */
977
- export var KnownDateTimeSubKind;
978
- (function (KnownDateTimeSubKind) {
979
- /** Time */
980
- KnownDateTimeSubKind["Time"] = "Time";
981
- /** Date */
982
- KnownDateTimeSubKind["Date"] = "Date";
983
- /** DateTime */
984
- KnownDateTimeSubKind["DateTime"] = "DateTime";
985
- /** Duration */
986
- KnownDateTimeSubKind["Duration"] = "Duration";
987
- /** Set */
988
- KnownDateTimeSubKind["Set"] = "Set";
989
- })(KnownDateTimeSubKind || (KnownDateTimeSubKind = {}));
990
- /** Known values of {@link TemporalModifier} that the service accepts. */
991
- export var KnownTemporalModifier;
992
- (function (KnownTemporalModifier) {
993
- /** AfterApprox */
994
- KnownTemporalModifier["AfterApprox"] = "AfterApprox";
995
- /** Before */
996
- KnownTemporalModifier["Before"] = "Before";
997
- /** BeforeStart */
998
- KnownTemporalModifier["BeforeStart"] = "BeforeStart";
999
- /** Approx */
1000
- KnownTemporalModifier["Approx"] = "Approx";
1001
- /** ReferenceUndefined */
1002
- KnownTemporalModifier["ReferenceUndefined"] = "ReferenceUndefined";
1003
- /** SinceEnd */
1004
- KnownTemporalModifier["SinceEnd"] = "SinceEnd";
1005
- /** AfterMid */
1006
- KnownTemporalModifier["AfterMid"] = "AfterMid";
1007
- /** Start */
1008
- KnownTemporalModifier["Start"] = "Start";
1009
- /** After */
1010
- KnownTemporalModifier["After"] = "After";
1011
- /** BeforeEnd */
1012
- KnownTemporalModifier["BeforeEnd"] = "BeforeEnd";
1013
- /** Until */
1014
- KnownTemporalModifier["Until"] = "Until";
1015
- /** End */
1016
- KnownTemporalModifier["End"] = "End";
1017
- /** Less */
1018
- KnownTemporalModifier["Less"] = "Less";
1019
- /** Since */
1020
- KnownTemporalModifier["Since"] = "Since";
1021
- /** AfterStart */
1022
- KnownTemporalModifier["AfterStart"] = "AfterStart";
1023
- /** BeforeApprox */
1024
- KnownTemporalModifier["BeforeApprox"] = "BeforeApprox";
1025
- /** Mid */
1026
- KnownTemporalModifier["Mid"] = "Mid";
1027
- /** More */
1028
- KnownTemporalModifier["More"] = "More";
1029
- })(KnownTemporalModifier || (KnownTemporalModifier = {}));
1030
- /** Known values of {@link NumberKind} that the service accepts. */
1031
- export var KnownNumberKind;
1032
- (function (KnownNumberKind) {
1033
- /** Integer */
1034
- KnownNumberKind["Integer"] = "Integer";
1035
- /** Decimal */
1036
- KnownNumberKind["Decimal"] = "Decimal";
1037
- /** Power */
1038
- KnownNumberKind["Power"] = "Power";
1039
- /** Fraction */
1040
- KnownNumberKind["Fraction"] = "Fraction";
1041
- /** Percent */
1042
- KnownNumberKind["Percent"] = "Percent";
1043
- /** Unspecified */
1044
- KnownNumberKind["Unspecified"] = "Unspecified";
1045
- })(KnownNumberKind || (KnownNumberKind = {}));
1046
- /** Known values of {@link RelativeTo} that the service accepts. */
1047
- export var KnownRelativeTo;
1048
- (function (KnownRelativeTo) {
1049
- /** Current */
1050
- KnownRelativeTo["Current"] = "Current";
1051
- /** End */
1052
- KnownRelativeTo["End"] = "End";
1053
- /** Start */
1054
- KnownRelativeTo["Start"] = "Start";
1055
- })(KnownRelativeTo || (KnownRelativeTo = {}));
1056
- /** Known values of {@link RangeKind} that the service accepts. */
1057
- export var KnownRangeKind;
1058
- (function (KnownRangeKind) {
1059
- /** Number */
1060
- KnownRangeKind["Number"] = "Number";
1061
- /** Speed */
1062
- KnownRangeKind["Speed"] = "Speed";
1063
- /** Weight */
1064
- KnownRangeKind["Weight"] = "Weight";
1065
- /** Length */
1066
- KnownRangeKind["Length"] = "Length";
1067
- /** Volume */
1068
- KnownRangeKind["Volume"] = "Volume";
1069
- /** Area */
1070
- KnownRangeKind["Area"] = "Area";
1071
- /** Age */
1072
- KnownRangeKind["Age"] = "Age";
1073
- /** Information */
1074
- KnownRangeKind["Information"] = "Information";
1075
- /** Temperature */
1076
- KnownRangeKind["Temperature"] = "Temperature";
1077
- /** Currency */
1078
- KnownRangeKind["Currency"] = "Currency";
1079
- })(KnownRangeKind || (KnownRangeKind = {}));
1080
724
  /** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
1081
725
  export var KnownExtractiveSummarizationOrderingCriteria;
1082
726
  (function (KnownExtractiveSummarizationOrderingCriteria) {