{-# 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.SNOMEDCTEntityType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ComprehendMedical.Types.SNOMEDCTEntityType
  ( SNOMEDCTEntityType
      ( ..,
        SNOMEDCTEntityType_DX_NAME,
        SNOMEDCTEntityType_PROCEDURE_NAME,
        SNOMEDCTEntityType_TEST_NAME,
        SNOMEDCTEntityType_TREATMENT_NAME
      ),
  )
where

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

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

pattern SNOMEDCTEntityType_DX_NAME :: SNOMEDCTEntityType
pattern $bSNOMEDCTEntityType_DX_NAME :: SNOMEDCTEntityType
$mSNOMEDCTEntityType_DX_NAME :: forall {r}. SNOMEDCTEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
SNOMEDCTEntityType_DX_NAME = SNOMEDCTEntityType' "DX_NAME"

pattern SNOMEDCTEntityType_PROCEDURE_NAME :: SNOMEDCTEntityType
pattern $bSNOMEDCTEntityType_PROCEDURE_NAME :: SNOMEDCTEntityType
$mSNOMEDCTEntityType_PROCEDURE_NAME :: forall {r}. SNOMEDCTEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
SNOMEDCTEntityType_PROCEDURE_NAME = SNOMEDCTEntityType' "PROCEDURE_NAME"

pattern SNOMEDCTEntityType_TEST_NAME :: SNOMEDCTEntityType
pattern $bSNOMEDCTEntityType_TEST_NAME :: SNOMEDCTEntityType
$mSNOMEDCTEntityType_TEST_NAME :: forall {r}. SNOMEDCTEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
SNOMEDCTEntityType_TEST_NAME = SNOMEDCTEntityType' "TEST_NAME"

pattern SNOMEDCTEntityType_TREATMENT_NAME :: SNOMEDCTEntityType
pattern $bSNOMEDCTEntityType_TREATMENT_NAME :: SNOMEDCTEntityType
$mSNOMEDCTEntityType_TREATMENT_NAME :: forall {r}. SNOMEDCTEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
SNOMEDCTEntityType_TREATMENT_NAME = SNOMEDCTEntityType' "TREATMENT_NAME"

{-# COMPLETE
  SNOMEDCTEntityType_DX_NAME,
  SNOMEDCTEntityType_PROCEDURE_NAME,
  SNOMEDCTEntityType_TEST_NAME,
  SNOMEDCTEntityType_TREATMENT_NAME,
  SNOMEDCTEntityType'
  #-}