{-# 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.RxNormTraitName
-- 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.ComprehendMedical.Types.RxNormTraitName
  ( RxNormTraitName
      ( ..,
        RxNormTraitName_NEGATION
      ),
  )
where

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

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

pattern RxNormTraitName_NEGATION :: RxNormTraitName
pattern $bRxNormTraitName_NEGATION :: RxNormTraitName
$mRxNormTraitName_NEGATION :: forall r. RxNormTraitName -> (Void# -> r) -> (Void# -> r) -> r
RxNormTraitName_NEGATION = RxNormTraitName' "NEGATION"

{-# COMPLETE
  RxNormTraitName_NEGATION,
  RxNormTraitName'
  #-}