{-# 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.ICD10CMTraitName
-- 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.ICD10CMTraitName
  ( ICD10CMTraitName
      ( ..,
        ICD10CMTraitName_DIAGNOSIS,
        ICD10CMTraitName_NEGATION,
        ICD10CMTraitName_SIGN,
        ICD10CMTraitName_SYMPTOM
      ),
  )
where

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

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

pattern ICD10CMTraitName_DIAGNOSIS :: ICD10CMTraitName
pattern $bICD10CMTraitName_DIAGNOSIS :: ICD10CMTraitName
$mICD10CMTraitName_DIAGNOSIS :: forall r. ICD10CMTraitName -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMTraitName_DIAGNOSIS = ICD10CMTraitName' "DIAGNOSIS"

pattern ICD10CMTraitName_NEGATION :: ICD10CMTraitName
pattern $bICD10CMTraitName_NEGATION :: ICD10CMTraitName
$mICD10CMTraitName_NEGATION :: forall r. ICD10CMTraitName -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMTraitName_NEGATION = ICD10CMTraitName' "NEGATION"

pattern ICD10CMTraitName_SIGN :: ICD10CMTraitName
pattern $bICD10CMTraitName_SIGN :: ICD10CMTraitName
$mICD10CMTraitName_SIGN :: forall r. ICD10CMTraitName -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMTraitName_SIGN = ICD10CMTraitName' "SIGN"

pattern ICD10CMTraitName_SYMPTOM :: ICD10CMTraitName
pattern $bICD10CMTraitName_SYMPTOM :: ICD10CMTraitName
$mICD10CMTraitName_SYMPTOM :: forall r. ICD10CMTraitName -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMTraitName_SYMPTOM = ICD10CMTraitName' "SYMPTOM"

{-# COMPLETE
  ICD10CMTraitName_DIAGNOSIS,
  ICD10CMTraitName_NEGATION,
  ICD10CMTraitName_SIGN,
  ICD10CMTraitName_SYMPTOM,
  ICD10CMTraitName'
  #-}