Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ include azure/healthinsights/radiologyinsights/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/healthinsights/__init__.py
include azure/healthinsights/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"commit": "b21d3a9d67eaa53f6aa9a2781f4e7fd32df7ed87",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/ai/HealthInsights/HealthInsights.RadiologyInsights",
"@azure-tools/typespec-python": "0.44.2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"CrossLanguagePackageId": "AzureHealthInsights",
"CrossLanguageDefinitionId": {
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInference": "AzureHealthInsights.RadiologyInsightsInference",
"azure.healthinsights.radiologyinsights.models.AgeMismatchInference": "AzureHealthInsights.AgeMismatchInference",
"azure.healthinsights.radiologyinsights.models.Element": "Fhir.R4.Element",
"azure.healthinsights.radiologyinsights.models.Annotation": "Fhir.R4.Annotation",
"azure.healthinsights.radiologyinsights.models.AssessmentValueRange": "AzureHealthInsights.AssessmentValueRange",
"azure.healthinsights.radiologyinsights.models.CodeableConcept": "Fhir.R4.CodeableConcept",
"azure.healthinsights.radiologyinsights.models.Coding": "Fhir.R4.Coding",
"azure.healthinsights.radiologyinsights.models.CompleteOrderDiscrepancyInference": "AzureHealthInsights.CompleteOrderDiscrepancyInference",
"azure.healthinsights.radiologyinsights.models.CriticalResult": "AzureHealthInsights.CriticalResult",
"azure.healthinsights.radiologyinsights.models.CriticalResultInference": "AzureHealthInsights.CriticalResultInference",
"azure.healthinsights.radiologyinsights.models.DocumentAdministrativeMetadata": "AzureHealthInsights.DocumentAdministrativeMetadata",
"azure.healthinsights.radiologyinsights.models.DocumentAuthor": "AzureHealthInsights.DocumentAuthor",
"azure.healthinsights.radiologyinsights.models.DocumentContent": "AzureHealthInsights.DocumentContent",
"azure.healthinsights.radiologyinsights.models.Resource": "Fhir.R4.Resource",
"azure.healthinsights.radiologyinsights.models.DomainResource": "Fhir.R4.DomainResource",
"azure.healthinsights.radiologyinsights.models.Extension": "Fhir.R4.Extension",
"azure.healthinsights.radiologyinsights.models.FindingInference": "AzureHealthInsights.FindingInference",
"azure.healthinsights.radiologyinsights.models.FindingOptions": "AzureHealthInsights.FindingOptions",
"azure.healthinsights.radiologyinsights.models.FollowupCommunicationInference": "AzureHealthInsights.FollowupCommunicationInference",
"azure.healthinsights.radiologyinsights.models.FollowupRecommendationInference": "AzureHealthInsights.FollowupRecommendationInference",
"azure.healthinsights.radiologyinsights.models.FollowupRecommendationOptions": "AzureHealthInsights.FollowupRecommendationOptions",
"azure.healthinsights.radiologyinsights.models.ProcedureRecommendation": "AzureHealthInsights.ProcedureRecommendation",
"azure.healthinsights.radiologyinsights.models.GenericProcedureRecommendation": "AzureHealthInsights.GenericProcedureRecommendation",
"azure.healthinsights.radiologyinsights.models.GuidanceInference": "AzureHealthInsights.GuidanceInference",
"azure.healthinsights.radiologyinsights.models.GuidanceOptions": "AzureHealthInsights.GuidanceOptions",
"azure.healthinsights.radiologyinsights.models.HealthInsightsErrorResponse": "AzureHealthInsights.HealthInsightsErrorResponse",
"azure.healthinsights.radiologyinsights.models.Identifier": "Fhir.R4.Identifier",
"azure.healthinsights.radiologyinsights.models.ImagingProcedure": "AzureHealthInsights.ImagingProcedure",
"azure.healthinsights.radiologyinsights.models.ImagingProcedureRecommendation": "AzureHealthInsights.ImagingProcedureRecommendation",
"azure.healthinsights.radiologyinsights.models.LateralityDiscrepancyInference": "AzureHealthInsights.LateralityDiscrepancyInference",
"azure.healthinsights.radiologyinsights.models.LimitedOrderDiscrepancyInference": "AzureHealthInsights.LimitedOrderDiscrepancyInference",
"azure.healthinsights.radiologyinsights.models.Meta": "Fhir.R4.Meta",
"azure.healthinsights.radiologyinsights.models.Narrative": "Fhir.R4.Narrative",
"azure.healthinsights.radiologyinsights.models.Observation": "Fhir.R4.Observation",
"azure.healthinsights.radiologyinsights.models.ObservationComponent": "Fhir.R4.ObservationComponent",
"azure.healthinsights.radiologyinsights.models.ObservationReferenceRange": "Fhir.R4.ObservationReferenceRange",
"azure.healthinsights.radiologyinsights.models.OrderedProcedure": "AzureHealthInsights.OrderedProcedure",
"azure.healthinsights.radiologyinsights.models.PatientDetails": "AzureHealthInsights.PatientDetails",
"azure.healthinsights.radiologyinsights.models.PatientDocument": "AzureHealthInsights.PatientDocument",
"azure.healthinsights.radiologyinsights.models.PatientEncounter": "AzureHealthInsights.PatientEncounter",
"azure.healthinsights.radiologyinsights.models.PatientRecord": "AzureHealthInsights.PatientRecord",
"azure.healthinsights.radiologyinsights.models.Period": "Fhir.R4.Period",
"azure.healthinsights.radiologyinsights.models.PresentGuidanceInformation": "AzureHealthInsights.PresentGuidanceInformation",
"azure.healthinsights.radiologyinsights.models.QualityMeasureInference": "AzureHealthInsights.QualityMeasureInference",
"azure.healthinsights.radiologyinsights.models.QualityMeasureOptions": "AzureHealthInsights.QualityMeasureOptions",
"azure.healthinsights.radiologyinsights.models.Quantity": "Fhir.R4.Quantity",
"azure.healthinsights.radiologyinsights.models.RadiologyCodeWithTypes": "AzureHealthInsights.RadiologyCodeWithTypes",
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsData": "AzureHealthInsights.RadiologyInsightsData",
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceOptions": "AzureHealthInsights.RadiologyInsightsInferenceOptions",
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult": "AzureHealthInsights.RadiologyInsightsInferenceResult",
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob": "AzureHealthInsights.RadiologyInsightsJob",
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsModelConfiguration": "AzureHealthInsights.RadiologyInsightsModelConfiguration",
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsPatientResult": "AzureHealthInsights.RadiologyInsightsPatientResult",
"azure.healthinsights.radiologyinsights.models.RadiologyProcedureInference": "AzureHealthInsights.RadiologyProcedureInference",
"azure.healthinsights.radiologyinsights.models.Range": "Fhir.R4.Range",
"azure.healthinsights.radiologyinsights.models.Ratio": "Fhir.R4.Ratio",
"azure.healthinsights.radiologyinsights.models.RecommendationFinding": "AzureHealthInsights.RecommendationFinding",
"azure.healthinsights.radiologyinsights.models.Reference": "Fhir.R4.Reference",
"azure.healthinsights.radiologyinsights.models.SampledData": "Fhir.R4.SampledData",
"azure.healthinsights.radiologyinsights.models.ScoringAndAssessmentInference": "AzureHealthInsights.ScoringAndAssessmentInference",
"azure.healthinsights.radiologyinsights.models.SexMismatchInference": "AzureHealthInsights.SexMismatchInference",
"azure.healthinsights.radiologyinsights.models.TimePeriod": "AzureHealthInsights.TimePeriod",
"azure.healthinsights.radiologyinsights.models.PatientSex": "AzureHealthInsights.PatientSex",
"azure.healthinsights.radiologyinsights.models.EncounterClass": "AzureHealthInsights.EncounterClass",
"azure.healthinsights.radiologyinsights.models.DocumentType": "AzureHealthInsights.DocumentType",
"azure.healthinsights.radiologyinsights.models.ClinicalDocumentType": "AzureHealthInsights.ClinicalDocumentType",
"azure.healthinsights.radiologyinsights.models.SpecialtyType": "AzureHealthInsights.SpecialtyType",
"azure.healthinsights.radiologyinsights.models.DocumentContentSourceType": "AzureHealthInsights.DocumentContentSourceType",
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceType": "AzureHealthInsights.RadiologyInsightsInferenceType",
"azure.healthinsights.radiologyinsights.models.QualityMeasureType": "AzureHealthInsights.QualityMeasureType",
"azure.healthinsights.radiologyinsights.models.ResearchStudyStatusCodeType": "Fhir.R4.ResearchStudyStatusCodeType",
"azure.healthinsights.radiologyinsights.models.ContactPointSystem": "Fhir.R4.ContactPointSystem",
"azure.healthinsights.radiologyinsights.models.ContactPointUse": "Fhir.R4.ContactPointUse",
"azure.healthinsights.radiologyinsights.models.ObservationStatusCodeType": "Fhir.R4.ObservationStatusCodeType",
"azure.healthinsights.radiologyinsights.models.MedicalProfessionalType": "AzureHealthInsights.MedicalProfessionalType",
"azure.healthinsights.radiologyinsights.models.RecommendationFindingStatusType": "AzureHealthInsights.RecommendationFindingStatusType",
"azure.healthinsights.radiologyinsights.models.GuidanceRankingType": "AzureHealthInsights.GuidanceRankingType",
"azure.healthinsights.radiologyinsights.models.LateralityDiscrepancyType": "AzureHealthInsights.LateralityDiscrepancyType",
"azure.healthinsights.radiologyinsights.models.QualityMeasureComplianceType": "AzureHealthInsights.QualityMeasureComplianceType",
"azure.healthinsights.radiologyinsights.models.ScoringAndAssessmentCategoryType": "AzureHealthInsights.ScoringAndAssessmentCategoryType",
"azure.healthinsights.radiologyinsights.models.JobStatus": "AzureHealthInsights.JobStatus",
"azure.healthinsights.radiologyinsights.RadiologyInsightsClient.begin_infer_radiology_insights": "ClientForAzureHealthInsights.RadiologyInsightsClient.inferRadiologyInsights",
"azure.healthinsights.radiologyinsights.aio.RadiologyInsightsClient.begin_infer_radiology_insights": "ClientForAzureHealthInsights.RadiologyInsightsClient.inferRadiologyInsights"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,28 @@
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._patch import RadiologyInsightsClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._client import RadiologyInsightsClient # type: ignore
from ._version import VERSION

__version__ = VERSION


try:
from ._patch import __all__ as _patch_all
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"RadiologyInsightsClient",
]

__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,24 @@

from ._configuration import RadiologyInsightsClientConfiguration
from ._operations import RadiologyInsightsClientOperationsMixin
from ._serialization import Deserializer, Serializer
from ._utils.serialization import Deserializer, Serializer

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class RadiologyInsightsClient(
RadiologyInsightsClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
class RadiologyInsightsClient(RadiologyInsightsClientOperationsMixin):
"""RadiologyInsightsClient.

:param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example:
https://westus2.api.cognitive.microsoft.com). Required.
`https://westus2.api.cognitive.microsoft.com <https://westus2.api.cognitive.microsoft.com>`_).
Required.
:type endpoint: str
:param credential: Credential used to authenticate requests to the service. Is either a
AzureKeyCredential type or a TokenCredential type. Required.
:param credential: Credential used to authenticate requests to the service. Is either a key
credential type or a token credential type. Required.
:type credential: ~azure.core.credentials.AzureKeyCredential or
~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is "2024-04-01".
:keyword api_version: The API version to use for this operation. Default value is "2024-10-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
Expand All @@ -46,6 +44,7 @@ class RadiologyInsightsClient(
def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None:
_endpoint = "{endpoint}/health-insights"
self._config = RadiologyInsightsClientConfiguration(endpoint=endpoint, credential=credential, **kwargs)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@
from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class RadiologyInsightsClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class RadiologyInsightsClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for RadiologyInsightsClient.

Note that all parameters used to create this instance are saved as instance
attributes.

:param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example:
https://westus2.api.cognitive.microsoft.com). Required.
`https://westus2.api.cognitive.microsoft.com <https://westus2.api.cognitive.microsoft.com>`_).
Required.
:type endpoint: str
:param credential: Credential used to authenticate requests to the service. Is either a
AzureKeyCredential type or a TokenCredential type. Required.
:param credential: Credential used to authenticate requests to the service. Is either a key
credential type or a token credential type. Required.
:type credential: ~azure.core.credentials.AzureKeyCredential or
~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is "2024-04-01".
:keyword api_version: The API version to use for this operation. Default value is "2024-10-01".
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-04-01")
api_version: str = kwargs.pop("api_version", "2024-10-01")

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._operations import RadiologyInsightsClientOperationsMixin
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._operations import RadiologyInsightsClientOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"RadiologyInsightsClientOperationsMixin",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Loading