{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ComprehendMedical.Types.RxNormEntityType
( RxNormEntityType
( ..,
RxNormEntityType_BRAND_NAME,
RxNormEntityType_GENERIC_NAME
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RxNormEntityType = RxNormEntityType'
{ RxNormEntityType -> Text
fromRxNormEntityType ::
Core.Text
}
deriving stock
( Int -> RxNormEntityType -> ShowS
[RxNormEntityType] -> ShowS
RxNormEntityType -> String
(Int -> RxNormEntityType -> ShowS)
-> (RxNormEntityType -> String)
-> ([RxNormEntityType] -> ShowS)
-> Show RxNormEntityType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RxNormEntityType] -> ShowS
$cshowList :: [RxNormEntityType] -> ShowS
show :: RxNormEntityType -> String
$cshow :: RxNormEntityType -> String
showsPrec :: Int -> RxNormEntityType -> ShowS
$cshowsPrec :: Int -> RxNormEntityType -> ShowS
Prelude.Show,
ReadPrec [RxNormEntityType]
ReadPrec RxNormEntityType
Int -> ReadS RxNormEntityType
ReadS [RxNormEntityType]
(Int -> ReadS RxNormEntityType)
-> ReadS [RxNormEntityType]
-> ReadPrec RxNormEntityType
-> ReadPrec [RxNormEntityType]
-> Read RxNormEntityType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RxNormEntityType]
$creadListPrec :: ReadPrec [RxNormEntityType]
readPrec :: ReadPrec RxNormEntityType
$creadPrec :: ReadPrec RxNormEntityType
readList :: ReadS [RxNormEntityType]
$creadList :: ReadS [RxNormEntityType]
readsPrec :: Int -> ReadS RxNormEntityType
$creadsPrec :: Int -> ReadS RxNormEntityType
Prelude.Read,
RxNormEntityType -> RxNormEntityType -> Bool
(RxNormEntityType -> RxNormEntityType -> Bool)
-> (RxNormEntityType -> RxNormEntityType -> Bool)
-> Eq RxNormEntityType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RxNormEntityType -> RxNormEntityType -> Bool
$c/= :: RxNormEntityType -> RxNormEntityType -> Bool
== :: RxNormEntityType -> RxNormEntityType -> Bool
$c== :: RxNormEntityType -> RxNormEntityType -> Bool
Prelude.Eq,
Eq RxNormEntityType
Eq RxNormEntityType
-> (RxNormEntityType -> RxNormEntityType -> Ordering)
-> (RxNormEntityType -> RxNormEntityType -> Bool)
-> (RxNormEntityType -> RxNormEntityType -> Bool)
-> (RxNormEntityType -> RxNormEntityType -> Bool)
-> (RxNormEntityType -> RxNormEntityType -> Bool)
-> (RxNormEntityType -> RxNormEntityType -> RxNormEntityType)
-> (RxNormEntityType -> RxNormEntityType -> RxNormEntityType)
-> Ord RxNormEntityType
RxNormEntityType -> RxNormEntityType -> Bool
RxNormEntityType -> RxNormEntityType -> Ordering
RxNormEntityType -> RxNormEntityType -> RxNormEntityType
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 :: RxNormEntityType -> RxNormEntityType -> RxNormEntityType
$cmin :: RxNormEntityType -> RxNormEntityType -> RxNormEntityType
max :: RxNormEntityType -> RxNormEntityType -> RxNormEntityType
$cmax :: RxNormEntityType -> RxNormEntityType -> RxNormEntityType
>= :: RxNormEntityType -> RxNormEntityType -> Bool
$c>= :: RxNormEntityType -> RxNormEntityType -> Bool
> :: RxNormEntityType -> RxNormEntityType -> Bool
$c> :: RxNormEntityType -> RxNormEntityType -> Bool
<= :: RxNormEntityType -> RxNormEntityType -> Bool
$c<= :: RxNormEntityType -> RxNormEntityType -> Bool
< :: RxNormEntityType -> RxNormEntityType -> Bool
$c< :: RxNormEntityType -> RxNormEntityType -> Bool
compare :: RxNormEntityType -> RxNormEntityType -> Ordering
$ccompare :: RxNormEntityType -> RxNormEntityType -> Ordering
$cp1Ord :: Eq RxNormEntityType
Prelude.Ord,
(forall x. RxNormEntityType -> Rep RxNormEntityType x)
-> (forall x. Rep RxNormEntityType x -> RxNormEntityType)
-> Generic RxNormEntityType
forall x. Rep RxNormEntityType x -> RxNormEntityType
forall x. RxNormEntityType -> Rep RxNormEntityType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RxNormEntityType x -> RxNormEntityType
$cfrom :: forall x. RxNormEntityType -> Rep RxNormEntityType x
Prelude.Generic
)
deriving newtype
( Int -> RxNormEntityType -> Int
RxNormEntityType -> Int
(Int -> RxNormEntityType -> Int)
-> (RxNormEntityType -> Int) -> Hashable RxNormEntityType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RxNormEntityType -> Int
$chash :: RxNormEntityType -> Int
hashWithSalt :: Int -> RxNormEntityType -> Int
$chashWithSalt :: Int -> RxNormEntityType -> Int
Prelude.Hashable,
RxNormEntityType -> ()
(RxNormEntityType -> ()) -> NFData RxNormEntityType
forall a. (a -> ()) -> NFData a
rnf :: RxNormEntityType -> ()
$crnf :: RxNormEntityType -> ()
Prelude.NFData,
Text -> Either String RxNormEntityType
(Text -> Either String RxNormEntityType)
-> FromText RxNormEntityType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RxNormEntityType
$cfromText :: Text -> Either String RxNormEntityType
Core.FromText,
RxNormEntityType -> Text
(RxNormEntityType -> Text) -> ToText RxNormEntityType
forall a. (a -> Text) -> ToText a
toText :: RxNormEntityType -> Text
$ctoText :: RxNormEntityType -> Text
Core.ToText,
RxNormEntityType -> ByteString
(RxNormEntityType -> ByteString) -> ToByteString RxNormEntityType
forall a. (a -> ByteString) -> ToByteString a
toBS :: RxNormEntityType -> ByteString
$ctoBS :: RxNormEntityType -> ByteString
Core.ToByteString,
RxNormEntityType -> ByteStringBuilder
(RxNormEntityType -> ByteStringBuilder) -> ToLog RxNormEntityType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RxNormEntityType -> ByteStringBuilder
$cbuild :: RxNormEntityType -> ByteStringBuilder
Core.ToLog,
HeaderName -> RxNormEntityType -> [Header]
(HeaderName -> RxNormEntityType -> [Header])
-> ToHeader RxNormEntityType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RxNormEntityType -> [Header]
$ctoHeader :: HeaderName -> RxNormEntityType -> [Header]
Core.ToHeader,
RxNormEntityType -> QueryString
(RxNormEntityType -> QueryString) -> ToQuery RxNormEntityType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RxNormEntityType -> QueryString
$ctoQuery :: RxNormEntityType -> QueryString
Core.ToQuery,
Value -> Parser [RxNormEntityType]
Value -> Parser RxNormEntityType
(Value -> Parser RxNormEntityType)
-> (Value -> Parser [RxNormEntityType])
-> FromJSON RxNormEntityType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RxNormEntityType]
$cparseJSONList :: Value -> Parser [RxNormEntityType]
parseJSON :: Value -> Parser RxNormEntityType
$cparseJSON :: Value -> Parser RxNormEntityType
Core.FromJSON,
FromJSONKeyFunction [RxNormEntityType]
FromJSONKeyFunction RxNormEntityType
FromJSONKeyFunction RxNormEntityType
-> FromJSONKeyFunction [RxNormEntityType]
-> FromJSONKey RxNormEntityType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RxNormEntityType]
$cfromJSONKeyList :: FromJSONKeyFunction [RxNormEntityType]
fromJSONKey :: FromJSONKeyFunction RxNormEntityType
$cfromJSONKey :: FromJSONKeyFunction RxNormEntityType
Core.FromJSONKey,
[RxNormEntityType] -> Encoding
[RxNormEntityType] -> Value
RxNormEntityType -> Encoding
RxNormEntityType -> Value
(RxNormEntityType -> Value)
-> (RxNormEntityType -> Encoding)
-> ([RxNormEntityType] -> Value)
-> ([RxNormEntityType] -> Encoding)
-> ToJSON RxNormEntityType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RxNormEntityType] -> Encoding
$ctoEncodingList :: [RxNormEntityType] -> Encoding
toJSONList :: [RxNormEntityType] -> Value
$ctoJSONList :: [RxNormEntityType] -> Value
toEncoding :: RxNormEntityType -> Encoding
$ctoEncoding :: RxNormEntityType -> Encoding
toJSON :: RxNormEntityType -> Value
$ctoJSON :: RxNormEntityType -> Value
Core.ToJSON,
ToJSONKeyFunction [RxNormEntityType]
ToJSONKeyFunction RxNormEntityType
ToJSONKeyFunction RxNormEntityType
-> ToJSONKeyFunction [RxNormEntityType]
-> ToJSONKey RxNormEntityType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RxNormEntityType]
$ctoJSONKeyList :: ToJSONKeyFunction [RxNormEntityType]
toJSONKey :: ToJSONKeyFunction RxNormEntityType
$ctoJSONKey :: ToJSONKeyFunction RxNormEntityType
Core.ToJSONKey,
[Node] -> Either String RxNormEntityType
([Node] -> Either String RxNormEntityType)
-> FromXML RxNormEntityType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RxNormEntityType
$cparseXML :: [Node] -> Either String RxNormEntityType
Core.FromXML,
RxNormEntityType -> XML
(RxNormEntityType -> XML) -> ToXML RxNormEntityType
forall a. (a -> XML) -> ToXML a
toXML :: RxNormEntityType -> XML
$ctoXML :: RxNormEntityType -> XML
Core.ToXML
)
pattern RxNormEntityType_BRAND_NAME :: RxNormEntityType
pattern $bRxNormEntityType_BRAND_NAME :: RxNormEntityType
$mRxNormEntityType_BRAND_NAME :: forall r. RxNormEntityType -> (Void# -> r) -> (Void# -> r) -> r
RxNormEntityType_BRAND_NAME = RxNormEntityType' "BRAND_NAME"
pattern RxNormEntityType_GENERIC_NAME :: RxNormEntityType
pattern $bRxNormEntityType_GENERIC_NAME :: RxNormEntityType
$mRxNormEntityType_GENERIC_NAME :: forall r. RxNormEntityType -> (Void# -> r) -> (Void# -> r) -> r
RxNormEntityType_GENERIC_NAME = RxNormEntityType' "GENERIC_NAME"
{-# COMPLETE
RxNormEntityType_BRAND_NAME,
RxNormEntityType_GENERIC_NAME,
RxNormEntityType'
#-}