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

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

newtype ICD10CMRelationshipType = ICD10CMRelationshipType'
  { ICD10CMRelationshipType -> Text
fromICD10CMRelationshipType ::
      Core.Text
  }
  deriving stock
    ( Int -> ICD10CMRelationshipType -> ShowS
[ICD10CMRelationshipType] -> ShowS
ICD10CMRelationshipType -> String
(Int -> ICD10CMRelationshipType -> ShowS)
-> (ICD10CMRelationshipType -> String)
-> ([ICD10CMRelationshipType] -> ShowS)
-> Show ICD10CMRelationshipType
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]
(Int -> ReadS ICD10CMRelationshipType)
-> ReadS [ICD10CMRelationshipType]
-> ReadPrec ICD10CMRelationshipType
-> ReadPrec [ICD10CMRelationshipType]
-> Read 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
(ICD10CMRelationshipType -> ICD10CMRelationshipType -> Bool)
-> (ICD10CMRelationshipType -> ICD10CMRelationshipType -> Bool)
-> Eq ICD10CMRelationshipType
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
Eq ICD10CMRelationshipType
-> (ICD10CMRelationshipType -> ICD10CMRelationshipType -> Ordering)
-> (ICD10CMRelationshipType -> ICD10CMRelationshipType -> Bool)
-> (ICD10CMRelationshipType -> ICD10CMRelationshipType -> Bool)
-> (ICD10CMRelationshipType -> ICD10CMRelationshipType -> Bool)
-> (ICD10CMRelationshipType -> ICD10CMRelationshipType -> Bool)
-> (ICD10CMRelationshipType
    -> ICD10CMRelationshipType -> ICD10CMRelationshipType)
-> (ICD10CMRelationshipType
    -> ICD10CMRelationshipType -> ICD10CMRelationshipType)
-> Ord 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
$cp1Ord :: Eq ICD10CMRelationshipType
Prelude.Ord,
      (forall x.
 ICD10CMRelationshipType -> Rep ICD10CMRelationshipType x)
-> (forall x.
    Rep ICD10CMRelationshipType x -> ICD10CMRelationshipType)
-> Generic ICD10CMRelationshipType
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
    ( Int -> ICD10CMRelationshipType -> Int
ICD10CMRelationshipType -> Int
(Int -> ICD10CMRelationshipType -> Int)
-> (ICD10CMRelationshipType -> Int)
-> Hashable ICD10CMRelationshipType
forall 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 -> ()
(ICD10CMRelationshipType -> ()) -> NFData ICD10CMRelationshipType
forall a. (a -> ()) -> NFData a
rnf :: ICD10CMRelationshipType -> ()
$crnf :: ICD10CMRelationshipType -> ()
Prelude.NFData,
      Text -> Either String ICD10CMRelationshipType
(Text -> Either String ICD10CMRelationshipType)
-> FromText ICD10CMRelationshipType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ICD10CMRelationshipType
$cfromText :: Text -> Either String ICD10CMRelationshipType
Core.FromText,
      ICD10CMRelationshipType -> Text
(ICD10CMRelationshipType -> Text) -> ToText ICD10CMRelationshipType
forall a. (a -> Text) -> ToText a
toText :: ICD10CMRelationshipType -> Text
$ctoText :: ICD10CMRelationshipType -> Text
Core.ToText,
      ICD10CMRelationshipType -> ByteString
(ICD10CMRelationshipType -> ByteString)
-> ToByteString ICD10CMRelationshipType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ICD10CMRelationshipType -> ByteString
$ctoBS :: ICD10CMRelationshipType -> ByteString
Core.ToByteString,
      ICD10CMRelationshipType -> ByteStringBuilder
(ICD10CMRelationshipType -> ByteStringBuilder)
-> ToLog ICD10CMRelationshipType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ICD10CMRelationshipType -> ByteStringBuilder
$cbuild :: ICD10CMRelationshipType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ICD10CMRelationshipType -> [Header]
(HeaderName -> ICD10CMRelationshipType -> [Header])
-> ToHeader ICD10CMRelationshipType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ICD10CMRelationshipType -> [Header]
$ctoHeader :: HeaderName -> ICD10CMRelationshipType -> [Header]
Core.ToHeader,
      ICD10CMRelationshipType -> QueryString
(ICD10CMRelationshipType -> QueryString)
-> ToQuery ICD10CMRelationshipType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ICD10CMRelationshipType -> QueryString
$ctoQuery :: ICD10CMRelationshipType -> QueryString
Core.ToQuery,
      Value -> Parser [ICD10CMRelationshipType]
Value -> Parser ICD10CMRelationshipType
(Value -> Parser ICD10CMRelationshipType)
-> (Value -> Parser [ICD10CMRelationshipType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ICD10CMRelationshipType]
FromJSONKeyFunction ICD10CMRelationshipType
FromJSONKeyFunction ICD10CMRelationshipType
-> FromJSONKeyFunction [ICD10CMRelationshipType]
-> FromJSONKey ICD10CMRelationshipType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ICD10CMRelationshipType]
$cfromJSONKeyList :: FromJSONKeyFunction [ICD10CMRelationshipType]
fromJSONKey :: FromJSONKeyFunction ICD10CMRelationshipType
$cfromJSONKey :: FromJSONKeyFunction ICD10CMRelationshipType
Core.FromJSONKey,
      [ICD10CMRelationshipType] -> Encoding
[ICD10CMRelationshipType] -> Value
ICD10CMRelationshipType -> Encoding
ICD10CMRelationshipType -> Value
(ICD10CMRelationshipType -> Value)
-> (ICD10CMRelationshipType -> Encoding)
-> ([ICD10CMRelationshipType] -> Value)
-> ([ICD10CMRelationshipType] -> Encoding)
-> ToJSON ICD10CMRelationshipType
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
Core.ToJSON,
      ToJSONKeyFunction [ICD10CMRelationshipType]
ToJSONKeyFunction ICD10CMRelationshipType
ToJSONKeyFunction ICD10CMRelationshipType
-> ToJSONKeyFunction [ICD10CMRelationshipType]
-> ToJSONKey ICD10CMRelationshipType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ICD10CMRelationshipType]
$ctoJSONKeyList :: ToJSONKeyFunction [ICD10CMRelationshipType]
toJSONKey :: ToJSONKeyFunction ICD10CMRelationshipType
$ctoJSONKey :: ToJSONKeyFunction ICD10CMRelationshipType
Core.ToJSONKey,
      [Node] -> Either String ICD10CMRelationshipType
([Node] -> Either String ICD10CMRelationshipType)
-> FromXML ICD10CMRelationshipType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ICD10CMRelationshipType
$cparseXML :: [Node] -> Either String ICD10CMRelationshipType
Core.FromXML,
      ICD10CMRelationshipType -> XML
(ICD10CMRelationshipType -> XML) -> ToXML ICD10CMRelationshipType
forall a. (a -> XML) -> ToXML a
toXML :: ICD10CMRelationshipType -> XML
$ctoXML :: ICD10CMRelationshipType -> XML
Core.ToXML
    )

pattern ICD10CMRelationshipType_OVERLAP :: ICD10CMRelationshipType
pattern $bICD10CMRelationshipType_OVERLAP :: ICD10CMRelationshipType
$mICD10CMRelationshipType_OVERLAP :: forall r.
ICD10CMRelationshipType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
ICD10CMRelationshipType_SYSTEM_ORGAN_SITE = ICD10CMRelationshipType' "SYSTEM_ORGAN_SITE"

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