{-# 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.ICD10CMAttributeType
-- 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.ICD10CMAttributeType
  ( ICD10CMAttributeType
      ( ..,
        ICD10CMAttributeType_ACUITY,
        ICD10CMAttributeType_DIRECTION,
        ICD10CMAttributeType_QUALITY,
        ICD10CMAttributeType_QUANTITY,
        ICD10CMAttributeType_SYSTEM_ORGAN_SITE,
        ICD10CMAttributeType_TIME_EXPRESSION,
        ICD10CMAttributeType_TIME_TO_DX_NAME
      ),
  )
where

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

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

pattern ICD10CMAttributeType_ACUITY :: ICD10CMAttributeType
pattern $bICD10CMAttributeType_ACUITY :: ICD10CMAttributeType
$mICD10CMAttributeType_ACUITY :: forall r. ICD10CMAttributeType -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMAttributeType_ACUITY = ICD10CMAttributeType' "ACUITY"

pattern ICD10CMAttributeType_DIRECTION :: ICD10CMAttributeType
pattern $bICD10CMAttributeType_DIRECTION :: ICD10CMAttributeType
$mICD10CMAttributeType_DIRECTION :: forall r. ICD10CMAttributeType -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMAttributeType_DIRECTION = ICD10CMAttributeType' "DIRECTION"

pattern ICD10CMAttributeType_QUALITY :: ICD10CMAttributeType
pattern $bICD10CMAttributeType_QUALITY :: ICD10CMAttributeType
$mICD10CMAttributeType_QUALITY :: forall r. ICD10CMAttributeType -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMAttributeType_QUALITY = ICD10CMAttributeType' "QUALITY"

pattern ICD10CMAttributeType_QUANTITY :: ICD10CMAttributeType
pattern $bICD10CMAttributeType_QUANTITY :: ICD10CMAttributeType
$mICD10CMAttributeType_QUANTITY :: forall r. ICD10CMAttributeType -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMAttributeType_QUANTITY = ICD10CMAttributeType' "QUANTITY"

pattern ICD10CMAttributeType_SYSTEM_ORGAN_SITE :: ICD10CMAttributeType
pattern $bICD10CMAttributeType_SYSTEM_ORGAN_SITE :: ICD10CMAttributeType
$mICD10CMAttributeType_SYSTEM_ORGAN_SITE :: forall r. ICD10CMAttributeType -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMAttributeType_SYSTEM_ORGAN_SITE = ICD10CMAttributeType' "SYSTEM_ORGAN_SITE"

pattern ICD10CMAttributeType_TIME_EXPRESSION :: ICD10CMAttributeType
pattern $bICD10CMAttributeType_TIME_EXPRESSION :: ICD10CMAttributeType
$mICD10CMAttributeType_TIME_EXPRESSION :: forall r. ICD10CMAttributeType -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMAttributeType_TIME_EXPRESSION = ICD10CMAttributeType' "TIME_EXPRESSION"

pattern ICD10CMAttributeType_TIME_TO_DX_NAME :: ICD10CMAttributeType
pattern $bICD10CMAttributeType_TIME_TO_DX_NAME :: ICD10CMAttributeType
$mICD10CMAttributeType_TIME_TO_DX_NAME :: forall r. ICD10CMAttributeType -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMAttributeType_TIME_TO_DX_NAME = ICD10CMAttributeType' "TIME_TO_DX_NAME"

{-# COMPLETE
  ICD10CMAttributeType_ACUITY,
  ICD10CMAttributeType_DIRECTION,
  ICD10CMAttributeType_QUALITY,
  ICD10CMAttributeType_QUANTITY,
  ICD10CMAttributeType_SYSTEM_ORGAN_SITE,
  ICD10CMAttributeType_TIME_EXPRESSION,
  ICD10CMAttributeType_TIME_TO_DX_NAME,
  ICD10CMAttributeType'
  #-}