{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Transcribe.Types.MedicalTranscriptionJobSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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 summary information about a transcription job.
--
-- /See:/ 'newMedicalTranscriptionJobSummary' smart constructor.
data MedicalTranscriptionJobSummary = MedicalTranscriptionJobSummary'
  { -- | A timestamp that shows when the medical transcription job was created.
    MedicalTranscriptionJobSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The medical specialty of the transcription job. Refer to
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-medical-conversation.html Transcribing a medical conversation>for
    -- a list of supported specialties.
    MedicalTranscriptionJobSummary -> Maybe Specialty
specialty :: Prelude.Maybe Specialty,
    -- | If the @TranscriptionJobStatus@ field is @FAILED@, a description of the
    -- error.
    MedicalTranscriptionJobSummary -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The language of the transcript in the source audio file.
    MedicalTranscriptionJobSummary -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
    -- | Indicates the location of the transcription job\'s output. This field
    -- must be the path of an S3 bucket; if you don\'t already have an S3
    -- bucket, one is created based on the path you add.
    MedicalTranscriptionJobSummary -> Maybe OutputLocationType
outputLocationType :: Prelude.Maybe OutputLocationType,
    -- | A timestamp that shows when the job began processing.
    MedicalTranscriptionJobSummary -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | A timestamp that shows when the job was completed.
    MedicalTranscriptionJobSummary -> Maybe POSIX
completionTime :: Prelude.Maybe Core.POSIX,
    -- | The name of a medical transcription job.
    MedicalTranscriptionJobSummary -> Maybe Text
medicalTranscriptionJobName :: Prelude.Maybe Prelude.Text,
    -- | The status of the medical transcription job.
    MedicalTranscriptionJobSummary -> Maybe TranscriptionJobStatus
transcriptionJobStatus :: Prelude.Maybe TranscriptionJobStatus,
    -- | The speech of the clinician in the input audio.
    MedicalTranscriptionJobSummary -> Maybe Type
type' :: Prelude.Maybe Type,
    -- | Shows the type of information you\'ve configured Amazon Transcribe
    -- Medical to identify in a transcription job. If the value is @PHI@,
    -- you\'ve configured the transcription job to identify personal health
    -- information (PHI).
    MedicalTranscriptionJobSummary
-> Maybe MedicalContentIdentificationType
contentIdentificationType :: Prelude.Maybe MedicalContentIdentificationType
  }
  deriving (MedicalTranscriptionJobSummary
-> MedicalTranscriptionJobSummary -> Bool
(MedicalTranscriptionJobSummary
 -> MedicalTranscriptionJobSummary -> Bool)
-> (MedicalTranscriptionJobSummary
    -> MedicalTranscriptionJobSummary -> Bool)
-> Eq MedicalTranscriptionJobSummary
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]
(Int -> ReadS MedicalTranscriptionJobSummary)
-> ReadS [MedicalTranscriptionJobSummary]
-> ReadPrec MedicalTranscriptionJobSummary
-> ReadPrec [MedicalTranscriptionJobSummary]
-> Read 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
(Int -> MedicalTranscriptionJobSummary -> ShowS)
-> (MedicalTranscriptionJobSummary -> String)
-> ([MedicalTranscriptionJobSummary] -> ShowS)
-> Show MedicalTranscriptionJobSummary
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.
 MedicalTranscriptionJobSummary
 -> Rep MedicalTranscriptionJobSummary x)
-> (forall x.
    Rep MedicalTranscriptionJobSummary x
    -> MedicalTranscriptionJobSummary)
-> Generic MedicalTranscriptionJobSummary
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:
--
-- 'creationTime', 'medicalTranscriptionJobSummary_creationTime' - A timestamp that shows when the medical transcription job was created.
--
-- 'specialty', 'medicalTranscriptionJobSummary_specialty' - The medical specialty of the transcription job. Refer to
-- <https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-medical-conversation.html Transcribing a medical conversation>for
-- a list of supported specialties.
--
-- 'failureReason', 'medicalTranscriptionJobSummary_failureReason' - If the @TranscriptionJobStatus@ field is @FAILED@, a description of the
-- error.
--
-- 'languageCode', 'medicalTranscriptionJobSummary_languageCode' - The language of the transcript in the source audio file.
--
-- 'outputLocationType', 'medicalTranscriptionJobSummary_outputLocationType' - Indicates the location of the transcription job\'s output. This field
-- must be the path of an S3 bucket; if you don\'t already have an S3
-- bucket, one is created based on the path you add.
--
-- 'startTime', 'medicalTranscriptionJobSummary_startTime' - A timestamp that shows when the job began processing.
--
-- 'completionTime', 'medicalTranscriptionJobSummary_completionTime' - A timestamp that shows when the job was completed.
--
-- 'medicalTranscriptionJobName', 'medicalTranscriptionJobSummary_medicalTranscriptionJobName' - The name of a medical transcription job.
--
-- 'transcriptionJobStatus', 'medicalTranscriptionJobSummary_transcriptionJobStatus' - The status of the medical transcription job.
--
-- 'type'', 'medicalTranscriptionJobSummary_type' - The speech of the clinician in the input audio.
--
-- 'contentIdentificationType', 'medicalTranscriptionJobSummary_contentIdentificationType' - Shows the type of information you\'ve configured Amazon Transcribe
-- Medical to identify in a transcription job. If the value is @PHI@,
-- you\'ve configured the transcription job to identify personal health
-- information (PHI).
newMedicalTranscriptionJobSummary ::
  MedicalTranscriptionJobSummary
newMedicalTranscriptionJobSummary :: MedicalTranscriptionJobSummary
newMedicalTranscriptionJobSummary =
  MedicalTranscriptionJobSummary' :: Maybe POSIX
-> Maybe Specialty
-> Maybe Text
-> Maybe LanguageCode
-> Maybe OutputLocationType
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe TranscriptionJobStatus
-> Maybe Type
-> Maybe MedicalContentIdentificationType
-> MedicalTranscriptionJobSummary
MedicalTranscriptionJobSummary'
    { $sel:creationTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:specialty:MedicalTranscriptionJobSummary' :: Maybe Specialty
specialty = Maybe Specialty
forall a. Maybe a
Prelude.Nothing,
      $sel:failureReason:MedicalTranscriptionJobSummary' :: Maybe Text
failureReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:languageCode:MedicalTranscriptionJobSummary' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
      $sel:outputLocationType:MedicalTranscriptionJobSummary' :: Maybe OutputLocationType
outputLocationType = Maybe OutputLocationType
forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:completionTime:MedicalTranscriptionJobSummary' :: Maybe POSIX
completionTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:medicalTranscriptionJobName:MedicalTranscriptionJobSummary' :: Maybe Text
medicalTranscriptionJobName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:transcriptionJobStatus:MedicalTranscriptionJobSummary' :: Maybe TranscriptionJobStatus
transcriptionJobStatus = Maybe TranscriptionJobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:type':MedicalTranscriptionJobSummary' :: Maybe Type
type' = Maybe Type
forall a. Maybe a
Prelude.Nothing,
      $sel:contentIdentificationType:MedicalTranscriptionJobSummary' :: Maybe MedicalContentIdentificationType
contentIdentificationType = Maybe MedicalContentIdentificationType
forall a. Maybe a
Prelude.Nothing
    }

-- | A timestamp that shows when the medical transcription job was created.
medicalTranscriptionJobSummary_creationTime :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.UTCTime)
medicalTranscriptionJobSummary_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_creationTime = (MedicalTranscriptionJobSummary -> Maybe POSIX)
-> (MedicalTranscriptionJobSummary
    -> Maybe POSIX -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
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) ((Maybe POSIX -> f (Maybe POSIX))
 -> MedicalTranscriptionJobSummary
 -> f MedicalTranscriptionJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The medical specialty of the transcription job. Refer to
-- <https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-medical-conversation.html Transcribing a medical conversation>for
-- a list of supported specialties.
medicalTranscriptionJobSummary_specialty :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Specialty)
medicalTranscriptionJobSummary_specialty :: (Maybe Specialty -> f (Maybe Specialty))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_specialty = (MedicalTranscriptionJobSummary -> Maybe Specialty)
-> (MedicalTranscriptionJobSummary
    -> Maybe Specialty -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe Specialty)
     (Maybe 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)

-- | If the @TranscriptionJobStatus@ field is @FAILED@, a description of the
-- error.
medicalTranscriptionJobSummary_failureReason :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.Text)
medicalTranscriptionJobSummary_failureReason :: (Maybe Text -> f (Maybe Text))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_failureReason = (MedicalTranscriptionJobSummary -> Maybe Text)
-> (MedicalTranscriptionJobSummary
    -> Maybe Text -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe Text)
     (Maybe Text)
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 of the transcript in the source audio file.
medicalTranscriptionJobSummary_languageCode :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe LanguageCode)
medicalTranscriptionJobSummary_languageCode :: (Maybe LanguageCode -> f (Maybe LanguageCode))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_languageCode = (MedicalTranscriptionJobSummary -> Maybe LanguageCode)
-> (MedicalTranscriptionJobSummary
    -> Maybe LanguageCode -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe LanguageCode)
     (Maybe 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)

-- | Indicates the location of the transcription job\'s output. This field
-- must be the path of an S3 bucket; if you don\'t already have an S3
-- bucket, one is created based on the path you add.
medicalTranscriptionJobSummary_outputLocationType :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe OutputLocationType)
medicalTranscriptionJobSummary_outputLocationType :: (Maybe OutputLocationType -> f (Maybe OutputLocationType))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_outputLocationType = (MedicalTranscriptionJobSummary -> Maybe OutputLocationType)
-> (MedicalTranscriptionJobSummary
    -> Maybe OutputLocationType -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe OutputLocationType)
     (Maybe 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)

-- | A timestamp that shows when the job began processing.
medicalTranscriptionJobSummary_startTime :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.UTCTime)
medicalTranscriptionJobSummary_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_startTime = (MedicalTranscriptionJobSummary -> Maybe POSIX)
-> (MedicalTranscriptionJobSummary
    -> Maybe POSIX -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
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) ((Maybe POSIX -> f (Maybe POSIX))
 -> MedicalTranscriptionJobSummary
 -> f MedicalTranscriptionJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A timestamp that shows when the job was completed.
medicalTranscriptionJobSummary_completionTime :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.UTCTime)
medicalTranscriptionJobSummary_completionTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_completionTime = (MedicalTranscriptionJobSummary -> Maybe POSIX)
-> (MedicalTranscriptionJobSummary
    -> Maybe POSIX -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
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) ((Maybe POSIX -> f (Maybe POSIX))
 -> MedicalTranscriptionJobSummary
 -> f MedicalTranscriptionJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The name of a medical transcription job.
medicalTranscriptionJobSummary_medicalTranscriptionJobName :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Prelude.Text)
medicalTranscriptionJobSummary_medicalTranscriptionJobName :: (Maybe Text -> f (Maybe Text))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_medicalTranscriptionJobName = (MedicalTranscriptionJobSummary -> Maybe Text)
-> (MedicalTranscriptionJobSummary
    -> Maybe Text -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe Text)
     (Maybe Text)
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)

-- | The status of the medical transcription job.
medicalTranscriptionJobSummary_transcriptionJobStatus :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe TranscriptionJobStatus)
medicalTranscriptionJobSummary_transcriptionJobStatus :: (Maybe TranscriptionJobStatus -> f (Maybe TranscriptionJobStatus))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_transcriptionJobStatus = (MedicalTranscriptionJobSummary -> Maybe TranscriptionJobStatus)
-> (MedicalTranscriptionJobSummary
    -> Maybe TranscriptionJobStatus -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe TranscriptionJobStatus)
     (Maybe 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)

-- | The speech of the clinician in the input audio.
medicalTranscriptionJobSummary_type :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe Type)
medicalTranscriptionJobSummary_type :: (Maybe Type -> f (Maybe Type))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_type = (MedicalTranscriptionJobSummary -> Maybe Type)
-> (MedicalTranscriptionJobSummary
    -> Maybe Type -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe Type)
     (Maybe 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)

-- | Shows the type of information you\'ve configured Amazon Transcribe
-- Medical to identify in a transcription job. If the value is @PHI@,
-- you\'ve configured the transcription job to identify personal health
-- information (PHI).
medicalTranscriptionJobSummary_contentIdentificationType :: Lens.Lens' MedicalTranscriptionJobSummary (Prelude.Maybe MedicalContentIdentificationType)
medicalTranscriptionJobSummary_contentIdentificationType :: (Maybe MedicalContentIdentificationType
 -> f (Maybe MedicalContentIdentificationType))
-> MedicalTranscriptionJobSummary
-> f MedicalTranscriptionJobSummary
medicalTranscriptionJobSummary_contentIdentificationType = (MedicalTranscriptionJobSummary
 -> Maybe MedicalContentIdentificationType)
-> (MedicalTranscriptionJobSummary
    -> Maybe MedicalContentIdentificationType
    -> MedicalTranscriptionJobSummary)
-> Lens
     MedicalTranscriptionJobSummary
     MedicalTranscriptionJobSummary
     (Maybe MedicalContentIdentificationType)
     (Maybe MedicalContentIdentificationType)
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)

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

instance
  Prelude.Hashable
    MedicalTranscriptionJobSummary

instance
  Prelude.NFData
    MedicalTranscriptionJobSummary