{"record":{"id":"522fd2f6baf0e508","repo":"apache/beam","slug":"dicom-client-moved-to-apache-beam-io-gcp-healthcare","errorCode":null,"errorMessage":"Dicom Client moved to apache_beam.io.gcp.healthcare.dicomclient","messagePattern":"Dicom Client moved to apache_beam\\.io\\.gcp\\.healthcare\\.dicomclient","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"sdks/python/apache_beam/io/gcp/dicomclient.py","lineNumber":28,"sourceCode":"#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# For backwards compatibility.\n\n# pytype: skip-file\n\nimport warnings\n\n# pylint: disable=unused-import\nfrom apache_beam.io.gcp.healthcare import dicomclient\nfrom apache_beam.io.gcp.healthcare import dicomio\n\nwarnings.warn(\n    \"Dicom Client moved to apache_beam.io.gcp.healthcare.dicomclient\",\n    DeprecationWarning)\n","sourceCodeStart":10,"sourceCodeEnd":31,"githubUrl":"https://github.com/apache/beam/blob/12126d8942aaf848030c478b4c6a28c6af861c66/sdks/python/apache_beam/io/gcp/dicomclient.py#L10-L31","documentation":"Importing apache_beam.io.gcp.dicomclient warns that the DICOM client was relocated to apache_beam.io.gcp.healthcare.dicomclient. The old module only re-imports the new location (dicomclient and dicomio) and emits a DeprecationWarning.","triggerScenarios":"Any execution of `from apache_beam.io.gcp.dicomclient import ...` or plain import of that module.","commonSituations":"Healthcare DICOM pipelines written before the package reorganization; upgrades surfacing stale imports under io.gcp.","solutions":["Change imports to `from apache_beam.io.gcp.healthcare.dicomclient import ...`.","Update IO references to `from apache_beam.io.gcp.healthcare import dicomio`.","Search for 'io.gcp.dicomclient' and remove all legacy imports."],"exampleFix":"// before\nfrom apache_beam.io.gcp.dicomclient import DicomClient\n// after\nfrom apache_beam.io.gcp.healthcare.dicomclient import DicomClient","handlingStrategy":"validation","validationCode":"import warnings\nwith warnings.catch_warnings(record=True) as w:\n    warnings.simplefilter('always')\n    import apache_beam.io.gcp.dicomclient  # noqa\n    if w:\n        raise ImportError('Import from apache_beam.io.gcp.healthcare.dicomclient')","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Import healthcare DICOM modules only from apache_beam.io.gcp.healthcare.*.","Grep CI for legacy 'io.gcp.dicom' import paths.","Upgrade with -W error to catch stale imports immediately."],"tags":["python","deprecation","apache-beam","healthcare"],"backgroundTag":"deprecated-api-usage","analyzedSha":"12126d8942aaf848030c478b4c6a28c6af861c66","analyzedAt":"2026-09-13T01:50:10.254Z","contentChangedAt":"2026-09-13T01:50:10.254Z","schemaVersion":2},"datasetVersion":"2026-09-20T03:17:13.778Z"}