{-# 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.ICD10CMRelationshipType
-- 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.ICD10CMRelationshipType
  ( ICD10CMRelationshipType
      ( ..,
        ICD10CMRelationshipType_OVERLAP,
        ICD10CMRelationshipType_SYSTEM_ORGAN_SITE
      ),
  )
where

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

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

pattern ICD10CMRelationshipType_OVERLAP :: ICD10CMRelationshipType
pattern $bICD10CMRelationshipType_OVERLAP :: ICD10CMRelationshipType
$mICD10CMRelationshipType_OVERLAP :: forall {r}.
ICD10CMRelationshipType -> ((# #) -> r) -> ((# #) -> r) -> r
ICD10CMRelationshipType_OVERLAP = ICD10CMRelationshipType' "OVERLAP"

pattern ICD10CMRelationshipType_SYSTEM_ORGAN_SITE :: ICD10CMRelationshipType
pattern $bICD10CMRelationshipType_SYSTEM_ORGAN_SITE :: ICD10CMRelationshipType
$mICD10CMRelationshipType_SYSTEM_ORGAN_SITE :: forall {r}.
ICD10CMRelationshipType -> ((# #) -> r) -> ((# #) -> r) -> r
ICD10CMRelationshipType_SYSTEM_ORGAN_SITE = ICD10CMRelationshipType' "SYSTEM_ORGAN_SITE"

{-# COMPLETE
  ICD10CMRelationshipType_OVERLAP,
  ICD10CMRelationshipType_SYSTEM_ORGAN_SITE,
  ICD10CMRelationshipType'
  #-}