def create_text_id_annotations(text_id_annotation_request=None):
    'Annotate IDs in a clinical note\n\n    Return the ID annotations found in a clinical note # noqa: E501\n\n    :param text_id_annotation_request:\n    :type text_id_annotation_request: dict | bytes\n\n    :rtype: TextIdAnnotationResponse\n    '
    if connexion.request.is_json:
        try:
            annotation_request = TextIdAnnotationRequest.from_dict(connexion.request.get_json())
            note = annotation_request.note
            annotations = get_annotations(note, phi_type=PhiType.ID)
            res = TextIdAnnotationResponse(annotations)
            status = 200
        except Exception as error:
            status = 500
            res = Error('Internal error', status, str(error))
    return (res, status)
Annotate IDs in a clinical note

Return the ID annotations found in a clinical note # noqa: E501

:param text_id_annotation_request:
:type text_id_annotation_request: dict | bytes

:rtype: TextIdAnnotationResponse
def create_text_id_annotations(text_id_annotation_request=None):
    'Annotate IDs in a clinical note\n\n    Return the ID annotations found in a clinical note # noqa: E501\n\n    :param text_id_annotation_request:\n    :type text_id_annotation_request: dict | bytes\n\n    :rtype: TextIdAnnotationResponse\n    '
    if connexion.request.is_json:
        try:
            annotation_request = TextIdAnnotationRequest.from_dict(connexion.request.get_json())
            note = annotation_request.note
            annotations = get_annotations(note, phi_type=PhiType.ID)
            res = TextIdAnnotationResponse(annotations)
            status = 200
        except Exception as error:
            status = 500
            res = Error('Internal error', status, str(error))
    return (res, status)