{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.ComprehendMedical.Types.AttributeName
-- 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.ComprehendMedical.Types.AttributeName
  ( AttributeName
      ( ..,
        AttributeName_DIAGNOSIS,
        AttributeName_FUTURE,
        AttributeName_HYPOTHETICAL,
        AttributeName_LOW_CONFIDENCE,
        AttributeName_NEGATION,
        AttributeName_PAST_HISTORY,
        AttributeName_PERTAINS_TO_FAMILY,
        AttributeName_SIGN,
        AttributeName_SYMPTOM
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype AttributeName = AttributeName'
  { AttributeName -> Text
fromAttributeName ::
      Data.Text
  }
  deriving stock
    ( Int -> AttributeName -> ShowS
[AttributeName] -> ShowS
AttributeName -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AttributeName] -> ShowS
$cshowList :: [AttributeName] -> ShowS
show :: AttributeName -> String
$cshow :: AttributeName -> String
showsPrec :: Int -> AttributeName -> ShowS
$cshowsPrec :: Int -> AttributeName -> ShowS
Prelude.Show,
      ReadPrec [AttributeName]
ReadPrec AttributeName
Int -> ReadS AttributeName
ReadS [AttributeName]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AttributeName]
$creadListPrec :: ReadPrec [AttributeName]
readPrec :: ReadPrec AttributeName
$creadPrec :: ReadPrec AttributeName
readList :: ReadS [AttributeName]
$creadList :: ReadS [AttributeName]
readsPrec :: Int -> ReadS AttributeName
$creadsPrec :: Int -> ReadS AttributeName
Prelude.Read,
      AttributeName -> AttributeName -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AttributeName -> AttributeName -> Bool
$c/= :: AttributeName -> AttributeName -> Bool
== :: AttributeName -> AttributeName -> Bool
$c== :: AttributeName -> AttributeName -> Bool
Prelude.Eq,
      Eq AttributeName
AttributeName -> AttributeName -> Bool
AttributeName -> AttributeName -> Ordering
AttributeName -> AttributeName -> AttributeName
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: AttributeName -> AttributeName -> AttributeName
$cmin :: AttributeName -> AttributeName -> AttributeName
max :: AttributeName -> AttributeName -> AttributeName
$cmax :: AttributeName -> AttributeName -> AttributeName
>= :: AttributeName -> AttributeName -> Bool
$c>= :: AttributeName -> AttributeName -> Bool
> :: AttributeName -> AttributeName -> Bool
$c> :: AttributeName -> AttributeName -> Bool
<= :: AttributeName -> AttributeName -> Bool
$c<= :: AttributeName -> AttributeName -> Bool
< :: AttributeName -> AttributeName -> Bool
$c< :: AttributeName -> AttributeName -> Bool
compare :: AttributeName -> AttributeName -> Ordering
$ccompare :: AttributeName -> AttributeName -> Ordering
Prelude.Ord,
      forall x. Rep AttributeName x -> AttributeName
forall x. AttributeName -> Rep AttributeName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AttributeName x -> AttributeName
$cfrom :: forall x. AttributeName -> Rep AttributeName x
Prelude.Generic
    )
  deriving newtype
    ( Eq AttributeName
Int -> AttributeName -> Int
AttributeName -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AttributeName -> Int
$chash :: AttributeName -> Int
hashWithSalt :: Int -> AttributeName -> Int
$chashWithSalt :: Int -> AttributeName -> Int
Prelude.Hashable,
      AttributeName -> ()
forall a. (a -> ()) -> NFData a
rnf :: AttributeName -> ()
$crnf :: AttributeName -> ()
Prelude.NFData,
      Text -> Either String AttributeName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AttributeName
$cfromText :: Text -> Either String AttributeName
Data.FromText,
      AttributeName -> Text
forall a. (a -> Text) -> ToText a
toText :: AttributeName -> Text
$ctoText :: AttributeName -> Text
Data.ToText,
      AttributeName -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AttributeName -> ByteString
$ctoBS :: AttributeName -> ByteString
Data.ToByteString,
      AttributeName -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AttributeName -> ByteStringBuilder
$cbuild :: AttributeName -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AttributeName -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AttributeName -> [Header]
$ctoHeader :: HeaderName -> AttributeName -> [Header]
Data.ToHeader,
      AttributeName -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AttributeName -> QueryString
$ctoQuery :: AttributeName -> QueryString
Data.ToQuery,
      Value -> Parser [AttributeName]
Value -> Parser AttributeName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AttributeName]
$cparseJSONList :: Value -> Parser [AttributeName]
parseJSON :: Value -> Parser AttributeName
$cparseJSON :: Value -> Parser AttributeName
Data.FromJSON,
      FromJSONKeyFunction [AttributeName]
FromJSONKeyFunction AttributeName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AttributeName]
$cfromJSONKeyList :: FromJSONKeyFunction [AttributeName]
fromJSONKey :: FromJSONKeyFunction AttributeName
$cfromJSONKey :: FromJSONKeyFunction AttributeName
Data.FromJSONKey,
      [AttributeName] -> Encoding
[AttributeName] -> Value
AttributeName -> Encoding
AttributeName -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AttributeName] -> Encoding
$ctoEncodingList :: [AttributeName] -> Encoding
toJSONList :: [AttributeName] -> Value
$ctoJSONList :: [AttributeName] -> Value
toEncoding :: AttributeName -> Encoding
$ctoEncoding :: AttributeName -> Encoding
toJSON :: AttributeName -> Value
$ctoJSON :: AttributeName -> Value
Data.ToJSON,
      ToJSONKeyFunction [AttributeName]
ToJSONKeyFunction AttributeName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AttributeName]
$ctoJSONKeyList :: ToJSONKeyFunction [AttributeName]
toJSONKey :: ToJSONKeyFunction AttributeName
$ctoJSONKey :: ToJSONKeyFunction AttributeName
Data.ToJSONKey,
      [Node] -> Either String AttributeName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AttributeName
$cparseXML :: [Node] -> Either String AttributeName
Data.FromXML,
      AttributeName -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AttributeName -> XML
$ctoXML :: AttributeName -> XML
Data.ToXML
    )

pattern AttributeName_DIAGNOSIS :: AttributeName
pattern $bAttributeName_DIAGNOSIS :: AttributeName
$mAttributeName_DIAGNOSIS :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_DIAGNOSIS = AttributeName' "DIAGNOSIS"

pattern AttributeName_FUTURE :: AttributeName
pattern $bAttributeName_FUTURE :: AttributeName
$mAttributeName_FUTURE :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_FUTURE = AttributeName' "FUTURE"

pattern AttributeName_HYPOTHETICAL :: AttributeName
pattern $bAttributeName_HYPOTHETICAL :: AttributeName
$mAttributeName_HYPOTHETICAL :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_HYPOTHETICAL = AttributeName' "HYPOTHETICAL"

pattern AttributeName_LOW_CONFIDENCE :: AttributeName
pattern $bAttributeName_LOW_CONFIDENCE :: AttributeName
$mAttributeName_LOW_CONFIDENCE :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_LOW_CONFIDENCE = AttributeName' "LOW_CONFIDENCE"

pattern AttributeName_NEGATION :: AttributeName
pattern $bAttributeName_NEGATION :: AttributeName
$mAttributeName_NEGATION :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_NEGATION = AttributeName' "NEGATION"

pattern AttributeName_PAST_HISTORY :: AttributeName
pattern $bAttributeName_PAST_HISTORY :: AttributeName
$mAttributeName_PAST_HISTORY :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_PAST_HISTORY = AttributeName' "PAST_HISTORY"

pattern AttributeName_PERTAINS_TO_FAMILY :: AttributeName
pattern $bAttributeName_PERTAINS_TO_FAMILY :: AttributeName
$mAttributeName_PERTAINS_TO_FAMILY :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_PERTAINS_TO_FAMILY = AttributeName' "PERTAINS_TO_FAMILY"

pattern AttributeName_SIGN :: AttributeName
pattern $bAttributeName_SIGN :: AttributeName
$mAttributeName_SIGN :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_SIGN = AttributeName' "SIGN"

pattern AttributeName_SYMPTOM :: AttributeName
pattern $bAttributeName_SYMPTOM :: AttributeName
$mAttributeName_SYMPTOM :: forall {r}. AttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AttributeName_SYMPTOM = AttributeName' "SYMPTOM"

{-# COMPLETE
  AttributeName_DIAGNOSIS,
  AttributeName_FUTURE,
  AttributeName_HYPOTHETICAL,
  AttributeName_LOW_CONFIDENCE,
  AttributeName_NEGATION,
  AttributeName_PAST_HISTORY,
  AttributeName_PERTAINS_TO_FAMILY,
  AttributeName_SIGN,
  AttributeName_SYMPTOM,
  AttributeName'
  #-}