{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Transcribe.Types.MedicalTranscriptionJobSummary
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Transcribe.Types.MedicalTranscriptionJobSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Transcribe.Types.LanguageCode
import Amazonka.Transcribe.Types.MedicalContentIdentificationType
import Amazonka.Transcribe.Types.OutputLocationType
import Amazonka.Transcribe.Types.Specialty
import Amazonka.Transcribe.Types.TranscriptionJobStatus
import Amazonka.Transcribe.Types.Type

-- | Provides detailed information about a specific medical transcription
-- job.
--
-- /See:/ 'newMedicalTranscriptionJobSummary' smart constructor.
data MedicalTranscriptionJobSummary = MedicalTranscriptionJobSummary'
  { -- | The date and time the specified medical transcription job finished
    -- processing.
    --
    -- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
    -- example, @2022-05-04T12:33:13.922000-07:00@ represents a transcription
    -- job that started processing at 12:33 PM UTC-7 on May 4, 2022.
    MedicalTranscriptionJobSummary -> Maybe POSIX
completionTime :: Prelude.Maybe Data.POSIX,
    -- | Labels all personal health information (PHI) identified in your
    -- transcript. For more information, see
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/phi-id.html Identifying personal health information (PHI) in a transcription>.
    MedicalTranscriptionJobSummary
-> Maybe MedicalContentIdentificationType
contentIdentificationType :: Prelude.Maybe MedicalContentIdentificationType,
    -- | The date and time the specified medical transcription job request was
    -- made.
    --
    -- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
    -- example, @2022-05-04T12:32:58.761000-07:00@ represents a transcription
    -- job that started processing at 12:32 PM UTC-7 on May 4, 2022.
    MedicalTranscriptionJobSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | If @TranscriptionJobStatus@ is @FAILED@, @FailureReason@ contains
    -- information about why the transcription job failed. See also:
    -- <https://docs.aws.amazon.com/transcribe/latest/APIReference/CommonErrors.html Common Errors>.
    MedicalTranscriptionJobSummary -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The language code used to create your medical transcription. US English
    -- (@en-US@) is the only supported language for medical transcriptions.
    MedicalTranscriptionJobSummary -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
    -- | The name of the medical transcription job. Job names are case sensitive
    -- and must be unique within an Amazon Web Services account.
    MedicalTranscriptionJobSummary -> Maybe Text
medicalTranscriptionJobName :: Prelude.Maybe Prelude.Text,
    -- | Indicates where the specified medical transcription output is stored.
    --
    -- If the value is @CUSTOMER_BUCKET@, the location is the Amazon S3 bucket
    -- you specified using the @OutputBucketName@ parameter in your request. If
    -- you also included @OutputKey@ in your request, your output is located in
    -- the path you specified in your request.
    --
    -- If the value is @SERVICE_BUCKET@, the location is a service-managed
    -- Amazon S3 bucket. To access a transcript stored in a service-managed
    -- bucket, use the URI shown in the @TranscriptFileUri@ field.
    MedicalTranscriptionJobSummary -> Maybe OutputLocationType
outputLocationType :: Prelude.Maybe OutputLocationType,
    -- | Provides the medical specialty represented in your media.
    MedicalTranscriptionJobSummary -> Maybe Specialty
specialty :: Prelude.Maybe Specialty,
    -- | The date and time your medical transcription job began processing.
    --
    -- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
    -- example, @2022-05-04T12:32:58.789000-07:00@ represents a transcription
    -- job that started processing at 12:32 PM UTC-7 on May 4, 2022.
    MedicalTranscriptionJobSummary -> Maybe POSIX
startTime :: Prelude.Maybe Data.POSIX,
    -- | Provides the status of your medical transcription job.
    --
    -- If the status is @COMPLETED@, the job is finished and you can find the
    -- results at the location specified in @TranscriptFileUri@. If the status
    -- is @FAILED@, @FailureReason@ provides details on why your transcription
    -- job failed.
    MedicalTranscriptionJobSummary -> Maybe TranscriptionJobStatus
transcriptionJobStatus :: Prelude.Maybe TranscriptionJobStatus,
    -- | Indicates whether the input media is a dictation or a conversation, as
    -- specified in the @StartMedicalTranscriptionJob@ request.
    MedicalTranscriptionJobSummary -> Maybe Type
type' :: Prelude.Maybe Type
  }
  deriving (MedicalTranscriptionJobSummary
-> MedicalTranscriptionJobSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MedicalTranscriptionJobSummary
-> MedicalTranscriptionJobSummary -> Bool
$c/= :: MedicalTranscriptionJobSummary
-> MedicalTranscriptionJobSummary -> Bool
== :: MedicalTranscriptionJobSummary
-> MedicalTranscriptionJobSummary -> Bool
$c== :: MedicalTranscriptionJobSummary
-> MedicalTranscriptionJobSummary -> Bool
Prelude.Eq, ReadPrec [MedicalTranscriptionJobSummary]
ReadPrec MedicalTranscriptionJobSummary
Int -> ReadS MedicalTranscriptionJobSummary
ReadS [MedicalTranscriptionJobSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MedicalTranscriptionJobSummary]
$creadListPrec :: ReadPrec [MedicalTranscriptionJobSummary]
readPrec :: ReadPrec MedicalTranscriptionJobSummary
$creadPrec :: ReadPrec MedicalTranscriptionJobSummary
readList :: ReadS [MedicalTranscriptionJobSummary]
$creadList :: ReadS [MedicalTranscriptionJobSummary]
readsPrec :: Int -> ReadS MedicalTranscriptionJobSummary
$creadsPrec :: Int -> ReadS MedicalTranscriptionJobSummary
Prelude.Read, Int -> MedicalTranscriptionJobSummary -> ShowS
[MedicalTranscriptionJobSummary] -> ShowS
MedicalTranscriptionJobSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MedicalTranscriptionJobSummary] -> ShowS
$cshowList :: [MedicalTranscriptionJobSummary] -> ShowS
show :: MedicalTranscriptionJobSummary -> String
$cshow :: MedicalTranscriptionJobSummary -> String
showsPrec :: Int -> MedicalTranscriptionJobSummary -> ShowS
$cshowsPrec :: Int -> MedicalTranscriptionJobSummary -> ShowS
Prelude.Show, forall x.
Rep MedicalTranscriptionJobSummary x
-> MedicalTranscriptionJobSummary
forall x.
MedicalTranscriptionJobSummary
-> Rep MedicalTranscriptionJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MedicalTranscriptionJobSummary x
-> MedicalTranscriptionJobSummary
$cfrom :: forall x.
MedicalTranscriptionJobSummary
-> Rep MedicalTranscriptionJobSummary x
Prelude.Generic)

-- |
-- Create a value of 'MedicalTranscriptionJobSummary' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'completionTime', 'medicalTranscriptionJobSummary_completionTime' - The date and time the specified medical transcription job finished
-- processing.
--
-- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
-- example, @2022-05-04T12:33:13.922000-07:00@ represents a transcription
-- job that started processing at 12:33 PM UTC-7 on May 4, 2022.
--
-- 'contentIdentificationType', 'medicalTranscriptionJobSummary_contentIdentificationType' - Labels all personal health information (PHI) identified in your
-- transcript. For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/phi-id.html Identifying personal health information (PHI) in a transcription>.
--
-- 'creationTime', 'medicalTranscriptionJobSummary_creationTime' - The date and time the specified medical transcription job request was
-- made.
--
-- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
-- example, @2022-05-04T12:32:58.761000-07:00@ represents a transcription
-- job that started processing at 12:32 PM UTC-7 on May 4, 2022.
--
-- 'failureReason', 'medicalTranscriptionJobSummary_failureReason' - If @TranscriptionJobStatus@ is @FAILED@, @FailureReason@ contains
-- information about why the transcription job failed. See also:
-- <https://docs.aws.amazon.com/transcribe/latest/APIReference/CommonErrors.html Common Errors>.
--
-- 'languageCode', 'medicalTranscriptionJobSummary_languageCode' - The language code used to create your medical transcription. US English
-- (@en-US@) is the only supported language for medical transcriptions.
--
-- 'medicalTranscriptionJobName', 'medicalTranscriptionJobSummary_medicalTranscriptionJobName' - The name of the medical transcription job. Job names are case sensitive
-- and must be unique within an Amazon Web Services account.
--
-- 'outputLocationType', 'medicalTranscriptionJobSummary_outputLocationType' - Indicates where the specified medical transcription output is stored.
--
-- If the value is @CUSTOMER_BUCKET@, the location is the Amazon S3 bucket
-- you specified using the @OutputBucketName@ parameter in your request. If
-- you also included @OutputKey@ in your request, your output is located in
-- the path you specified in your request.
--
-- If the value is @SERVICE_BUCKET@, the location is a service-managed
-- Amazon S3 bucket. To access a transcript stored in a service-managed
-- bucket, use the URI shown in the @TranscriptFileUri@ field.
--
-- 'specialty', 'medicalTranscriptionJobSummary_specialty' - Provides the medical specialty represented in your media.
--
-- 'startTime', 'medicalTranscriptionJobSummary_startTime' - The date and time your medical transcription job began processing.
--
-- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
-- example, @2022-05-04T12:32:58.789000-07:00@ represents a transcription
-- job that started processing at 12:32 PM UTC-7 on May 4, 2022.
--
-- 'transcriptionJobStatus', 'medicalTranscriptionJobSummary_transcriptionJobStatus' - Provides the status of your medical transcription job.
--
-- If the status is @COMPLETED@, the job is finished and you can find the
-- results at the location specified in @TranscriptFileUri@. If the status
-- is @FAILED@, @FailureReason@ provides details on why your transcription
-- job failed.
--
-- 'type'', 'medicalTranscriptionJobSummary_type' - Indicates whether the input media is a dictation or a conversation, as
-- specified in the @StartMedicalTranscriptionJob@ request.
newMedicalTranscriptionJobSummary ::
  MedicalTranscriptionJobSummary
newMedicalTranscriptionJobSummary :: MedicalTranscriptionJobSummary
newMedicalTranscriptionJobSummary =
  MedicalTranscriptionJobSummary'
    { $sel:completionTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
completionTime =
        forall a. Maybe a
Prelude.Nothing,
      $sel:contentIdentificationType:MedicalTranscriptionJobSummary' :: Maybe MedicalContentIdentificationType
contentIdentificationType = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:failureReason:MedicalTranscriptionJobSummary' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
      $sel:languageCode:MedicalTranscriptionJobSummary' :: Maybe LanguageCode
languageCode = forall a. Maybe a
Prelude.Nothing,
      $sel:medicalTranscriptionJobName:MedicalTranscriptionJobSummary' :: Maybe Text
medicalTranscriptionJobName =
        forall a. Maybe a
Prelude.Nothing,
      $sel:outputLocationType:MedicalTranscriptionJobSummary' :: Maybe OutputLocationType
outputLocationType = forall a. Maybe a
Prelude.Nothing,
      $sel:specialty:MedicalTranscriptionJobSummary' :: Maybe Specialty
specialty = forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
startTime = forall a. Maybe a
Prelude.Nothing,
      $sel:transcriptionJobStatus:MedicalTranscriptionJobSummary' :: Maybe TranscriptionJobStatus
transcriptionJobStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:type':MedicalTranscriptionJobSummary' :: Maybe Type
type' = forall a. Maybe a
Prelude.Nothing
    }

-- | The date and time the specified medical transcription job finished
-- processing.
--
-- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
-- example, @2022-05-04T12:33:13.922000-07:00@ represents a transcription
-- job that started processing at 12:33 PM UTC-7 on May 4, 2022.
medicalTranscriptionJobSummary_completionTime :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.UTCTime)
medicalTranscriptionJobSummary_completionTime :: Lens' MedicalTranscriptionJobSummary (Maybe UTCTime)
medicalTranscriptionJobSummary_completionTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe POSIX
completionTime :: Maybe POSIX
$sel:completionTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
completionTime} -> Maybe POSIX
completionTime) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe POSIX
a -> MedicalTranscriptionJobSummary
s {$sel:completionTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
completionTime = Maybe POSIX
a} :: MedicalTranscriptionJobSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Labels all personal health information (PHI) identified in your
-- transcript. For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/phi-id.html Identifying personal health information (PHI) in a transcription>.
medicalTranscriptionJobSummary_contentIdentificationType :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe MedicalContentIdentificationType)
medicalTranscriptionJobSummary_contentIdentificationType :: Lens'
  MedicalTranscriptionJobSummary
  (Maybe MedicalContentIdentificationType)
medicalTranscriptionJobSummary_contentIdentificationType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe MedicalContentIdentificationType
contentIdentificationType :: Maybe MedicalContentIdentificationType
$sel:contentIdentificationType:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary
-> Maybe MedicalContentIdentificationType
contentIdentificationType} -> Maybe MedicalContentIdentificationType
contentIdentificationType) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe MedicalContentIdentificationType
a -> MedicalTranscriptionJobSummary
s {$sel:contentIdentificationType:MedicalTranscriptionJobSummary' :: Maybe MedicalContentIdentificationType
contentIdentificationType = Maybe MedicalContentIdentificationType
a} :: MedicalTranscriptionJobSummary)

-- | The date and time the specified medical transcription job request was
-- made.
--
-- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
-- example, @2022-05-04T12:32:58.761000-07:00@ represents a transcription
-- job that started processing at 12:32 PM UTC-7 on May 4, 2022.
medicalTranscriptionJobSummary_creationTime :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.UTCTime)
medicalTranscriptionJobSummary_creationTime :: Lens' MedicalTranscriptionJobSummary (Maybe UTCTime)
medicalTranscriptionJobSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe POSIX
a -> MedicalTranscriptionJobSummary
s {$sel:creationTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: MedicalTranscriptionJobSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | If @TranscriptionJobStatus@ is @FAILED@, @FailureReason@ contains
-- information about why the transcription job failed. See also:
-- <https://docs.aws.amazon.com/transcribe/latest/APIReference/CommonErrors.html Common Errors>.
medicalTranscriptionJobSummary_failureReason :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.Text)
medicalTranscriptionJobSummary_failureReason :: Lens' MedicalTranscriptionJobSummary (Maybe Text)
medicalTranscriptionJobSummary_failureReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe Text
a -> MedicalTranscriptionJobSummary
s {$sel:failureReason:MedicalTranscriptionJobSummary' :: Maybe Text
failureReason = Maybe Text
a} :: MedicalTranscriptionJobSummary)

-- | The language code used to create your medical transcription. US English
-- (@en-US@) is the only supported language for medical transcriptions.
medicalTranscriptionJobSummary_languageCode :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe LanguageCode)
medicalTranscriptionJobSummary_languageCode :: Lens' MedicalTranscriptionJobSummary (Maybe LanguageCode)
medicalTranscriptionJobSummary_languageCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe LanguageCode
a -> MedicalTranscriptionJobSummary
s {$sel:languageCode:MedicalTranscriptionJobSummary' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: MedicalTranscriptionJobSummary)

-- | The name of the medical transcription job. Job names are case sensitive
-- and must be unique within an Amazon Web Services account.
medicalTranscriptionJobSummary_medicalTranscriptionJobName :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.Text)
medicalTranscriptionJobSummary_medicalTranscriptionJobName :: Lens' MedicalTranscriptionJobSummary (Maybe Text)
medicalTranscriptionJobSummary_medicalTranscriptionJobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe Text
medicalTranscriptionJobName :: Maybe Text
$sel:medicalTranscriptionJobName:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Text
medicalTranscriptionJobName} -> Maybe Text
medicalTranscriptionJobName) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe Text
a -> MedicalTranscriptionJobSummary
s {$sel:medicalTranscriptionJobName:MedicalTranscriptionJobSummary' :: Maybe Text
medicalTranscriptionJobName = Maybe Text
a} :: MedicalTranscriptionJobSummary)

-- | Indicates where the specified medical transcription output is stored.
--
-- If the value is @CUSTOMER_BUCKET@, the location is the Amazon S3 bucket
-- you specified using the @OutputBucketName@ parameter in your request. If
-- you also included @OutputKey@ in your request, your output is located in
-- the path you specified in your request.
--
-- If the value is @SERVICE_BUCKET@, the location is a service-managed
-- Amazon S3 bucket. To access a transcript stored in a service-managed
-- bucket, use the URI shown in the @TranscriptFileUri@ field.
medicalTranscriptionJobSummary_outputLocationType :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe OutputLocationType)
medicalTranscriptionJobSummary_outputLocationType :: Lens' MedicalTranscriptionJobSummary (Maybe OutputLocationType)
medicalTranscriptionJobSummary_outputLocationType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe OutputLocationType
outputLocationType :: Maybe OutputLocationType
$sel:outputLocationType:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe OutputLocationType
outputLocationType} -> Maybe OutputLocationType
outputLocationType) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe OutputLocationType
a -> MedicalTranscriptionJobSummary
s {$sel:outputLocationType:MedicalTranscriptionJobSummary' :: Maybe OutputLocationType
outputLocationType = Maybe OutputLocationType
a} :: MedicalTranscriptionJobSummary)

-- | Provides the medical specialty represented in your media.
medicalTranscriptionJobSummary_specialty :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Specialty)
medicalTranscriptionJobSummary_specialty :: Lens' MedicalTranscriptionJobSummary (Maybe Specialty)
medicalTranscriptionJobSummary_specialty = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe Specialty
specialty :: Maybe Specialty
$sel:specialty:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Specialty
specialty} -> Maybe Specialty
specialty) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe Specialty
a -> MedicalTranscriptionJobSummary
s {$sel:specialty:MedicalTranscriptionJobSummary' :: Maybe Specialty
specialty = Maybe Specialty
a} :: MedicalTranscriptionJobSummary)

-- | The date and time your medical transcription job began processing.
--
-- Timestamps are in the format @YYYY-MM-DD\'T\'HH:MM:SS.SSSSSS-UTC@. For
-- example, @2022-05-04T12:32:58.789000-07:00@ represents a transcription
-- job that started processing at 12:32 PM UTC-7 on May 4, 2022.
medicalTranscriptionJobSummary_startTime :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.UTCTime)
medicalTranscriptionJobSummary_startTime :: Lens' MedicalTranscriptionJobSummary (Maybe UTCTime)
medicalTranscriptionJobSummary_startTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe POSIX
a -> MedicalTranscriptionJobSummary
s {$sel:startTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
startTime = Maybe POSIX
a} :: MedicalTranscriptionJobSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Provides the status of your medical transcription job.
--
-- If the status is @COMPLETED@, the job is finished and you can find the
-- results at the location specified in @TranscriptFileUri@. If the status
-- is @FAILED@, @FailureReason@ provides details on why your transcription
-- job failed.
medicalTranscriptionJobSummary_transcriptionJobStatus :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe TranscriptionJobStatus)
medicalTranscriptionJobSummary_transcriptionJobStatus :: Lens' MedicalTranscriptionJobSummary (Maybe TranscriptionJobStatus)
medicalTranscriptionJobSummary_transcriptionJobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe TranscriptionJobStatus
transcriptionJobStatus :: Maybe TranscriptionJobStatus
$sel:transcriptionJobStatus:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe TranscriptionJobStatus
transcriptionJobStatus} -> Maybe TranscriptionJobStatus
transcriptionJobStatus) (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe TranscriptionJobStatus
a -> MedicalTranscriptionJobSummary
s {$sel:transcriptionJobStatus:MedicalTranscriptionJobSummary' :: Maybe TranscriptionJobStatus
transcriptionJobStatus = Maybe TranscriptionJobStatus
a} :: MedicalTranscriptionJobSummary)

-- | Indicates whether the input media is a dictation or a conversation, as
-- specified in the @StartMedicalTranscriptionJob@ request.
medicalTranscriptionJobSummary_type :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Type)
medicalTranscriptionJobSummary_type :: Lens' MedicalTranscriptionJobSummary (Maybe Type)
medicalTranscriptionJobSummary_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionJobSummary' {Maybe Type
type' :: Maybe Type
$sel:type':MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Type
type'} -> Maybe Type
type') (\s :: MedicalTranscriptionJobSummary
s@MedicalTranscriptionJobSummary' {} Maybe Type
a -> MedicalTranscriptionJobSummary
s {$sel:type':MedicalTranscriptionJobSummary' :: Maybe Type
type' = Maybe Type
a} :: MedicalTranscriptionJobSummary)

instance Data.FromJSON MedicalTranscriptionJobSummary where
  parseJSON :: Value -> Parser MedicalTranscriptionJobSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"MedicalTranscriptionJobSummary"
      ( \Object
x ->
          Maybe POSIX
-> Maybe MedicalContentIdentificationType
-> Maybe POSIX
-> Maybe Text
-> Maybe LanguageCode
-> Maybe Text
-> Maybe OutputLocationType
-> Maybe Specialty
-> Maybe POSIX
-> Maybe TranscriptionJobStatus
-> Maybe Type
-> MedicalTranscriptionJobSummary
MedicalTranscriptionJobSummary'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CompletionTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ContentIdentificationType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FailureReason")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LanguageCode")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MedicalTranscriptionJobName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OutputLocationType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Specialty")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StartTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TranscriptionJobStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Type")
      )

instance
  Prelude.Hashable
    MedicalTranscriptionJobSummary
  where
  hashWithSalt :: Int -> MedicalTranscriptionJobSummary -> Int
hashWithSalt
    Int
_salt
    MedicalTranscriptionJobSummary' {Maybe Text
Maybe POSIX
Maybe LanguageCode
Maybe MedicalContentIdentificationType
Maybe OutputLocationType
Maybe Specialty
Maybe TranscriptionJobStatus
Maybe Type
type' :: Maybe Type
transcriptionJobStatus :: Maybe TranscriptionJobStatus
startTime :: Maybe POSIX
specialty :: Maybe Specialty
outputLocationType :: Maybe OutputLocationType
medicalTranscriptionJobName :: Maybe Text
languageCode :: Maybe LanguageCode
failureReason :: Maybe Text
creationTime :: Maybe POSIX
contentIdentificationType :: Maybe MedicalContentIdentificationType
completionTime :: Maybe POSIX
$sel:type':MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Type
$sel:transcriptionJobStatus:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe TranscriptionJobStatus
$sel:startTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
$sel:specialty:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Specialty
$sel:outputLocationType:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe OutputLocationType
$sel:medicalTranscriptionJobName:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Text
$sel:languageCode:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe LanguageCode
$sel:failureReason:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Text
$sel:creationTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
$sel:contentIdentificationType:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary
-> Maybe MedicalContentIdentificationType
$sel:completionTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
completionTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MedicalContentIdentificationType
contentIdentificationType
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureReason
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LanguageCode
languageCode
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
medicalTranscriptionJobName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OutputLocationType
outputLocationType
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Specialty
specialty
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
startTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TranscriptionJobStatus
transcriptionJobStatus
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Type
type'

instance
  Prelude.NFData
    MedicalTranscriptionJobSummary
  where
  rnf :: MedicalTranscriptionJobSummary -> ()
rnf MedicalTranscriptionJobSummary' {Maybe Text
Maybe POSIX
Maybe LanguageCode
Maybe MedicalContentIdentificationType
Maybe OutputLocationType
Maybe Specialty
Maybe TranscriptionJobStatus
Maybe Type
type' :: Maybe Type
transcriptionJobStatus :: Maybe TranscriptionJobStatus
startTime :: Maybe POSIX
specialty :: Maybe Specialty
outputLocationType :: Maybe OutputLocationType
medicalTranscriptionJobName :: Maybe Text
languageCode :: Maybe LanguageCode
failureReason :: Maybe Text
creationTime :: Maybe POSIX
contentIdentificationType :: Maybe MedicalContentIdentificationType
completionTime :: Maybe POSIX
$sel:type':MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Type
$sel:transcriptionJobStatus:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe TranscriptionJobStatus
$sel:startTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
$sel:specialty:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Specialty
$sel:outputLocationType:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe OutputLocationType
$sel:medicalTranscriptionJobName:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Text
$sel:languageCode:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe LanguageCode
$sel:failureReason:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe Text
$sel:creationTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
$sel:contentIdentificationType:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary
-> Maybe MedicalContentIdentificationType
$sel:completionTime:MedicalTranscriptionJobSummary' :: MedicalTranscriptionJobSummary -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
completionTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MedicalContentIdentificationType
contentIdentificationType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureReason
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LanguageCode
languageCode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
medicalTranscriptionJobName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OutputLocationType
outputLocationType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Specialty
specialty
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
startTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TranscriptionJobStatus
transcriptionJobStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Type
type'