{-# 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.ICD10CMEntityCategory
-- 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.ICD10CMEntityCategory
  ( ICD10CMEntityCategory
      ( ..,
        ICD10CMEntityCategory_MEDICAL_CONDITION
      ),
  )
where

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

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

pattern ICD10CMEntityCategory_MEDICAL_CONDITION :: ICD10CMEntityCategory
pattern $bICD10CMEntityCategory_MEDICAL_CONDITION :: ICD10CMEntityCategory
$mICD10CMEntityCategory_MEDICAL_CONDITION :: forall r.
ICD10CMEntityCategory -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMEntityCategory_MEDICAL_CONDITION = ICD10CMEntityCategory' "MEDICAL_CONDITION"

{-# COMPLETE
  ICD10CMEntityCategory_MEDICAL_CONDITION,
  ICD10CMEntityCategory'
  #-}