From 50ec3086ca0c9f3209497378f7b7da7ac5937705 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 28 Mar 2024 08:49:39 +0000 Subject: [PATCH] CodeGen from PR 27614 in Azure/azure-rest-api-specs Merge e64e7d8334fac5ceea4e179fc62105769081846d into 6fc313ed7a6e926d4409d4ddb435f6532922652f --- .../_meta.json | 7 + .../radiologyinsights/_client.py | 5 +- .../radiologyinsights/_configuration.py | 7 +- .../_operations/_operations.py | 7417 +++++++++++++---- .../radiologyinsights/_version.py | 2 +- .../radiologyinsights/aio/_client.py | 5 +- .../radiologyinsights/aio/_configuration.py | 7 +- .../aio/_operations/_operations.py | 7378 ++++++++++++---- .../radiologyinsights/models/__init__.py | 18 +- .../radiologyinsights/models/_enums.py | 13 - .../radiologyinsights/models/_models.py | 384 +- .../setup.py | 2 +- .../tsp-location.yaml | 5 +- 13 files changed, 12068 insertions(+), 3182 deletions(-) create mode 100644 sdk/healthinsights/azure-healthinsights-radiologyinsights/_meta.json diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/_meta.json b/sdk/healthinsights/azure-healthinsights-radiologyinsights/_meta.json new file mode 100644 index 0000000000000..5d76db0371e9a --- /dev/null +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/_meta.json @@ -0,0 +1,7 @@ +{ + "commit": "bad3ac2836bf066db2cadf920ba37124d0809d1a", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "typespec_src": "specification/ai/HealthInsights/HealthInsights.RadiologyInsights", + "@azure-tools/typespec-python": "0.22.5", + "@autorest/python": "6.13.8" +} \ No newline at end of file diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_client.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_client.py index bc35db4ec225c..b9bfb90589c8a 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_client.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_client.py @@ -29,9 +29,8 @@ class RadiologyInsightsClient( :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: The API version to use for this operation. Default value is - "2023-09-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: The API version to use for this operation. Default value is "2024-04-01". + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_configuration.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_configuration.py index 25010ae540657..82769f8410047 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_configuration.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_configuration.py @@ -25,14 +25,13 @@ class RadiologyInsightsClientConfiguration: # pylint: disable=too-many-instance :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: The API version to use for this operation. Default value is - "2023-09-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: The API version to use for this operation. Default value is "2024-04-01". + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-09-01-preview") + api_version: str = kwargs.pop("api_version", "2024-04-01") if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_operations/_operations.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_operations/_operations.py index 36592c0f12cdc..083cdb935319e 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_operations/_operations.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_operations/_operations.py @@ -6,12 +6,10 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from io import IOBase import json import sys -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import uuid +from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload from azure.core.exceptions import ( ClientAuthenticationError, @@ -46,38 +44,44 @@ def build_radiology_insights_infer_radiology_insights_request( # pylint: disable=name-too-long - **kwargs: Any, + id: str, *, expand: Optional[List[str]] = None, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/radiology-insights/jobs" + _url = "/radiology-insights/jobs/{id}" + path_format_arguments = { + "id": _SERIALIZER.url("id", id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if expand is not None: + _params["expand"] = [_SERIALIZER.query("expand", q, "str") if q is not None else "" for q in expand] # Construct headers - if "Repeatability-Request-ID" not in _headers: - _headers["Repeatability-Request-ID"] = str(uuid.uuid4()) - if "Repeatability-First-Sent" not in _headers: - _headers["Repeatability-First-Sent"] = _SERIALIZER.serialize_data( - datetime.datetime.now(datetime.timezone.utc), "rfc-1123" - ) _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") if content_type is not None: _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) class RadiologyInsightsClientOperationsMixin(RadiologyInsightsClientMixinABC): def _infer_radiology_insights_initial( - self, body: Union[_models.RadiologyInsightsData, JSON, IO[bytes]], **kwargs: Any + self, + id: str, + resource: Union[_models.RadiologyInsightsJob, JSON, IO[bytes]], + *, + expand: Optional[List[str]] = None, + **kwargs: Any ) -> JSON: error_map = { 401: ClientAuthenticationError, @@ -95,12 +99,14 @@ def _infer_radiology_insights_initial( content_type = content_type or "application/json" _content = None - if isinstance(body, (IOBase, bytes)): - _content = body + if isinstance(resource, (IOBase, bytes)): + _content = resource else: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore _request = build_radiology_insights_infer_radiology_insights_request( + id=id, + expand=expand, content_type=content_type, api_version=self._config.api_version, content=_content, @@ -119,20 +125,29 @@ def _infer_radiology_insights_initial( response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200, 201]: if _stream: response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = _deserialize(_models.HealthInsightsErrorResponse, response.json()) + raise HttpResponseError(response=response, model=error) response_headers = {} - response_headers["Operation-Location"] = self._deserialize("str", response.headers.get("Operation-Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - response_headers["Repeatability-Result"] = self._deserialize( - "str", response.headers.get("Repeatability-Result") - ) + if response.status_code == 200: + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + response_headers["Operation-Location"] = self._deserialize( + "str", response.headers.get("Operation-Location") + ) + + deserialized = _deserialize(JSON, response.json()) + + if response.status_code == 201: + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + response_headers["Operation-Location"] = self._deserialize( + "str", response.headers.get("Operation-Location") + ) - deserialized = _deserialize(JSON, response.json()) + deserialized = _deserialize(JSON, response.json()) if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore @@ -141,122 +156,127 @@ def _infer_radiology_insights_initial( @overload def begin_infer_radiology_insights( - self, body: _models.RadiologyInsightsData, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.RadiologyInsightsInferenceResult]: + self, + id: str, + resource: _models.RadiologyInsightsJob, + *, + expand: Optional[List[str]] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.RadiologyInsightsJob]: # pylint: disable=line-too-long """Create Radiology Insights job. Creates a Radiology Insights job with the given request body. - :param body: Required. - :type body: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsData + :param id: The unique ID of the job. Required. + :type id: str + :param resource: The resource instance. Required. + :type resource: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob + :keyword expand: Expand the indicated resources into the response. Default value is None. + :paramtype expand: list[str] :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns RadiologyInsightsInferenceResult. The - RadiologyInsightsInferenceResult is compatible with MutableMapping + :return: An instance of LROPoller that returns RadiologyInsightsJob. The RadiologyInsightsJob + is compatible with MutableMapping :rtype: - ~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult] + ~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob] :raises ~azure.core.exceptions.HttpResponseError: Example: .. code-block:: python # JSON input template you can fill out and use as your body input. - body = { - "patients": [ - { - "id": "str", # A given identifier for the patient. Has to be - unique across all patients in a single request. Required. - "encounters": [ - { - "id": "str", # The id of the visit. - Required. - "class": "str", # Optional. The class of the - encounter. Known values are: "inpatient", "ambulatory", - "observation", "emergency", "virtual", and "healthHome". - "period": { - "end": "2020-02-20 00:00:00", # - Optional. End time with inclusive boundary, if not ongoing. - "start": "2020-02-20 00:00:00" # - Optional. Starting time with inclusive boundary. - } - } - ], - "info": { - "birthDate": "2020-02-20", # Optional. The patient's - date of birth. - "clinicalInfo": [ - { - "resourceType": "str", # The type of - resource. Required. - "id": "str", # Optional. Resource - Id. - "implicitRules": "str", # Optional. - A set of rules under which this content was created. - "language": "str", # Optional. - Language of the resource content. - "meta": { - "lastUpdated": "str", # - Optional. When the resource last changed - e.g. when the - version changed. - "profile": [ - "str" # Optional. A - list of profiles (references to `StructureDefinition - `_ - resources) that this resource claims to conform to. - The URL is a reference to `StructureDefinition.url - `_. - ], - "security": [ - { - "code": - "str", # Optional. Symbol in syntax defined by - the system. - "display": - "str", # Optional. Representation defined by the - system. - "extension": - [ - { - "url": "str", # Source of the definition - for the extension code - a logical name - or a URL. Required. - "valueBoolean": bool, # Optional. Value - as boolean. + resource = { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. "valueCodeableConcept": { "coding": [ ... ], - "text": "str" # Optional. Plain text - representation of the concept. + "text": "str" # Optional. Plain + text representation of the + concept. }, "valueDateTime": "str", # Optional. - Value as dateTime. - "valueInteger": 0, # Optional. Value as - integer. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. "valuePeriod": { - "end": "str", # Optional. End time - with inclusive boundary, if not - ongoing. - "start": "str" # Optional. Starting - time with inclusive boundary. + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. }, "valueQuantity": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. @@ -271,193 +291,199 @@ def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, "low": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueRatio": { "denominator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "numerator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueReference": { - "display": "str", # Optional. Text - alternative for the resource. + "display": "str", # Optional. + Text alternative for the + resource. "identifier": { "assigner": ..., "period": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. }, - "system": "str", # Optional. The - namespace for the identifier - value. + "system": "str", # Optional. + The namespace for the + identifier value. "type": { "coding": [ ... ], - "text": "str" # Optional. - Plain text representation of - the concept. + "text": "str" # + Optional. Plain text + representation of the + concept. }, - "use": "str", # Optional. usual - | official | temp | secondary | - old (If known). - "value": "str" # Optional. The - value that is unique. + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. }, "reference": "str", # Optional. - Literal reference, Relative, internal - or absolute URL. - "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of sample - points at each time point. Required. + "dimensions": 0, # Number of + sample points at each time point. + Required. "origin": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | - "L". - "factor": 0.0, # Optional. Multiply - data by this before adding to origin. - "lowerLimit": 0.0, # Optional. Lower - limit of detection. - "upperLimit": 0.0 # Optional. Upper - limit of detection. + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. }, - "valueString": "str", # Optional. Value - as string. + "valueString": "str", # Optional. + Value as string. "valueTime": "12:30:00" # Optional. - Value as time (hh:mm:ss). - } - ], - "id": "str", - # Optional. Unique id for inter-element - referencing. - "system": - "str", # Optional. Identity of the terminology - system. - "version": - "str" # Optional. Version of the system - if - relevant. - } - ], - "source": "str", # Optional. - A uri that identifies the source system of the resource. - This provides a minimal amount of Provenance information - that can be used to track or differentiate the source of - information in the resource. The source may identify - another FHIR server, document, message, database, etc. - "tag": [ - { - "code": - "str", # Optional. Symbol in syntax defined by - the system. - "display": - "str", # Optional. Representation defined by the - system. - "extension": - [ - { - "url": "str", # Source of the definition - for the extension code - a logical name - or a URL. Required. - "valueBoolean": bool, # Optional. Value - as boolean. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. "valueCodeableConcept": { "coding": [ ... ], - "text": "str" # Optional. Plain text - representation of the concept. + "text": "str" # Optional. Plain + text representation of the + concept. }, "valueDateTime": "str", # Optional. - Value as dateTime. - "valueInteger": 0, # Optional. Value as - integer. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. "valuePeriod": { - "end": "str", # Optional. End time - with inclusive boundary, if not - ongoing. - "start": "str" # Optional. Starting - time with inclusive boundary. + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. }, "valueQuantity": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. @@ -472,217 +498,243 @@ def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, "low": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueRatio": { "denominator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "numerator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueReference": { - "display": "str", # Optional. Text - alternative for the resource. + "display": "str", # Optional. + Text alternative for the + resource. "identifier": { "assigner": ..., "period": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. }, - "system": "str", # Optional. The - namespace for the identifier - value. + "system": "str", # Optional. + The namespace for the + identifier value. "type": { "coding": [ ... ], - "text": "str" # Optional. - Plain text representation of - the concept. + "text": "str" # + Optional. Plain text + representation of the + concept. }, - "use": "str", # Optional. usual - | official | temp | secondary | - old (If known). - "value": "str" # Optional. The - value that is unique. + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. }, "reference": "str", # Optional. - Literal reference, Relative, internal - or absolute URL. - "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of sample - points at each time point. Required. + "dimensions": 0, # Number of + sample points at each time point. + Required. "origin": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | - "L". - "factor": 0.0, # Optional. Multiply - data by this before adding to origin. - "lowerLimit": 0.0, # Optional. Lower - limit of detection. - "upperLimit": 0.0 # Optional. Upper - limit of detection. + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. }, - "valueString": "str", # Optional. Value - as string. + "valueString": "str", # Optional. + Value as string. "valueTime": "12:30:00" # Optional. - Value as time (hh:mm:ss). - } - ], - "id": "str", - # Optional. Unique id for inter-element - referencing. - "system": - "str", # Optional. Identity of the terminology - system. - "version": - "str" # Optional. Version of the system - if - relevant. - } - ], - "versionId": "str" # - Optional. The version specific identifier, as it appears - in the version portion of the URL. This value changes - when the resource is created, updated, or deleted. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. } } ], - "sex": "str" # Optional. The patient's sex. Known - values are: "female", "male", and "unspecified". - }, - "patientDocuments": [ - { - "content": { - "sourceType": "str", # The type of - the content's source. In case the source type is 'inline', - the content is given as a string (for instance, text). In - case the source type is 'reference', the content is given as - a URI. Required. Known values are: "inline" and "reference". - "value": "str" # The content of the - document, given either inline (as a string) or as a reference - (URI). Required. - }, - "id": "str", # A given identifier for the - document. Has to be unique across all documents for a single - patient. Required. - "type": "str", # The type of the patient - document, such as 'note' (text document) or 'fhirBundle' (FHIR - JSON document). Required. Known values are: "note", "fhirBundle", - "dicom", and "genomicSequencing". - "administrativeMetadata": { - "encounterId": "str", # Optional. - Reference to the encounter associated with the document. - "orderedProcedures": [ - { - "code": { - "coding": [ - { + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { "code": "str", # Optional. Symbol in - syntax defined by the system. + syntax defined by the system. "display": "str", # Optional. - Representation defined by the system. + Representation defined by the system. "extension": [ { - "url": "str", # Source of the - definition for the extension code - - a logical name or a URL. - Required. + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. "valueBoolean": bool, # - Optional. Value as boolean. + Optional. Value as boolean. "valueCodeableConcept": ..., "valueDateTime": "str", # - Optional. Value as dateTime. - "valueInteger": 0, # Optional. - Value as integer. + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. "valuePeriod": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. }, "valueQuantity": { - "code": "str", # Optional. - Coded form of the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the value. - "system": "str", # Optional. - System that defines coded - unit form. - "unit": "str", # Optional. - Unit representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. @@ -700,589 +752,196 @@ def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, "low": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). } }, "valueRatio": { "denominator": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). }, "numerator": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). } }, "valueReference": { "display": "str", # - Optional. Text alternative - for the resource. + Optional. Text + alternative for the + resource. "identifier": { "assigner": ..., "period": { "end": "str", # - Optional. End time - with inclusive - boundary, if not - ongoing. + Optional. End + time with + inclusive + boundary, if not + ongoing. "start": "str" # - Optional. Starting - time with inclusive - boundary. + Optional. + Starting time + with inclusive + boundary. }, "system": "str", # - Optional. The namespace - for the identifier value. + Optional. The + namespace for the + identifier value. "type": ..., "use": "str", # - Optional. usual | - official | temp | - secondary | old (If - known). + Optional. usual | + official | temp | + secondary | old (If + known). "value": "str" # - Optional. The value that - is unique. + Optional. The value + that is unique. }, "reference": "str", # - Optional. Literal reference, - Relative, internal or - absolute URL. - "type": "str" # Optional. - Type the reference refers to - (e.g. "Patient"). + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of - sample points at each time - point. Required. + "dimensions": 0, # + Number of sample points + at each time point. + Required. "origin": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). }, - "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. - Decimal values with spaces, - or "E" | "U" | "L". - "factor": 0.0, # Optional. - Multiply data by this before - adding to origin. + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. "lowerLimit": 0.0, # - Optional. Lower limit of - detection. + Optional. Lower limit of + detection. "upperLimit": 0.0 # - Optional. Upper limit of - detection. + Optional. Upper limit of + detection. }, "valueString": "str", # - Optional. Value as string. + Optional. Value as string. "valueTime": "12:30:00" # - Optional. Value as time - (hh:mm:ss). + Optional. Value as time + (hh:mm:ss). } ], - "id": "str", # Optional. Unique id for - inter-element referencing. - "system": "str", # Optional. Identity of - the terminology system. - "version": "str" # Optional. Version of - the system - if relevant. - } - ], - "text": "str" - # Optional. Plain text representation of the - concept. - }, - "description": "str", - # Optional. Procedure description. - "extension": [ - { - "url": "str", # Source of the definition for - the extension code - a logical name or a URL. - Required. - "valueBoolean": bool, # Optional. Value as - boolean. - "valueCodeableConcept": { - "coding": [ - { - "code": "str", # Optional. - Symbol in syntax defined by the - system. - "display": "str", # Optional. - Representation defined by the - system. - "extension": [ - ... - ], - "id": "str", # Optional. Unique - id for inter-element referencing. + "id": "str", # Optional. Unique id + for inter-element referencing. "system": "str", # Optional. - Identity of the terminology - system. - "version": "str" # Optional. - Version of the system - if - relevant. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. } - ], + ], "text": "str" # Optional. Plain text - representation of the concept. - }, - "valueDateTime": "str", # Optional. Value as - dateTime. - "valueInteger": 0, # Optional. Value as - integer. - "valuePeriod": { - "end": "str", # Optional. End time with - inclusive boundary, if not ongoing. - "start": "str" # Optional. Starting time - with inclusive boundary. - }, - "valueQuantity": { - "code": "str", # Optional. Coded form of - the unit. - "comparator": "str", # Optional. < | <= - | >= | > - how to understand the value. - "system": "str", # Optional. System that - defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical value - (with implicit precision). - }, - "valueRange": { - "high": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "low": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - } - }, - "valueRatio": { - "denominator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "numerator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - } - }, - "valueReference": { - "display": "str", # Optional. Text - alternative for the resource. - "identifier": { - "assigner": ..., - "period": { - "end": "str", # Optional. End - time with inclusive boundary, if - not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. - }, - "system": "str", # Optional. The - namespace for the identifier value. - "type": { - "coding": [ - { - "code": "str", # - Optional. Symbol in - syntax defined by the - system. - "display": "str", # - Optional. Representation - defined by the system. - "extension": [ - ... - ], - "id": "str", # Optional. - Unique id for - inter-element - referencing. - "system": "str", # - Optional. Identity of the - terminology system. - "version": "str" # - Optional. Version of the - system - if relevant. - } - ], - "text": "str" # Optional. Plain - text representation of the - concept. - }, - "use": "str", # Optional. usual | - official | temp | secondary | old (If - known). - "value": "str" # Optional. The value - that is unique. - }, - "reference": "str", # Optional. Literal - reference, Relative, internal or absolute - URL. - "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). - }, - "valueSampledData": { - "dimensions": 0, # Number of sample - points at each time point. Required. - "origin": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "period": 0.0, # Number of milliseconds - between samples. Required. - "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | "L". - "factor": 0.0, # Optional. Multiply data - by this before adding to origin. - "lowerLimit": 0.0, # Optional. Lower - limit of detection. - "upperLimit": 0.0 # Optional. Upper - limit of detection. - }, - "valueString": "str", # Optional. Value as - string. - "valueTime": "12:30:00" # Optional. Value as - time (hh:mm:ss). - } - ] - } - ] - }, - "authors": [ - { - "fullName": "str", # - Optional. Text representation of the full name. - "id": "str" # Optional. - author id. - } - ], - "clinicalType": "str", # Optional. The type - of the clinical document. Known values are: "consultation", - "dischargeSummary", "historyAndPhysical", "radiologyReport", - "procedure", "progress", "laboratory", and "pathologyReport". - "createdDateTime": "2020-02-20 00:00:00", # - Optional. The date and time when the document was created. - "language": "str", # Optional. A 2 letter - ISO 639-1 representation of the language of the document. - "specialtyType": "str" # Optional. specialty - type the document. Known values are: "pathology" and "radiology". - } - ] - } - ], - "configuration": { - "includeEvidence": bool, # Optional. An indication whether the - model's output should include evidence for the inferences. - "inferenceOptions": { - "findingOptions": { - "provideFocusedSentenceEvidence": bool # Optional. - If this is true, provide the sentence that contains the first token - of the finding's clinical indicator (i.e. the medical problem), if - there is one. This sentence is provided as an extension with url - 'ci_sentence', next to the token evidence. Default is false. - }, - "followupRecommendationOptions": { - "includeRecommendationsInReferences": bool, # - Optional. Include/Exclude follow-up recommendations in references to - a guideline or article. Default is false. - "includeRecommendationsWithNoSpecifiedModality": - bool, # Optional. Include/Exclude follow-up recommendations without - a specific radiology procedure. Default is false. - "provideFocusedSentenceEvidence": bool # Optional. - If this is true, provide one or more sentences as evidence for the - recommendation, next to the token evidence. The start and end - positions of these sentences will be put in an extension with url - 'modality_sentences'. Default is false. - } - }, - "inferenceTypes": [ - "str" # Optional. This is a list of inference types to be - inferred for the current request. It could be used if only part of the - Radiology Insights inferences are required. If this list is omitted or - empty, the model will return all the inference types. - ], - "locale": "str", # Optional. Local for the model to use. If not - specified, the model will use the default locale. - "verbose": bool # Optional. An indication whether the model should - produce verbose output. - } - } - - # response body for status code(s): 202 - response == { - "modelVersion": "str", # The version of the model used for inference, - expressed as the model date. Required. - "patientResults": [ - { - "inferences": [ - radiology_insights_inference - ], - "patientId": "str" # Identifier given for the patient in the - request. Required. - } - ] - } - """ - - @overload - def begin_infer_radiology_insights( - self, body: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.RadiologyInsightsInferenceResult]: - """Create Radiology Insights job. - - Creates a Radiology Insights job with the given request body. - - :param body: Required. - :type body: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns RadiologyInsightsInferenceResult. The - RadiologyInsightsInferenceResult is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult] - :raises ~azure.core.exceptions.HttpResponseError: - - Example: - .. code-block:: python - - # response body for status code(s): 202 - response == { - "modelVersion": "str", # The version of the model used for inference, - expressed as the model date. Required. - "patientResults": [ - { - "inferences": [ - radiology_insights_inference - ], - "patientId": "str" # Identifier given for the patient in the - request. Required. - } - ] - } - """ - - @overload - def begin_infer_radiology_insights( - self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.RadiologyInsightsInferenceResult]: - """Create Radiology Insights job. - - Creates a Radiology Insights job with the given request body. - - :param body: Required. - :type body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns RadiologyInsightsInferenceResult. The - RadiologyInsightsInferenceResult is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult] - :raises ~azure.core.exceptions.HttpResponseError: - - Example: - .. code-block:: python - - # response body for status code(s): 202 - response == { - "modelVersion": "str", # The version of the model used for inference, - expressed as the model date. Required. - "patientResults": [ - { - "inferences": [ - radiology_insights_inference - ], - "patientId": "str" # Identifier given for the patient in the - request. Required. - } - ] - } - """ - - @distributed_trace - def begin_infer_radiology_insights( - self, body: Union[_models.RadiologyInsightsData, JSON, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.RadiologyInsightsInferenceResult]: - # pylint: disable=line-too-long - """Create Radiology Insights job. - - Creates a Radiology Insights job with the given request body. - - :param body: Is one of the following types: RadiologyInsightsData, JSON, IO[bytes] Required. - :type body: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsData or JSON or - IO[bytes] - :return: An instance of LROPoller that returns RadiologyInsightsInferenceResult. The - RadiologyInsightsInferenceResult is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult] - :raises ~azure.core.exceptions.HttpResponseError: - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - body = { - "patients": [ - { - "id": "str", # A given identifier for the patient. Has to be - unique across all patients in a single request. Required. - "encounters": [ - { - "id": "str", # The id of the visit. - Required. - "class": "str", # Optional. The class of the - encounter. Known values are: "inpatient", "ambulatory", - "observation", "emergency", "virtual", and "healthHome". - "period": { - "end": "2020-02-20 00:00:00", # - Optional. End time with inclusive boundary, if not ongoing. - "start": "2020-02-20 00:00:00" # - Optional. Starting time with inclusive boundary. - } - } - ], - "info": { - "birthDate": "2020-02-20", # Optional. The patient's - date of birth. - "clinicalInfo": [ - { - "resourceType": "str", # The type of - resource. Required. - "id": "str", # Optional. Resource - Id. - "implicitRules": "str", # Optional. - A set of rules under which this content was created. - "language": "str", # Optional. - Language of the resource content. - "meta": { - "lastUpdated": "str", # - Optional. When the resource last changed - e.g. when the - version changed. - "profile": [ - "str" # Optional. A - list of profiles (references to `StructureDefinition - `_ - resources) that this resource claims to conform to. - The URL is a reference to `StructureDefinition.url - `_. - ], - "security": [ - { - "code": - "str", # Optional. Symbol in syntax defined by - the system. - "display": - "str", # Optional. Representation defined by the - system. + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. "extension": [ { @@ -1293,8 +952,27 @@ def begin_infer_radiology_insights( as boolean. "valueCodeableConcept": { "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ ... ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], "text": "str" # Optional. Plain text representation of the concept. }, @@ -1404,8 +1082,33 @@ def begin_infer_radiology_insights( value. "type": { "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ ... ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], "text": "str" # Optional. Plain text representation of the concept. @@ -1458,73 +1161,180 @@ def begin_infer_radiology_insights( "valueTime": "12:30:00" # Optional. Value as time (hh:mm:ss). } - ], - "id": "str", - # Optional. Unique id for inter-element - referencing. - "system": - "str", # Optional. Identity of the terminology - system. - "version": - "str" # Optional. Version of the system - if - relevant. + ] } - ], - "source": "str", # Optional. - A uri that identifies the source system of the resource. - This provides a minimal amount of Provenance information - that can be used to track or differentiate the source of - information in the resource. The source may identify - another FHIR server, document, message, database, etc. - "tag": [ - { - "code": - "str", # Optional. Symbol in syntax defined by - the system. - "display": - "str", # Optional. Representation defined by the - system. - "extension": - [ - { - "url": "str", # Source of the definition - for the extension code - a logical name - or a URL. Required. - "valueBoolean": bool, # Optional. Value - as boolean. - "valueCodeableConcept": { - "coding": [ - ... - ], - "text": "str" # Optional. Plain text - representation of the concept. - }, - "valueDateTime": "str", # Optional. - Value as dateTime. - "valueInteger": 0, # Optional. Value as - integer. - "valuePeriod": { - "end": "str", # Optional. End time - with inclusive boundary, if not - ongoing. - "start": "str" # Optional. Starting - time with inclusive boundary. - }, - "valueQuantity": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + + # response body for status code(s): 201, 200 + response == { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. }, - "valueRange": { - "high": { + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. @@ -1539,94 +1349,199 @@ def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, "low": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueRatio": { "denominator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "numerator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueReference": { - "display": "str", # Optional. Text - alternative for the resource. + "display": "str", # Optional. + Text alternative for the + resource. "identifier": { "assigner": ..., "period": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. }, - "system": "str", # Optional. The - namespace for the identifier - value. + "system": "str", # Optional. + The namespace for the + identifier value. "type": { "coding": [ ... ], - "text": "str" # Optional. - Plain text representation of - the concept. + "text": "str" # + Optional. Plain text + representation of the + concept. }, - "use": "str", # Optional. usual - | official | temp | secondary | - old (If known). - "value": "str" # Optional. The - value that is unique. + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. }, "reference": "str", # Optional. - Literal reference, Relative, internal - or absolute URL. - "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of sample - points at each time point. Required. + "dimensions": 0, # Number of + sample points at each time point. + Required. "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. @@ -1641,99 +1556,8 @@ def begin_infer_radiology_insights( Numerical value (with implicit precision). }, - "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | - "L". - "factor": 0.0, # Optional. Multiply - data by this before adding to origin. - "lowerLimit": 0.0, # Optional. Lower - limit of detection. - "upperLimit": 0.0 # Optional. Upper - limit of detection. - }, - "valueString": "str", # Optional. Value - as string. - "valueTime": "12:30:00" # Optional. - Value as time (hh:mm:ss). - } - ], - "id": "str", - # Optional. Unique id for inter-element - referencing. - "system": - "str", # Optional. Identity of the terminology - system. - "version": - "str" # Optional. Version of the system - if - relevant. - } - ], - "versionId": "str" # - Optional. The version specific identifier, as it appears - in the version portion of the URL. This value changes - when the resource is created, updated, or deleted. - } - } - ], - "sex": "str" # Optional. The patient's sex. Known - values are: "female", "male", and "unspecified". - }, - "patientDocuments": [ - { - "content": { - "sourceType": "str", # The type of - the content's source. In case the source type is 'inline', - the content is given as a string (for instance, text). In - case the source type is 'reference', the content is given as - a URI. Required. Known values are: "inline" and "reference". - "value": "str" # The content of the - document, given either inline (as a string) or as a reference - (URI). Required. - }, - "id": "str", # A given identifier for the - document. Has to be unique across all documents for a single - patient. Required. - "type": "str", # The type of the patient - document, such as 'note' (text document) or 'fhirBundle' (FHIR - JSON document). Required. Known values are: "note", "fhirBundle", - "dicom", and "genomicSequencing". - "administrativeMetadata": { - "encounterId": "str", # Optional. - Reference to the encounter associated with the document. - "orderedProcedures": [ - { - "code": { - "coding": [ - { - "code": "str", # Optional. Symbol in - syntax defined by the system. - "display": "str", # Optional. - Representation defined by the system. - "extension": [ - { - "url": "str", # Source of the - definition for the extension code - - a logical name or a URL. - Required. - "valueBoolean": bool, # - Optional. Value as boolean. - "valueCodeableConcept": ..., - "valueDateTime": "str", # - Optional. Value as dateTime. - "valueInteger": 0, # Optional. - Value as integer. - "valuePeriod": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. - }, - "valueQuantity": { + "valueRange": { + "high": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # @@ -1748,8 +1572,4559 @@ def begin_infer_radiology_insights( Numerical value (with implicit precision). }, - "valueRange": { - "high": { + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # + Optional. Coded form of + the unit. + "comparator": "str", # + Optional. < | <= | >= | > + - how to understand the + value. + "system": "str", # + Optional. System that + defines coded unit form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "low": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "numerator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # + Optional. Text + alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End + time with + inclusive + boundary, if not + ongoing. + "start": "str" # + Optional. + Starting time + with inclusive + boundary. + }, + "system": "str", # + Optional. The + namespace for the + identifier value. + "type": ..., + "use": "str", # + Optional. usual | + official | temp | + secondary | old (If + known). + "value": "str" # + Optional. The value + that is unique. + }, + "reference": "str", # + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # + Number of sample points + at each time point. + Required. + "origin": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. + "lowerLimit": 0.0, # + Optional. Lower limit of + detection. + "upperLimit": 0.0 # + Optional. Upper limit of + detection. + }, + "valueString": "str", # + Optional. Value as string. + "valueTime": "12:30:00" # + Optional. Value as time + (hh:mm:ss). + } + ], + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. + "valueCodeableConcept": { + "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ + ... + ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value as + integer. + "valuePeriod": { + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. < | + <= | >= | > - how to understand the + value. + "system": "str", # Optional. System + that defines coded unit form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. Numerical + value (with implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "low": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "numerator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # Optional. Text + alternative for the resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "system": "str", # Optional. The + namespace for the identifier + value. + "type": { + "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ + ... + ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], + "text": "str" # Optional. + Plain text representation of + the concept. + }, + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. + "type": "str" # Optional. Type the + reference refers to (e.g. "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of sample + points at each time point. Required. + "origin": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. Decimal + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. + "lowerLimit": 0.0, # Optional. Lower + limit of detection. + "upperLimit": 0.0 # Optional. Upper + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + """ + + @overload + def begin_infer_radiology_insights( + self, + id: str, + resource: JSON, + *, + expand: Optional[List[str]] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.RadiologyInsightsJob]: + # pylint: disable=line-too-long + """Create Radiology Insights job. + + Creates a Radiology Insights job with the given request body. + + :param id: The unique ID of the job. Required. + :type id: str + :param resource: The resource instance. Required. + :type resource: JSON + :keyword expand: Expand the indicated resources into the response. Default value is None. + :paramtype expand: list[str] + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns RadiologyInsightsJob. The RadiologyInsightsJob + is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob] + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201, 200 + response == { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # + Optional. Coded form of + the unit. + "comparator": "str", # + Optional. < | <= | >= | > + - how to understand the + value. + "system": "str", # + Optional. System that + defines coded unit form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "low": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "numerator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # + Optional. Text + alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End + time with + inclusive + boundary, if not + ongoing. + "start": "str" # + Optional. + Starting time + with inclusive + boundary. + }, + "system": "str", # + Optional. The + namespace for the + identifier value. + "type": ..., + "use": "str", # + Optional. usual | + official | temp | + secondary | old (If + known). + "value": "str" # + Optional. The value + that is unique. + }, + "reference": "str", # + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # + Number of sample points + at each time point. + Required. + "origin": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. + "lowerLimit": 0.0, # + Optional. Lower limit of + detection. + "upperLimit": 0.0 # + Optional. Upper limit of + detection. + }, + "valueString": "str", # + Optional. Value as string. + "valueTime": "12:30:00" # + Optional. Value as time + (hh:mm:ss). + } + ], + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. + "valueCodeableConcept": { + "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ + ... + ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value as + integer. + "valuePeriod": { + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. < | + <= | >= | > - how to understand the + value. + "system": "str", # Optional. System + that defines coded unit form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. Numerical + value (with implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "low": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "numerator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # Optional. Text + alternative for the resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "system": "str", # Optional. The + namespace for the identifier + value. + "type": { + "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ + ... + ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], + "text": "str" # Optional. + Plain text representation of + the concept. + }, + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. + "type": "str" # Optional. Type the + reference refers to (e.g. "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of sample + points at each time point. Required. + "origin": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. Decimal + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. + "lowerLimit": 0.0, # Optional. Lower + limit of detection. + "upperLimit": 0.0 # Optional. Upper + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + """ + + @overload + def begin_infer_radiology_insights( + self, + id: str, + resource: IO[bytes], + *, + expand: Optional[List[str]] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.RadiologyInsightsJob]: + # pylint: disable=line-too-long + """Create Radiology Insights job. + + Creates a Radiology Insights job with the given request body. + + :param id: The unique ID of the job. Required. + :type id: str + :param resource: The resource instance. Required. + :type resource: IO[bytes] + :keyword expand: Expand the indicated resources into the response. Default value is None. + :paramtype expand: list[str] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns RadiologyInsightsJob. The RadiologyInsightsJob + is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob] + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201, 200 + response == { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # + Optional. Coded form of + the unit. + "comparator": "str", # + Optional. < | <= | >= | > + - how to understand the + value. + "system": "str", # + Optional. System that + defines coded unit form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "low": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "numerator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # + Optional. Text + alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End + time with + inclusive + boundary, if not + ongoing. + "start": "str" # + Optional. + Starting time + with inclusive + boundary. + }, + "system": "str", # + Optional. The + namespace for the + identifier value. + "type": ..., + "use": "str", # + Optional. usual | + official | temp | + secondary | old (If + known). + "value": "str" # + Optional. The value + that is unique. + }, + "reference": "str", # + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # + Number of sample points + at each time point. + Required. + "origin": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. + "lowerLimit": 0.0, # + Optional. Lower limit of + detection. + "upperLimit": 0.0 # + Optional. Upper limit of + detection. + }, + "valueString": "str", # + Optional. Value as string. + "valueTime": "12:30:00" # + Optional. Value as time + (hh:mm:ss). + } + ], + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. + "valueCodeableConcept": { + "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ + ... + ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value as + integer. + "valuePeriod": { + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. < | + <= | >= | > - how to understand the + value. + "system": "str", # Optional. System + that defines coded unit form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. Numerical + value (with implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "low": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "numerator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # Optional. Text + alternative for the resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "system": "str", # Optional. The + namespace for the identifier + value. + "type": { + "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ + ... + ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], + "text": "str" # Optional. + Plain text representation of + the concept. + }, + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. + "type": "str" # Optional. Type the + reference refers to (e.g. "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of sample + points at each time point. Required. + "origin": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. Decimal + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. + "lowerLimit": 0.0, # Optional. Lower + limit of detection. + "upperLimit": 0.0 # Optional. Upper + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + """ + + @distributed_trace + def begin_infer_radiology_insights( + self, + id: str, + resource: Union[_models.RadiologyInsightsJob, JSON, IO[bytes]], + *, + expand: Optional[List[str]] = None, + **kwargs: Any + ) -> LROPoller[_models.RadiologyInsightsJob]: + # pylint: disable=line-too-long + """Create Radiology Insights job. + + Creates a Radiology Insights job with the given request body. + + :param id: The unique ID of the job. Required. + :type id: str + :param resource: The resource instance. Is one of the following types: RadiologyInsightsJob, + JSON, IO[bytes] Required. + :type resource: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob or JSON or + IO[bytes] + :keyword expand: Expand the indicated resources into the response. Default value is None. + :paramtype expand: list[str] + :return: An instance of LROPoller that returns RadiologyInsightsJob. The RadiologyInsightsJob + is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob] + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + resource = { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # + Optional. Coded form of + the unit. + "comparator": "str", # + Optional. < | <= | >= | > + - how to understand the + value. + "system": "str", # + Optional. System that + defines coded unit form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "low": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "numerator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # + Optional. Text + alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End + time with + inclusive + boundary, if not + ongoing. + "start": "str" # + Optional. + Starting time + with inclusive + boundary. + }, + "system": "str", # + Optional. The + namespace for the + identifier value. + "type": ..., + "use": "str", # + Optional. usual | + official | temp | + secondary | old (If + known). + "value": "str" # + Optional. The value + that is unique. + }, + "reference": "str", # + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # + Number of sample points + at each time point. + Required. + "origin": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. + "lowerLimit": 0.0, # + Optional. Lower limit of + detection. + "upperLimit": 0.0 # + Optional. Upper limit of + detection. + }, + "valueString": "str", # + Optional. Value as string. + "valueTime": "12:30:00" # + Optional. Value as time + (hh:mm:ss). + } + ], + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. + "valueCodeableConcept": { + "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ + ... + ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value as + integer. + "valuePeriod": { + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. < | + <= | >= | > - how to understand the + value. + "system": "str", # Optional. System + that defines coded unit form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. Numerical + value (with implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "low": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "numerator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # Optional. Text + alternative for the resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "system": "str", # Optional. The + namespace for the identifier + value. + "type": { + "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ + ... + ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], + "text": "str" # Optional. + Plain text representation of + the concept. + }, + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. + "type": "str" # Optional. Type the + reference refers to (e.g. "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of sample + points at each time point. Required. + "origin": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. Decimal + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. + "lowerLimit": 0.0, # Optional. Lower + limit of detection. + "upperLimit": 0.0 # Optional. Upper + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + + # response body for status code(s): 201, 200 + response == { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { "code": "str", # Optional. Coded form of the unit. @@ -1767,216 +6142,242 @@ def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, "low": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). } }, "valueRatio": { "denominator": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). }, "numerator": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). } }, "valueReference": { "display": "str", # - Optional. Text alternative - for the resource. + Optional. Text + alternative for the + resource. "identifier": { "assigner": ..., "period": { "end": "str", # - Optional. End time - with inclusive - boundary, if not - ongoing. + Optional. End + time with + inclusive + boundary, if not + ongoing. "start": "str" # - Optional. Starting - time with inclusive - boundary. + Optional. + Starting time + with inclusive + boundary. }, "system": "str", # - Optional. The namespace - for the identifier value. + Optional. The + namespace for the + identifier value. "type": ..., "use": "str", # - Optional. usual | - official | temp | - secondary | old (If - known). + Optional. usual | + official | temp | + secondary | old (If + known). "value": "str" # - Optional. The value that - is unique. + Optional. The value + that is unique. }, "reference": "str", # - Optional. Literal reference, - Relative, internal or - absolute URL. - "type": "str" # Optional. - Type the reference refers to - (e.g. "Patient"). + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of - sample points at each time - point. Required. + "dimensions": 0, # + Number of sample points + at each time point. + Required. "origin": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). }, - "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. - Decimal values with spaces, - or "E" | "U" | "L". - "factor": 0.0, # Optional. - Multiply data by this before - adding to origin. + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. "lowerLimit": 0.0, # - Optional. Lower limit of - detection. + Optional. Lower limit of + detection. "upperLimit": 0.0 # - Optional. Upper limit of - detection. + Optional. Upper limit of + detection. }, "valueString": "str", # - Optional. Value as string. + Optional. Value as string. "valueTime": "12:30:00" # - Optional. Value as time - (hh:mm:ss). + Optional. Value as time + (hh:mm:ss). } ], - "id": "str", # Optional. Unique id for - inter-element referencing. - "system": "str", # Optional. Identity of - the terminology system. - "version": "str" # Optional. Version of - the system - if relevant. - } - ], - "text": "str" - # Optional. Plain text representation of the - concept. - }, - "description": "str", - # Optional. Procedure description. - "extension": [ - { - "url": "str", # Source of the definition for - the extension code - a logical name or a URL. - Required. - "valueBoolean": bool, # Optional. Value as - boolean. + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. "valueCodeableConcept": { "coding": [ { "code": "str", # Optional. - Symbol in syntax defined by the - system. - "display": "str", # Optional. - Representation defined by the - system. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. "extension": [ ... ], - "id": "str", # Optional. Unique - id for inter-element referencing. + "id": "str", # Optional. + Unique id for inter-element + referencing. "system": "str", # Optional. - Identity of the terminology - system. + Identity of the terminology + system. "version": "str" # Optional. - Version of the system - if - relevant. + Version of the system - if + relevant. } ], "text": "str" # Optional. Plain text - representation of the concept. - }, - "valueDateTime": "str", # Optional. Value as - dateTime. + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. "valueInteger": 0, # Optional. Value as - integer. + integer. "valuePeriod": { - "end": "str", # Optional. End time with - inclusive boundary, if not ongoing. - "start": "str" # Optional. Starting time - with inclusive boundary. - }, + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, "valueQuantity": { - "code": "str", # Optional. Coded form of - the unit. - "comparator": "str", # Optional. < | <= - | >= | > - how to understand the value. - "system": "str", # Optional. System that - defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical value - (with implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. < | @@ -1989,241 +6390,281 @@ def begin_infer_radiology_insights( "value": 0.0 # Optional. Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, "low": { "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). } - }, + }, "valueRatio": { "denominator": { "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). }, "numerator": { "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). } - }, + }, "valueReference": { "display": "str", # Optional. Text - alternative for the resource. + alternative for the resource. "identifier": { "assigner": ..., "period": { - "end": "str", # Optional. End - time with inclusive boundary, if - not ongoing. + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. "start": "str" # Optional. - Starting time with inclusive - boundary. + Starting time with inclusive + boundary. }, "system": "str", # Optional. The - namespace for the identifier value. + namespace for the identifier + value. "type": { "coding": [ { "code": "str", # - Optional. Symbol in - syntax defined by the - system. + Optional. Symbol in + syntax defined by the + system. "display": "str", # - Optional. Representation - defined by the system. + Optional. + Representation + defined by the + system. "extension": [ ... ], - "id": "str", # Optional. - Unique id for - inter-element - referencing. + "id": "str", # + Optional. Unique id + for inter-element + referencing. "system": "str", # - Optional. Identity of the - terminology system. + Optional. Identity of + the terminology + system. "version": "str" # - Optional. Version of the - system - if relevant. + Optional. Version of + the system - if + relevant. } ], - "text": "str" # Optional. Plain - text representation of the - concept. + "text": "str" # Optional. + Plain text representation of + the concept. }, - "use": "str", # Optional. usual | - official | temp | secondary | old (If - known). - "value": "str" # Optional. The value - that is unique. + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. }, - "reference": "str", # Optional. Literal - reference, Relative, internal or absolute - URL. + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). - }, + reference refers to (e.g. "Patient"). + }, "valueSampledData": { "dimensions": 0, # Number of sample - points at each time point. Required. + points at each time point. Required. "origin": { "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). }, - "period": 0.0, # Number of milliseconds - between samples. Required. + "period": 0.0, # Number of + milliseconds between samples. + Required. "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | "L". - "factor": 0.0, # Optional. Multiply data - by this before adding to origin. + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. "lowerLimit": 0.0, # Optional. Lower - limit of detection. + limit of detection. "upperLimit": 0.0 # Optional. Upper - limit of detection. - }, - "valueString": "str", # Optional. Value as - string. - "valueTime": "12:30:00" # Optional. Value as - time (hh:mm:ss). - } - ] + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. } - ] - }, - "authors": [ - { - "fullName": "str", # - Optional. Text representation of the full name. - "id": "str" # Optional. - author id. - } - ], - "clinicalType": "str", # Optional. The type - of the clinical document. Known values are: "consultation", - "dischargeSummary", "historyAndPhysical", "radiologyReport", - "procedure", "progress", "laboratory", and "pathologyReport". - "createdDateTime": "2020-02-20 00:00:00", # - Optional. The date and time when the document was created. - "language": "str", # Optional. A 2 letter - ISO 639-1 representation of the language of the document. - "specialtyType": "str" # Optional. specialty - type the document. Known values are: "pathology" and "radiology". - } - ] - } - ], - "configuration": { - "includeEvidence": bool, # Optional. An indication whether the - model's output should include evidence for the inferences. - "inferenceOptions": { - "findingOptions": { - "provideFocusedSentenceEvidence": bool # Optional. - If this is true, provide the sentence that contains the first token - of the finding's clinical indicator (i.e. the medical problem), if - there is one. This sentence is provided as an extension with url - 'ci_sentence', next to the token evidence. Default is false. - }, - "followupRecommendationOptions": { - "includeRecommendationsInReferences": bool, # - Optional. Include/Exclude follow-up recommendations in references to - a guideline or article. Default is false. - "includeRecommendationsWithNoSpecifiedModality": - bool, # Optional. Include/Exclude follow-up recommendations without - a specific radiology procedure. Default is false. - "provideFocusedSentenceEvidence": bool # Optional. - If this is true, provide one or more sentences as evidence for the - recommendation, next to the token evidence. The start and end - positions of these sentences will be put in an extension with url - 'modality_sentences'. Default is false. + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] } - }, - "inferenceTypes": [ - "str" # Optional. This is a list of inference types to be - inferred for the current request. It could be used if only part of the - Radiology Insights inferences are required. If this list is omitted or - empty, the model will return all the inference types. ], - "locale": "str", # Optional. Local for the model to use. If not - specified, the model will use the default locale. - "verbose": bool # Optional. An indication whether the model should - produce verbose output. - } - } - - # response body for status code(s): 202 - response == { - "modelVersion": "str", # The version of the model used for inference, - expressed as the model date. Required. - "patientResults": [ - { - "inferences": [ - radiology_insights_inference + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. ], - "patientId": "str" # Identifier given for the patient in the - request. Required. + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. } - ] + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RadiologyInsightsInferenceResult] = kwargs.pop("cls", None) + cls: ClsType[_models.RadiologyInsightsJob] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._infer_radiology_insights_initial( - body=body, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs + id=id, + resource=resource, + expand=expand, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): response_headers = {} response = pipeline_response.http_response + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) response_headers["Operation-Location"] = self._deserialize( "str", response.headers.get("Operation-Location") ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - response_headers["Repeatability-Result"] = self._deserialize( - "str", response.headers.get("Repeatability-Result") - ) - deserialized = _deserialize(_models.RadiologyInsightsInferenceResult, response.json().get("result")) + deserialized = _deserialize(_models.RadiologyInsightsJob, response.json().get("result")) if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized @@ -2241,12 +6682,12 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.RadiologyInsightsInferenceResult].from_continuation_token( + return LROPoller[_models.RadiologyInsightsJob].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.RadiologyInsightsInferenceResult]( + return LROPoller[_models.RadiologyInsightsJob]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_version.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_version.py index bbcd28b4aa67e..0ec13ea52bbf5 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_version.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b2" +VERSION = "1.0.0" diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_client.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_client.py index 20e5e0ec1799c..ab2f8cd2fc98c 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_client.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_client.py @@ -29,9 +29,8 @@ class RadiologyInsightsClient( :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: The API version to use for this operation. Default value is - "2023-09-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: The API version to use for this operation. Default value is "2024-04-01". + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_configuration.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_configuration.py index 928142f56c335..83d6029b7ed6c 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_configuration.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_configuration.py @@ -25,14 +25,13 @@ class RadiologyInsightsClientConfiguration: # pylint: disable=too-many-instance :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: The API version to use for this operation. Default value is - "2023-09-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: The API version to use for this operation. Default value is "2024-04-01". + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-09-01-preview") + api_version: str = kwargs.pop("api_version", "2024-04-01") if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_operations/_operations.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_operations/_operations.py index 530866e1f8a91..23ecc3a89c0ba 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_operations/_operations.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_operations/_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines,too-many-statements, line-too-long +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -9,7 +9,7 @@ from io import IOBase import json import sys -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload from azure.core.exceptions import ( ClientAuthenticationError, @@ -42,7 +42,12 @@ class RadiologyInsightsClientOperationsMixin(RadiologyInsightsClientMixinABC): async def _infer_radiology_insights_initial( - self, body: Union[_models.RadiologyInsightsData, JSON, IO[bytes]], **kwargs: Any + self, + id: str, + resource: Union[_models.RadiologyInsightsJob, JSON, IO[bytes]], + *, + expand: Optional[List[str]] = None, + **kwargs: Any ) -> JSON: error_map = { 401: ClientAuthenticationError, @@ -60,12 +65,14 @@ async def _infer_radiology_insights_initial( content_type = content_type or "application/json" _content = None - if isinstance(body, (IOBase, bytes)): - _content = body + if isinstance(resource, (IOBase, bytes)): + _content = resource else: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore _request = build_radiology_insights_infer_radiology_insights_request( + id=id, + expand=expand, content_type=content_type, api_version=self._config.api_version, content=_content, @@ -84,20 +91,29 @@ async def _infer_radiology_insights_initial( response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200, 201]: if _stream: await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = _deserialize(_models.HealthInsightsErrorResponse, response.json()) + raise HttpResponseError(response=response, model=error) response_headers = {} - response_headers["Operation-Location"] = self._deserialize("str", response.headers.get("Operation-Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - response_headers["Repeatability-Result"] = self._deserialize( - "str", response.headers.get("Repeatability-Result") - ) + if response.status_code == 200: + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + response_headers["Operation-Location"] = self._deserialize( + "str", response.headers.get("Operation-Location") + ) + + deserialized = _deserialize(JSON, response.json()) + + if response.status_code == 201: + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + response_headers["Operation-Location"] = self._deserialize( + "str", response.headers.get("Operation-Location") + ) - deserialized = _deserialize(JSON, response.json()) + deserialized = _deserialize(JSON, response.json()) if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore @@ -106,122 +122,127 @@ async def _infer_radiology_insights_initial( @overload async def begin_infer_radiology_insights( - self, body: _models.RadiologyInsightsData, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RadiologyInsightsInferenceResult]: + self, + id: str, + resource: _models.RadiologyInsightsJob, + *, + expand: Optional[List[str]] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.RadiologyInsightsJob]: # pylint: disable=line-too-long """Create Radiology Insights job. Creates a Radiology Insights job with the given request body. - :param body: Required. - :type body: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsData + :param id: The unique ID of the job. Required. + :type id: str + :param resource: The resource instance. Required. + :type resource: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob + :keyword expand: Expand the indicated resources into the response. Default value is None. + :paramtype expand: list[str] :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RadiologyInsightsInferenceResult. The - RadiologyInsightsInferenceResult is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns RadiologyInsightsJob. The + RadiologyInsightsJob is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult] + ~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob] :raises ~azure.core.exceptions.HttpResponseError: Example: .. code-block:: python # JSON input template you can fill out and use as your body input. - body = { - "patients": [ - { - "id": "str", # A given identifier for the patient. Has to be - unique across all patients in a single request. Required. - "encounters": [ - { - "id": "str", # The id of the visit. - Required. - "class": "str", # Optional. The class of the - encounter. Known values are: "inpatient", "ambulatory", - "observation", "emergency", "virtual", and "healthHome". - "period": { - "end": "2020-02-20 00:00:00", # - Optional. End time with inclusive boundary, if not ongoing. - "start": "2020-02-20 00:00:00" # - Optional. Starting time with inclusive boundary. - } - } - ], - "info": { - "birthDate": "2020-02-20", # Optional. The patient's - date of birth. - "clinicalInfo": [ - { - "resourceType": "str", # The type of - resource. Required. - "id": "str", # Optional. Resource - Id. - "implicitRules": "str", # Optional. - A set of rules under which this content was created. - "language": "str", # Optional. - Language of the resource content. - "meta": { - "lastUpdated": "str", # - Optional. When the resource last changed - e.g. when the - version changed. - "profile": [ - "str" # Optional. A - list of profiles (references to `StructureDefinition - `_ - resources) that this resource claims to conform to. - The URL is a reference to `StructureDefinition.url - `_. - ], - "security": [ - { - "code": - "str", # Optional. Symbol in syntax defined by - the system. - "display": - "str", # Optional. Representation defined by the - system. - "extension": - [ - { - "url": "str", # Source of the definition - for the extension code - a logical name - or a URL. Required. - "valueBoolean": bool, # Optional. Value - as boolean. + resource = { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. "valueCodeableConcept": { "coding": [ ... ], - "text": "str" # Optional. Plain text - representation of the concept. + "text": "str" # Optional. Plain + text representation of the + concept. }, "valueDateTime": "str", # Optional. - Value as dateTime. - "valueInteger": 0, # Optional. Value as - integer. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. "valuePeriod": { - "end": "str", # Optional. End time - with inclusive boundary, if not - ongoing. - "start": "str" # Optional. Starting - time with inclusive boundary. + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. }, "valueQuantity": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. @@ -236,193 +257,199 @@ async def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, "low": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueRatio": { "denominator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "numerator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueReference": { - "display": "str", # Optional. Text - alternative for the resource. + "display": "str", # Optional. + Text alternative for the + resource. "identifier": { "assigner": ..., "period": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. }, - "system": "str", # Optional. The - namespace for the identifier - value. + "system": "str", # Optional. + The namespace for the + identifier value. "type": { "coding": [ ... ], - "text": "str" # Optional. - Plain text representation of - the concept. + "text": "str" # + Optional. Plain text + representation of the + concept. }, - "use": "str", # Optional. usual - | official | temp | secondary | - old (If known). - "value": "str" # Optional. The - value that is unique. + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. }, "reference": "str", # Optional. - Literal reference, Relative, internal - or absolute URL. - "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of sample - points at each time point. Required. + "dimensions": 0, # Number of + sample points at each time point. + Required. "origin": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | - "L". - "factor": 0.0, # Optional. Multiply - data by this before adding to origin. - "lowerLimit": 0.0, # Optional. Lower - limit of detection. - "upperLimit": 0.0 # Optional. Upper - limit of detection. + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. }, - "valueString": "str", # Optional. Value - as string. + "valueString": "str", # Optional. + Value as string. "valueTime": "12:30:00" # Optional. - Value as time (hh:mm:ss). - } - ], - "id": "str", - # Optional. Unique id for inter-element - referencing. - "system": - "str", # Optional. Identity of the terminology - system. - "version": - "str" # Optional. Version of the system - if - relevant. - } - ], - "source": "str", # Optional. - A uri that identifies the source system of the resource. - This provides a minimal amount of Provenance information - that can be used to track or differentiate the source of - information in the resource. The source may identify - another FHIR server, document, message, database, etc. - "tag": [ - { - "code": - "str", # Optional. Symbol in syntax defined by - the system. - "display": - "str", # Optional. Representation defined by the - system. - "extension": - [ - { - "url": "str", # Source of the definition - for the extension code - a logical name - or a URL. Required. - "valueBoolean": bool, # Optional. Value - as boolean. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. "valueCodeableConcept": { "coding": [ ... ], - "text": "str" # Optional. Plain text - representation of the concept. + "text": "str" # Optional. Plain + text representation of the + concept. }, "valueDateTime": "str", # Optional. - Value as dateTime. - "valueInteger": 0, # Optional. Value as - integer. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. "valuePeriod": { - "end": "str", # Optional. End time - with inclusive boundary, if not - ongoing. - "start": "str" # Optional. Starting - time with inclusive boundary. + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. }, "valueQuantity": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. @@ -437,217 +464,243 @@ async def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, "low": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueRatio": { "denominator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "numerator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueReference": { - "display": "str", # Optional. Text - alternative for the resource. + "display": "str", # Optional. + Text alternative for the + resource. "identifier": { "assigner": ..., "period": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. }, - "system": "str", # Optional. The - namespace for the identifier - value. + "system": "str", # Optional. + The namespace for the + identifier value. "type": { "coding": [ ... ], - "text": "str" # Optional. - Plain text representation of - the concept. + "text": "str" # + Optional. Plain text + representation of the + concept. }, - "use": "str", # Optional. usual - | official | temp | secondary | - old (If known). - "value": "str" # Optional. The - value that is unique. + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. }, "reference": "str", # Optional. - Literal reference, Relative, internal - or absolute URL. - "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of sample - points at each time point. Required. + "dimensions": 0, # Number of + sample points at each time point. + Required. "origin": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | - "L". - "factor": 0.0, # Optional. Multiply - data by this before adding to origin. - "lowerLimit": 0.0, # Optional. Lower - limit of detection. - "upperLimit": 0.0 # Optional. Upper - limit of detection. + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. }, - "valueString": "str", # Optional. Value - as string. + "valueString": "str", # Optional. + Value as string. "valueTime": "12:30:00" # Optional. - Value as time (hh:mm:ss). - } - ], - "id": "str", - # Optional. Unique id for inter-element - referencing. - "system": - "str", # Optional. Identity of the terminology - system. - "version": - "str" # Optional. Version of the system - if - relevant. - } - ], - "versionId": "str" # - Optional. The version specific identifier, as it appears - in the version portion of the URL. This value changes - when the resource is created, updated, or deleted. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. } } ], - "sex": "str" # Optional. The patient's sex. Known - values are: "female", "male", and "unspecified". - }, - "patientDocuments": [ - { - "content": { - "sourceType": "str", # The type of - the content's source. In case the source type is 'inline', - the content is given as a string (for instance, text). In - case the source type is 'reference', the content is given as - a URI. Required. Known values are: "inline" and "reference". - "value": "str" # The content of the - document, given either inline (as a string) or as a reference - (URI). Required. - }, - "id": "str", # A given identifier for the - document. Has to be unique across all documents for a single - patient. Required. - "type": "str", # The type of the patient - document, such as 'note' (text document) or 'fhirBundle' (FHIR - JSON document). Required. Known values are: "note", "fhirBundle", - "dicom", and "genomicSequencing". - "administrativeMetadata": { - "encounterId": "str", # Optional. - Reference to the encounter associated with the document. - "orderedProcedures": [ - { - "code": { - "coding": [ - { + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { "code": "str", # Optional. Symbol in - syntax defined by the system. + syntax defined by the system. "display": "str", # Optional. - Representation defined by the system. + Representation defined by the system. "extension": [ { - "url": "str", # Source of the - definition for the extension code - - a logical name or a URL. - Required. + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. "valueBoolean": bool, # - Optional. Value as boolean. + Optional. Value as boolean. "valueCodeableConcept": ..., "valueDateTime": "str", # - Optional. Value as dateTime. - "valueInteger": 0, # Optional. - Value as integer. + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. "valuePeriod": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. }, "valueQuantity": { - "code": "str", # Optional. - Coded form of the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the value. - "system": "str", # Optional. - System that defines coded - unit form. - "unit": "str", # Optional. - Unit representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. @@ -665,589 +718,196 @@ async def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, "low": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). } }, "valueRatio": { "denominator": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). }, "numerator": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). } }, "valueReference": { "display": "str", # - Optional. Text alternative - for the resource. + Optional. Text + alternative for the + resource. "identifier": { "assigner": ..., "period": { "end": "str", # - Optional. End time - with inclusive - boundary, if not - ongoing. + Optional. End + time with + inclusive + boundary, if not + ongoing. "start": "str" # - Optional. Starting - time with inclusive - boundary. + Optional. + Starting time + with inclusive + boundary. }, "system": "str", # - Optional. The namespace - for the identifier value. + Optional. The + namespace for the + identifier value. "type": ..., "use": "str", # - Optional. usual | - official | temp | - secondary | old (If - known). + Optional. usual | + official | temp | + secondary | old (If + known). "value": "str" # - Optional. The value that - is unique. + Optional. The value + that is unique. }, "reference": "str", # - Optional. Literal reference, - Relative, internal or - absolute URL. - "type": "str" # Optional. - Type the reference refers to - (e.g. "Patient"). + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of - sample points at each time - point. Required. + "dimensions": 0, # + Number of sample points + at each time point. + Required. "origin": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). }, - "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. - Decimal values with spaces, - or "E" | "U" | "L". - "factor": 0.0, # Optional. - Multiply data by this before - adding to origin. + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. "lowerLimit": 0.0, # - Optional. Lower limit of - detection. + Optional. Lower limit of + detection. "upperLimit": 0.0 # - Optional. Upper limit of - detection. + Optional. Upper limit of + detection. }, "valueString": "str", # - Optional. Value as string. + Optional. Value as string. "valueTime": "12:30:00" # - Optional. Value as time - (hh:mm:ss). + Optional. Value as time + (hh:mm:ss). } ], - "id": "str", # Optional. Unique id for - inter-element referencing. - "system": "str", # Optional. Identity of - the terminology system. - "version": "str" # Optional. Version of - the system - if relevant. - } - ], - "text": "str" - # Optional. Plain text representation of the - concept. - }, - "description": "str", - # Optional. Procedure description. - "extension": [ - { - "url": "str", # Source of the definition for - the extension code - a logical name or a URL. - Required. - "valueBoolean": bool, # Optional. Value as - boolean. - "valueCodeableConcept": { - "coding": [ - { - "code": "str", # Optional. - Symbol in syntax defined by the - system. - "display": "str", # Optional. - Representation defined by the - system. - "extension": [ - ... - ], - "id": "str", # Optional. Unique - id for inter-element referencing. + "id": "str", # Optional. Unique id + for inter-element referencing. "system": "str", # Optional. - Identity of the terminology - system. - "version": "str" # Optional. - Version of the system - if - relevant. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. } - ], + ], "text": "str" # Optional. Plain text - representation of the concept. - }, - "valueDateTime": "str", # Optional. Value as - dateTime. - "valueInteger": 0, # Optional. Value as - integer. - "valuePeriod": { - "end": "str", # Optional. End time with - inclusive boundary, if not ongoing. - "start": "str" # Optional. Starting time - with inclusive boundary. - }, - "valueQuantity": { - "code": "str", # Optional. Coded form of - the unit. - "comparator": "str", # Optional. < | <= - | >= | > - how to understand the value. - "system": "str", # Optional. System that - defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical value - (with implicit precision). - }, - "valueRange": { - "high": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "low": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - } - }, - "valueRatio": { - "denominator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "numerator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - } - }, - "valueReference": { - "display": "str", # Optional. Text - alternative for the resource. - "identifier": { - "assigner": ..., - "period": { - "end": "str", # Optional. End - time with inclusive boundary, if - not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. - }, - "system": "str", # Optional. The - namespace for the identifier value. - "type": { - "coding": [ - { - "code": "str", # - Optional. Symbol in - syntax defined by the - system. - "display": "str", # - Optional. Representation - defined by the system. - "extension": [ - ... - ], - "id": "str", # Optional. - Unique id for - inter-element - referencing. - "system": "str", # - Optional. Identity of the - terminology system. - "version": "str" # - Optional. Version of the - system - if relevant. - } - ], - "text": "str" # Optional. Plain - text representation of the - concept. - }, - "use": "str", # Optional. usual | - official | temp | secondary | old (If - known). - "value": "str" # Optional. The value - that is unique. - }, - "reference": "str", # Optional. Literal - reference, Relative, internal or absolute - URL. - "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). - }, - "valueSampledData": { - "dimensions": 0, # Number of sample - points at each time point. Required. - "origin": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "period": 0.0, # Number of milliseconds - between samples. Required. - "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | "L". - "factor": 0.0, # Optional. Multiply data - by this before adding to origin. - "lowerLimit": 0.0, # Optional. Lower - limit of detection. - "upperLimit": 0.0 # Optional. Upper - limit of detection. - }, - "valueString": "str", # Optional. Value as - string. - "valueTime": "12:30:00" # Optional. Value as - time (hh:mm:ss). - } - ] - } - ] - }, - "authors": [ - { - "fullName": "str", # - Optional. Text representation of the full name. - "id": "str" # Optional. - author id. - } - ], - "clinicalType": "str", # Optional. The type - of the clinical document. Known values are: "consultation", - "dischargeSummary", "historyAndPhysical", "radiologyReport", - "procedure", "progress", "laboratory", and "pathologyReport". - "createdDateTime": "2020-02-20 00:00:00", # - Optional. The date and time when the document was created. - "language": "str", # Optional. A 2 letter - ISO 639-1 representation of the language of the document. - "specialtyType": "str" # Optional. specialty - type the document. Known values are: "pathology" and "radiology". - } - ] - } - ], - "configuration": { - "includeEvidence": bool, # Optional. An indication whether the - model's output should include evidence for the inferences. - "inferenceOptions": { - "findingOptions": { - "provideFocusedSentenceEvidence": bool # Optional. - If this is true, provide the sentence that contains the first token - of the finding's clinical indicator (i.e. the medical problem), if - there is one. This sentence is provided as an extension with url - 'ci_sentence', next to the token evidence. Default is false. - }, - "followupRecommendationOptions": { - "includeRecommendationsInReferences": bool, # - Optional. Include/Exclude follow-up recommendations in references to - a guideline or article. Default is false. - "includeRecommendationsWithNoSpecifiedModality": - bool, # Optional. Include/Exclude follow-up recommendations without - a specific radiology procedure. Default is false. - "provideFocusedSentenceEvidence": bool # Optional. - If this is true, provide one or more sentences as evidence for the - recommendation, next to the token evidence. The start and end - positions of these sentences will be put in an extension with url - 'modality_sentences'. Default is false. - } - }, - "inferenceTypes": [ - "str" # Optional. This is a list of inference types to be - inferred for the current request. It could be used if only part of the - Radiology Insights inferences are required. If this list is omitted or - empty, the model will return all the inference types. - ], - "locale": "str", # Optional. Local for the model to use. If not - specified, the model will use the default locale. - "verbose": bool # Optional. An indication whether the model should - produce verbose output. - } - } - - # response body for status code(s): 202 - response == { - "modelVersion": "str", # The version of the model used for inference, - expressed as the model date. Required. - "patientResults": [ - { - "inferences": [ - radiology_insights_inference - ], - "patientId": "str" # Identifier given for the patient in the - request. Required. - } - ] - } - """ - - @overload - async def begin_infer_radiology_insights( - self, body: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RadiologyInsightsInferenceResult]: - """Create Radiology Insights job. - - Creates a Radiology Insights job with the given request body. - - :param body: Required. - :type body: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RadiologyInsightsInferenceResult. The - RadiologyInsightsInferenceResult is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult] - :raises ~azure.core.exceptions.HttpResponseError: - - Example: - .. code-block:: python - - # response body for status code(s): 202 - response == { - "modelVersion": "str", # The version of the model used for inference, - expressed as the model date. Required. - "patientResults": [ - { - "inferences": [ - radiology_insights_inference - ], - "patientId": "str" # Identifier given for the patient in the - request. Required. - } - ] - } - """ - - @overload - async def begin_infer_radiology_insights( - self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RadiologyInsightsInferenceResult]: - """Create Radiology Insights job. - - Creates a Radiology Insights job with the given request body. - - :param body: Required. - :type body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RadiologyInsightsInferenceResult. The - RadiologyInsightsInferenceResult is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult] - :raises ~azure.core.exceptions.HttpResponseError: - - Example: - .. code-block:: python - - # response body for status code(s): 202 - response == { - "modelVersion": "str", # The version of the model used for inference, - expressed as the model date. Required. - "patientResults": [ - { - "inferences": [ - radiology_insights_inference - ], - "patientId": "str" # Identifier given for the patient in the - request. Required. - } - ] - } - """ - - @distributed_trace_async - async def begin_infer_radiology_insights( - self, body: Union[_models.RadiologyInsightsData, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.RadiologyInsightsInferenceResult]: - # pylint: disable=line-too-long - """Create Radiology Insights job. - - Creates a Radiology Insights job with the given request body. - - :param body: Is one of the following types: RadiologyInsightsData, JSON, IO[bytes] Required. - :type body: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsData or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns RadiologyInsightsInferenceResult. The - RadiologyInsightsInferenceResult is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult] - :raises ~azure.core.exceptions.HttpResponseError: - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - body = { - "patients": [ - { - "id": "str", # A given identifier for the patient. Has to be - unique across all patients in a single request. Required. - "encounters": [ - { - "id": "str", # The id of the visit. - Required. - "class": "str", # Optional. The class of the - encounter. Known values are: "inpatient", "ambulatory", - "observation", "emergency", "virtual", and "healthHome". - "period": { - "end": "2020-02-20 00:00:00", # - Optional. End time with inclusive boundary, if not ongoing. - "start": "2020-02-20 00:00:00" # - Optional. Starting time with inclusive boundary. - } - } - ], - "info": { - "birthDate": "2020-02-20", # Optional. The patient's - date of birth. - "clinicalInfo": [ - { - "resourceType": "str", # The type of - resource. Required. - "id": "str", # Optional. Resource - Id. - "implicitRules": "str", # Optional. - A set of rules under which this content was created. - "language": "str", # Optional. - Language of the resource content. - "meta": { - "lastUpdated": "str", # - Optional. When the resource last changed - e.g. when the - version changed. - "profile": [ - "str" # Optional. A - list of profiles (references to `StructureDefinition - `_ - resources) that this resource claims to conform to. - The URL is a reference to `StructureDefinition.url - `_. - ], - "security": [ - { - "code": - "str", # Optional. Symbol in syntax defined by - the system. - "display": - "str", # Optional. Representation defined by the - system. + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. "extension": [ { @@ -1258,8 +918,27 @@ async def begin_infer_radiology_insights( as boolean. "valueCodeableConcept": { "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ ... ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], "text": "str" # Optional. Plain text representation of the concept. }, @@ -1369,8 +1048,33 @@ async def begin_infer_radiology_insights( value. "type": { "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ ... ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], "text": "str" # Optional. Plain text representation of the concept. @@ -1423,73 +1127,180 @@ async def begin_infer_radiology_insights( "valueTime": "12:30:00" # Optional. Value as time (hh:mm:ss). } - ], - "id": "str", - # Optional. Unique id for inter-element - referencing. - "system": - "str", # Optional. Identity of the terminology - system. - "version": - "str" # Optional. Version of the system - if - relevant. + ] } - ], - "source": "str", # Optional. - A uri that identifies the source system of the resource. - This provides a minimal amount of Provenance information - that can be used to track or differentiate the source of - information in the resource. The source may identify - another FHIR server, document, message, database, etc. - "tag": [ - { - "code": - "str", # Optional. Symbol in syntax defined by - the system. - "display": - "str", # Optional. Representation defined by the - system. - "extension": - [ - { - "url": "str", # Source of the definition - for the extension code - a logical name - or a URL. Required. - "valueBoolean": bool, # Optional. Value - as boolean. + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + + # response body for status code(s): 201, 200 + response == { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. "valueCodeableConcept": { "coding": [ ... ], - "text": "str" # Optional. Plain text - representation of the concept. + "text": "str" # Optional. Plain + text representation of the + concept. }, "valueDateTime": "str", # Optional. - Value as dateTime. - "valueInteger": 0, # Optional. Value as - integer. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. "valuePeriod": { - "end": "str", # Optional. End time - with inclusive boundary, if not - ongoing. - "start": "str" # Optional. Starting - time with inclusive boundary. + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. }, "valueQuantity": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. @@ -1504,94 +1315,199 @@ async def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, "low": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueRatio": { "denominator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). }, "numerator": { - "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. - < | <= | >= | > - how to - understand the value. + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. "system": "str", # Optional. - System that defines coded unit - form. - "unit": "str", # Optional. Unit - representation. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. "value": 0.0 # Optional. - Numerical value (with implicit - precision). + Numerical value (with + implicit precision). } }, "valueReference": { - "display": "str", # Optional. Text - alternative for the resource. + "display": "str", # Optional. + Text alternative for the + resource. "identifier": { "assigner": ..., "period": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. }, - "system": "str", # Optional. The - namespace for the identifier - value. + "system": "str", # Optional. + The namespace for the + identifier value. "type": { "coding": [ ... ], - "text": "str" # Optional. - Plain text representation of - the concept. + "text": "str" # + Optional. Plain text + representation of the + concept. }, - "use": "str", # Optional. usual - | official | temp | secondary | - old (If known). - "value": "str" # Optional. The - value that is unique. + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. }, "reference": "str", # Optional. - Literal reference, Relative, internal - or absolute URL. - "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of sample - points at each time point. Required. + "dimensions": 0, # Number of + sample points at each time point. + Required. "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. @@ -1606,99 +1522,23 @@ async def begin_infer_radiology_insights( Numerical value (with implicit precision). }, - "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | - "L". - "factor": 0.0, # Optional. Multiply - data by this before adding to origin. - "lowerLimit": 0.0, # Optional. Lower - limit of detection. - "upperLimit": 0.0 # Optional. Upper - limit of detection. - }, - "valueString": "str", # Optional. Value - as string. - "valueTime": "12:30:00" # Optional. - Value as time (hh:mm:ss). - } - ], - "id": "str", - # Optional. Unique id for inter-element - referencing. - "system": - "str", # Optional. Identity of the terminology - system. - "version": - "str" # Optional. Version of the system - if - relevant. - } - ], - "versionId": "str" # - Optional. The version specific identifier, as it appears - in the version portion of the URL. This value changes - when the resource is created, updated, or deleted. - } - } - ], - "sex": "str" # Optional. The patient's sex. Known - values are: "female", "male", and "unspecified". - }, - "patientDocuments": [ - { - "content": { - "sourceType": "str", # The type of - the content's source. In case the source type is 'inline', - the content is given as a string (for instance, text). In - case the source type is 'reference', the content is given as - a URI. Required. Known values are: "inline" and "reference". - "value": "str" # The content of the - document, given either inline (as a string) or as a reference - (URI). Required. - }, - "id": "str", # A given identifier for the - document. Has to be unique across all documents for a single - patient. Required. - "type": "str", # The type of the patient - document, such as 'note' (text document) or 'fhirBundle' (FHIR - JSON document). Required. Known values are: "note", "fhirBundle", - "dicom", and "genomicSequencing". - "administrativeMetadata": { - "encounterId": "str", # Optional. - Reference to the encounter associated with the document. - "orderedProcedures": [ - { - "code": { - "coding": [ - { - "code": "str", # Optional. Symbol in - syntax defined by the system. - "display": "str", # Optional. - Representation defined by the system. - "extension": [ - { - "url": "str", # Source of the - definition for the extension code - - a logical name or a URL. - Required. - "valueBoolean": bool, # - Optional. Value as boolean. - "valueCodeableConcept": ..., - "valueDateTime": "str", # - Optional. Value as dateTime. - "valueInteger": 0, # Optional. - Value as integer. - "valuePeriod": { - "end": "str", # Optional. - End time with inclusive - boundary, if not ongoing. - "start": "str" # Optional. - Starting time with inclusive - boundary. + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). }, - "valueQuantity": { + "low": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # @@ -1712,9 +1552,4545 @@ async def begin_infer_radiology_insights( "value": 0.0 # Optional. Numerical value (with implicit precision). + } }, - "valueRange": { - "high": { + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # + Optional. Coded form of + the unit. + "comparator": "str", # + Optional. < | <= | >= | > + - how to understand the + value. + "system": "str", # + Optional. System that + defines coded unit form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "low": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "numerator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # + Optional. Text + alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End + time with + inclusive + boundary, if not + ongoing. + "start": "str" # + Optional. + Starting time + with inclusive + boundary. + }, + "system": "str", # + Optional. The + namespace for the + identifier value. + "type": ..., + "use": "str", # + Optional. usual | + official | temp | + secondary | old (If + known). + "value": "str" # + Optional. The value + that is unique. + }, + "reference": "str", # + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # + Number of sample points + at each time point. + Required. + "origin": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. + "lowerLimit": 0.0, # + Optional. Lower limit of + detection. + "upperLimit": 0.0 # + Optional. Upper limit of + detection. + }, + "valueString": "str", # + Optional. Value as string. + "valueTime": "12:30:00" # + Optional. Value as time + (hh:mm:ss). + } + ], + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. + "valueCodeableConcept": { + "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ + ... + ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value as + integer. + "valuePeriod": { + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. < | + <= | >= | > - how to understand the + value. + "system": "str", # Optional. System + that defines coded unit form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. Numerical + value (with implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "low": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "numerator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # Optional. Text + alternative for the resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "system": "str", # Optional. The + namespace for the identifier + value. + "type": { + "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ + ... + ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], + "text": "str" # Optional. + Plain text representation of + the concept. + }, + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. + "type": "str" # Optional. Type the + reference refers to (e.g. "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of sample + points at each time point. Required. + "origin": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. Decimal + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. + "lowerLimit": 0.0, # Optional. Lower + limit of detection. + "upperLimit": 0.0 # Optional. Upper + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + """ + + @overload + async def begin_infer_radiology_insights( + self, + id: str, + resource: JSON, + *, + expand: Optional[List[str]] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.RadiologyInsightsJob]: + # pylint: disable=line-too-long + """Create Radiology Insights job. + + Creates a Radiology Insights job with the given request body. + + :param id: The unique ID of the job. Required. + :type id: str + :param resource: The resource instance. Required. + :type resource: JSON + :keyword expand: Expand the indicated resources into the response. Default value is None. + :paramtype expand: list[str] + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns RadiologyInsightsJob. The + RadiologyInsightsJob is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob] + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201, 200 + response == { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # + Optional. Coded form of + the unit. + "comparator": "str", # + Optional. < | <= | >= | > + - how to understand the + value. + "system": "str", # + Optional. System that + defines coded unit form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "low": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "numerator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # + Optional. Text + alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End + time with + inclusive + boundary, if not + ongoing. + "start": "str" # + Optional. + Starting time + with inclusive + boundary. + }, + "system": "str", # + Optional. The + namespace for the + identifier value. + "type": ..., + "use": "str", # + Optional. usual | + official | temp | + secondary | old (If + known). + "value": "str" # + Optional. The value + that is unique. + }, + "reference": "str", # + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # + Number of sample points + at each time point. + Required. + "origin": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. + "lowerLimit": 0.0, # + Optional. Lower limit of + detection. + "upperLimit": 0.0 # + Optional. Upper limit of + detection. + }, + "valueString": "str", # + Optional. Value as string. + "valueTime": "12:30:00" # + Optional. Value as time + (hh:mm:ss). + } + ], + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. + "valueCodeableConcept": { + "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ + ... + ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value as + integer. + "valuePeriod": { + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. < | + <= | >= | > - how to understand the + value. + "system": "str", # Optional. System + that defines coded unit form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. Numerical + value (with implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "low": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "numerator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # Optional. Text + alternative for the resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "system": "str", # Optional. The + namespace for the identifier + value. + "type": { + "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ + ... + ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], + "text": "str" # Optional. + Plain text representation of + the concept. + }, + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. + "type": "str" # Optional. Type the + reference refers to (e.g. "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of sample + points at each time point. Required. + "origin": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. Decimal + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. + "lowerLimit": 0.0, # Optional. Lower + limit of detection. + "upperLimit": 0.0 # Optional. Upper + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + """ + + @overload + async def begin_infer_radiology_insights( + self, + id: str, + resource: IO[bytes], + *, + expand: Optional[List[str]] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.RadiologyInsightsJob]: + # pylint: disable=line-too-long + """Create Radiology Insights job. + + Creates a Radiology Insights job with the given request body. + + :param id: The unique ID of the job. Required. + :type id: str + :param resource: The resource instance. Required. + :type resource: IO[bytes] + :keyword expand: Expand the indicated resources into the response. Default value is None. + :paramtype expand: list[str] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns RadiologyInsightsJob. The + RadiologyInsightsJob is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob] + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201, 200 + response == { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # + Optional. Coded form of + the unit. + "comparator": "str", # + Optional. < | <= | >= | > + - how to understand the + value. + "system": "str", # + Optional. System that + defines coded unit form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "low": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "numerator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # + Optional. Text + alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End + time with + inclusive + boundary, if not + ongoing. + "start": "str" # + Optional. + Starting time + with inclusive + boundary. + }, + "system": "str", # + Optional. The + namespace for the + identifier value. + "type": ..., + "use": "str", # + Optional. usual | + official | temp | + secondary | old (If + known). + "value": "str" # + Optional. The value + that is unique. + }, + "reference": "str", # + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # + Number of sample points + at each time point. + Required. + "origin": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. + "lowerLimit": 0.0, # + Optional. Lower limit of + detection. + "upperLimit": 0.0 # + Optional. Upper limit of + detection. + }, + "valueString": "str", # + Optional. Value as string. + "valueTime": "12:30:00" # + Optional. Value as time + (hh:mm:ss). + } + ], + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. + "valueCodeableConcept": { + "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ + ... + ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value as + integer. + "valuePeriod": { + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. < | + <= | >= | > - how to understand the + value. + "system": "str", # Optional. System + that defines coded unit form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. Numerical + value (with implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "low": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "numerator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # Optional. Text + alternative for the resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "system": "str", # Optional. The + namespace for the identifier + value. + "type": { + "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ + ... + ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], + "text": "str" # Optional. + Plain text representation of + the concept. + }, + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. + "type": "str" # Optional. Type the + reference refers to (e.g. "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of sample + points at each time point. Required. + "origin": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. Decimal + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. + "lowerLimit": 0.0, # Optional. Lower + limit of detection. + "upperLimit": 0.0 # Optional. Upper + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + """ + + @distributed_trace_async + async def begin_infer_radiology_insights( + self, + id: str, + resource: Union[_models.RadiologyInsightsJob, JSON, IO[bytes]], + *, + expand: Optional[List[str]] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.RadiologyInsightsJob]: + # pylint: disable=line-too-long + """Create Radiology Insights job. + + Creates a Radiology Insights job with the given request body. + + :param id: The unique ID of the job. Required. + :type id: str + :param resource: The resource instance. Is one of the following types: RadiologyInsightsJob, + JSON, IO[bytes] Required. + :type resource: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob or JSON or + IO[bytes] + :keyword expand: Expand the indicated resources into the response. Default value is None. + :paramtype expand: list[str] + :return: An instance of AsyncLROPoller that returns RadiologyInsightsJob. The + RadiologyInsightsJob is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob] + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + resource = { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # + Optional. Coded form of + the unit. + "comparator": "str", # + Optional. < | <= | >= | > + - how to understand the + value. + "system": "str", # + Optional. System that + defines coded unit form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "low": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "numerator": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # + Optional. Text + alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End + time with + inclusive + boundary, if not + ongoing. + "start": "str" # + Optional. + Starting time + with inclusive + boundary. + }, + "system": "str", # + Optional. The + namespace for the + identifier value. + "type": ..., + "use": "str", # + Optional. usual | + official | temp | + secondary | old (If + known). + "value": "str" # + Optional. The value + that is unique. + }, + "reference": "str", # + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # + Number of sample points + at each time point. + Required. + "origin": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. + "lowerLimit": 0.0, # + Optional. Lower limit of + detection. + "upperLimit": 0.0 # + Optional. Upper limit of + detection. + }, + "valueString": "str", # + Optional. Value as string. + "valueTime": "12:30:00" # + Optional. Value as time + (hh:mm:ss). + } + ], + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. + "valueCodeableConcept": { + "coding": [ + { + "code": "str", # Optional. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. + "extension": [ + ... + ], + "id": "str", # Optional. + Unique id for inter-element + referencing. + "system": "str", # Optional. + Identity of the terminology + system. + "version": "str" # Optional. + Version of the system - if + relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value as + integer. + "valuePeriod": { + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. < | + <= | >= | > - how to understand the + value. + "system": "str", # Optional. System + that defines coded unit form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. Numerical + value (with implicit precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "low": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "numerator": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + } + }, + "valueReference": { + "display": "str", # Optional. Text + alternative for the resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "system": "str", # Optional. The + namespace for the identifier + value. + "type": { + "coding": [ + { + "code": "str", # + Optional. Symbol in + syntax defined by the + system. + "display": "str", # + Optional. + Representation + defined by the + system. + "extension": [ + ... + ], + "id": "str", # + Optional. Unique id + for inter-element + referencing. + "system": "str", # + Optional. Identity of + the terminology + system. + "version": "str" # + Optional. Version of + the system - if + relevant. + } + ], + "text": "str" # Optional. + Plain text representation of + the concept. + }, + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. + "type": "str" # Optional. Type the + reference refers to (e.g. "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of sample + points at each time point. Required. + "origin": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. Decimal + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. + "lowerLimit": 0.0, # Optional. Lower + limit of detection. + "upperLimit": 0.0 # Optional. Upper + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. + } + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] + } + ], + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. + ], + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. + } + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. + } + + # response body for status code(s): 201, 200 + response == { + "status": "str", # The status of the job. Required. Known values are: + "notStarted", "running", "succeeded", "failed", and "canceled". + "createdAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job was created. + "error": { + "code": "str", # One of a server-defined set of error codes. + Required. + "message": "str", # A human-readable representation of the error. + Required. + "details": [ + ... + ], + "innererror": { + "code": "str", # Optional. One of a server-defined set of + error codes. + "innererror": ... + }, + "target": "str" # Optional. The target of the error. + }, + "expiresAt": "2020-02-20 00:00:00", # Optional. The date and time when the + processing job is set to expire. + "jobData": { + "patients": [ + { + "id": "str", # A given identifier for the patient. + Has to be unique across all patients in a single request. Required. + "details": { + "birthDate": "2020-02-20", # Optional. The + patient's date of birth. + "clinicalInfo": [ + { + "resourceType": "str", # The + type of resource. Required. + "id": "str", # Optional. + Resource Id. + "implicitRules": "str", # + Optional. A set of rules under which this content was + created. + "language": "str", # + Optional. Language of the resource content. + "meta": { + "lastUpdated": "str", + # Optional. When the resource last changed - e.g. + when the version changed. + "profile": [ + "str" # + Optional. A list of profiles (references to + `StructureDefinition + `_ + resources) that this resource claims to conform + to. The URL is a reference to + `StructureDefinition.url + `_. + ], + "security": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "source": "str", # + Optional. A uri that identifies the source system of + the resource. This provides a minimal amount of + Provenance information that can be used to track or + differentiate the source of information in the + resource. The source may identify another FHIR + server, document, message, database, etc. + "tag": [ + { + "code": "str", # Optional. Symbol in syntax + defined by the system. + "display": "str", # Optional. Representation + defined by the system. + "extension": [ + { + "url": "str", # Source of the + definition for the extension code - a + logical name or a URL. Required. + "valueBoolean": bool, # Optional. + Value as boolean. + "valueCodeableConcept": { + "coding": [ + ... + ], + "text": "str" # Optional. Plain + text representation of the + concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. + "valueInteger": 0, # Optional. Value + as integer. + "valuePeriod": { + "end": "str", # Optional. End + time with inclusive boundary, if + not ongoing. + "start": "str" # Optional. + Starting time with inclusive + boundary. + }, + "valueQuantity": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, + "valueRange": { + "high": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "low": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueRatio": { + "denominator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "numerator": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + } + }, + "valueReference": { + "display": "str", # Optional. + Text alternative for the + resource. + "identifier": { + "assigner": ..., + "period": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "system": "str", # Optional. + The namespace for the + identifier value. + "type": { + "coding": [ + ... + ], + "text": "str" # + Optional. Plain text + representation of the + concept. + }, + "use": "str", # Optional. + usual | official | temp | + secondary | old (If known). + "value": "str" # Optional. + The value that is unique. + }, + "reference": "str", # Optional. + Literal reference, Relative, + internal or absolute URL. + "type": "str" # Optional. Type + the reference refers to (e.g. + "Patient"). + }, + "valueSampledData": { + "dimensions": 0, # Number of + sample points at each time point. + Required. + "origin": { + "code": "str", # Optional. + Coded form of the unit. + "comparator": "str", # + Optional. < | <= | >= | > - + how to understand the value. + "system": "str", # Optional. + System that defines coded + unit form. + "unit": "str", # Optional. + Unit representation. + "value": 0.0 # Optional. + Numerical value (with + implicit precision). + }, + "period": 0.0, # Number of + milliseconds between samples. + Required. + "data": "str", # Optional. + Decimal values with spaces, or + "E" | "U" | "L". + "factor": 0.0, # Optional. + Multiply data by this before + adding to origin. + "lowerLimit": 0.0, # Optional. + Lower limit of detection. + "upperLimit": 0.0 # Optional. + Upper limit of detection. + }, + "valueString": "str", # Optional. + Value as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ], + "id": + "str", # Optional. Unique id for + inter-element referencing. + "system": "str", # Optional. Identity of the + terminology system. + "version": "str" # Optional. Version of the + system - if relevant. + } + ], + "versionId": "str" # + Optional. The version specific identifier, as it + appears in the version portion of the URL. This value + changes when the resource is created, updated, or + deleted. + } + } + ], + "sex": "str" # Optional. The patient's sex. + Known values are: "female", "male", and "unspecified". + }, + "encounters": [ + { + "id": "str", # The id of the visit. + Required. + "class": "str", # Optional. The + class of the encounter. Known values are: "inpatient", + "ambulatory", "observation", "emergency", "virtual", and + "healthHome". + "period": { + "end": "2020-02-20 00:00:00", + # Optional. End time with inclusive boundary, if not + ongoing. + "start": "2020-02-20 + 00:00:00" # Optional. Starting time with inclusive + boundary. + } + } + ], + "patientDocuments": [ + { + "content": { + "sourceType": "str", # The + type of the content's source. In case the source type is + 'inline', the content is given as a string (for instance, + text). In case the source type is 'reference', the + content is given as a URI. Required. Known values are: + "inline" and "reference". + "value": "str" # The content + of the document, given either inline (as a string) or as + a reference (URI). Required. + }, + "id": "str", # A given identifier + for the document. Has to be unique across all documents for a + single patient. Required. + "type": "str", # The type of the + patient document, such as 'note' (text document) or + 'fhirBundle' (FHIR JSON document). Required. Known values + are: "note", "fhirBundle", "dicom", and "genomicSequencing". + "administrativeMetadata": { + "encounterId": "str", # + Optional. Reference to the encounter associated with the + document. + "orderedProcedures": [ + { + "code": { + "coding": [ + { + "code": "str", # Optional. Symbol in + syntax defined by the system. + "display": "str", # Optional. + Representation defined by the system. + "extension": [ + { + "url": "str", # Source of + the definition for the + extension code - a logical + name or a URL. Required. + "valueBoolean": bool, # + Optional. Value as boolean. + "valueCodeableConcept": ..., + "valueDateTime": "str", # + Optional. Value as dateTime. + "valueInteger": 0, # + Optional. Value as integer. + "valuePeriod": { + "end": "str", # + Optional. End time with + inclusive boundary, if + not ongoing. + "start": "str" # + Optional. Starting time + with inclusive boundary. + }, + "valueQuantity": { "code": "str", # Optional. Coded form of the unit. @@ -1732,216 +6108,242 @@ async def begin_infer_radiology_insights( Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. + "system": "str", # + Optional. System that + defines coded unit + form. + "unit": "str", # + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). + }, "low": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). } }, "valueRatio": { "denominator": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). }, "numerator": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). } }, "valueReference": { "display": "str", # - Optional. Text alternative - for the resource. + Optional. Text + alternative for the + resource. "identifier": { "assigner": ..., "period": { "end": "str", # - Optional. End time - with inclusive - boundary, if not - ongoing. + Optional. End + time with + inclusive + boundary, if not + ongoing. "start": "str" # - Optional. Starting - time with inclusive - boundary. + Optional. + Starting time + with inclusive + boundary. }, "system": "str", # - Optional. The namespace - for the identifier value. + Optional. The + namespace for the + identifier value. "type": ..., "use": "str", # - Optional. usual | - official | temp | - secondary | old (If - known). + Optional. usual | + official | temp | + secondary | old (If + known). "value": "str" # - Optional. The value that - is unique. + Optional. The value + that is unique. }, "reference": "str", # - Optional. Literal reference, - Relative, internal or - absolute URL. - "type": "str" # Optional. - Type the reference refers to - (e.g. "Patient"). + Optional. Literal + reference, Relative, + internal or absolute URL. + "type": "str" # + Optional. Type the + reference refers to (e.g. + "Patient"). }, "valueSampledData": { - "dimensions": 0, # Number of - sample points at each time - point. Required. + "dimensions": 0, # + Number of sample points + at each time point. + Required. "origin": { "code": "str", # - Optional. Coded form of - the unit. - "comparator": "str", # - Optional. < | <= | >= | > - - how to understand the - value. + Optional. Coded form + of the unit. + "comparator": "str", + # Optional. < | <= | + >= | > - how to + understand the value. "system": "str", # - Optional. System that - defines coded unit form. + Optional. System that + defines coded unit + form. "unit": "str", # - Optional. Unit - representation. - "value": 0.0 # Optional. - Numerical value (with - implicit precision). + Optional. Unit + representation. + "value": 0.0 # + Optional. Numerical + value (with implicit + precision). }, - "period": 0.0, # Number of - milliseconds between samples. - Required. - "data": "str", # Optional. - Decimal values with spaces, - or "E" | "U" | "L". - "factor": 0.0, # Optional. - Multiply data by this before - adding to origin. + "period": 0.0, # Number + of milliseconds between + samples. Required. + "data": "str", # + Optional. Decimal values + with spaces, or "E" | "U" + | "L". + "factor": 0.0, # + Optional. Multiply data + by this before adding to + origin. "lowerLimit": 0.0, # - Optional. Lower limit of - detection. + Optional. Lower limit of + detection. "upperLimit": 0.0 # - Optional. Upper limit of - detection. + Optional. Upper limit of + detection. }, "valueString": "str", # - Optional. Value as string. + Optional. Value as string. "valueTime": "12:30:00" # - Optional. Value as time - (hh:mm:ss). + Optional. Value as time + (hh:mm:ss). } ], - "id": "str", # Optional. Unique id for - inter-element referencing. - "system": "str", # Optional. Identity of - the terminology system. - "version": "str" # Optional. Version of - the system - if relevant. - } - ], - "text": "str" - # Optional. Plain text representation of the - concept. - }, - "description": "str", - # Optional. Procedure description. - "extension": [ - { - "url": "str", # Source of the definition for - the extension code - a logical name or a URL. - Required. - "valueBoolean": bool, # Optional. Value as - boolean. + "id": "str", # Optional. Unique id + for inter-element referencing. + "system": "str", # Optional. + Identity of the terminology system. + "version": "str" # Optional. Version + of the system - if relevant. + } + ], + "text": "str" # Optional. Plain text + representation of the concept. + }, + "description": "str", # Optional. Procedure + description. + "extension": + [ + { + "url": "str", # Source of the definition + for the extension code - a logical name + or a URL. Required. + "valueBoolean": bool, # Optional. Value + as boolean. "valueCodeableConcept": { "coding": [ { "code": "str", # Optional. - Symbol in syntax defined by the - system. - "display": "str", # Optional. - Representation defined by the - system. + Symbol in syntax defined by + the system. + "display": "str", # + Optional. Representation + defined by the system. "extension": [ ... ], - "id": "str", # Optional. Unique - id for inter-element referencing. + "id": "str", # Optional. + Unique id for inter-element + referencing. "system": "str", # Optional. - Identity of the terminology - system. + Identity of the terminology + system. "version": "str" # Optional. - Version of the system - if - relevant. + Version of the system - if + relevant. } ], "text": "str" # Optional. Plain text - representation of the concept. - }, - "valueDateTime": "str", # Optional. Value as - dateTime. + representation of the concept. + }, + "valueDateTime": "str", # Optional. + Value as dateTime. "valueInteger": 0, # Optional. Value as - integer. + integer. "valuePeriod": { - "end": "str", # Optional. End time with - inclusive boundary, if not ongoing. - "start": "str" # Optional. Starting time - with inclusive boundary. - }, + "end": "str", # Optional. End time + with inclusive boundary, if not + ongoing. + "start": "str" # Optional. Starting + time with inclusive boundary. + }, "valueQuantity": { - "code": "str", # Optional. Coded form of - the unit. - "comparator": "str", # Optional. < | <= - | >= | > - how to understand the value. - "system": "str", # Optional. System that - defines coded unit form. - "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical value - (with implicit precision). - }, - "valueRange": { - "high": { "code": "str", # Optional. Coded form of the unit. "comparator": "str", # Optional. < | @@ -1954,241 +6356,281 @@ async def begin_infer_radiology_insights( "value": 0.0 # Optional. Numerical value (with implicit precision). }, + "valueRange": { + "high": { + "code": "str", # Optional. Coded + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. + "unit": "str", # Optional. Unit + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). + }, "low": { "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). } - }, + }, "valueRatio": { "denominator": { "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). }, "numerator": { "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). } - }, + }, "valueReference": { "display": "str", # Optional. Text - alternative for the resource. + alternative for the resource. "identifier": { "assigner": ..., "period": { - "end": "str", # Optional. End - time with inclusive boundary, if - not ongoing. + "end": "str", # Optional. + End time with inclusive + boundary, if not ongoing. "start": "str" # Optional. - Starting time with inclusive - boundary. + Starting time with inclusive + boundary. }, "system": "str", # Optional. The - namespace for the identifier value. + namespace for the identifier + value. "type": { "coding": [ { "code": "str", # - Optional. Symbol in - syntax defined by the - system. + Optional. Symbol in + syntax defined by the + system. "display": "str", # - Optional. Representation - defined by the system. + Optional. + Representation + defined by the + system. "extension": [ ... ], - "id": "str", # Optional. - Unique id for - inter-element - referencing. + "id": "str", # + Optional. Unique id + for inter-element + referencing. "system": "str", # - Optional. Identity of the - terminology system. + Optional. Identity of + the terminology + system. "version": "str" # - Optional. Version of the - system - if relevant. + Optional. Version of + the system - if + relevant. } ], - "text": "str" # Optional. Plain - text representation of the - concept. + "text": "str" # Optional. + Plain text representation of + the concept. }, - "use": "str", # Optional. usual | - official | temp | secondary | old (If - known). - "value": "str" # Optional. The value - that is unique. + "use": "str", # Optional. usual + | official | temp | secondary | + old (If known). + "value": "str" # Optional. The + value that is unique. }, - "reference": "str", # Optional. Literal - reference, Relative, internal or absolute - URL. + "reference": "str", # Optional. + Literal reference, Relative, internal + or absolute URL. "type": "str" # Optional. Type the - reference refers to (e.g. "Patient"). - }, + reference refers to (e.g. "Patient"). + }, "valueSampledData": { "dimensions": 0, # Number of sample - points at each time point. Required. + points at each time point. Required. "origin": { "code": "str", # Optional. Coded - form of the unit. - "comparator": "str", # Optional. < | - <= | >= | > - how to understand the - value. - "system": "str", # Optional. System - that defines coded unit form. + form of the unit. + "comparator": "str", # Optional. + < | <= | >= | > - how to + understand the value. + "system": "str", # Optional. + System that defines coded unit + form. "unit": "str", # Optional. Unit - representation. - "value": 0.0 # Optional. Numerical - value (with implicit precision). + representation. + "value": 0.0 # Optional. + Numerical value (with implicit + precision). }, - "period": 0.0, # Number of milliseconds - between samples. Required. + "period": 0.0, # Number of + milliseconds between samples. + Required. "data": "str", # Optional. Decimal - values with spaces, or "E" | "U" | "L". - "factor": 0.0, # Optional. Multiply data - by this before adding to origin. + values with spaces, or "E" | "U" | + "L". + "factor": 0.0, # Optional. Multiply + data by this before adding to origin. "lowerLimit": 0.0, # Optional. Lower - limit of detection. + limit of detection. "upperLimit": 0.0 # Optional. Upper - limit of detection. - }, - "valueString": "str", # Optional. Value as - string. - "valueTime": "12:30:00" # Optional. Value as - time (hh:mm:ss). - } - ] + limit of detection. + }, + "valueString": "str", # Optional. Value + as string. + "valueTime": "12:30:00" # Optional. + Value as time (hh:mm:ss). + } + ] + } + ] + }, + "authors": [ + { + "fullName": "str", # + Optional. Text representation of the full name. + "id": "str" # + Optional. author id. } - ] - }, - "authors": [ - { - "fullName": "str", # - Optional. Text representation of the full name. - "id": "str" # Optional. - author id. - } - ], - "clinicalType": "str", # Optional. The type - of the clinical document. Known values are: "consultation", - "dischargeSummary", "historyAndPhysical", "radiologyReport", - "procedure", "progress", "laboratory", and "pathologyReport". - "createdDateTime": "2020-02-20 00:00:00", # - Optional. The date and time when the document was created. - "language": "str", # Optional. A 2 letter - ISO 639-1 representation of the language of the document. - "specialtyType": "str" # Optional. specialty - type the document. Known values are: "pathology" and "radiology". - } - ] - } - ], - "configuration": { - "includeEvidence": bool, # Optional. An indication whether the - model's output should include evidence for the inferences. - "inferenceOptions": { - "findingOptions": { - "provideFocusedSentenceEvidence": bool # Optional. - If this is true, provide the sentence that contains the first token - of the finding's clinical indicator (i.e. the medical problem), if - there is one. This sentence is provided as an extension with url - 'ci_sentence', next to the token evidence. Default is false. - }, - "followupRecommendationOptions": { - "includeRecommendationsInReferences": bool, # - Optional. Include/Exclude follow-up recommendations in references to - a guideline or article. Default is false. - "includeRecommendationsWithNoSpecifiedModality": - bool, # Optional. Include/Exclude follow-up recommendations without - a specific radiology procedure. Default is false. - "provideFocusedSentenceEvidence": bool # Optional. - If this is true, provide one or more sentences as evidence for the - recommendation, next to the token evidence. The start and end - positions of these sentences will be put in an extension with url - 'modality_sentences'. Default is false. + ], + "clinicalType": "str", # Optional. + The type of the clinical document. Known values are: + "consultation", "dischargeSummary", "historyAndPhysical", + "radiologyReport", "procedure", "progress", "laboratory", and + "pathologyReport". + "createdAt": "2020-02-20 00:00:00", + # Optional. The date and time when the document was created. + "language": "str", # Optional. A 2 + letter ISO 639-1 representation of the language of the + document. + "specialtyType": "str" # Optional. + specialty type the document. Known values are: "pathology" + and "radiology". + } + ] } - }, - "inferenceTypes": [ - "str" # Optional. This is a list of inference types to be - inferred for the current request. It could be used if only part of the - Radiology Insights inferences are required. If this list is omitted or - empty, the model will return all the inference types. ], - "locale": "str", # Optional. Local for the model to use. If not - specified, the model will use the default locale. - "verbose": bool # Optional. An indication whether the model should - produce verbose output. - } - } - - # response body for status code(s): 202 - response == { - "modelVersion": "str", # The version of the model used for inference, - expressed as the model date. Required. - "patientResults": [ - { - "inferences": [ - radiology_insights_inference + "configuration": { + "includeEvidence": bool, # Optional. An indication whether + the model's output should include evidence for the inferences. + "inferenceOptions": { + "findingOptions": { + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide the sentence that contains the + first token of the finding's clinical indicator (i.e. the medical + problem), if there is one. This sentence is provided as an + extension with url 'ci_sentence', next to the token evidence. + Default is false. + }, + "followupRecommendationOptions": { + "includeRecommendationsInReferences": bool, + # Optional. Include/Exclude follow-up recommendations in + references to a guideline or article. Default is false. + "includeRecommendationsWithNoSpecifiedModality": bool, # + Optional. Include/Exclude follow-up recommendations without a + specific radiology procedure. Default is false. + "provideFocusedSentenceEvidence": bool # + Optional. If this is true, provide one or more sentences as + evidence for the recommendation, next to the token evidence. The + start and end positions of these sentences will be put in an + extension with url 'modality_sentences'. Default is false. + } + }, + "inferenceTypes": [ + "str" # Optional. This is a list of inference types + to be inferred for the current request. It could be used if only part + of the Radiology Insights inferences are required. If this list is + omitted or empty, the model will return all the inference types. ], - "patientId": "str" # Identifier given for the patient in the - request. Required. + "locale": "str", # Optional. Local for the model to use. If + not specified, the model will use the default locale. + "verbose": bool # Optional. An indication whether the model + should produce verbose output. } - ] + }, + "result": { + "modelVersion": "str", # The version of the model used for + inference, expressed as the model date. Required. + "patientResults": [ + { + "inferences": [ + radiology_insights_inference + ], + "patientId": "str" # Identifier given for the + patient in the request. Required. + } + ] + }, + "updatedAt": "2020-02-20 00:00:00" # Optional. The date and time when the + processing job was last updated. } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RadiologyInsightsInferenceResult] = kwargs.pop("cls", None) + cls: ClsType[_models.RadiologyInsightsJob] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._infer_radiology_insights_initial( - body=body, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs + id=id, + resource=resource, + expand=expand, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): response_headers = {} response = pipeline_response.http_response + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) response_headers["Operation-Location"] = self._deserialize( "str", response.headers.get("Operation-Location") ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - response_headers["Repeatability-Result"] = self._deserialize( - "str", response.headers.get("Repeatability-Result") - ) - deserialized = _deserialize(_models.RadiologyInsightsInferenceResult, response.json().get("result")) + deserialized = _deserialize(_models.RadiologyInsightsJob, response.json().get("result")) if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized @@ -2207,12 +6649,12 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.RadiologyInsightsInferenceResult].from_continuation_token( + return AsyncLROPoller[_models.RadiologyInsightsJob].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.RadiologyInsightsInferenceResult]( + return AsyncLROPoller[_models.RadiologyInsightsJob]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/__init__.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/__init__.py index 92be83c71ea11..160541b134c26 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/__init__.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/__init__.py @@ -22,7 +22,6 @@ from ._models import DocumentContent from ._models import DomainResource from ._models import Element -from ._models import Encounter from ._models import Error from ._models import Extension from ._models import FindingInference @@ -31,7 +30,8 @@ from ._models import FollowupRecommendationInference from ._models import FollowupRecommendationOptions from ._models import GenericProcedureRecommendation -from ._models import HealthInsightsOperationStatus +from ._models import HealthInsightsErrorResponse +from ._models import HealthInsightsErrorResponseRequestId from ._models import Identifier from ._models import ImagingProcedure from ._models import ImagingProcedureRecommendation @@ -46,6 +46,7 @@ from ._models import OrderedProcedure from ._models import PatientDetails from ._models import PatientDocument +from ._models import PatientEncounter from ._models import PatientRecord from ._models import Period from ._models import ProcedureRecommendation @@ -55,14 +56,15 @@ from ._models import RadiologyInsightsInference from ._models import RadiologyInsightsInferenceOptions from ._models import RadiologyInsightsInferenceResult +from ._models import RadiologyInsightsJob from ._models import RadiologyInsightsModelConfiguration from ._models import RadiologyInsightsPatientResult -from ._models import RadiologyInsightsResult from ._models import RadiologyProcedureInference from ._models import Range from ._models import Ratio from ._models import RecommendationFinding from ._models import Reference +from ._models import RequestIdResponseHeader from ._models import ResearchStudy from ._models import ResearchStudyArm from ._models import ResearchStudyObjective @@ -84,7 +86,6 @@ from ._enums import PatientSex from ._enums import RadiologyInsightsInferenceType from ._enums import RecommendationFindingStatusType -from ._enums import RepeatabilityResult from ._enums import ResearchStudyStatusCodeType from ._enums import SpecialtyType from ._patch import __all__ as _patch_all @@ -108,7 +109,6 @@ "DocumentContent", "DomainResource", "Element", - "Encounter", "Error", "Extension", "FindingInference", @@ -117,7 +117,8 @@ "FollowupRecommendationInference", "FollowupRecommendationOptions", "GenericProcedureRecommendation", - "HealthInsightsOperationStatus", + "HealthInsightsErrorResponse", + "HealthInsightsErrorResponseRequestId", "Identifier", "ImagingProcedure", "ImagingProcedureRecommendation", @@ -132,6 +133,7 @@ "OrderedProcedure", "PatientDetails", "PatientDocument", + "PatientEncounter", "PatientRecord", "Period", "ProcedureRecommendation", @@ -141,14 +143,15 @@ "RadiologyInsightsInference", "RadiologyInsightsInferenceOptions", "RadiologyInsightsInferenceResult", + "RadiologyInsightsJob", "RadiologyInsightsModelConfiguration", "RadiologyInsightsPatientResult", - "RadiologyInsightsResult", "RadiologyProcedureInference", "Range", "Ratio", "RecommendationFinding", "Reference", + "RequestIdResponseHeader", "ResearchStudy", "ResearchStudyArm", "ResearchStudyObjective", @@ -169,7 +172,6 @@ "PatientSex", "RadiologyInsightsInferenceType", "RecommendationFindingStatusType", - "RepeatabilityResult", "ResearchStudyStatusCodeType", "SpecialtyType", ] diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/_enums.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/_enums.py index b8c0850bdbd67..b0d874d8dc4e1 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/_enums.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/_enums.py @@ -223,19 +223,6 @@ class RecommendationFindingStatusType(str, Enum, metaclass=CaseInsensitiveEnumMe """Conditional finding status""" -class RepeatabilityResult(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Repeatability Result header options.""" - - ACCEPTED = "accepted" - """If the request was accepted and the server guarantees that the server state reflects a single - execution of the operation.""" - REJECTED = "rejected" - """If the request was rejected because the combination of Repeatability-First-Sent and - Repeatability-Request-ID were invalid - or because the Repeatability-First-Sent value was outside the range of values held by the - server.""" - - class ResearchStudyStatusCodeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """https://www.hl7.org/fhir/R4/codesystem-research-study-status.html.""" diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/_models.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/_models.py index 3f0ab07911ad4..7fac88f5d4084 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/_models.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/_models.py @@ -1,5 +1,5 @@ # coding=utf-8 -# pylint: disable=too-many-lines, line-too-long, too-many-locals +# pylint: disable=too-many-lines # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. @@ -942,53 +942,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles super().__init__(*args, **kwargs) -class Encounter(_model_base.Model): - """visit/encounter information. - - All required parameters must be populated in order to send to server. - - :ivar id: The id of the visit. Required. - :vartype id: str - :ivar period: Time period of the visit. - In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end - to indicate the discharge time. - :vartype period: ~azure.healthinsights.radiologyinsights.models.TimePeriod - :ivar class_property: The class of the encounter. Known values are: "inpatient", "ambulatory", - "observation", "emergency", "virtual", and "healthHome". - :vartype class_property: str or ~azure.healthinsights.radiologyinsights.models.EncounterClass - """ - - id: str = rest_field() - """The id of the visit. Required.""" - period: Optional["_models.TimePeriod"] = rest_field() - """Time period of the visit. - In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to - indicate the discharge time.""" - class_property: Optional[Union[str, "_models.EncounterClass"]] = rest_field(name="class") - """The class of the encounter. Known values are: \"inpatient\", \"ambulatory\", \"observation\", - \"emergency\", \"virtual\", and \"healthHome\".""" - - @overload - def __init__( - self, - *, - id: str, # pylint: disable=redefined-builtin - period: Optional["_models.TimePeriod"] = None, - class_property: Optional[Union[str, "_models.EncounterClass"]] = None, - ): - ... - - @overload - def __init__(self, mapping: Mapping[str, Any]): - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - class Error(_model_base.Model): """The error object. @@ -1217,8 +1170,8 @@ class FollowupCommunicationInference(RadiologyInsightsInference, discriminator=" :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] :ivar kind: Inference type. Required. Followup Communication inference type :vartype kind: str or ~azure.healthinsights.radiologyinsights.models.FOLLOWUP_COMMUNICATION - :ivar date_time: Communication date and time. - :vartype date_time: list[~datetime.datetime] + :ivar communicated_at: Communication date and time. + :vartype communicated_at: list[~datetime.datetime] :ivar recipient: Recipient of the communication. :vartype recipient: list[str or ~azure.healthinsights.radiologyinsights.models.MedicalProfessionalType] @@ -1228,7 +1181,7 @@ class FollowupCommunicationInference(RadiologyInsightsInference, discriminator=" kind: Literal[RadiologyInsightsInferenceType.FOLLOWUP_COMMUNICATION] = rest_discriminator(name="kind") # type: ignore """Inference type. Required. Followup Communication inference type""" - date_time: Optional[List[datetime.datetime]] = rest_field(name="dateTime", format="rfc3339") + communicated_at: Optional[List[datetime.datetime]] = rest_field(name="communicatedAt", format="rfc3339") """Communication date and time.""" recipient: Optional[List[Union[str, "_models.MedicalProfessionalType"]]] = rest_field() """Recipient of the communication.""" @@ -1241,7 +1194,7 @@ def __init__( *, was_acknowledged: bool, extension: Optional[List["_models.Extension"]] = None, - date_time: Optional[List[datetime.datetime]] = None, + communicated_at: Optional[List[datetime.datetime]] = None, recipient: Optional[List[Union[str, "_models.MedicalProfessionalType"]]] = None, ): ... @@ -1267,9 +1220,9 @@ class FollowupRecommendationInference(RadiologyInsightsInference, discriminator= :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] :ivar kind: Inference type. Required. Recommendation inference type :vartype kind: str or ~azure.healthinsights.radiologyinsights.models.FOLLOWUP_RECOMMENDATION - :ivar effective_date_time: Date and time are displayed when the procedure is recommended to be - done at a specific point in time. - :vartype effective_date_time: str + :ivar effective_at: Date and time are displayed when the procedure is recommended to be done at + a specific point in time. + :vartype effective_at: str :ivar effective_period: The period is shown if a specific period is mentioned, with a start and end date-time. :vartype effective_period: ~azure.healthinsights.radiologyinsights.models.Period @@ -1297,7 +1250,7 @@ class FollowupRecommendationInference(RadiologyInsightsInference, discriminator= kind: Literal[RadiologyInsightsInferenceType.FOLLOWUP_RECOMMENDATION] = rest_discriminator(name="kind") # type: ignore """Inference type. Required. Recommendation inference type""" - effective_date_time: Optional[str] = rest_field(name="effectiveDateTime") + effective_at: Optional[str] = rest_field(name="effectiveAt") """Date and time are displayed when the procedure is recommended to be done at a specific point in time.""" effective_period: Optional["_models.Period"] = rest_field(name="effectivePeriod") @@ -1331,7 +1284,7 @@ def __init__( is_hedging: bool, recommended_procedure: "_models.ProcedureRecommendation", extension: Optional[List["_models.Extension"]] = None, - effective_date_time: Optional[str] = None, + effective_at: Optional[str] = None, effective_period: Optional["_models.Period"] = None, findings: Optional[List["_models.RecommendationFinding"]] = None, ): @@ -1405,11 +1358,15 @@ class ProcedureRecommendation(_model_base.Model): All required parameters must be populated in order to send to server. + :ivar extension: Additional Content defined by implementations. + :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] :ivar kind: Required. Default value is None. :vartype kind: str """ __mapping__: Dict[str, _model_base.Model] = {} + extension: Optional[List["_models.Extension"]] = rest_field() + """Additional Content defined by implementations.""" kind: str = rest_discriminator(name="kind") """Required. Default value is None.""" @@ -1418,6 +1375,7 @@ def __init__( self, *, kind: str, + extension: Optional[List["_models.Extension"]] = None, ): ... @@ -1437,6 +1395,8 @@ class GenericProcedureRecommendation(ProcedureRecommendation, discriminator="gen All required parameters must be populated in order to send to server. + :ivar extension: Additional Content defined by implementations. + :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] :ivar kind: Procedure type : generic. Required. Default value is "genericProcedureRecommendation". :vartype kind: str @@ -1460,6 +1420,7 @@ def __init__( self, *, code: "_models.CodeableConcept", + extension: Optional[List["_models.Extension"]] = None, description: Optional[str] = None, ): ... @@ -1475,59 +1436,61 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles super().__init__(*args, kind="genericProcedureRecommendation", **kwargs) -class HealthInsightsOperationStatus(_model_base.Model): - """Provides status details for long running operations. - - Readonly variables are only populated by the server, and will be ignored when sending a request. +class HealthInsightsErrorResponse(_model_base.Model): + """A response containing error details. All required parameters must be populated in order to send to server. - :ivar id: The unique ID of the operation. Required. - :vartype id: str - :ivar status: The status of the operation. Required. Known values are: "notStarted", "running", - "succeeded", "failed", and "canceled". - :vartype status: str or ~azure.healthinsights.radiologyinsights.models.JobStatus - :ivar created_date_time: The date and time when the processing job was created. - :vartype created_date_time: ~datetime.datetime - :ivar expiration_date_time: The date and time when the processing job is set to expire. - :vartype expiration_date_time: ~datetime.datetime - :ivar last_update_date_time: The date and time when the processing job was last updated. - :vartype last_update_date_time: ~datetime.datetime - :ivar error: Error object that describes the error when status is "Failed". + :ivar error: The error object. Required. :vartype error: ~azure.healthinsights.radiologyinsights.models.Error - :ivar result: The result of the operation. - :vartype result: - ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult + :ivar request_id: An opaque, globally-unique, server-generated string identifier for the + request. Required. + :vartype request_id: + ~azure.healthinsights.radiologyinsights.models.HealthInsightsErrorResponseRequestId """ - id: str = rest_field(visibility=["read"]) - """The unique ID of the operation. Required.""" - status: Union[str, "_models.JobStatus"] = rest_field(visibility=["read"]) - """The status of the operation. Required. Known values are: \"notStarted\", \"running\", - \"succeeded\", \"failed\", and \"canceled\".""" - created_date_time: Optional[datetime.datetime] = rest_field( - name="createdDateTime", visibility=["read"], format="rfc3339" - ) - """The date and time when the processing job was created.""" - expiration_date_time: Optional[datetime.datetime] = rest_field( - name="expirationDateTime", visibility=["read"], format="rfc3339" - ) - """The date and time when the processing job is set to expire.""" - last_update_date_time: Optional[datetime.datetime] = rest_field( - name="lastUpdateDateTime", visibility=["read"], format="rfc3339" - ) - """The date and time when the processing job was last updated.""" - error: Optional["_models.Error"] = rest_field() - """Error object that describes the error when status is \"Failed\".""" - result: Optional["_models.RadiologyInsightsInferenceResult"] = rest_field() - """The result of the operation.""" + error: "_models.Error" = rest_field() + """The error object. Required.""" + request_id: "_models.HealthInsightsErrorResponseRequestId" = rest_field(name="requestId") + """An opaque, globally-unique, server-generated string identifier for the request. Required.""" + + @overload + def __init__( + self, + *, + error: "_models.Error", + request_id: "_models.HealthInsightsErrorResponseRequestId", + ): + ... + + @overload + def __init__(self, mapping: Mapping[str, Any]): + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + super().__init__(*args, **kwargs) + + +class HealthInsightsErrorResponseRequestId(_model_base.Model): + """HealthInsightsErrorResponseRequestId. + + All required parameters must be populated in order to send to server. + + :ivar response: Required. + :vartype response: ~azure.healthinsights.radiologyinsights.models.RequestIdResponseHeader + """ + + response: "_models.RequestIdResponseHeader" = rest_field() + """Required.""" @overload def __init__( self, *, - error: Optional["_models.Error"] = None, - result: Optional["_models.RadiologyInsightsInferenceResult"] = None, + response: "_models.RequestIdResponseHeader", ): ... @@ -1653,6 +1616,8 @@ class ImagingProcedureRecommendation(ProcedureRecommendation, discriminator="ima All required parameters must be populated in order to send to server. + :ivar extension: Additional Content defined by implementations. + :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] :ivar kind: Procedure type : imaging. Required. Default value is "imagingProcedureRecommendation". :vartype kind: str @@ -1675,6 +1640,7 @@ def __init__( self, *, imaging_procedures: List["_models.ImagingProcedure"], + extension: Optional[List["_models.Extension"]] = None, procedure_codes: Optional[List["_models.CodeableConcept"]] = None, ): ... @@ -2338,28 +2304,28 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class OrderedProcedure(_model_base.Model): """Procedure information. - :ivar extension: Additional Content defined by implementations. - :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] :ivar code: Procedure code. :vartype code: ~azure.healthinsights.radiologyinsights.models.CodeableConcept :ivar description: Procedure description. :vartype description: str + :ivar extension: Additional Content defined by implementations. + :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] """ - extension: Optional[List["_models.Extension"]] = rest_field() - """Additional Content defined by implementations.""" code: Optional["_models.CodeableConcept"] = rest_field() """Procedure code.""" description: Optional[str] = rest_field() """Procedure description.""" + extension: Optional[List["_models.Extension"]] = rest_field() + """Additional Content defined by implementations.""" @overload def __init__( self, *, - extension: Optional[List["_models.Extension"]] = None, code: Optional["_models.CodeableConcept"] = None, description: Optional[str] = None, + extension: Optional[List["_models.Extension"]] = None, ): ... @@ -2434,8 +2400,8 @@ class PatientDocument(_model_base.Model): :vartype id: str :ivar language: A 2 letter ISO 639-1 representation of the language of the document. :vartype language: str - :ivar created_date_time: The date and time when the document was created. - :vartype created_date_time: ~datetime.datetime + :ivar created_at: The date and time when the document was created. + :vartype created_at: ~datetime.datetime :ivar authors: Document author(s). :vartype authors: list[~azure.healthinsights.radiologyinsights.models.DocumentAuthor] :ivar specialty_type: specialty type the document. Known values are: "pathology" and @@ -2461,7 +2427,7 @@ class PatientDocument(_model_base.Model): patient. Required.""" language: Optional[str] = rest_field() """A 2 letter ISO 639-1 representation of the language of the document.""" - created_date_time: Optional[datetime.datetime] = rest_field(name="createdDateTime", format="rfc3339") + created_at: Optional[datetime.datetime] = rest_field(name="createdAt", format="rfc3339") """The date and time when the document was created.""" authors: Optional[List["_models.DocumentAuthor"]] = rest_field() """Document author(s).""" @@ -2483,7 +2449,7 @@ def __init__( content: "_models.DocumentContent", clinical_type: Optional[Union[str, "_models.ClinicalDocumentType"]] = None, language: Optional[str] = None, - created_date_time: Optional[datetime.datetime] = None, + created_at: Optional[datetime.datetime] = None, authors: Optional[List["_models.DocumentAuthor"]] = None, specialty_type: Optional[Union[str, "_models.SpecialtyType"]] = None, administrative_metadata: Optional["_models.DocumentAdministrativeMetadata"] = None, @@ -2501,6 +2467,53 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles super().__init__(*args, **kwargs) +class PatientEncounter(_model_base.Model): + """visit/encounter information. + + All required parameters must be populated in order to send to server. + + :ivar id: The id of the visit. Required. + :vartype id: str + :ivar period: Time period of the visit. + In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end + to indicate the discharge time. + :vartype period: ~azure.healthinsights.radiologyinsights.models.TimePeriod + :ivar class_property: The class of the encounter. Known values are: "inpatient", "ambulatory", + "observation", "emergency", "virtual", and "healthHome". + :vartype class_property: str or ~azure.healthinsights.radiologyinsights.models.EncounterClass + """ + + id: str = rest_field() + """The id of the visit. Required.""" + period: Optional["_models.TimePeriod"] = rest_field() + """Time period of the visit. + In case of admission, use timePeriod.start to indicate the admission time and timePeriod.end to + indicate the discharge time.""" + class_property: Optional[Union[str, "_models.EncounterClass"]] = rest_field(name="class") + """The class of the encounter. Known values are: \"inpatient\", \"ambulatory\", \"observation\", + \"emergency\", \"virtual\", and \"healthHome\".""" + + @overload + def __init__( + self, + *, + id: str, # pylint: disable=redefined-builtin + period: Optional["_models.TimePeriod"] = None, + class_property: Optional[Union[str, "_models.EncounterClass"]] = None, + ): + ... + + @overload + def __init__(self, mapping: Mapping[str, Any]): + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + super().__init__(*args, **kwargs) + + class PatientRecord(_model_base.Model): """A patient record, including their clinical information and data. @@ -2509,11 +2522,11 @@ class PatientRecord(_model_base.Model): :ivar id: A given identifier for the patient. Has to be unique across all patients in a single request. Required. :vartype id: str - :ivar info: Patient structured information, including demographics and known structured + :ivar details: Patient structured information, including demographics and known structured clinical information. - :vartype info: ~azure.healthinsights.radiologyinsights.models.PatientDetails + :vartype details: ~azure.healthinsights.radiologyinsights.models.PatientDetails :ivar encounters: Patient encounters/visits. - :vartype encounters: list[~azure.healthinsights.radiologyinsights.models.Encounter] + :vartype encounters: list[~azure.healthinsights.radiologyinsights.models.PatientEncounter] :ivar patient_documents: Patient unstructured clinical data, given as documents. :vartype patient_documents: list[~azure.healthinsights.radiologyinsights.models.PatientDocument] @@ -2522,10 +2535,10 @@ class PatientRecord(_model_base.Model): id: str = rest_field() """A given identifier for the patient. Has to be unique across all patients in a single request. Required.""" - info: Optional["_models.PatientDetails"] = rest_field() + details: Optional["_models.PatientDetails"] = rest_field() """Patient structured information, including demographics and known structured clinical information.""" - encounters: Optional[List["_models.Encounter"]] = rest_field() + encounters: Optional[List["_models.PatientEncounter"]] = rest_field() """Patient encounters/visits.""" patient_documents: Optional[List["_models.PatientDocument"]] = rest_field(name="patientDocuments") """Patient unstructured clinical data, given as documents.""" @@ -2535,8 +2548,8 @@ def __init__( self, *, id: str, # pylint: disable=redefined-builtin - info: Optional["_models.PatientDetails"] = None, - encounters: Optional[List["_models.Encounter"]] = None, + details: Optional["_models.PatientDetails"] = None, + encounters: Optional[List["_models.PatientEncounter"]] = None, patient_documents: Optional[List["_models.PatientDocument"]] = None, ): ... @@ -2792,6 +2805,66 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles super().__init__(*args, **kwargs) +class RadiologyInsightsJob(_model_base.Model): + """Response for the Radiology Insights request. + + Readonly variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to server. + + :ivar job_data: The request data for the operation. + :vartype job_data: ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsData + :ivar result: The result of the operation. + :vartype result: + ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult + :ivar status: The status of the job. Required. Known values are: "notStarted", "running", + "succeeded", "failed", and "canceled". + :vartype status: str or ~azure.healthinsights.radiologyinsights.models.JobStatus + :ivar created_at: The date and time when the processing job was created. + :vartype created_at: ~datetime.datetime + :ivar expires_at: The date and time when the processing job is set to expire. + :vartype expires_at: ~datetime.datetime + :ivar updated_at: The date and time when the processing job was last updated. + :vartype updated_at: ~datetime.datetime + :ivar error: Error object that describes the error when status is "Failed". + :vartype error: ~azure.healthinsights.radiologyinsights.models.Error + """ + + job_data: Optional["_models.RadiologyInsightsData"] = rest_field(name="jobData", visibility=["read", "create"]) + """The request data for the operation.""" + result: Optional["_models.RadiologyInsightsInferenceResult"] = rest_field(visibility=["read"]) + """The result of the operation.""" + status: Union[str, "_models.JobStatus"] = rest_field(visibility=["read"]) + """The status of the job. Required. Known values are: \"notStarted\", \"running\", \"succeeded\", + \"failed\", and \"canceled\".""" + created_at: Optional[datetime.datetime] = rest_field(name="createdAt", visibility=["read"], format="rfc3339") + """The date and time when the processing job was created.""" + expires_at: Optional[datetime.datetime] = rest_field(name="expiresAt", visibility=["read"], format="rfc3339") + """The date and time when the processing job is set to expire.""" + updated_at: Optional[datetime.datetime] = rest_field(name="updatedAt", visibility=["read"], format="rfc3339") + """The date and time when the processing job was last updated.""" + error: Optional["_models.Error"] = rest_field(visibility=["read"]) + """Error object that describes the error when status is \"Failed\".""" + + @overload + def __init__( + self, + *, + job_data: Optional["_models.RadiologyInsightsData"] = None, + ): + ... + + @overload + def __init__(self, mapping: Mapping[str, Any]): + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + super().__init__(*args, **kwargs) + + class RadiologyInsightsModelConfiguration(_model_base.Model): """Configuration affecting the Radiology Insights model's inference. @@ -2889,73 +2962,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles super().__init__(*args, **kwargs) -class RadiologyInsightsResult(_model_base.Model): - """Response for the Radiology Insights request. - - Readonly variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: The unique ID of the operation. Required. - :vartype id: str - :ivar status: The status of the operation. Required. Known values are: "notStarted", "running", - "succeeded", "failed", and "canceled". - :vartype status: str or ~azure.healthinsights.radiologyinsights.models.JobStatus - :ivar created_date_time: The date and time when the processing job was created. - :vartype created_date_time: ~datetime.datetime - :ivar expiration_date_time: The date and time when the processing job is set to expire. - :vartype expiration_date_time: ~datetime.datetime - :ivar last_update_date_time: The date and time when the processing job was last updated. - :vartype last_update_date_time: ~datetime.datetime - :ivar error: Error object that describes the error when status is "Failed". - :vartype error: ~azure.healthinsights.radiologyinsights.models.Error - :ivar result: The result of the operation. - :vartype result: - ~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult - """ - - id: str = rest_field(visibility=["read"]) - """The unique ID of the operation. Required.""" - status: Union[str, "_models.JobStatus"] = rest_field(visibility=["read"]) - """The status of the operation. Required. Known values are: \"notStarted\", \"running\", - \"succeeded\", \"failed\", and \"canceled\".""" - created_date_time: Optional[datetime.datetime] = rest_field( - name="createdDateTime", visibility=["read"], format="rfc3339" - ) - """The date and time when the processing job was created.""" - expiration_date_time: Optional[datetime.datetime] = rest_field( - name="expirationDateTime", visibility=["read"], format="rfc3339" - ) - """The date and time when the processing job is set to expire.""" - last_update_date_time: Optional[datetime.datetime] = rest_field( - name="lastUpdateDateTime", visibility=["read"], format="rfc3339" - ) - """The date and time when the processing job was last updated.""" - error: Optional["_models.Error"] = rest_field() - """Error object that describes the error when status is \"Failed\".""" - result: Optional["_models.RadiologyInsightsInferenceResult"] = rest_field() - """The result of the operation.""" - - @overload - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - result: Optional["_models.RadiologyInsightsInferenceResult"] = None, - ): - ... - - @overload - def __init__(self, mapping: Mapping[str, Any]): - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - class RadiologyProcedureInference(RadiologyInsightsInference, discriminator="radiologyProcedure"): """Radiology procedures are the specific imaging studies or examinations ordered for the patient, extracted from the document information and text. @@ -3082,8 +3088,6 @@ class RecommendationFinding(_model_base.Model): All required parameters must be populated in order to send to server. - :ivar extension: Additional Content defined by implementations. - :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] :ivar finding: Finding linked to a recommendation. :vartype finding: ~azure.healthinsights.radiologyinsights.models.Observation :ivar critical_finding: Critical result linked to a recommendation. @@ -3092,10 +3096,10 @@ class RecommendationFinding(_model_base.Model): "present", "differential", "ruleOut", and "conditional". :vartype recommendation_finding_status: str or ~azure.healthinsights.radiologyinsights.models.RecommendationFindingStatusType + :ivar extension: Additional Content defined by implementations. + :vartype extension: list[~azure.healthinsights.radiologyinsights.models.Extension] """ - extension: Optional[List["_models.Extension"]] = rest_field() - """Additional Content defined by implementations.""" finding: Optional["_models.Observation"] = rest_field() """Finding linked to a recommendation.""" critical_finding: Optional["_models.CriticalResult"] = rest_field(name="criticalFinding") @@ -3105,15 +3109,17 @@ class RecommendationFinding(_model_base.Model): ) """Recommendation finding status. Required. Known values are: \"present\", \"differential\", \"ruleOut\", and \"conditional\".""" + extension: Optional[List["_models.Extension"]] = rest_field() + """Additional Content defined by implementations.""" @overload def __init__( self, *, recommendation_finding_status: Union[str, "_models.RecommendationFindingStatusType"], - extension: Optional[List["_models.Extension"]] = None, finding: Optional["_models.Observation"] = None, critical_finding: Optional["_models.CriticalResult"] = None, + extension: Optional[List["_models.Extension"]] = None, ): ... @@ -3173,6 +3179,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles super().__init__(*args, **kwargs) +class RequestIdResponseHeader(_model_base.Model): + """Provides the 'x-ms-request-id' header to enable request correlation in responses.""" + + class ResearchStudy(DomainResource, discriminator="ResearchStudy"): # pylint: disable=too-many-instance-attributes """Detailed information about Research Study Based on `FHIR ResearchStudy `_. diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/setup.py b/sdk/healthinsights/azure-healthinsights-radiologyinsights/setup.py index 57be0108e385a..3ed094517a649 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/setup.py +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/setup.py @@ -38,7 +38,7 @@ url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk", keywords="azure, azure sdk", classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", diff --git a/sdk/healthinsights/azure-healthinsights-radiologyinsights/tsp-location.yaml b/sdk/healthinsights/azure-healthinsights-radiologyinsights/tsp-location.yaml index 62b271fc8b89e..a5a7b2f04295e 100644 --- a/sdk/healthinsights/azure-healthinsights-radiologyinsights/tsp-location.yaml +++ b/sdk/healthinsights/azure-healthinsights-radiologyinsights/tsp-location.yaml @@ -1,6 +1,7 @@ -directory: specification/ai/HealthInsights/HealthInsights.RadiologyInsights -commit: 3efb341e0472b4b1d85f9c015666a715d9f5fa5a repo: Azure/azure-rest-api-specs +commit: bad3ac2836bf066db2cadf920ba37124d0809d1a +directory: specification/ai/HealthInsights/HealthInsights.RadiologyInsights additionalDirectories: - specification/ai/HealthInsights/HealthInsights.Common/ - specification/ai/HealthInsights/HealthInsights.OpenAPI/ +